/* ============================================================
   Steps to Christ — CINEMATIC / IMMERSIVE design system
   A committed dark theme built around a glowing "light" motif.
   Each chapter sets ONLY --accent on <body>; everything else
   (glows, tints, text accents) derives from it.
   The book's arc — from darkness toward light — is the design.
   ============================================================ */

:root {
  --bg:      #09070e;
  --bg-2:    #0e0b16;
  --panel:   rgba(255,255,255,.045);
  --panel-2: rgba(255,255,255,.065);
  --brd:     rgba(255,255,255,.10);
  --brd-2:   rgba(255,255,255,.16);
  --ink:     #f5f1fb;
  --ink-2:   #bcb5cc;
  --muted:   #837c96;

  --accent:  #c5852c; /* overridden per page */

  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius:   22px;
  --radius-s: 14px;
  --wrap: 1180px;
}

/* accent shades derived from the local --accent (works per page & per card) */
body,
.ch-card {
  --accent-ink:  color-mix(in srgb, var(--accent) 60%, white);
  --accent-tint: color-mix(in srgb, var(--accent) 15%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 42%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 55%, transparent);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.has-chapter-topbar { padding-top: 114px !important; }

/* immersive glow layer (fixed, breathing) + vignette */
body::before {
  content: ""; position: fixed; inset: -20vh 0 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 46vh at 50% -6%, var(--accent-glow), transparent 62%),
    radial-gradient(50vw 40vh at 82% 8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(46vw 42vh at 12% 22%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
  transform: translateY(calc(var(--scroll, 0) * 0.04px));
  animation: breathe 15s ease-in-out infinite;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120vw 120vh at 50% 30%, transparent 55%, rgba(0,0,0,.55) 100%);
}
@keyframes breathe {
  0%, 100% { opacity: .85; }
  50%      { opacity: 1; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px){ .wrap { padding: 0 20px; } }

a { color: inherit; }

.kicker {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-ink);
}

/* ============================================================
   Top bar — dark glass
   ============================================================ */
.topbar {
  position: fixed; top: 46px; right: 0; left: 0; z-index: 1100;
  display: flex; justify-content: flex-end; padding: 12px 0;
  background: transparent; border: 0; pointer-events: none;
  opacity: 1; transform: translateY(0);
  transition: opacity .24s ease, transform .24s ease;
}
body.chapter-bar-hidden .topbar {
  opacity: 0; transform: translateY(-100%); pointer-events: none;
}
.topbar .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 10px; width: 100%; }
.topbar .chapter-brand, .topbar .chip-count, .topbar .navbtns { pointer-events: auto; }
.topbar .chapter-brand {
  margin-right: auto; font-family: var(--serif); font-size: 19px; font-weight: 600;
  letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: opacity .24s ease, transform .24s ease;
}
.topbar .chapter-brand b { color: var(--accent-ink); font-weight: 600; }
.topbar .chip-count {
  padding: 10px 15px; border: 1px solid var(--brd-2); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 18px;
  letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand b { color: var(--accent-ink); font-weight: 600; }
.topbar .spacer { flex: 1; }
.chip-count { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.navbtns { display: flex; gap: 8px; align-items: center; }
.navbtn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--brd-2);
  background: var(--panel); color: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.navbtn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 22px -6px var(--accent-glow); }
.navbtn[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.navbtn.solid {
  background: var(--accent-tint); border-color: var(--accent);
  color: var(--accent-ink); box-shadow: 0 0 26px -8px var(--accent-glow);
}
.navbtn.solid:hover { background: color-mix(in srgb, var(--accent) 24%, transparent); }
/* committed dark — no theme toggle */
.navbtn[data-theme-toggle] { display: none; }

#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 60;
  background: var(--accent);
  box-shadow: 0 0 14px 1px var(--accent-glow);
  transition: width .1s linear;
}

/* ============================================================
   COVER
   ============================================================ */
