/* ---------- fonts ---------- */
/* Self-hosted (see fonts/README.txt): latin and latin-ext subsets of each family. */
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/cinzel-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/cinzel-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/cormorant-garamond-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/cormorant-garamond-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(fonts/cormorant-garamond-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(fonts/cormorant-garamond-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/source-serif-4-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/source-serif-4-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/source-serif-4-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/source-serif-4-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* While those load, Georgia stands in, scaled to each font's width and line height so the text
   doesn't reflow when they arrive (size-adjust measured in Chromium on the site's own text;
   the overrides are the web font's ascent and descent divided by it). */
@font-face { font-family: 'Cinzel Fallback'; font-weight: 400 900; src: local('Georgia Bold'), local('Georgia-Bold'); size-adjust: 107.25%; ascent-override: 91%; descent-override: 34.69%; line-gap-override: 0%; }
@font-face { font-family: 'Cormorant Fallback'; font-weight: 300 500; src: local('Georgia'); size-adjust: 87.78%; ascent-override: 105.26%; descent-override: 32.7%; line-gap-override: 0%; }
@font-face { font-family: 'Cormorant Fallback'; font-weight: 600 700; src: local('Georgia Bold'), local('Georgia-Bold'); size-adjust: 76.54%; ascent-override: 120.72%; descent-override: 37.5%; line-gap-override: 0%; }
@font-face { font-family: 'Cormorant Fallback'; font-style: italic; font-weight: 300 700; src: local('Georgia Italic'), local('Georgia-Italic'); size-adjust: 78.73%; ascent-override: 117.36%; descent-override: 36.45%; line-gap-override: 0%; }
@font-face { font-family: 'Source Serif Fallback'; font-weight: 200 500; src: local('Georgia'); size-adjust: 104.59%; ascent-override: 99.05%; descent-override: 32.03%; line-gap-override: 0%; }
@font-face { font-family: 'Source Serif Fallback'; font-weight: 600 900; src: local('Georgia Bold'), local('Georgia-Bold'); size-adjust: 91.91%; ascent-override: 112.72%; descent-override: 36.45%; line-gap-override: 0%; }
@font-face { font-family: 'Source Serif Fallback'; font-style: italic; src: local('Georgia Italic'), local('Georgia-Italic'); size-adjust: 94.31%; ascent-override: 109.85%; descent-override: 35.52%; line-gap-override: 0%; }

:root {
  --paper: #fbf7f0;
  --paper-2: #f4ede1;
  --ink: #221d33;
  --ink-2: #463f5c;
  --muted: #6c6480;
  --line: #e6dccb;
  /* violet and gold, taken from the cover */
  --gold: #b8860b;
  --gold-2: #d9a93a;
  --gold-text: #7f5c14;
  --rose: #5b3392;
  --plum: #3b1a6b;
  --cream: #fff8ec;
  --night: #1e0a41;
  --caps: 'Cinzel', 'Cinzel Fallback', Georgia, serif;
  --display: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  --text: 'Source Serif 4', 'Source Serif Fallback', Georgia, 'Times New Roman', serif;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--night);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--rose); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--plum); }
