/* Jinetes de Ceniza: editorial, ceniza y brasa */

@font-face {
  font-family: "Cinzel";
  src: url(../fonts/cinzel-400-900.woff2) format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel Decorative";
  src: url(../fonts/cinzel-decorative-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url(../fonts/spectral-normal-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url(../fonts/spectral-normal-600.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url(../fonts/spectral-italic-400.woff2) format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* The gold of the logotype catches the light once */
@property --shine {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 120%;
}

:root {
  /* ink, with the indigo of the covers' night sky in it */
  --ink-0: #07060d;
  --ink-1: #0c0b14;
  --ink-2: #14121f;
  --ink-3: #1d1a2e;

  /* ember and gold */
  --ember: #ff9a4d;
  --ember-hot: #ffb25c;
  --gold: #e9b85e;
  --gold-hi: #fbe3a6;
  --gold-line: rgba(233, 184, 94, .32);
  --metal: linear-gradient(180deg, #fff4d2 0%, #f7dd9c 30%, #deb062 50%, #a8722a 62%, #e8c476 80%, #fce9b4 100%);
  --metal-edge: drop-shadow(0 1px 0 #3a2408) drop-shadow(0 6px 16px rgba(0, 0, 0, .6));

  /* each book's light */
  --frost: #b3d3f7;
  --rose: #ffa3b1;

  /* text */
  --ivory: #f4ecdf;
  --ivory-2: #d8cfc3;
  --ivory-3: #a99fb6;

  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --deco: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --serif: "Spectral", Georgia, serif;

  /* Never narrower than the notch / rounded corners (the page draws under them: viewport-fit=cover) */
  --gutter: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left), env(safe-area-inset-right));
  --safe-top: env(safe-area-inset-top, 0px);
  --nav-h: 68px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--ink-3) var(--ink-0);
  -webkit-text-size-adjust: 100%;
  background: var(--ink-1);
}

body {
  margin: 0;
  background: var(--ink-1);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, .35vw + 1rem, 1.25rem);
  line-height: 1.6;
  caret-color: var(--gold);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Film grain over everything: ash, not plastic */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--ink-0); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink-0); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border: 2px solid var(--ink-0); border-radius: 6px; }

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink-0); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 12px; }

.page { overflow-x: clip; width: 100%; max-width: 100%; }

/* ---------- Gold lettering ---------- */

.metal {
  background-image:
    linear-gradient(105deg, transparent 42%, rgba(255, 251, 236, .95) 50%, transparent 58%),
    var(--metal);
  background-size: 260% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: var(--shine) 0, 0 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: var(--metal-edge);
}
.metal.is-shining { animation: shine 2s var(--ease-out) both; }
@keyframes shine { from { --shine: 120%; } to { --shine: -20%; } }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.9em;
  font-family: var(--caps); font-weight: 700; font-size: .9rem;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border-radius: 1px;
  transition: filter .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s var(--ease-out), color .2s var(--ease-out), transform .15s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--gold {
  background: linear-gradient(180deg, #fbe7b4 0%, #e9b85e 55%, #c48f3a 100%);
  color: var(--ink-0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 14px 28px -14px rgba(0, 0, 0, .9);
}
.btn--gold:hover { filter: brightness(1.08); }
.btn--line { color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(233, 184, 94, .55); background: transparent; }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--gold); background: rgba(233, 184, 94, .08); }
.btn--sm { min-height: 40px; padding: 0 1.3em; font-size: .78rem; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  /* Equal side columns keep the links at the true page centre, whatever the brand and button widths */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  /* On phones the bar reaches up under the status bar so the page never shows above it */
  height: calc(var(--nav-h) + var(--safe-top)); padding: var(--safe-top) var(--gutter) 0;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.nav.is-solid {
  background: rgba(12, 11, 20, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--gold-line);
}
/* The wordmark stays hidden while the big title is on screen, then fades in, one line, in the title's gold */
.nav__brand {
  justify-self: start;
  font-family: var(--deco); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.nav.has-brand .nav__brand { opacity: 1; transform: none; pointer-events: auto; }
.nav__links { display: flex; gap: clamp(18px, 2.8vw, 44px); }
.nav__links a {
  font-family: var(--caps); font-weight: 600; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--ivory-2); padding: 6px 0; position: relative;
  transition: color .2s var(--ease-out);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.nav__links a:hover { color: var(--gold-hi); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 14px; }
.lang { display: flex; align-items: center; }
.lang[hidden] { display: none; }
.lang button {
  font: 600 .8rem/1 var(--caps); letter-spacing: .14em; color: var(--ivory-3);
  background: none; border: 0; padding: 0 8px; min-height: 40px; min-width: 36px; cursor: pointer;
  transition: color .2s;
}
.lang button + button { border-left: 1px solid var(--gold-line); }
.lang button[aria-pressed="true"] { color: var(--gold-hi); }
.lang button:hover { color: var(--ivory); }

/* ---------- Smoke and embers ---------- */

.smoke {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 36% at 50% 14%, rgba(72, 60, 150, .42), transparent 72%),
    radial-gradient(52% 40% at 50% 100%, rgba(255, 120, 50, .3), transparent 72%),
    radial-gradient(28% 24% at 14% 58%, rgba(120, 90, 170, .16), transparent 72%),
    radial-gradient(28% 24% at 88% 52%, rgba(120, 90, 170, .14), transparent 72%);
}
.smoke--low {
  background:
    radial-gradient(60% 45% at 50% 72%, rgba(255, 130, 60, .32), transparent 72%),
    radial-gradient(40% 30% at 50% 10%, rgba(72, 60, 150, .3), transparent 72%);
}
.smoke {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
}
.smoke--low {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 62%, transparent 100%);
}
/* Embers live in each section's background: behind text and images, full width */
.embers { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; height: 100%; transform: translateX(-50%); z-index: 0; pointer-events: none; }
.prologue, .books__head, .cast, .world, .author { position: relative; isolation: isolate; }
.prologue > :not(.embers):not(.stardust), .books__head > :not(.embers), .cast > :not(.embers),
.world > :not(.embers), .author > :not(.embers), .volume__inner { position: relative; z-index: 1; }

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

