/* ==========================================================================
   Joshua Heath — author site
   Palette pulled from the Saving Cash cover: blood red, char black, bone,
   and Chokfi's turquoise as the one cool accent.
   ========================================================================== */

:root {
  --char: #0e0201;
  --char-2: #170403;
  --char-3: #22070480;
  --oxblood: #3a0a05;
  --blood: #5a0c06;
  --red: #921305;
  --red-hi: #b62d15;
  --ember: #e2552a;
  --glow: #f3d7a0;
  --bone: #efe3c9;
  --bone-2: #d9c7a2;
  --bone-3: #a8977a;
  --gold: #d6b37e;
  --teal: #62bdb7;
  --teal-hi: #8ad8d2;

  --f-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --f-body: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-label: "Big Shoulders Text", "Arial Narrow", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--char);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: clamp(17px, 1.05rem + .15vw, 19.5px);
  line-height: 1.7;
  font-optical-sizing: auto;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain over everything — the cover is a textured print, so the site is too. */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .16;
  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' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: var(--teal); color: var(--char); }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--bone); color: var(--char); padding: 10px 16px;
  font-family: var(--f-label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
em, i { font-style: italic; }

.label {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: .9em;
}
.label::before {
  content: ""; width: 7px; height: 7px; background: currentColor;
  transform: rotate(45deg); flex: none;
}
.label--teal { color: var(--teal); }

.display {
  font-size: clamp(3rem, 1.6rem + 6vw, 7.2rem);
  line-height: .9;
  letter-spacing: -.02em;
}
.h2 { font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem); line-height: .95; }
.h3 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); }

.lede {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.2rem);
  line-height: 1.22;
  color: var(--bone);
}
.muted { color: var(--bone-2); }

.dropcap::first-letter {
  font-family: var(--f-display);
  font-weight: 700;
  float: left;
  font-size: 4.6em;
  line-height: .78;
  padding: .08em .1em 0 0;
  color: var(--glow);
}

/* The cover's title bars: a rule, a string of diamonds, a rule. */
.ornament {
  display: flex; align-items: center; gap: 14px;
  color: var(--gold);
  margin: 0 0 28px;
}
.ornament::before, .ornament::after {
  content: ""; height: 3px; flex: 1;
  background: linear-gradient(90deg, transparent, currentColor 30%, currentColor 70%, transparent);
  clip-path: polygon(0 50%, 6% 0, 100% 0, 100% 100%, 6% 100%);
}
.ornament::after { clip-path: polygon(0 0, 94% 0, 100% 50%, 94% 100%, 0 100%); }
.ornament span { display: flex; gap: 7px; align-items: center; }
.ornament i { width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); }
.ornament i:nth-child(2) { width: 10px; height: 10px; }
.ornament--left::before { display: none; }

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

.btn {
  --b: var(--bone);
  display: inline-flex; align-items: center; gap: .7em;
  padding: 1.05em 1.6em 1em;
  font-family: var(--f-label); font-weight: 700; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--char); background: var(--b);
  border: 0; cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--teal-hi); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn--ghost { position: relative; background: transparent; color: var(--bone); }
