:root {
  --canvas: #ede6d8;
  --surface: #fffdf8;
  --sunken: #e2d9c7;
  --line: #cfc3ad;
  --ink: #1c1826;
  --ink2: #5c5468;
  --one: #c2361e;
  --tape-red: #b8321d;
  --tape-orange: #f08a24;
  --tape-yellow: #f4c531;
  --tape-teal: #127574;
  --tape-violet: #6c43d6;
  --tape-pink: #c0306f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #14121b;
    --surface: #211e2b;
    --sunken: #0e0c13;
    --line: #393445;
    --ink: #f3eee4;
    --ink2: #ada5ba;
    --one: #ff7a5c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--one); }

.wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }

header.site { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 11px; }
nav.site a { margin-left: 18px; font-weight: 600; font-size: 15px; }
nav.site a:first-child { margin-left: 0; }

h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.08; letter-spacing: -0.02em; margin: 8px 0 14px; }
h2 { font-size: 23px; line-height: 1.25; margin: 40px 0 10px; }
h3 { font-size: 18px; margin: 26px 0 6px; }
p.lead { font-size: 19px; color: var(--ink2); margin: 0 0 24px; }
.muted { color: var(--ink2); }

.tape {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-0.8deg);
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.tape.red { background: var(--tape-red); color: #fff; }
.tape.orange { background: var(--tape-orange); color: #1c1826; }
.tape.violet { background: var(--tape-violet); color: #fff; }
.tape.teal { background: var(--tape-teal); color: #fff; }

.counts { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 28px 0; max-width: 520px; }
.counts span { display: grid; place-items: center; aspect-ratio: 0.85; border-radius: 10px; font: 900 clamp(18px, 4vw, 28px)/1 ui-rounded, -apple-system, sans-serif; }
.counts span:nth-child(1) { background: var(--tape-red); color: #fff; }
.counts span:nth-child(2) { background: var(--tape-orange); color: #1c1826; }
.counts span:nth-child(3) { background: var(--tape-yellow); color: #1c1826; }
.counts span:nth-child(4) { background: #277a4c; color: #fff; }
.counts span:nth-child(5) { background: var(--tape-teal); color: #fff; }
.counts span:nth-child(6) { background: #2f63d0; color: #fff; }
.counts span:nth-child(7) { background: var(--tape-violet); color: #fff; }
.counts span:nth-child(8) { background: var(--tape-pink); color: #fff; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin: 16px 0; }
.card h3 { margin-top: 0; }
ul { padding-left: 22px; }
li { margin: 6px 0; }

footer.site { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink2); display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer.site a { color: var(--ink2); }