/* Violet focus ring on the cream card; gold where links sit on the dark sky. */
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
.rail :focus-visible, .topbar :focus-visible, .menu :focus-visible, .site-foot :focus-visible,
.stage :focus-visible, .home-status :focus-visible, .skip:focus-visible { outline-color: var(--gold-2); }
html.menu-open, html.menu-open body { overflow: hidden; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- backdrop ---------- */
/* As tall as the viewport with the browser toolbars collapsed (lvh), so the scene also fills the
   strip behind Safari's bottom toolbar instead of leaving bare purple there. */
.backdrop { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: -1; overflow: hidden; background: var(--night); }
.backdrop > svg, .backdrop img, .backdrop picture { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.backdrop img { object-fit: cover; object-position: 50% 100%; max-width: none; }
.backdrop .bg-b { opacity: var(--sky-mix, 0); }
.backdrop::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.page .backdrop::after { background: linear-gradient(to bottom, rgba(8, 8, 30, .4), rgba(8, 8, 30, .16) 55%, rgba(8, 8, 30, .3)); }
.page .backdrop.bright::after { background: linear-gradient(to bottom, rgba(8, 8, 30, .55), rgba(8, 8, 30, .36) 55%, rgba(8, 8, 30, .46)); }
.home .backdrop::after { background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(8, 8, 30, .05) 30%, rgba(8, 8, 30, .5) 100%); }

.scene .stars { opacity: var(--stars); }
.scene .sun { transform: translateY(var(--sunY)); }
.scene .layer { transform: translate3d(calc(var(--px, 0) * var(--depth) * 1px), 0, 0); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.scene .far { --depth: 5; }
.scene .mid { --depth: 11; }
.scene .near { --depth: 19; }
.scene .meadow { --depth: 28; }

/* ---------- link columns ---------- */
.rail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rail a {
  display: block;
  padding: 6px 4px;
  color: var(--cream);
  text-decoration: none;
  text-shadow: 0 1px 14px rgba(8, 8, 30, .55), 0 1px 2px rgba(8, 8, 30, .4);
}
.rail .label {
  font-family: var(--caps);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.25vw, 1.4rem);
  letter-spacing: .07em;
  line-height: 1.15;
  background: linear-gradient(var(--gold-2), var(--gold-2)) no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size .35s ease;
  padding-bottom: 2px;
}
.rail-left .label { background-position: 100% 100%; }
.rail a:hover .label, .rail a:focus-visible .label, .rail a[aria-current] .label { background-size: 100% 2px; }
.rail a[aria-current] { color: #ffe3b0; }
.rail .hint {
  display: block;
  font-size: .82rem;
  letter-spacing: .03em;
  color: #ffe9c9;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .3s, transform .3s;
}
.rail a:hover .hint, .rail a:focus-visible .hint { opacity: .92; transform: none; }
.soon {
  display: inline-block;
  vertical-align: .55em;
  margin-left: .5em;
  padding: 0 .55em;
  border: 1px solid rgba(255, 233, 201, .55);
  border-radius: 99px;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.6;
  color: #ffe9c9;
}
.rail-left { text-align: right; }

/* ---------- landing ---------- */
.home { overflow-x: hidden; position: relative; }
.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(28px, 4.5vw, 84px);
  padding: 40px max(clamp(16px, 4vw, 56px), env(safe-area-inset-right)) 96px max(clamp(16px, 4vw, 56px), env(safe-area-inset-left));
}
.stage .rail-left { justify-self: end; }
.stage .rail-right { justify-self: start; }
.stage .rail ul { gap: 10px; }
.stage .rail .label { font-size: clamp(1.15rem, 1.45vw, 1.6rem); }
/* The cover is the front of a 3D book: .book-3d turns it (pointer, touch, scroll; see site.js),
   .book-sway adds an idle sway on touch screens, and the two pseudo-elements are the spine and
   the page edges, standing back from the cover by the book's thickness. */
.book { perspective: 1600px; --thick: min(3.3vh, 30px); --thick: min(3.3svh, 30px); }
.book-3d, .book-sway { position: relative; transform-style: preserve-3d; }
/* The cover's shadow sits here, not on .cover: Chrome sorts a shadowed cover behind the spine. */
.book-3d {
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  border-radius: 3px 10px 10px 3px; box-shadow: 0 50px 90px -30px rgba(4, 4, 18, .85), 0 18px 30px -18px rgba(4, 4, 18, .6), 0 0 0 1px rgba(255, 255, 255, .08);
}
.book-3d.held { transition-duration: .1s; }
.book-sway::before, .book-sway::after {
  content: '';
  position: absolute;
  top: 1.2%; bottom: 1.2%;
  width: var(--thick);
  pointer-events: none;
}
.book-sway::before { /* spine */
  left: 0;
  transform-origin: 0 50%;
  transform: rotateY(90deg);
  background: linear-gradient(90deg, #12052b, #2c1257 45%, #1a0838);
  border-radius: 2px 0 0 2px;
}
.book-sway::after { /* page edges */
  right: 0;
  transform-origin: 100% 50%;
  transform: rotateY(-90deg);
  background:
    repeating-linear-gradient(90deg, rgba(110, 90, 60, .16) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #d8ccb4, #f6efe1 40%, #e6dcc6);
  border-radius: 0 2px 2px 0;
}
.home-status {
  position: absolute;
  left: 0; right: 0; bottom: 64px;
  margin: 0;
  text-align: center;
  color: #ffe9c9;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(8, 8, 30, .6);
}
.home-status a { color: inherit; }
.home .site-foot { position: absolute; left: 0; right: 0; bottom: 16px; }

/* ---------- cover ---------- */
.cover {
  position: relative;
  height: min(76vh, 760px);
  height: min(76svh, 760px);
  aspect-ratio: 2 / 3;
  border-radius: 3px 10px 10px 3px;
  overflow: hidden;
  container-type: size;
  background: var(--night);
}
.cover::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .12) 1.4%, rgba(0, 0, 0, .12) 3%, transparent 6%),
    linear-gradient(115deg, rgba(255, 255, 255, var(--sheen, .06)), transparent 40%);
}
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-author-hotspot { position: absolute; left: 10%; right: 10%; z-index: 3; border-radius: 6px; }
.cover-author-hotspot::before { content: ''; position: absolute; inset: -12px 0; } /* 44px touch area */
.cover-author-hotspot:hover { box-shadow: inset 0 -2px 0 rgba(233, 180, 92, .8); }
.cover-text {
  position: absolute; inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 9cqh 8cqw 6.5cqh;
  color: var(--cream);
  text-shadow: 0 2px 22px rgba(10, 10, 40, .55);
}
.cover::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 24%;
  background: linear-gradient(to top, rgba(12, 12, 34, .6), transparent);
}
.cover-img::after { display: none; }
.cover-title {
  margin: 0;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12.5cqh;
  line-height: .9;
  letter-spacing: .1em;
  padding-left: .1em;
}
.cover-title .to { font-style: italic; font-weight: 500; font-size: .42em; letter-spacing: .05em; margin: .12em 0 .08em; color: #ffe0b0; }
.cover-sub {
  margin: 3.4cqh 0 0;
  font-size: 2.05cqh;
  line-height: 1.55;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.cover-rule { display: flex; align-items: center; gap: 1.6cqw; margin: 2.4cqh 0; width: 46%; }
.cover-rule span { flex: 1; height: 1px; background: rgba(255, 240, 210, .7); }
.cover-rule b { font-weight: 400; font-size: 2.4cqh; line-height: 1; color: #ffe0b0; }
.cover-tag { margin: 0; font-family: var(--display); font-style: italic; font-size: 2.7cqh; line-height: 1.35; }
.cover-author {
  margin-top: auto;
  position: relative;
  z-index: 1;
  color: var(--cream);
  font-size: 2.7cqh;
  letter-spacing: .32em;
  padding-left: .32em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, color .3s;
}
.cover-author:hover, .cover-author:focus-visible { color: #ffe0b0; border-color: rgba(255, 224, 176, .8); }

/* ---------- interior pages ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--caps);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: .22em;
  color: var(--cream);
  text-decoration: none;
  text-shadow: 0 1px 14px rgba(8, 8, 30, .5);
}
.wordmark i, .menu-mark i, .site-foot i { font-style: normal; font-size: .72em; letter-spacing: .14em; color: var(--gold-2); }
.wordmark:hover { color: #ffe0b0; }
.menu-btn { display: none; }

.frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 800px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
  padding: 0 max(24px, env(safe-area-inset-right)) 40px max(24px, env(safe-area-inset-left));
}
.page .rail { position: sticky; top: 28px; padding-top: 18px; }
.page .rail-left { justify-self: end; }
.page .rail-right { justify-self: start; }
.page .rail .label { font-size: 1.02rem; }
.page .rail ul { gap: 10px; }

.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(28px, 5.5vw, 68px) clamp(22px, 6vw, 76px);
  box-shadow: 0 40px 90px -40px rgba(6, 6, 30, .75), 0 2px 0 rgba(255, 255, 255, .6) inset;
  min-width: 0;
}
.card > :last-child { margin-bottom: 0; }

.page-head { margin-bottom: 2rem; }
.eyebrow {
  margin: 0 0 .6rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-text);
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); line-height: 1.1; }
h1, h2, h3, .part-count, .part-sky, .pathway .num, .picker, .step-n, .journey h2 span { font-variant-numeric: lining-nums; }
h1 { margin: 0; font-size: clamp(2.5rem, 5.5vw, 3.9rem); letter-spacing: -.005em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); margin: 2.6rem 0 .8rem; }
h3 { font-size: 1.45rem; margin: 0 0 .3rem; }
h1 .plus { color: var(--gold); font-weight: 500; }
.lede { margin: 1rem 0 0; font-size: 1.28rem; line-height: 1.55; color: var(--ink-2); }
.attrib { margin: -1.2rem 0 2rem; color: var(--muted); font-size: .95rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.small-h { font-size: 1.4rem; margin-top: 2rem; }
p { margin: 0 0 1.1em; }

.prose p { font-size: 1.12rem; line-height: 1.8; }
.reading { max-width: 36em; }
.reading h2 {
  font-family: var(--text);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--gold-text);
  margin: 3.2rem 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.reading h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.reading > h2:first-of-type + p::first-letter,
.reading > p:first-child::first-letter,
.reading > .synopsis + h2 + p::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: 4.4em;
  line-height: .78;
  padding: .06em .08em 0 0;
  color: var(--plum);
}
.reading > p.epigraph:first-child::first-letter { all: unset; }
/* Part previews: the drop cap opens the story, not the synopsis above it. */
.reading > h2 + p.synopsis::first-letter { all: unset; }
.reading .continues { margin: 2.6rem 0 0; text-align: center; font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--muted); }
.reading .continues::before { content: '+'; display: block; margin-bottom: .7rem; color: var(--gold); font-style: normal; }
.prose blockquote, .reading blockquote {
  margin: 1.6em 0;
  padding: .2em 0 .2em 1.3em;
  border-left: 3px solid var(--gold-2);
  color: var(--ink-2);
}
.prose blockquote p { margin: 0 0 .5em; }
.epigraph {
  max-width: 30em;
  margin: 0 auto 2.6rem !important;
  text-align: center;
  font-size: 1.12rem !important;
  color: var(--ink-2);
}
.epigraph::after { content: '+'; display: block; margin-top: 1rem; color: var(--gold); font-style: normal; }
blockquote.epigraph { border: 0; padding: 0; }
.fineprint { margin-top: 3rem; font-size: .8rem; line-height: 1.5; color: var(--muted); }

.draft-note {
  margin: 0 0 2rem;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff4c7;
  border: 1px dashed #d9b440;
  color: #5c4a10;
  font-size: .92rem;
}
.draft-note strong { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; margin-right: .6em; }

.pull { margin: 2.6rem 0; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.pull blockquote { margin: 0 auto; max-width: 28em; font-family: var(--display); font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-style: italic; line-height: 1.35; color: var(--plum); }
.pull figcaption { margin-top: .9rem; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: .5em;
  padding: .72em 1.4em;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--plum), var(--rose));
  color: #fff;
  font: 600 1rem/1.2 var(--text);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(59, 47, 99, .8);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 14px 26px -12px rgba(59, 47, 99, .9); }
.btn-quiet { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 1.5px rgba(59, 47, 99, .35); }
.btn-quiet:hover { color: var(--plum); background: rgba(59, 47, 99, .06); filter: none; box-shadow: inset 0 0 0 1.5px rgba(59, 47, 99, .6); }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2.2rem 0 0; }
.link-arrow { display: inline-block; padding: 11px 0; margin: -11px 0; font-weight: 600; text-decoration: none; }
.link-arrow::after { content: ' →'; transition: margin .2s; }
.link-arrow:hover::after { margin-left: .25em; }
.link-out::after { content: ' ↗'; font-size: .85em; }
.tag { display: inline-block; padding: .1em .7em; border-radius: 99px; background: var(--paper-2); color: var(--muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.share-msg, .copy-msg { font-size: .95rem; color: var(--plum); align-self: center; }
.copy-field { display: inline-block; width: min(100%, 22em); margin: 6px 0 0; padding: 8px 10px; font-size: 1rem; }

.chips { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: .45em 1.1em; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); text-decoration: none; font-size: .95rem; transition: background .2s, color .2s; }
.chips a:hover { background: var(--plum); color: #fff; }

/* concept */
.unfold { margin-top: 1rem; }
/* minmax(0, 1fr) lets the tiles shrink below their label width, so the grid never overflows */
.picker { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin: 1.2rem 0 1.6rem; }
.picker button {
  position: relative;
  min-width: 0;
  min-height: 56px;
  padding: 10px 0 8px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--a), var(--b));
  color: #fff;
  cursor: pointer;
  font-family: var(--display);
  transition: transform .2s, box-shadow .2s;
  box-shadow: inset 0 0 0 0 var(--gold-2);
}
.picker button span { display: block; font-size: 1.5rem; font-weight: 600; line-height: 1; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.picker button small { display: block; font-family: var(--text); font-size: .72rem; letter-spacing: .01em; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
/* Parts 6-10: the dawn tiles are light, so the numerals switch to dark ink (see book.mjs). */
.picker .on-light, .on-light .num, .on-light .part-sky span { color: var(--night); }
.picker .on-light span, .on-light .num, .on-light .part-sky span { text-shadow: 0 1px 8px rgba(255, 248, 236, .45); }
.picker button:hover { transform: translateY(-2px); }
.picker button[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--gold-2), 0 8px 18px -8px rgba(59, 47, 99, .7); transform: translateY(-2px); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--plum); font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.steps h3 { font-size: .78rem; font-family: var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--rose); margin: 6px 0 2px; }
.step-val { margin: 0; font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1.2; color: var(--ink); transition: opacity .25s; }
.steps .muted { margin: 2px 0 0; font-size: .95rem; }
.pathway { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 8px; }
.pathway a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-2);
  transition: transform .2s, box-shadow .2s;
}
.pathway a:hover { transform: translateX(4px); box-shadow: 0 10px 24px -16px rgba(59, 47, 99, .7); color: var(--ink); }
.pathway .num {
  width: 64px; height: 64px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--a), var(--b));
  color: #fff;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}
