/* TaskRhythm website. Metronome palette, Bricolage Grotesque + Manrope. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage_grotesque.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #F3F5F8;
  --card: #FFFFFF;
  --text: #14212E;
  --muted: #56677A;
  --ink: #17324D;
  --on-ink: #FFFFFF;
  --saffron: #E8A317;
  --saffron-soft: #FCEFD2;
  --on-saffron-soft: #5A3A00;
  --ink-soft: #DCE5EF;
  --tick-off: #E6EAF0;
  --rail: #D5DCE5;
  --outline: #C9D1DB;
  --done: #1F8A70;
  --late: #A4610B;
  --late-outline: #F0CF8E;
  --shadow: 0 1px 2px rgba(23, 50, 77, .06), 0 18px 40px -18px rgba(23, 50, 77, .28);
  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1620;
    --card: #18212C;
    --text: #E6ECF2;
    --muted: #9AA8B7;
    --ink: #A9C4E2;
    --on-ink: #0E2236;
    --saffron: #F2B53A;
    --saffron-soft: #4A3608;
    --on-saffron-soft: #FFE1A6;
    --ink-soft: #22344A;
    --tick-off: #243140;
    --rail: #2C3A4A;
    --outline: #3A4A5C;
    --done: #4CC3A1;
    --late: #F2B53A;
    --late-outline: #6B5220;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}
h1 { font-weight: 800; letter-spacing: -.035em; line-height: .98; }
h2 { font-weight: 750; letter-spacing: -.025em; line-height: 1.05; font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-weight: 700; letter-spacing: -.01em; line-height: 1.2; font-size: 1.2rem; }

p { margin: 0; }
p + p { margin-top: .9em; }

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--on-ink);
  padding: 10px 14px; border-radius: 10px; z-index: 10; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem;
  letter-spacing: -.02em; color: var(--text); text-decoration: none;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .mark-bg { fill: var(--ink); }
.brand .mark-fg { stroke: var(--on-ink); }
.brand .mark-beat { fill: var(--saffron); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a.navlink {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
}
.site-nav a.navlink:hover { color: var(--text); background: var(--ink-soft); }
.site-nav a.navlink[aria-current="page"] { color: var(--text); background: var(--ink-soft); }
@media (max-width: 640px) { .site-nav a.navlink { display: none; } }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 14px 22px; border-radius: 999px; text-decoration: none;
  border: 0; cursor: pointer;
}
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { filter: brightness(1.12); }
.btn-quiet { background: var(--ink-soft); color: var(--text); }
.btn-quiet:hover { filter: brightness(.97); }
.btn-small { padding: 9px 16px; font-size: .92rem; }
.btn .play { width: 18px; height: 18px; flex: none; }
.btn .play path { fill: var(--saffron); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: clamp(24px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); }
.hero .wrap {
  display: grid; gap: clamp(36px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}
.hero h1 { font-size: clamp(2.9rem, 8.4vw, 5.6rem); max-width: 11ch; }
.hero .lede {
  margin-top: 22px; font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  color: var(--muted); max-width: 46ch;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
.cta-note { color: var(--muted); font-size: .95rem; }

/* ── Rhythm demo (the signature) ────────────────────────────────────── */
.demo {
  margin-top: clamp(36px, 5vw, 56px);
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
  max-width: 640px;
}
.demo-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.demo-task { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.demo-rule { color: var(--muted); font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.demo-rule svg { width: 16px; height: 16px; flex: none; }
.demo-rule svg path { stroke: currentColor; }

.rules { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; padding: 0; border: 0; }
.rules legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rule-btn {
  font: 600 .9rem/1.2 var(--body); color: var(--text);
  background: transparent; border: 1px solid var(--outline);
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.rule-btn:hover { border-color: var(--ink); }
.rule-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

.strip {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: clamp(3px, .9vw, 7px);
}
.day { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.day .wd, .day .dn { font-size: .72rem; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.day .dn { font-weight: 700; color: var(--text); }
.day.today .dn { color: var(--late); }
.day.month-start { position: relative; }
.day.month-start::before {
  content: ""; position: absolute; left: calc(clamp(3px, .9vw, 7px) / -2 - .5px); top: 0; bottom: 0;
  border-left: 1px solid var(--rail);
}
.tick {
  width: 100%; aspect-ratio: 1 / 1.25; border-radius: 6px;
  background: var(--tick-off);
}
.day.off .tick { background: transparent; border: 1.5px dashed var(--outline); }
.day.beat .tick { background: var(--ink); }
.day.next .tick { background: var(--saffron); }
.day.hol .wd { color: var(--late); }

.demo-why {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--tick-off);
  color: var(--text); min-height: 3.2em;
}
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .82rem; }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 11px; height: 14px; border-radius: 3px; display: inline-block; background: var(--tick-off); }
.legend .k-next { background: var(--saffron); }
.legend .k-beat { background: var(--ink); }
.legend .k-off { background: transparent; border: 1.5px dashed var(--outline); }

/* Load + rule-change sequence: each beat lands one tick after the last, like a metronome. */
@media (prefers-reduced-motion: no-preference) {
  .strip.play .day .tick { animation: beat-in .42s cubic-bezier(.2, .9, .3, 1.3) both; }
  .strip.play .day:nth-child(1) .tick { animation-delay: 0ms; }
  .strip.play .day:nth-child(2) .tick { animation-delay: 55ms; }
  .strip.play .day:nth-child(3) .tick { animation-delay: 110ms; }
  .strip.play .day:nth-child(4) .tick { animation-delay: 165ms; }
  .strip.play .day:nth-child(5) .tick { animation-delay: 220ms; }
  .strip.play .day:nth-child(6) .tick { animation-delay: 275ms; }
  .strip.play .day:nth-child(7) .tick { animation-delay: 330ms; }
  .strip.play .day:nth-child(8) .tick { animation-delay: 385ms; }
  .strip.play .day:nth-child(9) .tick { animation-delay: 440ms; }
  .strip.play .day:nth-child(10) .tick { animation-delay: 495ms; }
  .strip.play .day:nth-child(11) .tick { animation-delay: 550ms; }
  .strip.play .day:nth-child(12) .tick { animation-delay: 605ms; }
  .strip.play .day:nth-child(13) .tick { animation-delay: 660ms; }
  .strip.play .day:nth-child(14) .tick { animation-delay: 715ms; }
  .strip.play .day.beat .tick, .strip.play .day.next .tick { animation-name: beat-hit; }
}
@keyframes beat-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes beat-hit {
  0% { opacity: 0; transform: translateY(-10px) scale(.7); }
  60% { opacity: 1; transform: translateY(0) scale(1.12); }
  100% { opacity: 1; transform: none; }
}

/* ── Phone screenshots ──────────────────────────────────────────────── */
.phone {
  margin: 0; border-radius: clamp(22px, 3vw, 34px); overflow: hidden;
  border: 1px solid var(--outline); box-shadow: var(--shadow);
  background: var(--card);
  width: 100%; max-width: 330px;
}
.phone img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; }
.hero .phone { justify-self: center; }
@media (max-width: 899px) { .hero .phone { max-width: 300px; } }

/* ── Feature sections ───────────────────────────────────────────────── */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--rail); }
.split {
  display: grid; gap: clamp(36px, 6vw, 80px); align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .split.flip > .media { order: -1; }
  .split.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
.split .media { display: flex; justify-content: center; gap: 18px; }
.media-pair .phone:nth-child(2) { margin-top: 64px; }
@media (max-width: 560px) {
  .media-pair .phone { max-width: 48%; }
  .media-pair .phone:nth-child(2) { margin-top: 36px; }
}
.copy > p { color: var(--muted); max-width: 52ch; margin-top: 18px; font-size: 1.08rem; }

/* Rule ledger: real rule names as the app writes them. */
.ledger { list-style: none; margin: 28px 0 0; padding: 0; max-width: 560px; }
.ledger li {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px;
  padding: 13px 0; border-top: 1px solid var(--rail);
}
.ledger li:last-child { border-bottom: 1px solid var(--rail); }
.ledger b { font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.005em; }
.ledger span { color: var(--muted); font-size: .95rem; }
.ledger .aware {
  font-style: normal;
  justify-self: start; margin-top: 4px; font-size: .78rem; font-weight: 700; color: var(--on-saffron-soft);
  background: var(--saffron-soft); padding: 2px 9px; border-radius: 999px;
}

.explainer {
  margin-top: 26px; display: flex; gap: 14px; align-items: center; max-width: 480px;
  background: var(--card); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow);
}
.explainer .num { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--text); min-width: 2ch; }
.explainer .what { font-weight: 700; }
.explainer .why { color: var(--muted); font-size: .92rem; }