.btn--ghost:hover { background: rgba(98, 189, 183, .12); color: var(--teal-hi); }
/* The outline keeps the solid button's skewed shape. Its border is a hollow
   parallelogram drawn on ::before, since a box-shadow would be clipped off the slanted sides. */
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(239, 227, 201, .45);
  clip-path: polygon(evenodd,
    10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%, 10px 0,
    11.2px 1.5px, calc(100% - 1.8px) 1.5px, calc(100% - 11.2px) calc(100% - 1.5px), 1.8px calc(100% - 1.5px), 11.2px 1.5px);
  transition: background .25s var(--ease);
}
.btn--ghost:hover::before { background: var(--teal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link {
  color: var(--teal); text-decoration: none; font-family: var(--f-label); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; font-size: .8rem;
  display: inline-flex; align-items: center; gap: .6em;
  border-bottom: 1px solid rgba(98, 189, 183, .4); padding-bottom: 4px;
  transition: gap .25s var(--ease), color .25s;
}
.text-link:hover { gap: 1em; color: var(--teal-hi); }

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

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
}
/* The frosted bar lives on ::before: backdrop-filter on the header itself would make it the
   containing block for the fixed mobile menu, squeezing the menu into the header's height. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  opacity: 0; transition: opacity .35s var(--ease);
  background: rgba(14, 2, 1, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(214, 179, 126, .14);
}
.site-header.is-solid::before { opacity: 1; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1;
}
.wordmark svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.wordmark__eye { fill: #e2301a; filter: drop-shadow(0 0 2px rgba(255, 59, 31, .7)); }

.nav ul { display: flex; gap: clamp(18px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative;
  font-family: var(--f-label); font-weight: 600; font-size: .82rem; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; color: var(--bone-2); padding: 8px 0;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px;
  background: var(--teal); transform: translateX(-50%) rotate(45deg) scale(0);
  transition: transform .25s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--bone); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: translateX(-50%) rotate(45deg) scale(1); }

.nav-toggle {
  display: none;
  background: none; border: 0; color: var(--bone); cursor: pointer;
  width: 44px; height: 44px; padding: 10px; margin-right: -10px;
}
.nav-toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(2) { width: 70%; margin-left: auto; }

@media (max-width: 820px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .wordmark { position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    background: var(--char);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav::before {
    content: ""; position: absolute; inset: auto 0 0; height: 45%;
    background: radial-gradient(60% 80% at 50% 100%, rgba(182, 45, 21, .35), transparent 70%);
  }
  .nav ul { flex-direction: column; align-items: center; gap: 26px; position: relative; }
  .nav a { font-family: var(--f-display); font-size: 2.2rem; letter-spacing: .02em; text-transform: none; font-weight: 600; color: var(--bone); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

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

.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 clamp(120px, 16vw, 200px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(38% 55% at 72% 52%, rgba(243, 215, 160, .22), transparent 70%),
    radial-gradient(70% 70% at 72% 60%, rgba(182, 45, 21, .55), transparent 70%),
    linear-gradient(180deg, #080100 0%, #1a0402 55%, #2b0703 100%);
}
.hero__sky, .hero__embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__embers { width: 100%; height: 100%; }

.hero__towers {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  width: 100%; height: auto; min-height: 58%;
  pointer-events: none;
}
.hero__towers .far { fill: #3d0904; }
.hero__towers .near { fill: #1b0301; }
.hero__towers .front { fill: #0e0201; }
.hero__towers .mask { fill: #5b1006; }
.hero__towers .eye { fill: var(--ember); opacity: 0; animation: eyes var(--t, 9s) var(--d, 0s) infinite; filter: drop-shadow(0 0 4px var(--ember)); }
@keyframes eyes {
  0%, 62%, 100% { opacity: 0; }
  66%, 88% { opacity: .95; }
  70%, 72% { opacity: .1; }
}

.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(24px, 5vw, 80px);
}
.hero__copy { position: relative; z-index: 2; }
.hero__copy .label { margin-bottom: 26px; }
.hero__name { font-size: clamp(3.4rem, 1.5rem + 7.4vw, 8.4rem); line-height: .86; letter-spacing: -.025em; text-transform: uppercase; font-weight: 700; }
.hero__name span { display: block; }
.hero__name span:last-child { color: var(--red-hi); padding-left: .42em; text-shadow: 0 0 60px rgba(226, 85, 42, .35); }
.hero__tag { max-width: 30ch; margin: 30px 0 38px; }
.hero__release {
  display: flex; align-items: center; gap: 16px; margin-top: 34px;
  font-family: var(--f-label); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; color: var(--bone-3);
}
.hero__release strong { color: var(--glow); font-weight: 700; }
.hero__release::before { content: ""; width: 38px; height: 1px; background: var(--bone-3); }

.hero__book { position: relative; justify-self: center; width: min(100%, 440px); }
.hero__book::before {
  /* the lit doorway behind the book */
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 46%; width: 118%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%);
  border-radius: 999px 999px 0 0;
  background: radial-gradient(60% 55% at 50% 45%, rgba(243, 215, 160, .38), rgba(226, 85, 42, .18) 50%, transparent 75%);
  filter: blur(8px);
}

/* ---------- The book (3D mockup, cut out) ---------- */

