/* Simulate Everything — one stylesheet, no build step. */
:root {
  --bg: #fff;
  --bg-2: #f5f5f4;
  --card: #fff;
  --card-hover: #f7f7f6;
  --text: #0a0a0a;
  --muted: #333;
  --faint: #6b6b6b;
  --line: #e7e5e4;
  --line-2: #d0cecb;
  --accent: #1452b8;
  --accent-hover: #0e3d8c;
  --accent-ink: #fff;
  --accent-tint: #eef4ff;
  --live: #d1242f;
  --ok: #1a7f37;
  --ok-tint: #e9f6ec;
  --warn: #a15c07;
  --warn-tint: #fdf3e3;
  --code-bg: #f6f6f5;
  --navy: #0b1f4d;
  --radius: 14px;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0e; --bg-2: #18181a; --card: #131315; --card-hover: #1c1c1f;
    --text: #f2f2f0; --muted: #cfcfcc; --faint: #94949a; --line: #2a2a2e; --line-2: #3a3a3f;
    --accent: #6ea2ff; --accent-hover: #9cc2ff; --accent-ink: #06122b; --accent-tint: #13213d;
    --ok: #4ac26b; --ok-tint: #12261a; --warn: #e0a24a; --warn-tint: #2a1f0e; --code-bg: #161618;
    --navy: #0f2554;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d0e; --bg-2: #18181a; --card: #131315; --card-hover: #1c1c1f;
  --text: #f2f2f0; --muted: #cfcfcc; --faint: #94949a; --line: #2a2a2e; --line-2: #3a3a3f;
  --accent: #6ea2ff; --accent-hover: #9cc2ff; --accent-ink: #06122b; --accent-tint: #13213d;
  --ok: #4ac26b; --ok-tint: #12261a; --warn: #e0a24a; --warn-tint: #2a1f0e; --code-bg: #161618;
  --navy: #0f2554;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
code, pre, kbd { font-family: var(--mono); font-size: .88em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
header.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand b { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; font-size: .9rem; }
.nav > a, .drop summary {
  color: var(--muted); text-decoration: none; padding: 7px 9px; border-radius: 8px; cursor: pointer;
  list-style: none; white-space: nowrap;
}
.nav > a:hover, .drop summary:hover, .drop[open] summary { background: var(--bg-2); color: var(--text); }
.drop summary::-webkit-details-marker { display: none; }
.drop summary::after { content: "▾"; font-size: .7em; margin-left: 4px; color: var(--faint); }
.drop { position: relative; }
.drop .menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 290px; padding: 6px; z-index: 40;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 12px 32px #0000001f;
}
.drop .menu a { display: flex; flex-direction: column; padding: 9px 11px; border-radius: 8px; text-decoration: none; }
.drop .menu a:hover { background: var(--card-hover); }
.drop .menu b { color: var(--text); font-size: .93rem; font-weight: 600; }
.drop .menu span { color: var(--faint); font-size: .82rem; line-height: 1.4; }
.menu-group { padding: 6px 0 2px; border-top: 1px solid var(--line); margin-top: 4px; }
.menu-group p { margin: 4px 11px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.nav .cta {
  background: var(--accent); color: var(--accent-ink); font-weight: 600; margin-left: 6px; padding: 7px 14px; border-radius: 999px;
}
.nav .cta:hover { background: var(--accent-hover); color: var(--accent-ink); }
.mobile-menu { display: none; }
.sm-only { display: none; }
@media (max-width: 920px) { .hide-md { display: none !important; } }
@media (max-width: 760px) {
  .desk-only { display: none !important; }
  .mobile-menu { display: block; }
  .sm-only { display: inline; }
  .brand b { font-size: 1.05rem; }
}

/* ---------- hero ---------- */
.hero { padding: 56px 20px 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px;
  font-size: .85rem; color: var(--accent); background: var(--accent-tint); border: 1px solid var(--accent-tint);
  text-decoration: none;
}
.eyebrow:hover { color: var(--accent-hover); }
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 #d1242f80; animation: pulse 2s infinite; flex: none;
}
.dot.off { background: var(--faint); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #d1242f80; } 70% { box-shadow: 0 0 0 9px #d1242f00; } 100% { box-shadow: 0 0 0 0 #d1242f00; } }
.hero h1 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; line-height: 1.04;
  font-size: clamp(2.5rem, 7vw, 5rem); margin: 22px 0 22px;
}
.scroller { display: block; height: 1.12em; overflow: hidden; position: relative; }
.scroller .track { display: block; transition: transform .7s cubic-bezier(.65,0,.25,1); }
.scroller .track span { display: block; height: 1.12em; font-style: italic; color: var(--accent); white-space: nowrap; }
.scroller .track span::after { content: "."; color: var(--text); font-style: normal; }
@media (prefers-reduced-motion: reduce) { .scroller .track { transition: none; } .dot { animation: none; } }
.hero p.lead { color: var(--muted); font-size: 1.15rem; max-width: 64ch; margin: 0 0 26px; }
.hero p.lead b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }

/* copy box */
.prompt {
  display: flex; align-items: stretch; max-width: 760px; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--card); overflow: hidden; box-shadow: 0 1px 0 #0000000a, 0 8px 24px #0000000d;
}
.prompt code { flex: 1; padding: 14px 16px; font-size: .92rem; color: var(--text); overflow-x: auto; white-space: nowrap; align-self: center; }
.prompt button {
  flex: none; border: 0; border-left: 1px solid var(--line-2); background: var(--text); color: var(--bg);
  font: 600 .9rem var(--sans); padding: 0 18px; cursor: pointer; min-width: 150px;
}
.prompt button:hover { opacity: .88; }
.prompt button.done { background: var(--ok); color: #fff; }
.prompt-note { color: var(--faint); font-size: .88rem; margin-top: 12px; max-width: 760px; }
.prompt-note a { color: var(--muted); }
@media (max-width: 560px) {
  .prompt { flex-direction: column; }
  .prompt code { white-space: normal; word-break: break-all; }
  .prompt button { border-left: 0; border-top: 1px solid var(--line-2); padding: 12px; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 500 .92rem var(--sans);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--card-hover); color: var(--text); border-color: var(--faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-pill {
  display: inline-flex; align-items: center; padding: 13px 26px; border-radius: 999px; background: var(--accent);
  color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.btn-pill:hover { background: var(--accent-hover); color: #fff; }

/* ---------- sections ---------- */
section.block { padding-top: 44px; padding-bottom: 8px; }
.h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.h2 h2, h2.serif { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; letter-spacing: -.015em; margin: 0; line-height: 1.15; }
.h2 > span, .h2 > a { color: var(--faint); font-size: .88rem; }
.k { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--faint); }

.callout {
  border: 1px solid var(--line-2); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 18px;
  background: var(--card); font-size: .95rem; color: var(--muted);
}
.callout b { color: var(--text); }
.callout.warn { border-left-color: var(--warn); background: var(--warn-tint); }
.callout.ok { border-left-color: var(--ok); background: var(--ok-tint); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; background: var(--card); }
.stat .n { font-family: var(--serif); font-size: 2.3rem; line-height: 1; letter-spacing: -.02em; font-weight: 500; }
.stat .l { color: var(--faint); font-size: .86rem; margin-top: 8px; line-height: 1.4; }
@media (max-width: 920px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats .stat:last-child { grid-column: span 2; } }

/* hype cards */
.hype { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hype-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 24px; background: var(--card);
  display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--muted);
}
a.hype-card:hover { border-color: var(--line-2); background: var(--card-hover); color: var(--muted); }
.hype-card .k { color: var(--accent); }
.hype-card h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; letter-spacing: -.01em; line-height: 1.15; color: var(--text); margin: 0; }
.hype-card p { margin: 0; }
.hype-card .more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .92rem; }
.hype-card.dark { background: var(--navy); border-color: var(--navy); color: #d6e2ff; }
.hype-card.dark h2 { color: #fff; }
.hype-card.dark .k { color: #9cc2ff; }
.hype-card.dark .more { color: #fff; }
@media (max-width: 760px) { .hype { grid-template-columns: 1fr; } }

.band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; background: var(--bg-2);
}
.band p { margin: 0; max-width: 70ch; color: var(--muted); }
.band b { color: var(--text); }

/* progress */
.tot { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--card); }
.tot-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tot-head h2 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin: 0; }
.tot-pct { font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.bar { display: flex; height: 12px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin: 16px 0 12px; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; }
.c-met { background: var(--ok); } .c-ready { background: var(--accent); } .c-busy { background: var(--live); } .c-rest { background: var(--line-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--faint); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ranked lists */
.recs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rec { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 10px; background: var(--card); min-width: 0; }
.rec .k { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rec ol { list-style: none; margin: 0; padding: 0; }
.rec li a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .9rem; line-height: 1.35; }
.rec li:first-child a { border-top: 0; }
.rec li a:hover .t { color: var(--accent); }
.rec .v { color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .84rem; }
.rec .empty { color: var(--faint); font-size: .88rem; padding: 6px 0 8px; margin: 0; }
@media (max-width: 1000px) { .recs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .recs { grid-template-columns: 1fr; } }

/* fields */
.fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.field-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--card); text-decoration: none; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.field-card:hover { border-color: var(--line-2); background: var(--card-hover); color: var(--muted); }
.field-card b { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--text); }
.field-card span { font-size: .88rem; line-height: 1.45; }
.field-card small { color: var(--faint); margin-top: auto; padding-top: 6px; font-size: .8rem; }
@media (max-width: 1000px) { .fields { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .fields { grid-template-columns: 1fr; } }

/* leaderboard cards */
.board-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--card); text-decoration: none; color: var(--text); }
.board-card:hover { background: var(--card-hover); color: var(--text); }
.board-card .h { font-weight: 600; }
.board-card .d { color: var(--faint); font-size: .86rem; }
.empty-card { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 22px; color: var(--faint); text-align: center; }

/* search */
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; }
.input, .select {
  font: inherit; font-size: .95rem; color: var(--text); background: var(--card); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 10px 12px;
}
.input { flex: 1 1 320px; min-width: 0; }
.select { flex: 0 1 220px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 4px; }
.tab {
  font: inherit; font-size: .85rem; border: 1px solid var(--line-2); background: var(--card); color: var(--muted);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.tab:hover { border-color: var(--faint); }
.tab[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.tabs .lbl { font-size: .78rem; color: var(--faint); align-self: center; margin-right: 4px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.count { color: var(--faint); font-size: .88rem; margin: 12px 0; }

.plist { display: flex; flex-direction: column; gap: 10px; }
.pcard {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; background: var(--card); text-decoration: none; color: var(--muted);
}
.pcard:hover { border-color: var(--line-2); background: var(--card-hover); color: var(--muted); }
.pcard h3 { grid-column: 1; margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.25; color: var(--text); letter-spacing: -.01em; }
.pcard p { grid-column: 1; margin: 0; font-size: .94rem; }
.pcard .meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.pcard .side { grid-column: 2; grid-row: 1 / span 3; text-align: right; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.pcard .side .big { font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--text); }
.pcard .side small { color: var(--faint); font-size: .78rem; white-space: nowrap; }
@media (max-width: 560px) { .pcard { grid-template-columns: 1fr; } .pcard .side { grid-column: 1; grid-row: auto; text-align: left; flex-direction: row; align-items: baseline; gap: 8px; } }

.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted); background: var(--card); white-space: nowrap; text-decoration: none;
}
.badge.open { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-tint); }
.badge.ready { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-tint); }
.badge.draft { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-tint); }
.badge.needed { color: var(--warn); border-style: dashed; border-color: var(--warn); background: transparent; }
.badge.solved { color: #fff; background: var(--ok); border-color: var(--ok); }
.badge.live { color: var(--live); border-color: color-mix(in srgb, var(--live) 35%, transparent); }
.badge.tag { font-weight: 500; color: var(--faint); }

/* ---------- problem page ---------- */
.crumbs { font-size: .88rem; color: var(--faint); margin: 30px 0 0; }
.crumbs a { color: var(--faint); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; margin: 14px 0 16px; max-width: 22ch; }
.page-lead { font-size: 1.15rem; color: var(--muted); max-width: 64ch; margin: 0 0 18px; }
.metaline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; }
.metaline .sep { color: var(--line-2); }
.anchors { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 22px 0 0; padding-bottom: 0; }
.anchors a { padding: 8px 12px; font-size: .88rem; color: var(--faint); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.anchors a:hover { color: var(--text); border-bottom-color: var(--text); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-top: 10px; }
.layout aside { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
@media (max-width: 920px) { .layout { grid-template-columns: 1fr; } .layout aside { position: static; } }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--card); font-size: .9rem; color: var(--muted); }
.box h4 { margin: 0 0 8px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.box dt { color: var(--faint); }
.box dd { margin: 0; color: var(--text); text-align: right; overflow-wrap: anywhere; }
.box ul { margin: 0; padding-left: 18px; }
.box p { margin: 0 0 8px; }
.box p:last-child { margin-bottom: 0; }

.task { border: 1px solid var(--line); background: var(--bg-2); border-radius: var(--radius); padding: 20px 22px; margin: 26px 0 8px; }
.task h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin: 0 0 6px; }
.task p { margin: 0 0 14px; color: var(--muted); }