.cover-hero { padding: 12vh 0 40px; text-align: center; }
.cover-emblem { width: clamp(128px, 20vw, 196px); margin: 0 auto 10px; color: var(--accent); filter: drop-shadow(0 0 20px var(--accent-glow)); animation: floaty 9s ease-in-out infinite; }
.cover-emblem svg { display: block; width: 100%; height: auto; }
.cover-hero .eyebrow { margin-bottom: 22px; }

/* section-header glyphs */
.glyph { display: block; width: 46px; height: 46px; margin: 0 0 14px; color: var(--accent-ink); filter: drop-shadow(0 0 9px var(--accent-glow)); }
.glyph svg { display: block; width: 100%; height: 100%; }
.section.prayer .glyph { margin-inline: auto; }
@media (prefers-reduced-motion: reduce){ .cover-emblem { animation: none; } }
.cover-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(52px, 11vw, 132px); line-height: .9; letter-spacing: -.03em;
  color: var(--ink); margin: 0;
  text-shadow: 0 0 60px color-mix(in srgb, var(--accent) 30%, transparent);
}
.cover-hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, white), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter:
    drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 55%, transparent))
    drop-shadow(0 0 28px color-mix(in srgb, var(--accent) 34%, transparent));
}
.cover-hero .lede { max-width: 640px; margin: 26px auto 0; font-size: clamp(17px, 2.4vw, 22px); color: var(--ink-2); }
.cover-hero .byline { margin-top: 18px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }

/* journey ribbon of glowing colour dots */
.journey { position: relative; display: flex; justify-content: center; gap: 6px; margin: 64px auto 8px; max-width: 600px; }
.journey a {
  position: relative; flex: 1; height: 8px; border-radius: 999px;
  background: var(--dot);
  box-shadow: 0 0 16px -2px var(--dot);
  opacity: .82;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.journey a::after {
  content: attr(data-title); position: absolute; left: 50%; bottom: calc(100% + 14px);
  width: max-content; max-width: 230px; padding: 8px 11px; border: 1px solid var(--dot);
  border-radius: 8px; background: #110e16; color: var(--ink); box-shadow: 0 10px 30px #000a;
  font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap;
  opacity: 0; pointer-events: none; transform: translate(-50%, 5px);
  transition: opacity .08s linear, transform .08s linear; z-index: 5;
}
.journey a:hover, .journey a:focus-visible { transform: translateY(-1px); opacity: 1; box-shadow: 0 0 22px 0 var(--dot); }
.journey a:hover::after, .journey a:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.chapter-journey {
  width: calc(100% - 64px); margin: 10px auto 0; z-index: 45;
}
.chapter-journey a::after {
  top: calc(100% + 14px); bottom: auto;
}
.chapter-journey a[aria-current="step"] {
  opacity: 1; transform: scaleY(1.45);
  box-shadow: 0 0 25px 2px var(--dot);
}
.chapter-journey a[aria-current="step"]:hover,
.chapter-journey a[aria-current="step"]:focus-visible { transform: translateY(-1px) scaleY(1.45); }

.intro-note {
  max-width: 760px; margin: 60px auto 8px; text-align: center;
  font-family: var(--serif); font-size: clamp(21px, 2.9vw, 30px);
  font-style: italic; line-height: 1.5; color: var(--ink);
}
.intro-sub { max-width: 640px; margin: 20px auto 0; text-align: center; color: var(--ink-2); }

.grid-head {
  display: flex; align-items: baseline; gap: 14px;
  margin: 84px 0 26px; padding-bottom: 16px; border-bottom: 1px solid var(--brd);
}
.grid-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px,4vw,46px); margin: 0; color: var(--ink); letter-spacing: -.02em; }
.grid-head .count { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .06em; }