.book {
  display: block; position: relative;
  transform: perspective(1400px) rotateY(-4deg) rotateX(1deg);
  transform-style: preserve-3d;
  transition: transform .8s var(--ease);
  will-change: transform;
}
.book img {
  /* The mockup's canvas is wider than the book so its floor shadow never clips. These offsets
     (from the book's position in the 1742×1460 image) make the book itself fill this box,
     and let the shadow spill past it without affecting layout. */
  width: 209.375%; max-width: none; height: auto;
  margin: -1.923% 0 -7.212% -55.409%;
  filter: drop-shadow(-10px 18px 22px rgba(0, 0, 0, .45));
}
.book--float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }

/* ---------- Section scaffolding ---------- */

.section { position: relative; padding: clamp(90px, 12vw, 170px) 0; }
.section--red {
  background:
    radial-gradient(90% 60% at 15% 0%, rgba(182, 45, 21, .55), transparent 60%),
    radial-gradient(70% 70% at 100% 100%, rgba(14, 2, 1, .55), transparent 70%),
    var(--red);
}
.section--oxblood { background: linear-gradient(180deg, var(--char) 0%, var(--oxblood) 100%); }

/* Jagged, cut-paper tops, like the cliff edges on the cover */
.cut-top {
  margin-top: -56px; padding-top: calc(clamp(90px, 12vw, 170px) + 56px);
  clip-path: polygon(0 34px, 7% 6px, 14% 40px, 23% 12px, 31% 46px, 42% 0, 51% 30px, 60% 8px, 69% 52px, 78% 18px, 86% 38px, 93% 4px, 100% 30px, 100% 100%, 0 100%);
}
.cut-top--alt {
  clip-path: polygon(0 10px, 9% 44px, 17% 14px, 27% 52px, 36% 20px, 45% 44px, 55% 0, 66% 40px, 74% 12px, 83% 48px, 91% 16px, 100% 44px, 100% 100%, 0 100%);
}

.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head .label { margin-bottom: 22px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .ornament { justify-content: center; }

/* ---------- Novel ---------- */

.novel__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.novel__book { position: sticky; top: calc(var(--header-h) + 30px); }
.novel__title { font-size: clamp(3.2rem, 1.8rem + 5vw, 6.4rem); line-height: .88; text-transform: uppercase; font-weight: 700; letter-spacing: -.02em; margin: 18px 0 22px; }
.novel__title span { color: var(--red-hi); }
.novel .lede { margin-bottom: 36px; max-width: 26ch; }
.novel .label { color: var(--glow); }
.novel p { color: var(--bone); }


.facts { list-style: none; padding: 0; margin: 40px 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px 44px; }
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts b { font-family: var(--f-label); font-weight: 700; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--glow); opacity: .85; }
.facts span { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }

/* ---------- Characters ---------- */

.cast { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 26px); }
.card {
  position: relative; margin: 0;
  background: var(--char-2);
  display: flex; flex-direction: column;
}
.card__art {
  aspect-ratio: 4 / 5;
  background-image: url("../img/saving-cash-cover.jpg");
  background-repeat: no-repeat;
  position: relative; overflow: hidden;
  transition: background-size 1.2s var(--ease), filter .6s;
  filter: saturate(.92);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 88% 100%, 0 100%);
}
.card__art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 2, 1, .65));
}
.card:hover .card__art { filter: saturate(1.1); }
.card--koni .card__art { background-size: 284%; background-position: 27% 39.6%; }
.card--cash .card__art { background-size: 426%; background-position: 81.6% 49.4%; }
.card--chokfi .card__art { background-size: 284%; background-position: 9% 70%; }
.card--eater .card__art { background-size: 457%; background-position: 100% 70%; }
.card:hover.card--koni .card__art { background-size: 298%; }
.card:hover.card--cash .card__art { background-size: 445%; }
.card:hover.card--chokfi .card__art { background-size: 298%; }
.card:hover.card--eater .card__art { background-size: 475%; }

.card figcaption { padding: 22px 22px 26px; }
.card h3 { font-size: 1.9rem; margin: 8px 0 10px; }
.card p { font-size: .93rem; line-height: 1.6; color: var(--bone-2); margin: 0; }
.card .label { font-size: .68rem; }
.card--chokfi .label { color: var(--teal); }
.card--chokfi h3 { color: var(--teal-hi); }

/* ---------- Quote ---------- */