.pathway strong { font-family: var(--display); font-size: 1.45rem; }
.pathway em { color: var(--muted); font-size: .95rem; margin-left: .3em; }
.pathway .line { display: block; color: var(--ink-2); font-size: .98rem; line-height: 1.45; margin-top: 2px; }

/* contents */
.toc-front { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--display); font-size: 1.35rem; }
.toc-front li { display: flex; align-items: center; gap: 10px; }
.toc-front span:not(.tag) { color: var(--muted); }
.toc-front a { display: inline-flex; align-items: center; min-height: 44px; }
.toc { display: grid; gap: 14px; margin-bottom: 1.6rem; }
.part-card { display: grid; grid-template-columns: 96px 1fr; border-radius: 18px; overflow: hidden; background: var(--paper-2); scroll-margin-top: 24px; }
.part-sky { background: linear-gradient(180deg, var(--a), var(--b) 60%, var(--c)); display: grid; place-items: center; }
.part-sky span { font-family: var(--display); font-size: 3.2rem; font-weight: 700; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.part-body { padding: 18px 22px 20px; min-width: 0; }
.part-body .eyebrow { margin-bottom: .2rem; }
.part-body h2 { margin: 0; font-size: 1.85rem; }
.part-body h2 span { font-size: 1.15rem; font-weight: 500; font-style: italic; color: var(--muted); }
.part-meta { margin: .4rem 0 .6rem; color: var(--ink-2); font-size: .98rem; }
details { margin: .4rem 0 .9rem; }
summary { cursor: pointer; color: var(--plum); font-weight: 600; font-size: .95rem; }
summary:hover { color: var(--rose); }
.chapters { list-style: none; padding: 0; margin: .7rem 0 0; columns: 2 220px; column-gap: 28px; }
.chapters li { break-inside: avoid; padding: 3px 0; font-size: .98rem; }
.chapters li span { color: var(--muted); font-size: .8rem; letter-spacing: .04em; margin-right: .35em; }
.chapters .bookend { font-style: italic; color: var(--ink-2); }
summary { display: inline-flex; align-items: center; min-height: 44px; }

/* read */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: calc(var(--read, 0) * 100%); background: linear-gradient(90deg, var(--gold-2), var(--rose)); z-index: 30; }
.part-head { position: relative; }
.part-count { position: absolute; right: -6px; top: -28px; margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(6rem, 14vw, 10rem); line-height: 1; color: var(--paper-2); z-index: 0; pointer-events: none; user-select: none; }
.part-head > :not(.part-count) { position: relative; }
.part-head .part-meta { margin-top: 1.2rem; font-size: 1rem; line-height: 1.6; }
.preview-end { margin: 3rem 0 0; padding: 26px 28px; border-radius: 18px; background: linear-gradient(160deg, var(--paper-2), #efe4f0); }
.preview-end .chapters { margin-bottom: .4rem; }
.preview-end .actions { margin-top: 1.2rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 2rem; }
.pager a { display: block; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.3rem; font-weight: 600; transition: border-color .2s, background .2s; }
.pager a:hover { border-color: var(--plum); background: var(--paper-2); color: var(--ink); }
.pager small { display: block; font-family: var(--text); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.pager .next { text-align: right; grid-column: 2; }

/* characters */
.cast { display: grid; gap: 18px; }
.person { display: grid; grid-template-columns: 96px 1fr; gap: 22px; padding: 22px; border-radius: 18px; background: var(--paper-2); scroll-margin-top: 24px; }
.person:target { box-shadow: 0 0 0 3px var(--gold-2); }
.monogram {
  width: 96px; height: 96px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #3d2f8f, #b48ac9 55%, #ffc77a);
  color: #fff;
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}
.emblem { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.person h2 { margin: 0; font-size: 1.9rem; }
.roles { margin: .2rem 0 .7rem; display: flex; flex-wrap: wrap; gap: 6px; }
.roles span { font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--rose); }
.roles span + span::before { content: '·'; margin-right: 6px; color: var(--muted); font-style: normal; }
.first-line { margin: .8rem 0; padding-left: 1rem; border-left: 3px solid var(--gold-2); }
.first-line blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: 1.25rem; line-height: 1.4; color: var(--plum); }
.first-line figcaption { margin-top: .3rem; font-size: .82rem; letter-spacing: .04em; color: var(--muted); }
.opens { font-size: .95rem; margin-bottom: .4rem; }
.person p:last-child { margin: 0; }
.sources { margin-top: 1rem; }

/* author */
.author-head { display: flex; align-items: center; gap: 28px; margin-bottom: 2rem; }
.author-head .page-head { margin: 0; }
.portrait { flex: none; width: 150px; height: 150px; border-radius: 50%; object-fit: cover; box-shadow: 0 16px 30px -18px rgba(59, 47, 99, .8); }
.portrait.monogram { font-size: 3.4rem; }

/* comments & community */
.post-form { margin: 1.6rem 0 1rem; padding: 22px; border-radius: 18px; background: var(--paper-2); }
/* On Comments the form keeps its space, unseen, until the API answers, so the list below doesn't
   jump down when it appears. No JavaScript, or no API: it takes no space. */
.posts[data-mode="flat"]:not(.no-form) .post-form[hidden] { display: block !important; visibility: hidden; }
.form-title { margin: 0 0 1rem; font-size: 1.6rem; }
.post-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-form label, .admin-login label { display: block; margin-bottom: 14px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.post-form small { font-weight: 400; color: var(--muted); }
/* Inputs stay at 16px or more so iOS Safari doesn't zoom in on focus. */
input, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1px solid #8a809b;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 1rem/1.5 var(--text);
}
input:focus, textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(59, 47, 99, .15); }
textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute !important; left: -9999px !important; }
.public-note { margin: -4px 0 14px; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.form-msg { margin: 0; font-size: .95rem; color: var(--plum); }
.form-msg.error { color: #a1262f; }
.list-title { font-size: 1.7rem; margin: 2.2rem 0 1rem; }
.post-list { display: grid; gap: 12px; }
.post { padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); background: #fff; overflow-wrap: anywhere; }
.post header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: .4rem; }
.post .who { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.post .where, .post time { color: var(--muted); font-size: .85rem; }
.post p { margin: 0 0 .6em; }
.post p:last-child { margin: 0; }
.replies { margin: 12px 0 0 18px; padding-left: 16px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.replies .post { background: var(--paper); }
.reply-btn { margin-top: .2rem; min-height: 44px; padding: 0 .2em; border: 0; background: none; color: var(--rose); font: 600 .9rem var(--text); cursor: pointer; }
.reply-btn:hover { color: var(--plum); }
.post .post-form { margin: 12px 0 0; padding: 16px; background: var(--paper); }
.offline { margin-bottom: 1.5rem; padding: 14px 18px; border-radius: 14px; background: #eef3fb; color: #24324d; }
.topic-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.topic-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'name count' 'blurb count';
  gap: 0 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.topic-list a:hover { transform: translateX(4px); background: #efe4f0; color: var(--ink); }
.topic-list strong { grid-area: name; font-family: var(--display); font-size: 1.3rem; }
.topic-list span { grid-area: blurb; color: var(--muted); font-size: .92rem; }
.topic-list .count { grid-area: count; align-self: center; font-style: normal; font-size: .85rem; color: var(--plum); }
.thread-title { margin-top: .4rem; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.community { scroll-margin-top: 24px; }

/* contact */
.mail-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 26px; border-radius: 18px; background: linear-gradient(160deg, var(--paper-2), #efe4f0); }
.mail-big { font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 5.4vw, 2.3rem); text-decoration: none; color: var(--plum); overflow-wrap: break-word; min-width: 0; display: inline-block; padding: 4px 0; }
.mail-card .copy-msg { flex-basis: 100%; margin: 0; }
.mail-big:hover { color: var(--rose); }

/* curious */
.journey { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 14px; }
.journey li { padding: 24px 26px; border-radius: 18px; background: var(--paper-2); }
.journey h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 .7rem; font-size: 2rem; }
.journey h2 span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--plum); color: #fff; font-size: 1.2rem; }
.verse { margin: 1rem 0 0; padding: 14px 18px; border-radius: 12px; background: var(--paper); border-left: 3px solid var(--gold-2); }
.verse p { margin: 0; font-family: var(--display); font-size: 1.3rem; font-style: italic; line-height: 1.4; color: var(--plum); }
.verse cite { display: block; margin-top: .4rem; font-style: normal; font-size: .82rem; letter-spacing: .08em; color: var(--muted); }

/* buy, merch, resources */
.formats, .merch, .resource-list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 14px; }
.formats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.formats li, .merch li { padding: 22px; border-radius: 18px; background: var(--paper-2); }
.formats h2, .merch h2 { margin: 0 0 .3rem; font-size: 1.7rem; }
.formats p, .merch p { margin: 0; color: var(--ink-2); }
.merch { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.merch svg, .merch img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 12px; background: linear-gradient(160deg, #fbe9da, #efe4f0); }
.resource-list li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 18px; background: var(--paper-2); }
.resource-list img { width: 120px; height: 90px; object-fit: cover; border-radius: 12px; }
.resource-list h2 { margin: 0 0 .2rem; font-size: 1.5rem; }
.resource-list p { margin: 0 0 .5rem; color: var(--ink-2); }

/* admin */
.admin-login { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.admin-login label { flex: 1 1 240px; margin: 0; }
.admin-tabs { display: flex; gap: 8px; margin: 1.6rem 0 1rem; }
.admin-tabs button { padding: .5em 1em; border-radius: 99px; border: 1px solid var(--line); background: #fff; font: 600 .9rem var(--text); cursor: pointer; }
.admin-tabs [aria-selected="true"] { background: var(--plum); color: #fff; border-color: var(--plum); }
.admin-list { display: grid; gap: 12px; }
.admin-item .meta { font-size: .85rem; color: var(--muted); }
.admin-item .tools { display: flex; gap: 10px; margin-top: .8rem; }
.admin-item .tools button { padding: .45em 1em; font-size: .9rem; }

/* footer & menu */
.site-foot { text-align: center; padding: 8px max(16px, env(safe-area-inset-right)) max(28px, calc(env(safe-area-inset-bottom) + 12px)) max(16px, env(safe-area-inset-left)); color: #ffe9c9; font-size: .85rem; text-shadow: 0 1px 10px rgba(8, 8, 30, .6); }
.site-foot p { margin: 0; }
.site-foot a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 233, 201, .5); }
.site-foot a:hover { text-decoration-color: currentColor; }
.site-foot a[href^="mailto:"] { white-space: nowrap; }
.site-foot a:first-child { letter-spacing: .16em; font-family: var(--caps); font-weight: 700; text-decoration: none; }
.share-row { margin-bottom: 14px !important; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.share-btn { min-height: 44px; padding: .5em 1.3em; border-radius: 99px; border: 1px solid rgba(255, 233, 201, .55); background: rgba(12, 14, 40, .3); color: var(--cream); font: 600 .95rem var(--text); letter-spacing: .04em; cursor: pointer; }
.share-btn:hover { background: rgba(12, 14, 40, .5); }
.site-foot .share-msg { color: #ffe9c9; }
.site-foot .copy-field { color: var(--ink); }

.menu { position: fixed; inset: 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain; background: rgba(12, 14, 40, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.menu-inner { min-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: max(28px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
.menu-mark { margin: 0 0 6px; }
.menu-mark a { font-family: var(--caps); font-weight: 700; font-size: 1.35rem; letter-spacing: .22em; color: var(--cream); text-decoration: none; }
.menu nav { width: 100%; max-width: 360px; }
.menu nav + nav { padding-top: 18px; border-top: 1px solid rgba(255, 233, 201, .25); }
.menu .rail-like ul, .menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; text-align: center; }
.menu a { display: block; padding: 8px 6px; color: var(--cream); text-decoration: none; }
.menu-mark a { display: inline-flex; align-items: center; min-height: 44px; }
.menu .label { font-family: var(--caps); font-weight: 600; font-size: 1.3rem; letter-spacing: .07em; }
.menu .hint { display: block; font-size: .8rem; color: #ffe9c9; opacity: .75; }
.menu a[aria-current] .label { color: #ffe0b0; }
.menu-close { margin-top: 8px; min-height: 44px; padding: .6em 1.6em; border-radius: 99px; border: 1px solid rgba(255, 233, 201, .5); background: transparent; color: var(--cream); font: 600 1rem var(--text); cursor: pointer; }

/* ---------- responsive ---------- */
/* Between 1181 and 1320px the side rails were squeezed; give them more room. */
@media (min-width: 1181px) and (max-width: 1320px) {
  .frame { grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 1180px) {
  html { scroll-padding-top: 72px; }
  .frame { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left)); }
  .page .rail { display: none; }
  /* The bar stays on screen so the menu is one tap away on long pages; it gains a backing once
     the page scrolls (site.js adds .scrolled). */
  .topbar {
    position: sticky; top: 0; z-index: 20;
    justify-content: space-between; height: 64px; margin-bottom: 8px;
    padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
    transition: background-color .25s, box-shadow .25s;
  }
  .topbar.scrolled {
    background: rgba(20, 12, 52, .82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 233, 201, .14), 0 8px 24px -16px rgba(4, 4, 18, .8);
  }
  .community { scroll-margin-top: 80px; }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .5em 1.2em;
    border-radius: 99px;
    border: 1px solid rgba(255, 233, 201, .55);
    background: rgba(12, 14, 40, .25);
    color: var(--cream);
    font: 600 .95rem var(--text);
    letter-spacing: .06em;
    cursor: pointer;
  }
}

@media (max-width: 900px) {
  /* Phones and small tablets: the book, then the book's six links as a 2 × 3 grid, an ornament,
     the author's three links in a row, and a closing section that fades into the night purple. */
  .stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-height: auto;
    padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  }
  .stage .book { order: -1; margin-bottom: 30px; --thick: min(4vh, 30px); --thick: min(4svh, 30px); }
  .stage .rail { width: min(100%, 380px); text-align: center; }
  .stage .rail ul { display: grid; gap: 6px 12px; }
  .stage .rail-left ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage .rail-right ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage .rail a { padding: 7px 2px; }
  .stage .rail .label { font-size: clamp(1rem, 4.4vw, 1.12rem); }
  .stage .soon { display: none; }
  .stage .rail .hint { opacity: .85; transform: none; font-size: .78rem; line-height: 1.4; margin-top: 2px; }
  .stage .rail-right::before, .home .closing::before {
    content: '+';
    display: block;
    width: min(46%, 170px);
    margin: 14px auto 12px;
    color: var(--gold-2);
    font: 400 1rem/1 var(--text);
    text-align: center;
    background:
      linear-gradient(rgba(255, 240, 210, .55), rgba(255, 240, 210, .55)) left center / calc(50% - 14px) 1px no-repeat,
      linear-gradient(rgba(255, 240, 210, .55), rgba(255, 240, 210, .55)) right center / calc(50% - 14px) 1px no-repeat;
  }
  .rail-left .label { background-position: 50% 100%; }
  .cover { height: auto; width: min(calc(58vh * 2 / 3), 373px, calc(100vw - 64px)); width: min(calc(58svh * 2 / 3), 373px, calc(100vw - 64px)); }
  .home .backdrop::after {
    background:
      linear-gradient(to bottom, rgba(30, 10, 65, 0) 76%, rgba(30, 10, 65, .7)),
      radial-gradient(ellipse 70% 80% at 50% 50%, rgba(8, 8, 30, .05) 30%, rgba(8, 8, 30, .5) 100%);
  }
  .home .closing {
    margin-top: 6px;
    padding: 36px max(20px, env(safe-area-inset-right)) max(22px, calc(env(safe-area-inset-bottom) + 14px)) max(20px, env(safe-area-inset-left));
    background: linear-gradient(to bottom, rgba(30, 10, 65, 0), rgba(30, 10, 65, .78) 64px, var(--night) 150px);
    text-align: center;
  }
  .home .closing::before { margin-top: 0; margin-bottom: 16px; }
  .home-status, .home .site-foot { position: static; }
  .home-status {
    margin-bottom: 20px;
    color: var(--gold-2);
    font-family: var(--caps);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .32em;
    text-shadow: none;
  }
  .home .site-foot { padding: 0; text-shadow: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .colophon { display: flex; flex-direction: column; align-items: center; gap: 3px; }
  .colophon .sep { display: none; }
  .colophon a:first-child { font-size: 1.05rem; letter-spacing: .22em; margin-bottom: 2px; }
  .wordmark { font-size: 1.25rem; letter-spacing: .26em; }
  .card { border-radius: 18px; }
  .prose p { font-size: 1.06rem; }
  .lede { font-size: 1.15rem; }
  .picker { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pathway a { grid-template-columns: 52px 1fr; gap: 14px; }
  .pathway .num { width: 52px; height: 52px; font-size: 1.6rem; }
  .part-card { grid-template-columns: 64px 1fr; }
  .part-sky span { font-size: 2.2rem; }
  .part-body { padding: 16px; }
  .person { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .monogram, .emblem { width: 72px; height: 72px; font-size: 1.8rem; }
  .author-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .portrait { width: 120px; height: 120px; }
  .post-form .row { grid-template-columns: 1fr; gap: 0; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .resource-list li { grid-template-columns: 1fr; }
  .resource-list img { width: 100%; height: 160px; }
  .replies { margin-left: 4px; padding-left: 12px; }
}

@media print {
  .backdrop, .topbar, .rail, .menu, .site-foot, .progress, .skip, .post-form, .pager, .preview-end .actions, .picker { display: none !important; }
  body { background: #fff; color: #000; }
  .frame { display: block; padding: 0; }
  .card { box-shadow: none; padding: 0; border-radius: 0; background: #fff; }
  a { color: inherit; }
  .reading { max-width: none; }
}

/* Touch screens: the book rests turned toward its page edges and sways slowly. */
@media (hover: none) {
  .home .book { perspective: 1100px; }
  .home .book-3d { --ry: -22deg; --rx: 4deg; }
  .home .book-sway { animation: book-sway 9s ease-in-out infinite alternate; }
  .home .book-3d.held .book-sway { animation-play-state: paused; }
  .home .book { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
}
@keyframes book-sway { from { transform: rotateY(-5deg); } to { transform: rotateY(6deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