.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-top: 84px; }
.ch-card {
  --accent: var(--c);
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--brd); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.ch-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--panel-2);
  box-shadow: 0 26px 60px -30px #000, 0 0 50px -18px var(--accent-glow);
}
.ch-card .art-band {
  position: relative; aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 120% at 50% 12%, color-mix(in srgb, var(--c) 26%, transparent), transparent 66%);
  color: var(--c);
  border-bottom: 1px solid var(--brd);
  display: flex; align-items: center; justify-content: center;
}
.ch-card .art-band svg { width: 72%; height: 72%; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--c) 55%, transparent)); }
.ch-card .num {
  position: absolute; top: 12px; left: 14px;
  font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--accent-ink);
  background: color-mix(in srgb, var(--c) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  border-radius: 999px; padding: 2px 12px;
}
.ch-card .card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.ch-card .card-body h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.08; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.ch-card .card-original { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ch-card .hook { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.ch-card .go {
  margin-top: auto; padding-top: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink); display: inline-flex; align-items: center; gap: 7px;
}
.ch-card .go span { transition: transform .2s ease; }
.ch-card:hover .go span { transform: translateX(5px); }

.cover-foot { margin: 96px 0 70px; padding-top: 34px; border-top: 1px solid var(--brd); text-align: center; }
.cover-foot p { max-width: 640px; margin: 0 auto 8px; font-size: 14px; color: var(--muted); }
.cover-foot .serif { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); }

/* ============================================================
   CHAPTER PAGE
   ============================================================ */
.chapter-hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center;
  min-height: 78vh; padding: 40px 0;
}
.chapter-hero .h-text .step { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chapter-hero .h-text .step .n {
  font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--accent-ink);
  background: var(--accent-tint); border: 1px solid var(--accent);
  border-radius: 999px; padding: 3px 14px; letter-spacing: .02em;
  box-shadow: 0 0 24px -8px var(--accent-glow);
}
.chapter-hero .original-title {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.chapter-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 7vw, 88px); line-height: .96; letter-spacing: -.03em; color: var(--ink); margin: 0;
  text-shadow: 0 0 50px color-mix(in srgb, var(--accent) 22%, transparent);
}
.chapter-hero .subtitle { margin-top: 24px; font-size: clamp(17px, 2.4vw, 22px); color: var(--ink-2); max-width: 30em; }

/* glowing engraving plate */
.plate { display: flex; justify-content: center; }
.plate .frame {
  position: relative; width: 100%; max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--brd-2);
  border-radius: var(--radius); padding: 30px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--accent);
  box-shadow: 0 40px 90px -40px #000;
  animation: floaty 8s ease-in-out infinite;
}
.plate .frame::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(90% 80% at 50% 30%, var(--accent-glow), transparent 70%);
  filter: blur(24px);
}
.plate .frame svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 55%, transparent)); }
.plate .frame .plate-cap {
  margin-top: 12px; text-align: center;
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-ink);
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* engraving line convention */
.art { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art .thin { stroke-width: 1.1; }
.art .fillc { fill: currentColor; stroke: none; }
.art .soft { stroke-opacity: .5; }

/* verse band */
.verse { margin: 10px 0 14px; padding: 44px 0; text-align: center; position: relative; }
.verse::before, .verse::after {
  content: ""; display: block; width: 120px; height: 1px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.verse::before { margin-bottom: 34px; }
.verse::after { margin-top: 34px; }
.verse p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 3.6vw, 36px); line-height: 1.34; color: var(--ink); margin: 0 auto; max-width: 22em;
}
.verse cite {
  display: block; margin-top: 20px; font-style: normal; font-family: var(--sans);
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink);
}

/* reading column */
.content { max-width: 980px; margin: 0 auto; }
.section { padding: 52px 0; border-bottom: 1px solid var(--brd); }
.section:last-of-type { border-bottom: none; }
.section > .kicker { display: block; margin-bottom: 16px; }
.section h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.03; letter-spacing: -.02em; color: var(--ink); margin: 0 0 20px; }
.section h3 { font-family: var(--serif); font-weight: 600; font-size: 23px; letter-spacing: -.01em; color: var(--ink); margin: 34px 0 8px; }
.section p { font-size: 17.5px; margin: 0 0 17px; }
.section p:last-child { margin-bottom: 0; }
.lead { font-size: 20px !important; color: var(--ink); }
.drop::first-letter { font-family: var(--serif); font-weight: 600; float: left; line-height: .8; font-size: 72px; padding: 8px 14px 0 0; color: var(--accent-ink); }