.quote {
  position: relative; overflow: hidden;
  padding: clamp(110px, 16vw, 220px) 0;
  text-align: center;
  background:
    radial-gradient(50% 80% at 50% 100%, rgba(226, 85, 42, .28), transparent 70%),
    var(--char);
}
.quote blockquote { margin: 0 auto; }
.quote blockquote p { max-width: 14ch; margin-inline: auto; }
.quote p {
  font-family: var(--f-display); font-weight: 500; font-style: italic;
  font-size: clamp(2.3rem, 1.2rem + 4.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.015em; margin: 0;
}
.quote p em { font-style: normal; color: var(--glow); }
.quote cite {
  display: block; margin-top: 34px; font-style: normal;
  font-family: var(--f-label); font-weight: 600; letter-spacing: .26em; text-transform: uppercase; font-size: .78rem; color: var(--bone-3);
}
.quote .flicker { animation: flicker 6s infinite; }
@keyframes flicker {
  0%, 100% { text-shadow: 0 0 28px rgba(243, 215, 160, .35); }
  42% { text-shadow: 0 0 36px rgba(243, 215, 160, .5); }
  44% { text-shadow: 0 0 14px rgba(243, 215, 160, .15); }
  47% { text-shadow: 0 0 32px rgba(243, 215, 160, .45); }
}

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

.author__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.portrait { position: relative; margin: 0; max-width: 460px; }
.portrait__frame {
  position: relative;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 0 0 1px rgba(214, 179, 126, .35), 0 0 0 12px var(--char), 0 0 0 13px rgba(214, 179, 126, .22), 0 40px 80px -20px rgba(0, 0, 0, .8);
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  filter: grayscale(1) sepia(.35) contrast(1.08) brightness(.9);
  transition: filter 1s var(--ease), transform 1.4s var(--ease);
}
.portrait:hover img { filter: none; transform: scale(1.03); }
.portrait__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(58, 10, 5, .55));
  mix-blend-mode: multiply;
}
.portrait figcaption {
  margin-top: 26px; text-align: center;
  font-family: var(--f-label); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; font-size: .72rem; color: var(--bone-3);
}

.creds { list-style: none; margin: 38px 0 0; padding: 30px 0 0; border-top: 1px solid rgba(214, 179, 126, .2); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.creds li { font-size: .92rem; line-height: 1.5; color: var(--bone-2); }
.creds b { display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; color: var(--bone); margin-bottom: 4px; line-height: 1.1; }

.themes { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 30px; padding: 0; list-style: none; }
.themes li {
  font-family: var(--f-display); font-style: italic; font-size: 1.2rem; font-weight: 600;
  padding: 6px 16px 7px; border: 1px solid rgba(98, 189, 183, .45); color: var(--teal-hi);
}

/* ---------- Events / release ---------- */

.release { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
/* The words' last line sits on the digits' baseline, so all three lines stand beside the number. */
.countdown { display: flex; align-items: flex-end; align-items: last baseline; gap: 12px 22px; flex-wrap: wrap; margin: 16px 0 26px; }
.countdown__num {
  font-family: var(--f-display); font-weight: 700; line-height: .8;
  font-size: clamp(6rem, 3rem + 11vw, 12.5rem); letter-spacing: -.04em;
  color: var(--glow);
  text-shadow: 0 0 40px rgba(226, 85, 42, .45);
  font-variant-numeric: lining-nums tabular-nums;
}
.countdown__unit { font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, .9rem + 1.3vw, 2.3rem); line-height: 1; max-width: 9ch; }
.release__date { font-family: var(--f-display); font-size: clamp(2rem, 1.3rem + 2.4vw, 3.3rem); font-weight: 700; line-height: 1; margin: 0 0 26px; }

.notes { list-style: none; padding: 0; margin: 0 0 36px; border-top: 1px solid rgba(214, 179, 126, .2); }
.notes li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(214, 179, 126, .2); }
.notes b { font-family: var(--f-label); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: .74rem; color: var(--gold); padding-top: 5px; }
.notes span { color: var(--bone-2); }
.release__book { width: min(100%, 360px); justify-self: center; }

/* ---------- Newsletter signup ---------- */