/* Timeline motif for the day/week section */
.facts { list-style: none; margin: 26px 0 0; padding: 0 0 0 26px; position: relative; max-width: 540px; }
.facts::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--rail); border-radius: 2px; }
.facts li { position: relative; padding: 0 0 18px; }
.facts li:last-child { padding-bottom: 0; }
.facts li::before {
  content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; border: 3px solid var(--ink); background: var(--bg);
}
.facts li.now::before { border-color: var(--saffron); background: var(--saffron); border-radius: 3px; }
.facts b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.08rem; }
.facts span { color: var(--muted); font-size: .97rem; }

/* Missed-task policies */
.policies {
  display: grid; gap: 0; margin-top: 36px;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--rail);
}
@media (min-width: 720px) { .policies { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.policy { padding: 20px 0; border-bottom: 1px solid var(--rail); display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.policy .mini { grid-row: span 2; display: flex; gap: 3px; padding-top: 6px; }
.mini i { width: 9px; height: 12px; border-radius: 2px; background: var(--tick-off); }
.mini .b { background: var(--ink); }
.mini .n { background: var(--saffron); }
.mini .m { background: transparent; border: 1.5px solid var(--late); }
.mini .x { background: transparent; border: 1.5px dashed var(--outline); }
.policy h3 { font-size: 1.12rem; }
.policy p { color: var(--muted); font-size: .97rem; }
.policies-note { margin-top: 22px; color: var(--muted); max-width: 64ch; }

/* Everyday parts */
.everyday { display: grid; gap: 28px 48px; margin-top: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .everyday { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .everyday { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.everyday div h3 { font-size: 1.1rem; }
.everyday div p { margin-top: 6px; color: var(--muted); font-size: .97rem; }
.everyday-wrap { display: grid; gap: clamp(36px, 6vw, 72px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .everyday-wrap { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.everyday-wrap .phone { justify-self: center; }

/* Free vs Pro */
.plans { display: grid; gap: 20px; margin-top: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 780px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { border-radius: 24px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--outline); }
.plan.pro { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.plan.pro h3, .plan.pro .price { color: var(--on-ink); }
.plan h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.plan .price { margin-top: 4px; font-weight: 600; color: var(--muted); }
.plan.pro .price { opacity: .85; }
.plan ul { margin: 20px 0 0; padding: 0; list-style: none; }
.plan li { padding: 9px 0 9px 28px; position: relative; border-top: 1px solid var(--rail); }
.plan.pro li { border-top-color: rgba(255, 255, 255, .16); }
@media (prefers-color-scheme: dark) { .plan.pro li { border-top-color: rgba(14, 34, 54, .2); } }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 14px; border-radius: 3px;
  background: var(--ink);
}
.plan.pro li::before { background: var(--saffron); }

/* Privacy stance */
.stance { display: grid; gap: 0; margin-top: 36px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .stance { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; } }
.stance div { padding: 20px 0; border-top: 2px solid var(--text); }
.stance h3 { font-size: 1.35rem; font-weight: 800; }
.stance p { margin-top: 8px; color: var(--muted); }

/* Closing band */
.band { background: var(--ink); color: var(--on-ink); padding: clamp(56px, 9vw, 104px) 0; }
.band h2 { color: var(--on-ink); max-width: 16ch; }
.band p { margin-top: 16px; max-width: 50ch; opacity: .88; }
.band .btn-ink { background: var(--saffron); color: #14212E; }
.band .btn .play path { fill: #14212E; }

/* ── Text pages ─────────────────────────────────────────────────────── */
.page { padding: clamp(28px, 6vw, 64px) 0 clamp(64px, 10vw, 120px); }
.page-head h1 { font-size: clamp(2.4rem, 6.5vw, 4rem); }
.page-head .sub { margin-top: 14px; color: var(--muted); font-size: 1.1rem; max-width: 58ch; }
.prose { max-width: 70ch; margin-top: 36px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-top: 2.2em; letter-spacing: -.015em; }
.prose h3 { margin-top: 1.6em; font-size: 1.12rem; }
.prose p, .prose ul, .prose ol, .prose table, .prose dl { margin-top: .9em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose code { font-size: .9em; background: var(--tick-off); padding: 1px 6px; border-radius: 5px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rail); }
.prose th { color: var(--muted); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.summary {
  margin-top: 30px; padding: 20px 22px; background: var(--card); border-radius: 18px;
  box-shadow: var(--shadow); max-width: 70ch;
}
.summary h2 { font-size: 1.2rem; margin: 0; }
.summary ul { margin: 10px 0 0; padding-left: 1.2em; }
.summary li + li { margin-top: .3em; }
.meta { color: var(--muted); font-size: .95rem; margin-top: 10px; }

.toc { margin-top: 26px; max-width: 70ch; }
.toc ol { columns: 2 16rem; column-gap: 32px; padding-left: 1.3em; margin: 8px 0 0; color: var(--muted); }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Licenses list */
.libs { list-style: none; padding: 0; margin: 24px 0 0; max-width: 820px; }
.libs li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--rail);
}
.libs li:last-child { border-bottom: 1px solid var(--rail); }
.libs .name { font-weight: 700; }
.libs .lic { font-size: .88rem; font-weight: 700; color: var(--on-saffron-soft); background: var(--saffron-soft); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.libs .what { grid-column: 1 / -1; color: var(--muted); font-size: .94rem; }

/* FAQ */
.faq { max-width: 70ch; margin-top: 20px; }
.faq details { border-top: 1px solid var(--rail); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rail); }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p + p { margin-top: .7em; }

.contact-card {
  margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); max-width: 70ch;
}
.contact-card .addr { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 3vw, 1.4rem); word-break: break-word; }

/* Reset + roadmap + 404 */
.center-page { padding: clamp(32px, 8vw, 96px) 0 clamp(64px, 10vw, 120px); }
.center-page .card {
  max-width: 560px; background: var(--card); border-radius: 26px; box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 40px);
}
.center-page h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.center-page .card p { margin-top: 14px; color: var(--muted); }
.center-page .card .btn { margin-top: 24px; }
.steps { margin: 14px 0 0; padding-left: 1.3em; color: var(--muted); }
.steps li + li { margin-top: .4em; }
.steps b { color: var(--text); }
.hint { font-size: .92rem; }
.divider { border: 0; border-top: 1px solid var(--rail); margin: 28px 0 0; }
[hidden] { display: none !important; }

.road { list-style: none; padding: 0; margin: 32px 0 0; max-width: 760px; }
.road li { border-top: 1px solid var(--rail); padding: 20px 0; }
.road li:last-child { border-bottom: 1px solid var(--rail); }
.road h2 { font-size: 1.3rem; letter-spacing: -.01em; }
.road p { margin-top: 6px; color: var(--muted); white-space: pre-line; }
.road .votes { margin-top: 10px; font-size: .92rem; font-weight: 700; display: flex; gap: 14px; flex-wrap: wrap; }
.empty {
  margin-top: 32px; max-width: 560px; padding: 26px; border-radius: 22px;
  border: 1.5px dashed var(--outline);
}
.empty h2 { font-size: 1.35rem; }
.empty p { margin-top: 8px; color: var(--muted); }

.big404 { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 22vw, 11rem); line-height: .85; letter-spacing: -.05em; }
.strip-404 { margin-top: 22px; max-width: 420px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--rail); padding: 36px 0 44px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--text); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.prose .libs { padding-left: 0; }
.prose .libs li + li { margin-top: 0; }
.libs a.name { color: var(--text); }
.center-page .card h2 { font-size: 1.2rem; }
.center-page .cta-row { margin-top: 28px; }
.center-page h1 { margin-top: 18px; }
.center-page .card h1 { margin-top: 0; }

/* With the rule chips live, the chip already names the rule. */
.demo.live .demo-rule { display: none; }