/* EGW quote glass panels */
.quotes { display: grid; gap: 18px; }
.egw {
  position: relative; background: var(--panel);
  border: 1px solid var(--brd);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-s);
  padding: 28px 30px 24px;
  box-shadow: inset 0 0 60px -30px var(--accent-glow);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.egw p { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.5; color: var(--ink); margin: 0; }
.egw cite { display: block; margin-top: 16px; font-style: normal; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.egw .qmark { position: absolute; top: 4px; right: 18px; font-family: var(--serif); font-size: 76px; line-height: 1; color: var(--accent); opacity: .22; pointer-events: none; }

/* magazine-style side pull-quote — floats beside the Big Idea text */
.pull {
  float: right;
  clear: right;
  width: 44%;
  margin: 10px 0 20px 34px;
  padding: 6px 0 8px 22px;
  border-left: 3px solid var(--accent);
  border-top: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.pull p {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(20px, 1.9vw, 26px); line-height: 1.4; letter-spacing: -.01em;
  color: var(--ink); margin: 0;
}
.pull cite {
  display: block; margin-top: 12px; font-family: var(--sans); font-style: normal;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
/* keep floats contained within their section, and block elements below them */
.section::after { content: ""; display: block; clear: both; }
.analogy, .forreal, .reflect ol, .prayer .box { clear: both; }
@media (max-width: 720px) {
  .pull { float: none; width: auto; margin: 26px 0; }
}

/* inline analogy note (lighter than the feature callout) */
.analogy {
  margin: 34px 0;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-tint), transparent 78%);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 20px 24px;
}
.analogy .analogy-tag {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 9px;
}
.analogy p { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--ink); margin: 0; }

/* "Picture This" analogy callout */
.illo {
  position: relative;
  background: linear-gradient(180deg, var(--accent-tint), transparent), var(--panel);
  border: 1px solid var(--brd-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px 34px;
  box-shadow: 0 24px 60px -40px #000, inset 0 0 70px -42px var(--accent-glow);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.illo .kicker { display: block; margin-bottom: 12px; }
.illo .illo-lead {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(20px, 2.7vw, 27px); line-height: 1.38; letter-spacing: -.01em;
  color: var(--ink); margin: 0 0 14px;
}
.illo p:last-child { font-size: 17px; color: var(--ink-2); margin: 0; }

/* For Real Life panel */
.forreal {
  background: linear-gradient(180deg, var(--accent-tint), transparent), var(--panel);
  border: 1px solid var(--brd-2); border-radius: var(--radius); padding: 34px 36px;
  box-shadow: 0 30px 70px -40px #000;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.forreal h2 { margin-top: 0; }
.forreal p { font-size: 17.5px; }

/* reflect */
.reflect ol { list-style: none; counter-reset: q; padding: 0; margin: 0; display: grid; gap: 14px; }
.reflect li {
  counter-increment: q; position: relative; padding: 18px 20px 18px 66px;
  background: var(--panel); border: 1px solid var(--brd); border-radius: var(--radius-s);
  font-family: var(--serif); font-size: 19px; color: var(--ink); line-height: 1.42;
}
.reflect li::before {
  content: counter(q); position: absolute; left: 16px; top: 15px;
  width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint); border: 1px solid var(--accent); color: var(--accent-ink);
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  box-shadow: 0 0 18px -6px var(--accent-glow);
}

/* prayer */
.prayer { text-align: center; }
.prayer .box {
  position: relative; max-width: 640px; margin: 0 auto; padding: 40px 40px 34px;
  background: linear-gradient(180deg, var(--accent-tint), transparent), var(--panel);
  border: 1px solid var(--brd-2); border-radius: var(--radius);
  box-shadow: 0 30px 80px -44px #000, inset 0 0 80px -40px var(--accent-glow);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.prayer p { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.5; color: var(--ink); margin: 0; }
.prayer .amen { margin-top: 18px; font-family: var(--sans); font-style: normal; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; font-size: 12px; color: var(--accent-ink); }

/* immediate, concrete response */
.next-step {
  margin-top: 28px; padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--brd));
  border-radius: var(--radius-s); background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.next-step > span {
  display: block; margin-bottom: 8px; color: var(--accent-ink); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.next-step p { margin: 0; color: var(--ink); font-size: 16.5px; }

/* chapter footer navigation */
.chapter-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 34px 0 84px; }
.foot-link {
  display: flex; flex-direction: column; gap: 5px; padding: 22px 26px; border-radius: var(--radius);
  border: 1px solid var(--brd); background: var(--panel); text-decoration: none; color: var(--ink);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.foot-link:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 0 40px -16px var(--accent-glow); }
.foot-link.next { text-align: right; align-items: flex-end; }
.foot-link .dir { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.foot-link .t { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -.01em; color: var(--ink); }
.foot-link.disabled { opacity: .35; pointer-events: none; }
.foot-all { grid-column: 1 / -1; text-align: center; margin-top: 8px; }
.foot-all a { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); text-decoration: none; }


/* ============================================================
   Journey actions, edition dialog, and accessibility
   ============================================================ */
.skip-link {
  position: fixed; top: 8px; left: 12px; z-index: 2000; padding: 10px 14px;
  border-radius: 8px; background: var(--accent); color: #100c14; font-weight: 700;
  text-decoration: none; transform: translateY(-150%); transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }
:where(a, button, summary):focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }

.hero-cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 13px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, white); border-radius: 999px;
  background: var(--accent); color: #100c14; box-shadow: 0 14px 34px -18px var(--accent);
  font-size: 14px; font-weight: 800; letter-spacing: .04em; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -16px var(--accent); }