.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  padding: calc(var(--nav-h) + var(--safe-top) + clamp(16px, 3vh, 32px)) var(--gutter) clamp(64px, 10vh, 120px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero > *:not(.smoke):not(.embers) { position: relative; z-index: 1; }

/* Stacked like the covers: JINETES / — DE — / CENIZA */
.hero__logo {
  --tl: clamp(2.3rem, min(4vw, 6.6svh), 3.9rem);
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--deco); font-weight: 400; text-transform: uppercase; line-height: 1;
}
.hero__logo span { display: block; }
.hero__logo .t-line { font-size: var(--tl); letter-spacing: .01em; }
.hero__logo .t-de {
  display: flex; align-items: center; gap: .5em;
  font-size: calc(var(--tl) * .34); margin: .12em 0 .2em; letter-spacing: .06em;
}
.hero__logo .t-de::before, .hero__logo .t-de::after {
  content: ""; width: 2.4em; height: 1.5px; background: linear-gradient(90deg, #c0913f, #fbe3a6, #c0913f);
}
.hero__quote {
  margin-top: clamp(22px, 4vh, 40px);
  max-width: min(1120px, 100%);
  font-family: var(--caps); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.75rem, 3.5vw, 3.3rem); line-height: 1.16; letter-spacing: .02em;
  color: var(--ivory);
}
.hero__quote em { font-style: normal; color: var(--gold); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(22px, 4vh, 36px); }
.hero__stage {
  --gap: clamp(12px, 2.4vw, 40px);
  position: relative; width: min(100%, 1400px);
  display: flex; justify-content: center; align-items: flex-end;
  gap: var(--gap);
  margin-top: clamp(32px, 6vh, 64px);
}
.spot {
  /* The warm light behind the books spills well below them and fades out slowly */
  position: absolute; left: 50%; top: 40%; width: 170%; height: 260%; transform: translate(-50%, -32%); z-index: -1;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 42%, rgba(255, 168, 90, .26) 0%, rgba(255, 150, 80, .14) 38%, rgba(255, 140, 70, .05) 58%, transparent 74%);
}
.stage-book {
  /* Three equal books across almost the whole screen */
  display: block; flex: 1 1 0; max-width: calc((100% - 2 * var(--gap)) / 3);
  transition: transform .5s var(--ease-out);
}
.stage-book img {
  width: 100%;
  box-shadow: 0 36px 50px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(233, 184, 94, .28);
  transition: box-shadow .5s var(--ease-out);
}
.stage-book:hover { transform: translateY(-8px); }
.stage-book:hover img { box-shadow: 0 46px 60px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(233, 184, 94, .6); }

/* ---------- Prologue (scrub) ---------- */

