/* ---------------------------------------------------------------
   ReadRats marketing site — Deep Focus palette (ADR-0008 / VDR-0001)
   Self-hosted Lora (display) + Inter (UI). Dark-mode-first with a
   light-mode toggle stored in localStorage.
   --------------------------------------------------------------- */

@font-face {
  font-family: "Lora";
  src: url("/fonts/lora-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/fonts/lora-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/fonts/lora-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  /* Brand palette (ADR-0008) */
  --oxford-navy:      #1B263B;
  --frost-blue:       #E0E1DD;
  --electric-indigo:  #4361EE;
  --indigo-deep:      #2B40A1;
  --soft-gold:        #F1C40F;
  --gold-deep:        #D4AC0D;
  --podium-silver:    #C0C0C0;
  --podium-bronze:    #CD7F32;
  --reading-purple:   #B79CFF;
  --reading-blue:     #6FB1FF;
  --error-rose:       #CF6679;

  /* Surfaces */
  --surface-darker:   #0A1421;
  --surface-dark:     #0D1B2A;
  --surface-card:     #243447;
  --surface-card-2:   #2C3E55;
  --surface-light:    #F8F9FA;
  --surface-paper:    #FFFFFF;

  /* Default = dark mode */
  --bg:               var(--surface-dark);
  --bg-elevated:      var(--surface-card);
  --bg-elevated-2:    var(--surface-card-2);
  --bg-header:        rgba(13, 27, 42, 0.85);
  --text:             var(--frost-blue);
  --text-muted:       rgba(224, 225, 221, 0.65);
  --text-faint:       rgba(224, 225, 221, 0.40);
  --border:           rgba(224, 225, 221, 0.10);
  --border-strong:    rgba(224, 225, 221, 0.20);
  --accent:           var(--electric-indigo);
  --accent-text:      #FFFFFF;
  --accent-glow:      rgba(67, 97, 238, 0.32);
  --gold:             var(--soft-gold);

  /* Type */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  /* Layout */
  --max-w:        1180px;
  --max-w-prose:  680px;
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    22px;
  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.18);
  --shadow:       0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow:  0 16px 60px var(--accent-glow);
}

[data-theme="light"] {
  --bg:               var(--surface-light);
  --bg-elevated:      var(--surface-paper);
  --bg-elevated-2:    #F1F3F5;
  --bg-header:        rgba(248, 249, 250, 0.85);
  --text:             var(--oxford-navy);
  --text-muted:       rgba(27, 38, 59, 0.72);
  --text-faint:       rgba(27, 38, 59, 0.46);
  --border:           rgba(27, 38, 59, 0.10);
  --border-strong:    rgba(27, 38, 59, 0.18);
  --accent-glow:      rgba(67, 97, 238, 0.18);
  --shadow-sm:        0 2px 8px rgba(27, 38, 59, 0.08);
  --shadow:           0 12px 40px rgba(27, 38, 59, 0.12);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg:               var(--surface-light);
    --bg-elevated:      var(--surface-paper);
    --bg-elevated-2:    #F1F3F5;
    --bg-header:        rgba(248, 249, 250, 0.85);
    --text:             var(--oxford-navy);
    --text-muted:       rgba(27, 38, 59, 0.72);
    --text-faint:       rgba(27, 38, 59, 0.46);
    --border:           rgba(27, 38, 59, 0.10);
    --border-strong:    rgba(27, 38, 59, 0.18);
    --accent-glow:      rgba(67, 97, 238, 0.18);
    --shadow-sm:        0 2px 8px rgba(27, 38, 59, 0.08);
    --shadow:           0 12px 40px rgba(27, 38, 59, 0.12);
  }
}

/* ---------- Reset ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1em 0; }

::selection { background: var(--accent); color: var(--accent-text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout primitives ---------- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container--prose {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand__mark {
  /* Source PNG is 1024x559 with the rat anchored to the right and
     empty transparent margin on the left. Crop the left margin so
     the rat sits tight against the wordmark while keeping the
     book and coffee cup in frame. */
  width: 56px;
  height: 44px;
  object-fit: cover;
  object-position: 100% 50%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover {
  color: var(--text);
  background: var(--border);
  text-decoration: none;
}

.nav__cta {
  margin-left: 8px;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 6px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--border);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 640px) {
  .nav .nav__link { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 8px 22px var(--accent-glow);
}
.btn--primary:hover {
  color: var(--accent-text);
  background: #5570F1;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px var(--accent-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--secondary:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--border);
}

.btn--lg {
  font-size: 16px;
  padding: 14px 26px;
}

.btn__arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 112px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 75%;
  background:
    radial-gradient(60% 70% at 78% 20%, rgba(67, 97, 238, 0.18), transparent 70%),
    radial-gradient(45% 55% at 18% 30%, rgba(241, 196, 15, 0.10), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero { padding: 72px 0 32px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.hero__title {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__subtitle {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__meta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-faint);
  font-size: 14px;
}
.hero__meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Hero leaderboard mock ---------- */

.mock {
  position: relative;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-elevated-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow), var(--shadow-glow);
  transform: rotate(-1.2deg);
}
.mock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), transparent 40%);
  pointer-events: none;
}