.hero-cta span { font-size: 18px; transition: transform .18s ease; }
.hero-cta:hover span { transform: translateX(4px); }

.journey a.is-active::after { opacity: 1; transform: translate(-50%, 0); }
.ch-card .art-band { aspect-ratio: 4 / 3; }
.ch-card .art-band svg { width: 78%; height: 78%; }
.ch-card .read-time {
  align-self: flex-start; padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--c) 34%, var(--brd));
  border-radius: 999px; color: var(--accent-ink); background: color-mix(in srgb, var(--c) 10%, transparent);
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
}

.step-complete {
  max-width: 760px; margin: 66px auto 24px; padding: clamp(28px, 5vw, 46px);
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--brd)); border-radius: var(--radius);
  background: radial-gradient(90% 140% at 50% 0%, var(--accent-tint), transparent 64%), var(--panel);
  box-shadow: 0 30px 80px -46px #000, inset 0 0 70px -48px var(--accent-glow);
  text-align: center;
}
.step-complete > span { color: var(--accent-ink); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.step-complete h2 { margin: 10px 0 12px; color: var(--ink); font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); line-height: 1.06; }
.step-complete p { max-width: 560px; margin: 0 auto 22px; color: var(--ink-2); }
.step-complete > a {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 17px;
  border: 1px solid var(--accent); border-radius: 999px; color: var(--accent-ink);
  background: var(--accent-tint); font-size: 13px; font-weight: 800; text-decoration: none;
}
.step-complete > a:hover { box-shadow: 0 0 28px -10px var(--accent-glow); }