.prologue {
  padding: clamp(120px, 20vh, 220px) var(--gutter);
  max-width: 1100px; margin: 0 auto; text-align: center;
}
.prologue__text { font-size: clamp(1.5rem, 2.2vw + .6rem, 2.7rem); line-height: 1.4; }
.prologue__text .w {
  --o: 1; --h: 0; --c: 1;
  opacity: var(--o);
  color: color-mix(in srgb, #ffb98a calc(var(--h) * 100%), color-mix(in srgb, #f6e3bf calc(var(--c) * 100%), var(--ivory)));
  /* A soft magical gold glow, nothing more */
  text-shadow:
    0 0 calc(var(--h) * 4px) rgba(255, 214, 160, calc(var(--h) * .6)),
    0 calc(var(--h) * -3px) calc(var(--h) * 12px) rgba(240, 120, 50, calc(var(--h) * .4)),
    0 calc(var(--h) * -6px) calc(var(--h) * 20px) rgba(200, 50, 30, calc(var(--h) * .3));
}
/* While a word is alight its letters waver a little, like a candle flame */
.prologue__text .w.is-burning { filter: url(#flame-warp); }
.stardust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.prologue__line {
  margin-top: clamp(44px, 8vh, 88px);
  font-family: var(--caps); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.7rem, 3.4vw, 3.2rem); line-height: 1.15; letter-spacing: .02em;
  color: var(--gold);
}
.prologue__line::before {
  content: ""; display: block; width: 64px; height: 1px; margin: 0 auto clamp(32px, 5vh, 48px); background: var(--gold);
}

/* ---------- Section titles ---------- */

.section-title {
  font-family: var(--caps); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: 1.12; letter-spacing: .03em;
  color: var(--ivory);
}
.section-title::after {
  content: ""; display: block; width: 64px; height: 1px; margin-top: 22px; background: var(--gold);
}
#books-title [data-i18n="books.t2"] { color: var(--gold); }

/* ---------- Books: three volumes, each in the light of its own cover ---------- */

.books { padding-top: clamp(40px, 8vh, 100px); }
.books__head { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 7vh, 80px); }
.volume {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center;
  background: var(--ink-1);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 110px);
          mask-image: linear-gradient(180deg, transparent 0, #000 110px);
}
.volume__art {
  position: absolute; inset: -24px; z-index: -2;
  background-size: cover; background-position: 50% 30%;
  filter: blur(2px) brightness(.55) saturate(1.15);
  transform: scale(1.04);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
.volume::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 55% at 26% 55%, color-mix(in srgb, var(--tint) 18%, transparent), transparent 70%),
    linear-gradient(90deg, rgba(12, 11, 20, .25) 0%, rgba(12, 11, 20, .55) 38%, rgba(12, 11, 20, .9) 66%),
    linear-gradient(180deg, rgba(12, 11, 20, .6), transparent 22%, transparent 78%, rgba(12, 11, 20, .75));
}
/* Darkens a volume as the next one slides over it (main.js sets --dim): only opacity changes, so nothing repaints */
.volume::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--ink-0); opacity: var(--dim, 0);
}
.volume__inner {
  width: min(1240px, 100% - 2 * var(--gutter)); margin: 0 auto;
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: calc(var(--nav-h) + 32px) 0 56px;
}
.volume__cover { margin: 0; justify-self: center; }
.volume__cover img {
  width: clamp(220px, 23vw, 340px);
  box-shadow: 0 44px 64px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(233, 184, 94, .3);
}
.volume__title {
  display: flex; align-items: baseline; gap: .45em;
  font-family: var(--caps); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: 1.08; letter-spacing: .03em;
}
.volume__num { font-family: var(--deco); font-weight: 400; font-size: 1.35em; line-height: 1; }
.volume__meta {
  margin-top: 12px;
  font-family: var(--caps); font-weight: 600; font-size: .88rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--tint);
}
.volume__hook { margin-top: 22px; font-size: clamp(1.2rem, .6vw + 1rem, 1.5rem); font-style: italic; line-height: 1.35; max-width: 36ch; }
.volume__body { margin-top: 20px; max-width: 60ch; color: var(--ivory-2); display: grid; gap: 1em; }
.volume__tags {
  list-style: none; padding: 0; margin: 24px 0 30px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0;
  font-family: var(--caps); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-hi);
}
.volume__tags li + li::before {
  content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 14px 2px;
  background: var(--ember); transform: rotate(45deg);
}