.mock__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.mock__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.mock__subtitle {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  margin-bottom: 8px;
}
[data-theme="light"] .row { background: rgba(27, 38, 59, 0.04); }

.row--leader {
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.16), rgba(241, 196, 15, 0.04));
  border-color: rgba(241, 196, 15, 0.35);
}

.row__rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-faint);
  text-align: center;
}
.row--leader .row__rank { color: var(--gold); }

.row__user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--indigo-deep));
  color: var(--accent-text);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avatar--gold   { background: linear-gradient(135deg, var(--soft-gold), var(--gold-deep)); color: var(--oxford-navy); }
.avatar--silver { background: linear-gradient(135deg, #DDD, var(--podium-silver)); color: var(--oxford-navy); }
.avatar--bronze { background: linear-gradient(135deg, #E8A57C, var(--podium-bronze)); color: #fff; }
.avatar--purple { background: linear-gradient(135deg, var(--reading-purple), #7B5FE5); }

.row__name { font-weight: 600; font-size: 15px; }
.row__sub  { font-size: 12px; color: var(--text-faint); }
.row__score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.row--leader .row__score { color: var(--gold); }

.mock__footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-faint);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(67, 97, 238, 0.14);
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Sections ---------- */

.section__head {
  text-align: center;
  margin-bottom: 56px;
}
.section__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 880px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.feature__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 22px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature--gold .feature__icon { background: rgba(241, 196, 15, 0.16); color: var(--gold); }
.feature--purple .feature__icon { background: rgba(183, 156, 255, 0.18); color: var(--reading-purple); }

.feature__title {
  font-size: 22px;
  margin-bottom: 10px;
}
.feature__body {
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Steps ---------- */

.section--alt {
  background: linear-gradient(180deg, transparent, var(--bg-elevated) 18%, var(--bg-elevated) 82%, transparent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 880px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.step__title {
  font-size: 18px;
  margin: 4px 0 8px;
}
.step__body {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

/* ---------- Phases (Phase 0 / Phase 1) ---------- */

.phases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 760px) {
  .phases { grid-template-columns: 1fr; }
}

.phase {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  overflow: hidden;
}
.phase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 0% 0%, var(--accent-glow), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}
.phase--later::before {
  background: radial-gradient(120% 100% at 100% 0%, rgba(241, 196, 15, 0.18), transparent 60%);
}
.phase__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  margin-bottom: 18px;
}
.phase--now   .phase__badge { color: var(--accent); border-color: rgba(67, 97, 238, 0.45); }
.phase--later .phase__badge { color: var(--gold);   border-color: rgba(241, 196, 15, 0.45); }
.phase__title {
  position: relative;
  font-size: 26px;
  margin-bottom: 12px;
}
.phase__body {
  position: relative;
  color: var(--text-muted);
}
.phase__list {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.phase__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px dashed var(--border);
  font-size: 15px;
}
.phase__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.phase--later .phase__list li::before { background: var(--gold); }

/* ---------- CTA banner ---------- */

.cta {
  position: relative;
  background: linear-gradient(135deg, var(--electric-indigo), var(--indigo-deep));
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(closest-side at 80% 20%, rgba(241, 196, 15, 0.32), transparent 70%);
  z-index: -1;
}
.cta__title {
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.cta__title em { color: var(--soft-gold); font-style: italic; }
.cta__sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  margin: 0 auto 28px;
  max-width: 540px;
}
.cta .btn--primary {
  background: #fff;
  color: var(--oxford-navy);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.cta .btn--primary:hover { background: var(--soft-gold); color: var(--oxford-navy); }
.cta .btn--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.cta .btn--secondary:hover { background: rgba(255, 255, 255, 0.10); border-color: #fff; color: #fff; }

@media (max-width: 600px) {
  .cta { padding: 48px 24px; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  margin-top: 80px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}
.site-footer__brand p {
  color: var(--text-muted);
  max-width: 320px;
  margin-top: 8px;
  font-size: 14px;
}
.site-footer__col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 600;
}
.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__col a {
  color: var(--text-muted);
  font-size: 15px;
}
.site-footer__col a:hover { color: var(--text); text-decoration: none; }

.site-footer__legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 13px;
}

/* ---------- Prose (legal pages) ---------- */

.page-hero {
  padding: 80px 0 32px;
  text-align: center;
}
.page-hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.page-hero__title {
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.page-hero__subtitle {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.prose {
  padding: 16px 0 64px;
}
.prose h2 {
  font-size: 28px;
  margin: 56px 0 14px;
  letter-spacing: -0.015em;
}
.prose h3 {
  font-size: 21px;
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
}
.prose p, .prose li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol {
  padding-left: 1.4em;
  margin: 0 0 1.2em;
}
.prose li { margin: 0.4em 0; }
.prose strong { color: var(--text); font-weight: 700; }
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}
.prose blockquote {
  margin: 1.5em 0;
  padding: 14px 22px;
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { text-decoration-thickness: 2px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
}
.prose th, .prose td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.prose th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 36px;
}
.toc__title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.toc ul, .toc ol {
  margin: 0;
  padding-left: 1.2em;
  list-style: disc;
}
.toc li { margin: 6px 0; }
.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