.edition-open, .edition-done {
  min-height: 44px; padding: 10px 16px; border: 1px solid var(--brd-2); border-radius: 999px;
  background: var(--panel); color: var(--accent-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.edition-open { margin-top: 14px; }
.edition-dialog {
  width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0;
  border: 1px solid var(--brd-2); border-radius: var(--radius); background: #120e16; color: var(--ink);
  box-shadow: 0 30px 100px #000c; overflow: auto;
}
.edition-dialog::backdrop { background: rgba(4, 3, 7, .78); backdrop-filter: blur(5px); }
.edition-dialog-inner { position: relative; padding: clamp(28px, 5vw, 48px); }
.edition-dialog .kicker { display: block; margin-bottom: 12px; color: var(--accent-ink); }
.edition-dialog h2 { margin: 0 36px 18px 0; font-family: var(--serif); font-size: clamp(30px, 5vw, 44px); line-height: 1.05; }
.edition-dialog p { color: var(--ink-2); }
.edition-x {
  position: absolute; top: 15px; right: 15px; width: 44px; height: 44px; border: 1px solid var(--brd-2);
  border-radius: 999px; background: var(--panel); color: var(--ink); font-size: 24px; cursor: pointer;
}
.edition-done { margin-top: 8px; }

@media (hover: none), (pointer: coarse) {
  .journey { gap: 4px; margin-top: 70px; }
  .journey a { height: 44px; background: transparent; box-shadow: none; opacity: 1; transform: none; }
  .journey a::before {
    content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 8px; border-radius: 999px;
    background: var(--dot); box-shadow: 0 0 16px -2px var(--dot);
  }
  .journey a::after { bottom: calc(100% + 2px); }
  .journey a:hover, .journey a:focus-visible { transform: none; box-shadow: none; }
  .journey a:nth-child(-n+3)::after { left: 0; transform: translate(0, 5px); }
  .journey a:nth-child(-n+3).is-active::after, .journey a:nth-child(-n+3):focus-visible::after { transform: translate(0, 0); }
  .journey a:nth-last-child(-n+3)::after { left: auto; right: 0; transform: translate(0, 5px); }
  .journey a:nth-last-child(-n+3).is-active::after, .journey a:nth-last-child(-n+3):focus-visible::after { transform: translate(0, 0); }
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  body::before, .plate .frame { animation: none; }
  .journey a:hover, .ch-card:hover, .foot-link:hover { transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .chapter-hero h1 { overflow-wrap: anywhere; }
  .chapter-hero { grid-template-columns: 1fr; gap: 34px; min-height: 0; padding: 30px 0 20px; }
  .chapter-hero .plate { order: -1; }
  .plate .frame { max-width: 320px; padding: 24px; }
}
@media (max-width: 560px) {
  .journey { gap: 4px; margin-top: 70px; }
  .chapter-journey { width: calc(100% - 40px); margin-top: 2px; }
  .journey a { min-height: 44px; background: transparent; box-shadow: none; opacity: 1; transform: none; }
  .journey a::before {
    content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 8px;
    border-radius: 999px; background: var(--dot); box-shadow: 0 0 16px -2px var(--dot);
  }
  .chapter-journey a[aria-current="step"] { transform: none; box-shadow: none; }
  .chapter-journey a[aria-current="step"]::before { top: 17px; height: 10px; box-shadow: 0 0 20px 1px var(--dot); }
  .journey a:nth-child(-n+3)::after { left: 0; transform: translate(0, 5px); }
  .journey a:nth-child(-n+3):hover::after,
  .journey a:nth-child(-n+3):focus-visible::after,
  .journey a:nth-child(-n+3).is-active::after { transform: translate(0, 0); }
  .journey a:nth-last-child(-n+3)::after { left: auto; right: 0; transform: translate(0, 5px); }
  .journey a:nth-last-child(-n+3):hover::after,
  .journey a:nth-last-child(-n+3):focus-visible::after,
  .journey a:nth-last-child(-n+3).is-active::after { transform: translate(0, 0); }
  .topbar .wrap { gap: 7px; }
  .topbar .chapter-brand { font-size: 16px; }
  .topbar .chip-count { padding: 9px 11px; font-size: 10px; }
  .navbtn { min-width: 44px; width: 44px; height: 44px; padding: 0; }
  .chapter-hero h1 { font-size: clamp(42px, 14vw, 64px); }
  .chapter-hero .original-title { flex-basis: 100%; }
  .chapter-grid { grid-template-columns: 1fr; margin-top: 58px; }
  .step-complete { margin-top: 46px; }
  .cover-hero { padding: 12vh 0 30px; }
  .grid-head { flex-wrap: wrap; }
  .chapter-foot { grid-template-columns: 1fr; }
  .foot-link.next { text-align: left; align-items: flex-start; }
  .section { padding: 38px 0; }
  .egw p { font-size: 18px; }
}