/* Stack the volumes only where each fits on one screen */
@media (min-width: 901px) and (min-height: 700px) {
  .volume { position: sticky; top: 0; height: 100svh; }
}

/* ---------- Cast ---------- */

.cast { padding: clamp(120px, 18vh, 200px) var(--gutter); max-width: 1240px; margin: 0 auto; }
.cast__art { position: relative; margin: clamp(40px, 7vh, 72px) auto 0; }
.figure { position: relative; aspect-ratio: 848 / 750; max-width: 900px; margin: 0 auto; }
.figure img {
  width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 78% 74% at 50% 48%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 78% 74% at 50% 48%, #000 58%, transparent 100%);
}
.figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 72% 70% at 50% 45%, transparent 55%, rgba(12, 11, 20, .9) 100%);
}
.figure__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.figure__lines path {
  fill: none; stroke: var(--gold-hi); stroke-width: 2;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .9));
  transition: stroke .25s, stroke-width .25s;
}
.figure__lines path.is-lit { stroke: var(--ember); stroke-width: 3.5; }
.callout {
  position: absolute; z-index: 2;
  font-family: var(--caps); font-weight: 700; font-size: clamp(.78rem, 1vw, .95rem); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--gold-hi); background: rgba(12, 11, 20, .82);
  padding: 7px 12px; box-shadow: inset 0 0 0 1px rgba(233, 184, 94, .55);
  transition: background-color .2s, color .2s;
}
.callout:hover, .callout.is-lit { background: var(--gold); color: var(--ink-0); }
.cast__art figcaption { margin-top: 12px; text-align: center; font-size: .85rem; font-style: italic; color: var(--ivory-3); }
.cast__people {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(40px, 7vh, 72px);
}
.person { padding-top: 28px; border-top: 1px solid var(--gold-line); transition: border-color .3s; }
.person.is-lit { border-top-color: var(--gold); }
.person__name {
  font-family: var(--caps); font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1.08;
  transition: color .3s;
}
.person.is-lit .person__name { color: var(--gold-hi); }
.person__meta {
  margin-top: 10px; font-family: var(--caps); font-weight: 600; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.person__text { margin-top: 16px; color: var(--ivory-2); max-width: 52ch; }

/* ---------- Velmar: an index of the world ---------- */

.world { padding: 0 var(--gutter) clamp(120px, 18vh, 200px); max-width: 1240px; margin: 0 auto; }
/* Same columns as .entry below, so the lead starts on the entry text line and sits on the title's baseline. */
.world__head {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(16px, 3vw, 48px);
  align-items: last baseline; padding: 0 12px;
}
.world__head .section-title { grid-column: 1 / 3; }
.world__lead { grid-column: 3; font-size: clamp(1.2rem, .8vw + 1rem, 1.55rem); font-style: italic; line-height: 1.35; max-width: 34ch; color: var(--ivory-2); }
.index { list-style: none; margin: clamp(40px, 7vh, 72px) 0 0; padding: 0; border-top: 1px solid var(--gold-line); }
.entry {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(24px, 4vh, 36px) 12px;
  border-bottom: 1px solid var(--gold-line);
  transition: background-color .3s var(--ease-out);
}
.entry:hover { background-color: rgba(255, 154, 77, .05); }
.entry__num { font-family: var(--deco); font-size: 1.6rem; line-height: 1; }
.entry__title {
  font-family: var(--caps); font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem); line-height: 1.15;
  transition: color .25s;
}
.entry:hover .entry__title { color: var(--gold-hi); }
.entry__date {
  margin-top: 8px; font-family: var(--caps); font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}
.entry__text { color: var(--ivory-2); max-width: 56ch; }

/* ---------- Author ---------- */

.author { padding: 0 var(--gutter) clamp(120px, 18vh, 200px); max-width: 860px; margin: 0 auto; text-align: center; }
.author .section-title::after { margin-left: auto; margin-right: auto; }
.author__text { margin-top: 28px; color: var(--ivory-2); font-size: clamp(1.1rem, .5vw + 1rem, 1.35rem); }

/* ---------- Finale ---------- */