.signup { margin-top: 38px; padding-top: 30px; border-top: 1px solid rgba(214, 179, 126, .25); max-width: 560px; }
.signup__label { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; line-height: 1.15; margin: 0 0 6px; }
.signup__note { color: var(--bone-2); font-size: .95rem; margin: 0 0 18px; }
.signup__row { display: flex; gap: 12px; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  font: inherit; font-size: 1rem; color: var(--bone);
  background: rgba(14, 2, 1, .45);
  border: 1.5px solid rgba(239, 227, 201, .35); border-radius: 0;
  padding: .85em 1em;
  transition: border-color .2s, background .2s;
}
.signup input[type="email"]::placeholder { color: var(--bone-3); }
.signup input[type="email"]:focus { outline: none; border-color: var(--teal); background: rgba(14, 2, 1, .65); }
.signup .btn:disabled { opacity: .6; cursor: progress; }
.signup__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup__status { min-height: 1.5em; margin: 12px 0 0; font-size: .95rem; color: var(--bone-2); }
.signup[data-state="done"] .signup__status { color: var(--teal-hi); }
.signup[data-state="error"] .signup__status { color: var(--glow); }
.signup__next { margin-top: 12px; }

/* ---------- Contact ---------- */

.contact__inner { text-align: center; max-width: 720px; }
.contact .label { justify-content: center; margin-bottom: 20px; }
.contact .h2 { margin-bottom: 20px; }
.contact .lede { margin: 0 auto 34px; max-width: 30ch; }
.contact__pending {
  margin: 0; font-family: var(--f-label); font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  font-size: .8rem; color: var(--bone-3);
}

/* ---------- Journal ---------- */

.post-card {
  display: grid; grid-template-columns: 200px 1fr auto; gap: clamp(24px, 4vw, 60px); align-items: start;
  padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid rgba(214, 179, 126, .25); border-bottom: 1px solid rgba(214, 179, 126, .25);
  text-decoration: none;
}
.post-card time { font-family: var(--f-label); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: .78rem; color: var(--gold); padding-top: 12px; }
.post-card h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); margin-bottom: 14px; transition: color .25s; }
.post-card p { color: var(--bone-2); margin: 0; max-width: 60ch; }
.post-card:hover h3 { color: var(--teal-hi); }
.post-card .arrow { width: 54px; height: 54px; border: 1px solid rgba(239, 227, 201, .35); display: grid; place-items: center; transform: rotate(45deg); transition: background .3s, border-color .3s; margin-top: 10px; }
.post-card .arrow svg { transform: rotate(-45deg); width: 20px; }
.post-card:hover .arrow { background: var(--teal); border-color: var(--teal); color: var(--char); }

.tags { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; padding: 0; margin: 20px 0 0; }
.tags li { font-family: var(--f-label); font-weight: 600; font-size: .78rem; letter-spacing: .1em; color: var(--bone-3); }

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