.prose { font-size: 1.02rem; color: var(--muted); }
.prose h2 { font-family: var(--serif); font-weight: 500; color: var(--text); font-size: 1.65rem; letter-spacing: -.01em; margin: 40px 0 10px; line-height: 1.2; scroll-margin-top: 80px; }
.prose h3 { color: var(--text); font-size: 1.1rem; margin: 26px 0 6px; }
.prose p, .prose li { max-width: 70ch; }
.prose li { margin: 4px 0; }
.prose strong { color: var(--text); }
.prose pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: .85rem; line-height: 1.55; color: var(--text); }
.prose :not(pre) > code { background: var(--code-bg); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; color: var(--text); }
.prose blockquote { margin: 16px 0; padding: 4px 18px; border-left: 3px solid var(--line-2); color: var(--faint); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
section[id], h2[id] { scroll-margin-top: 80px; }

table.t { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 10px 0 6px; }
table.t th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
table.t td b, table.t td strong { color: var(--text); }
table.t td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 4px 10px; }
.tablewrap table.t { margin: 0; }
.tablewrap table.t tr:last-child td { border-bottom: 0; }

.activity { list-style: none; padding: 0; margin: 0; }
.activity li { padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.activity li:first-child { border-top: 0; }
.activity .when { color: var(--faint); font-size: .82rem; }
.activity .note { color: var(--muted); margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.activity .tagline { font-family: var(--mono); font-size: .75rem; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: var(--bg-2); color: var(--text); margin-right: 6px; }
.activity .tagline.dead { background: var(--warn-tint); color: var(--warn); }

/* steps (how it works) */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 0; list-style: none; }
.steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--card); counter-increment: s; color: var(--muted); font-size: .94rem; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .8rem; color: var(--accent); font-weight: 700; display: block; margin-bottom: 8px; }
.steps li b { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 4px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.3rem; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-family: var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq .a { color: var(--muted); padding-top: 8px; max-width: 70ch; }
.faq .a p { margin: 0 0 10px; }

/* ---------- footer ---------- */
footer.site { margin-top: 80px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0 34px; font-size: .9rem; color: var(--faint); }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
footer.site h5 { margin: 0 0 10px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 6px 0; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); }
footer.site .fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
footer.site .blurb { max-width: 36ch; margin: 10px 0 0; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .cols > div:first-child { grid-column: span 2; } }
.theme-toggle { background: none; border: 1px solid var(--line-2); color: var(--muted); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .8rem; cursor: pointer; }
@media (max-width: 760px) {
  .anchors { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .anchors a { white-space: nowrap; }
}