.finale {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(120px, 18vh, 200px) var(--gutter) clamp(90px, 14vh, 150px);
  text-align: center;
}
.finale > *:not(.smoke):not(.embers) { position: relative; z-index: 1; }
.finale__title {
  font-family: var(--caps); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.1; letter-spacing: .03em; max-width: 16ch; margin: 0 auto;
}
.finale__title::after { content: ""; display: block; width: 64px; height: 1px; margin: 28px auto 0; background: var(--gold); }
.finale__books {
  margin: clamp(56px, 9vh, 96px) auto 0; max-width: 1040px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end;
}
.buy { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; transition: transform .5s var(--ease-out); }
.buy img { width: clamp(150px, 14vw, 210px); margin-bottom: 18px; box-shadow: 0 36px 50px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(233, 184, 94, .28); }
.buy:hover { transform: translateY(-6px); }
.buy__title { font-family: var(--caps); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; }
.buy__num { font-family: var(--deco); font-weight: 400; margin-right: .2em; }
.buy__cta {
  margin-top: 6px; font-family: var(--caps); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-hi); padding: 10px 18px; box-shadow: inset 0 0 0 1px rgba(233, 184, 94, .55);
  transition: background-color .2s, color .2s;
}
.buy:hover .buy__cta { background: var(--gold); color: var(--ink-0); }

/* English editions not out yet */
.is-soon { cursor: default; pointer-events: none; }
.btn.is-soon { filter: saturate(.6); opacity: .8; }
.buy.is-soon .buy__cta { box-shadow: inset 0 0 0 1px rgba(233, 184, 94, .3); color: var(--ivory-2); }

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

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding: 28px var(--gutter);
  font-size: .95rem; color: var(--ivory-3);
  background: transparent;
  border-top: 1px solid rgba(233, 184, 94, .16);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { color: var(--ivory-2); text-decoration: none; }
.footer a:hover { color: var(--gold-hi); text-decoration: underline; }
.footer__legal { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 14px; border-top: 1px solid rgba(233, 184, 94, .1); font-size: .85rem; }
.footer__legal a { color: var(--ivory-3); }

/* ---------- Legal pages ---------- */

.legal-page .nav { position: sticky; }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 9vh, 96px) var(--gutter) clamp(80px, 14vh, 140px); }
.legal__title {
  font-family: var(--caps); font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1;
}
.legal__title::after { content: ""; display: block; width: 64px; height: 1px; margin-top: 20px; background: var(--gold); }
.legal__date { margin-top: 18px; font-size: .9rem; color: var(--ivory-3); }
.legal h2 {
  margin-top: 44px; font-family: var(--caps); font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  font-size: 1.05rem; color: var(--gold-hi);
}
.legal p, .legal li { color: var(--ivory-2); max-width: 66ch; }
.legal p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--gold-hi); }
.todo { background: rgba(255, 154, 77, .18); color: #ffd8b0; padding: 0 .3em; border-radius: 2px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav { display: flex; justify-content: space-between; } /* no centre links here, so no centre column */
  .nav__links { display: none; }
  /* Tighter rhythm on phones: the desktop gaps left whole empty screens between sections */
  .prologue { padding: 96px var(--gutter) 64px; }
  .books { padding-top: 24px; }
  .books__head { padding-bottom: 8px; }
  .volume {
    min-height: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px);
            mask-image: linear-gradient(180deg, transparent 0, #000 40px);
  }
  .volume__inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 64px; }
  .cast { padding-top: 96px; padding-bottom: 96px; }
  .world, .author { padding-bottom: 96px; }
  .finale { padding-top: 96px; }
  .volume__cover img { width: min(240px, 60vw); }
  .volume::before {
    background:
      linear-gradient(180deg, rgba(12, 11, 20, .55), rgba(12, 11, 20, .9) 45%, rgba(12, 11, 20, .94));
  }
  .cast__people { grid-template-columns: 1fr; }
  .world__head { grid-template-columns: 1fr; gap: 24px; }
  .world__head .section-title, .world__lead { grid-column: auto; }
  .entry { grid-template-columns: 48px minmax(0, 1fr); }
  .entry__text { grid-column: 2; }
  .finale__books { grid-template-columns: 1fr; max-width: 320px; gap: 56px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .nav { gap: 10px; }
  .nav__brand { font-size: 1rem; }
}

@media (max-width: 480px) {
  .nav__brand { font-size: .9rem; }
  .hero__logo { --tl: clamp(2.2rem, 11vw, 3rem); }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .callout { font-size: .7rem; padding: 4px 8px; }
}

/* Phones and tablets: the full-screen grain blend and the wavering-letter SVG filter
   cost a repaint of the whole screen on every scrolled frame */
@media (hover: none) {
  body::after { display: none; }
  .prologue__text .w.is-burning { filter: none; }
}

/* Reduced motion: keep every end state, drop the movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