.site-footer {
  position: relative; overflow: hidden;
  padding: 110px 0 40px;
  background: #070100;
  border-top: 1px solid rgba(214, 179, 126, .12);
}
.tracks { position: absolute; left: 0; right: 0; top: 34px; height: 40px; width: 100%; color: var(--teal); opacity: .55; pointer-events: none; }
.tracks g { opacity: 0; transition: opacity .4s; }
.tracks.is-hopping g { animation: hop 7s linear infinite; }
@keyframes hop { 0% { opacity: 0; } 4% { opacity: 1; } 60% { opacity: .7; } 80%, 100% { opacity: 0; } }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: start; }
.footer__name { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); text-transform: uppercase; font-weight: 700; letter-spacing: .02em; line-height: .9; }
.footer__line { color: var(--bone-3); margin-top: 18px; max-width: 34ch; font-size: .95rem; }
.site-footer h4 { font-family: var(--f-label); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; font-size: .74rem; color: var(--gold); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer li a { text-decoration: none; color: var(--bone-2); transition: color .2s; }
.site-footer li a:hover { color: var(--teal-hi); }
.site-footer li small { display: block; color: var(--bone-3); font-size: .82rem; line-height: 1.4; margin-top: 2px; }
.footer__base {
  margin-top: 80px; padding-top: 26px; border-top: 1px solid rgba(214, 179, 126, .12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--f-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .7rem; color: var(--bone-3);
}

/* ---------- Book page ---------- */

.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(50px, 8vw, 110px)) 0 clamp(80px, 10vw, 140px);
  background:
    radial-gradient(45% 60% at 30% 45%, rgba(243, 215, 160, .2), transparent 70%),
    radial-gradient(70% 80% at 30% 60%, rgba(182, 45, 21, .5), transparent 70%),
    linear-gradient(180deg, #080100, #240502);
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: url("../img/saving-cash-cover.jpg") 80% 40% / cover no-repeat;
  opacity: .16; filter: blur(2px) saturate(.8);
  mask-image: linear-gradient(90deg, transparent 30%, #000 80%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 80%);
}
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.page-hero .book { width: min(100%, 420px); justify-self: center; }
.page-hero h1 { font-size: clamp(3.6rem, 2rem + 6.4vw, 8rem); text-transform: uppercase; font-weight: 700; line-height: .86; letter-spacing: -.025em; margin: 22px 0 26px; }
.page-hero .lede { max-width: 24ch; margin-bottom: 34px; }

.prose { max-width: 66ch; }
.prose p { color: var(--bone); }
.prose--center { margin-inline: auto; }

/* The Journey — a zigzag road into the underworld, drawn as you scroll */
.journey { position: relative; background: linear-gradient(180deg, var(--char) 0%, #1c0402 45%, #050000 100%); overflow: hidden; }
.journey__track { position: relative; margin-top: 30px; }
.journey__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* The Path of Souls: a silver Milky Way. Revealed by a stroke mask as you scroll. */
.journey__svg path { fill: none; }
.journey__svg .road-hint { stroke: rgba(220, 228, 240, .14); stroke-width: 1; stroke-dasharray: 1 9; stroke-linecap: round; }
.journey__svg .road-glow { stroke: rgba(200, 212, 232, .16); stroke-width: 34; stroke-linecap: round; filter: url(#path-haze); }
.journey__svg .road-core { stroke: rgba(236, 240, 248, .38); stroke-width: 1; stroke-linecap: round; }
.journey__svg .road-mask { stroke: #fff; stroke-width: 130; stroke-linecap: round; filter: url(#mask-feather); }
.journey__svg .road-dust { fill: #eef2fa; }
.journey__svg .spark { fill: #fff; transition: opacity .3s; }
.journey__svg .spark circle { fill: rgba(236, 242, 255, .22); filter: blur(3px); }
.journey__svg .tw, .glyph .tw { animation: twinkle var(--tw, 3s) var(--td, 0s) ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .1; } }
.stop {
  position: relative; width: calc(50% - 70px); padding: 30px 0; margin-bottom: clamp(40px, 7vw, 90px);
  opacity: .25; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.stop.is-lit { opacity: 1; transform: none; }
.stop:nth-child(even) { margin-left: auto; }
.stop__where { font-family: var(--f-label); font-weight: 700; letter-spacing: .26em; text-transform: uppercase; font-size: .76rem; color: var(--gold); }
.stop h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); margin: 10px 0 14px; }
.stop p { color: var(--bone-2); margin: 0; }
.stop--chokfi .stop__where, .stop--chokfi h3 { color: var(--teal-hi); }
.stop--end h3 { color: var(--glow); }
/* Each stop's constellation. The mark is a zero-size point the path passes through;
   the drawing is centred on it, with the main star exactly on the path. */
.stop__mark { position: absolute; top: 52px; width: 0; height: 0; }
.stop:nth-child(odd) .stop__mark { right: -110px; }
.stop:nth-child(even) .stop__mark { left: -110px; }
.glyph { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); overflow: visible; pointer-events: none;
  opacity: .22; transition: opacity 1.2s var(--ease), filter 1.2s var(--ease); }
.stop.is-lit .glyph { opacity: 1; filter: drop-shadow(0 0 5px rgba(220, 230, 255, .35)); }
.glyph .c-line { fill: none; stroke: rgba(222, 230, 244, .5); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.glyph .c-star { fill: #f4f7ff; }
.glyph .c-main { fill: #ff4a2e; filter: drop-shadow(0 0 3px rgba(255, 74, 46, .9)); }
.glyph .c-dust { fill: #e8eefa; opacity: .55; }
.glyph .c-halo { fill: rgba(255, 70, 40, .32); filter: blur(5px); }
.stop.is-lit .c-main { animation: pulse 4.5s ease-in-out infinite; transform-box: fill-box; }
@keyframes pulse { 50% { opacity: .78; } }

/* Cash in the doorway, from the cover art, fading into the dark at its edges */
.door { position: relative; width: min(300px, 78%); margin: 0 auto; }
.door::before {
  content: ""; position: absolute; inset: 8% 12% 24%; z-index: -1; border-radius: 999px 999px 0 0;
  background: radial-gradient(50% 55% at 50% 50%, rgba(243, 215, 160, .45), rgba(226, 85, 42, .2) 60%, transparent 75%);
  filter: blur(24px);
}
.door img {
  width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(52% 50% at 50% 46%, #000 58%, transparent 100%);
  mask-image: radial-gradient(52% 50% at 50% 46%, #000 58%, transparent 100%);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li {
  font-family: var(--f-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem;
  padding: 10px 16px; background: rgba(14, 2, 1, .5); border: 1px solid rgba(239, 227, 201, .22);
}

.comps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 40px; }
.comps li { padding: 20px 0; border-bottom: 1px solid rgba(214, 179, 126, .2); display: flex; flex-direction: column; gap: 2px; }
.comps i { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.comps span { font-size: .9rem; color: var(--bone-3); }

.two-col { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: start; }

/* ---------- Article (journal post) ---------- */

.article-hero { padding: calc(var(--header-h) + clamp(60px, 9vw, 120px)) 0 50px; background: radial-gradient(60% 90% at 50% 0%, rgba(146, 19, 5, .45), transparent 70%), var(--char); }
.article-hero h1 { font-size: clamp(2.8rem, 1.6rem + 4.6vw, 6rem); margin: 20px 0 22px; max-width: 16ch; }
.article-hero time { font-family: var(--f-label); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; font-size: .8rem; color: var(--gold); }
.article-body { padding: 40px 0 clamp(90px, 12vw, 160px); }
.article-body .prose p { font-size: 1.12em; }
.back { margin-top: 50px; }

/* ---------- 404 ---------- */

.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 0 80px;
  background: radial-gradient(50% 60% at 50% 70%, rgba(182, 45, 21, .45), transparent 70%), var(--char); }
.lost__num { font-family: var(--f-display); font-weight: 700; font-size: clamp(7rem, 4rem + 14vw, 15rem); line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--teal); }
.lost h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); margin: 26px 0 16px; }
.lost p { color: var(--bone-2); max-width: 44ch; margin: 0 auto 34px; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .12s; }
.js .reveal[data-delay="2"] { transition-delay: .24s; }
.js .reveal[data-delay="3"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .stop { opacity: 1; transform: none; }
}

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

@media (max-width: 1080px) {
  .cast { grid-template-columns: repeat(2, 1fr); }
  .creds { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .hero { padding-bottom: 120px; }
  .hero__grid, .novel__grid, .author__grid, .release, .page-hero__grid, .two-col { grid-template-columns: 1fr; }
  .hero__book { width: min(64%, 290px); margin-top: 18px; }
  .hero__copy { text-align: left; }
  .hero__tag { margin: 22px 0 30px; }
  .novel__book { display: none; }
  .portrait { margin-inline: auto; width: min(100%, 380px); }
  .release__book { order: -1; width: min(60%, 260px); }
  .page-hero .book { width: min(68%, 320px); }
  .facts { grid-template-columns: repeat(2, auto); }
  .post-card { grid-template-columns: 1fr; gap: 12px; }
  .post-card time { padding-top: 0; }
  .post-card .arrow { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .notes li { grid-template-columns: 1fr; gap: 4px; }

  .stop { width: auto; margin-left: 84px !important; padding: 20px 0; }
  .stop .stop__mark { left: -50px !important; right: auto !important; top: 44px; }
  .stop:has(.stop__mark[data-glyph="cygnus"], .stop__mark[data-glyph="scorpius"], .stop__mark[data-glyph="orion"]) { margin-top: 70px; }
  .stop .stop__mark:is([data-glyph="cygnus"], [data-glyph="scorpius"], [data-glyph="orion"]) { top: -28px; }
}

@media (max-width: 520px) {
  .cast { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 42% 1fr; }
  .card__art { aspect-ratio: auto; min-height: 100%; clip-path: none; }
  .card figcaption { padding: 18px 18px 20px; }
  .card h3 { font-size: 1.55rem; }
  .facts { grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .btn { padding: 1em 1.3em .95em; }
}
