/* Self-hosted fonts (Cormorant Garamond + Jost), latin subset */
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/cormorantgaramond-400-i.woff2') format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url('../fonts/cormorantgaramond-500-i.woff2') format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/cormorantgaramond-400.woff2') format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/cormorantgaramond-500.woff2') format('woff2');}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/cormorantgaramond-600.woff2') format('woff2');}
@font-face{font-family:'Jost';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/jost-300.woff2') format('woff2');}
@font-face{font-family:'Jost';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/jost-400.woff2') format('woff2');}
@font-face{font-family:'Jost';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/jost-500.woff2') format('woff2');}

/* ===========================================================
   A Dance Through Time, K.M. Pritchard
   Site styles. Gaslit dark theme, gilded gold accent.
   Two eras, one thread: ballet + Victorian gold shifting to
   flamenco ember in the Book Two zone only.
   Built by hand for Cloudflare Pages. No frameworks.
   =========================================================== */

/* ---- Tokens ---------------------------------------------- */
:root {
  /* the night the story lives in, candlelit rather than cold */
  --ink:          #13100b;   /* base, warm brown-black (never pure #000) */
  --ink-raised:   #1c1710;   /* raised surfaces */
  --ink-line:     #2e2820;   /* hairlines */

  /* gaslight */
  --gold:         #c9a24b;
  --gold-bright:  #dcb968;
  --gold-soft:    rgba(201,162,75,0.14);

  /* Book Two only: Andalusian ember (atmosphere, never a button) */
  --ember:        #b3402a;
  --ember-deep:   #6f2114;

  /* parchment text */
  --parchment:    #ece7db;
  --parchment-dim:#a7a094;
  --parchment-faint: #6f6a61;

  --shadow-deep:  0 22px 60px rgba(0,0,0,0.55);
  --radius:       4px;   /* one radius scale, kept sharp + literary */

  --wrap:         1180px;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---- Reset-ish ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--gold-bright); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--parchment); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0 0 0.4em;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }

/* small caps label, used sparingly (max ~1 per few sections) */
.overline {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

/* ---- Buttons (gold is the ONE accent, everywhere) -------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: transform .25s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn-primary { background: var(--gold); color: #1a1509; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-bright); color: #1a1509; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--parchment); }
.btn-ghost:hover { background: var(--gold-soft); color: var(--parchment); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }

/* ---- Intro / preloader: a book flicking through its pages ----
   Pure CSS timeline. Skippable via JS. Hidden entirely under
   reduced-motion (see the media block at the foot of this file). */
.intro {
  position: fixed; inset: 0; z-index: 200; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(62% 60% at 50% 40%, #1c150d, var(--ink) 78%);
  animation: introOut .8s var(--ease) 2.7s forwards;
}
.intro-dismiss { animation: introOut .45s var(--ease) forwards !important; }
/* once per session: skip the intro entirely on return visits within a session */
.intro-seen .intro { display: none; }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

.intro-stage { position: relative; display: grid; justify-items: center; gap: clamp(2rem, 4.5vw, 3.2rem); perspective: 2200px; }
.intro-stage::before {   /* warm pool of stage-light behind the whole thing */
  content: ""; position: absolute; inset: -18% -12% 12%; z-index: -1;
  background: radial-gradient(46% 42% at 50% 40%, rgba(201,162,75,0.22), transparent 72%);
}
/* the clock: fades in, then time spins forward before the line lands */
.intro-clock {
  width: clamp(250px, 44vw, 470px); height: auto; color: var(--gold);
  opacity: 0; transform: scale(0.82);
  animation: introClockIn 0.7s var(--ease) 0.05s forwards;
}
@keyframes introClockIn { to { opacity: 0.92; transform: scale(1); } }
.intro-clock .ic-face { opacity: 0.55; }
.intro-clock .ic-num  { opacity: 0.8; }
.intro-clock .ic-hand { stroke: var(--gold); stroke-linecap: round; transform-box: view-box; transform-origin: 300px 300px; }
.ic-min { animation: sweepMin 2.1s cubic-bezier(0.22, 0.4, 0.12, 1) 0.2s both; }
.ic-hr  { animation: sweepHr  2.1s cubic-bezier(0.22, 0.4, 0.12, 1) 0.2s both; }
@keyframes sweepMin { from { transform: rotate(0deg); } to { transform: rotate(540deg); } }
@keyframes sweepHr  { from { transform: rotate(0deg); } to { transform: rotate(45deg); } }
/* a gold flare that blooms from the centre as time settles */
.intro-flare {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 60px 30px rgba(201,162,75,0.0);
  animation: flare 1.3s var(--ease) 1.1s forwards;
}
@keyframes flare {
  0%   { box-shadow: 0 0 40px 16px rgba(201,162,75,0.0); }
  40%  { box-shadow: 0 0 120px 60px rgba(201,162,75,0.35); }
  100% { box-shadow: 0 0 200px 120px rgba(201,162,75,0.0); }
}

.intro-line {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.4rem, 3.6vw, 2.5rem);
  color: var(--parchment); text-align: center; max-width: 20ch; line-height: 1.25;
  opacity: 0; animation: introLineIn 0.7s var(--ease) 0.25s forwards;
}
@keyframes introLineIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.intro-skip {
  position: absolute; bottom: 1.8rem; right: 1.8rem;
  background: none; border: 1px solid var(--ink-line); color: var(--parchment-dim);
  font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.6rem 1.1rem; border-radius: var(--radius); cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.intro-skip:hover { color: var(--gold); border-color: var(--gold); }

/* ---- Navigation ------------------------------------------ */
.gaslight-nav {
  position: sticky; top: 0; z-index: 50;
  height: 68px;
  display: flex; align-items: center;
  background: rgba(15,14,20,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--ink-line);
}
.gaslight-nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav-mark {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--parchment);
}
.nav-mark span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--parchment-dim);
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--parchment); margin: 5px 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- The clock motif (hand-drawn, the time-slip signature) */
.clockwork {
  position: absolute; pointer-events: none; user-select: none;
  color: var(--gold);
  opacity: 0.10;
}
.clockwork-spin { animation: turn 220s linear infinite; transform-origin: 50% 50%; }
@keyframes turn { to { transform: rotate(360deg); } }

/* ---- Hero (type-led: the title sits inside the turning clock) ---- */
.hero-timeslip {
  position: relative; overflow: hidden;
  min-height: calc(100dvh - 68px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  /* gaslight pooling from behind the title, warm bronze low glow, night at the edges */
  background:
    radial-gradient(72% 58% at 50% 40%, rgba(201,162,75,0.20), transparent 62%),
    radial-gradient(95% 82% at 50% 118%, rgba(150,86,40,0.22), transparent 60%),
    var(--ink);
}
/* vignette to deepen the corners into warm gaslit dark */
.hero-timeslip::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(125% 95% at 50% 44%, transparent 54%, rgba(10,7,3,0.9) 100%);
}
.hero-atmos { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.hero-clock {
  position: static;
  width: min(114vh, 134vw, 1060px);
  height: min(114vh, 134vw, 1060px);
  opacity: 0.12;
  color: var(--gold);
}
.hero-centered { position: relative; z-index: 1; max-width: 42ch; margin-inline: auto; }
.hero-title {
  font-size: clamp(2.5rem, 9.5vw, 7.6rem);
  letter-spacing: -0.015em; line-height: 0.98;
  margin: 0.15rem 0 0;
  overflow-wrap: break-word;
}
.hero-title em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero-tagline {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--parchment-dim); line-height: 1.4;
  margin: 1.25rem auto 2.2rem; max-width: 30ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* staggered load-in, disabled under reduced motion (see block below) */
.hero-in { opacity: 0; transform: translateY(18px); animation: heroIn .95s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---- Generic section ------------------------------------- */
.section { padding-block: clamp(4rem, 7vw, 7.5rem); position: relative; }

/* literary flourish: tapering gold rules around a small diamond */
.flourish { display: flex; align-items: center; justify-content: center; gap: 1.1rem; }
.flourish::before, .flourish::after { content: ""; height: 1px; width: clamp(56px, 12vw, 130px); }
.flourish::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.flourish::after  { background: linear-gradient(90deg, var(--gold), transparent); }
.flourish i { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 12px rgba(201,162,75,0.7); }
.section-lede {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  max-width: 20ch;
}
.measure { max-width: 62ch; }
.measure p + p { margin-top: 1.1rem; }
.text-dim { color: var(--parchment-dim); }

/* the hook line, an epigraph moment framed by flourishes */
.hook {
  text-align: center;
  border-block: 1px solid var(--ink-line);
  overflow: hidden;
  background: radial-gradient(58% 130% at 50% 50%, rgba(201,162,75,0.07), transparent 70%);
}
.hook-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: clamp(1.4rem, 3vw, 2.2rem); }
.hook .q {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  color: var(--parchment); max-width: 22ch; margin-inline: auto; line-height: 1.22;
}
.hook .q-attr {
  font-family: var(--font-body); font-size: 0.72rem;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--parchment-faint);
}

/* ---- Book excerpt (Chapter One opening) ------------------ */
.excerpt { max-width: 44rem; margin-inline: auto; }
.excerpt-head { text-align: center; margin-bottom: 2.2rem; }
.excerpt-chapter { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 1.1rem 0 0.5rem; }
.excerpt-setting { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--parchment-dim); margin: 0; }
.excerpt-body { font-family: var(--font-display); font-size: clamp(1.2rem, 1.7vw, 1.42rem); line-height: 1.75; color: var(--parchment); }
.excerpt-body p { margin: 0 0 1.1rem; }
.excerpt-body .thought { font-style: italic; color: var(--gold-bright); }
.excerpt-cta { text-align: center; margin-top: 1.8rem; }

/* ---- Book feature (Book One) ----------------------------- */
.book-feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.book-feature .cover-hold { position: relative; width: 100%; display: flex; justify-content: center; }
.book-feature .cover-hold img {
  width: min(360px, 80vw); border-radius: var(--radius);
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(201,162,75,0.2), 0 0 80px 6px rgba(201,162,75,0.16);
}
.book-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.6rem 0; padding-top: 1.4rem; border-top: 1px solid var(--ink-line); }
.book-meta div { font-size: 0.92rem; }
.book-meta .k { color: var(--parchment-faint); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-bottom: 0.15rem; }
.book-meta .v { color: var(--parchment); }
.buy-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.6rem; }

/* ---- Review strip / wall --------------------------------- */
.stars { color: var(--gold); letter-spacing: 0.2em; font-size: 0.95rem; }
.review-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr);
  gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; margin-inline: calc(clamp(1.25rem, 5vw, 3rem) * -1); padding-inline: clamp(1.25rem, 5vw, 3rem);
  scrollbar-width: thin; scrollbar-color: var(--ink-line) transparent;
}
.review {
  margin: 0;               /* blockquote resets its default 40px UA margin */
  scroll-snap-align: start;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 1.8rem;
  background: linear-gradient(180deg, var(--ink-raised), var(--ink));
}
.review .quote { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.4; color: var(--parchment); margin: 0.9rem 0 1.2rem; }
.review .who { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--parchment-dim); }

/* auto-scrolling review marquee (pauses on hover, fades at the edges) */
.marquee { position: relative; width: 100%; overflow: hidden; margin-top: clamp(2rem, 4vw, 3rem); }
.marquee-track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-group { display: flex; gap: 0.6rem; padding-right: 0.6rem; }
.marquee .review { flex: 0 0 auto; width: min(380px, 84vw); padding: 1.9rem 2rem; }
.marquee .review .stars { font-size: 0.9rem; }
.marquee .review .quote { font-size: 1.2rem; line-height: 1.4; margin: 0.8rem 0 1.1rem; }
.marquee .review .who { font-size: 0.74rem; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; pointer-events: none;
  width: clamp(48px, 12%, 180px);
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--ink-raised), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--ink-raised), transparent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* wall variant (books page) */
.review-wall { columns: 2; column-gap: 1.5rem; }
.review-wall .review { break-inside: avoid; margin-bottom: 1.5rem; display: block; }
@media (max-width: 720px) { .review-wall { columns: 1; } }

/* ---- Author preview / photo ------------------------------ */
.author-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.author-portrait { position: relative; }
.author-portrait img {
  width: 100%; border-radius: var(--radius);
  filter: grayscale(0.12) contrast(1.02);
  box-shadow: var(--shadow-deep);
}
.author-portrait figcaption { margin-top: 0.7rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--parchment-faint); }

/* ---- Book Two: the ember zone (deliberate era shift) ----- */
.era-shift {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 80% at 70% 20%, rgba(179,64,42,0.34), transparent 55%),
    radial-gradient(70% 90% at 15% 90%, rgba(111,33,20,0.5), transparent 60%),
    #140a08;
  border-block: 1px solid rgba(179,64,42,0.3);
}
.era-shift .overline { color: #e08a5a; }
.era-shift .clockwork { color: var(--ember); opacity: 0.14; }
.twobook { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.twobook .cover-hold { position: relative; width: 100%; display: flex; justify-content: center; }
.twobook .cover-hold img {
  width: min(320px, 76vw); border-radius: var(--radius);
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(179,64,42,0.35), 0 0 90px 8px rgba(179,64,42,0.30);
}
/* Book Two tagline: sit left, directly under the title, one line at desktop */
.twobook .hero-tagline { margin: 0.5rem 0 1.4rem; max-width: none; }
/* Book One tagline: sit left, directly under the title, one line at desktop */
.book-feature .hero-tagline { margin: 0.4rem 0 1.4rem; max-width: none; }
.nowrap { white-space: nowrap; }
.badge-soon {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: #f0c9a0; border: 1px solid rgba(224,138,90,0.5); border-radius: 999px;
  padding: 0.35rem 0.9rem; margin-bottom: 1.1rem;
}

/* ---- Newsletter capture ---------------------------------- */
.signup { border: 1px solid var(--ink-line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); background: var(--ink-raised); text-align: center; }
.signup h3 { margin-bottom: 0.3rem; }
.signup > .text-dim { margin: 0 0 0.4rem; }
.signup iframe { display: block; width: 100%; min-height: 130px; margin: 0; }
.signup .form-note { margin-top: 0.4rem; }
.signup-form { display: flex; gap: 0.75rem; max-width: 440px; margin: 1.4rem auto 0; }
.signup-form input { flex: 1; }

/* ---- Forms ----------------------------------------------- */
.field { display: grid; gap: 0.5rem; margin-bottom: 1.3rem; text-align: left; }
.field label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--parchment-dim); }
input, textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--parchment);
  background: var(--ink); border: 1px solid var(--ink-line); border-radius: var(--radius);
  padding: 0.85rem 1rem; width: 100%;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--parchment-faint); }
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
textarea { resize: vertical; min-height: 150px; }
.form-note { font-size: 0.85rem; color: var(--parchment-dim); margin-top: 0.6rem; }
.form-status { min-height: 1.4rem; font-size: 0.9rem; margin-top: 0.8rem; }
.form-status.ok { color: var(--gold-bright); }
.form-status.err { color: #e08a5a; }

/* ---- Contact layout -------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 5rem); align-items: start; }
.contact-aside p { color: var(--parchment-dim); }
.social-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.9rem; }
.social-list a { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--parchment); letter-spacing: 0.06em; }
.social-list a:hover { color: var(--gold); }
.social-list .lbl { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--parchment-faint); }

/* ---- Footer ---------------------------------------------- */
/* ---- About page ------------------------------------------ */
.author-hero { position: relative; overflow: hidden;
  background: radial-gradient(58% 55% at 84% 22%, rgba(201,162,75,0.13), transparent 60%), var(--ink); }
.author-hero .clockwork { color: var(--gold); opacity: 0.06; }

/* arched, gilt-framed portrait */
.author-portrait.framed img {
  border-radius: 46% 46% 8px 8px / 36% 36% 8px 8px;
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(201,162,75,0.4), 0 0 70px 8px rgba(201,162,75,0.16);
}
.author-portrait.framed figcaption { text-align: center; }

/* facts strip under the bio */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem 2rem; margin-top: 2.6rem; padding-top: 1.7rem; border-top: 1px solid var(--ink-line); }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts .k { display: block; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; }
.facts .v { font-family: var(--font-display); font-size: 1.2rem; color: var(--parchment); }

/* dual-era split: gold ballet on the left, ember flamenco on the right */
.dual-era { position: relative; overflow: hidden; border-block: 1px solid var(--ink-line);
  background: radial-gradient(52% 80% at 6% 55%, rgba(201,162,75,0.10), transparent 55%),
              radial-gradient(52% 80% at 94% 55%, rgba(179,64,42,0.17), transparent 55%),
              var(--ink-raised); }
.era-cols { display: grid; grid-template-columns: 1fr 1px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: 2.8rem; }
.era-divider { align-self: stretch; background: linear-gradient(180deg, transparent, var(--gold), transparent); opacity: 0.4; }
.era-col .era-eyebrow { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 0.7rem; }
.era-col h3 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: 0.7rem; }
.era-ballet .era-eyebrow, .era-ballet h3 { color: var(--gold); }
.era-flamenco .era-eyebrow, .era-flamenco h3 { color: #e08a5a; }
@media (max-width: 760px) {
  .era-cols { grid-template-columns: 1fr; gap: 2.5rem; }
  .era-divider { height: 1px; width: 100%; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
}

/* ---- Journal (blog synced from Substack) ----------------- */
.journal-head { padding-bottom: clamp(1.2rem, 3vw, 2rem); }
.journal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1.5rem, 3vw, 2rem); }
.journal-card { border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; background: var(--ink-raised); transition: transform .3s var(--ease), border-color .3s var(--ease); }
.journal-card:hover { transform: translateY(-3px); border-color: rgba(201,162,75,0.4); }
.journal-card .card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.journal-card .card-link:hover { color: inherit; }
.journal-card .thumb { aspect-ratio: 16 / 10; background: #0c0a06; overflow: hidden; }
.journal-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.journal-card .cbody { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.journal-card .cdate { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.journal-card h3 { font-size: 1.4rem; line-height: 1.16; margin: 0; }
.journal-card .cexc { color: var(--parchment-dim); font-size: 0.95rem; margin: 0; }
.journal-card .cmore { margin-top: auto; padding-top: 0.7rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* single post */
.post { max-width: 44rem; margin-inline: auto; }
.post-back { display: inline-block; margin-bottom: 1.6rem; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--parchment-dim); }
.post-back:hover { color: var(--gold); }
.post-head { text-align: center; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.post-head .pdate { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.post-head h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin: 0.6rem 0 0; }
.post-hero { margin: 0 0 2.4rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-deep); }
.post-hero img { width: 100%; display: block; }
.post-body { color: var(--parchment); font-size: 1.12rem; line-height: 1.8; }
.post-body > *:first-child { margin-top: 0; }
.post-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.1rem 0 0.8rem; }
.post-body h3 { font-size: 1.4rem; margin: 1.7rem 0 0.6rem; }
.post-body p { margin: 0 0 1.15rem; }
.post-body a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--parchment); }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 0.4rem 0; }
.post-body figure { margin: 1.8rem 0; }
.post-body figcaption { font-size: 0.85rem; color: var(--parchment-faint); text-align: center; margin-top: 0.6rem; }
.post-body blockquote { border-left: 2px solid var(--gold); padding-left: 1.3rem; margin: 1.5rem 0; font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--parchment); }
.post-body ul, .post-body ol { padding-left: 1.4rem; margin: 0 0 1.15rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body hr { border: 0; border-top: 1px solid var(--ink-line); margin: 2rem 0; }
.post-cta { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--ink-line); text-align: center; }
.post-cta p { color: var(--parchment-dim); margin-bottom: 1rem; }
.journal-note { color: var(--parchment-faint); font-size: 0.9rem; }

/* ---- Footer ---------------------------------------------- */
/* ---- Cookie consent (gates the third-party form embeds) ---- */
.cookie-banner {
  position: fixed; z-index: 300; left: 1rem; bottom: 1rem;
  width: min(360px, calc(100vw - 2rem));
  background: rgba(20,16,11,0.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--ink-line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  box-shadow: 0 22px 55px rgba(0,0,0,0.55);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.82rem; line-height: 1.5; color: var(--parchment-dim); }
.cookie-banner a { color: var(--gold-bright); }
.cookie-actions { display: flex; gap: 0.6rem; }
.cookie-actions .btn { padding: 0.55rem 1.15rem; font-size: 0.7rem; }
/* shown only if a reader rejects cookies, so the forms still have a way through */
.embed-fallback { color: var(--parchment-dim); font-size: 0.92rem; line-height: 1.6; padding: 0.6rem 0; }
.embed-fallback a { color: var(--gold-bright); }

/* ---- Footer ---------------------------------------------- */
.site-foot { border-top: 1px solid var(--ink-line); padding-block: 3.5rem; background: #0d0a05; }
.foot-mark { font-family: var(--font-display); font-size: 1.4rem; color: var(--parchment); margin: 0; }
.foot-mark span { color: var(--gold); }
/* nav and socials share one line */
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; margin-top: 1.3rem; }
.foot-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 0; margin: 0; }
.foot-nav a { color: var(--parchment-dim); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.foot-nav a:hover { color: var(--gold); }
.foot-social { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.foot-social a { font-size: 0.8rem; }
/* base line: copyright + agency credit */
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 2rem; margin-top: 2rem; }
.foot-fine, .foot-credit { color: var(--parchment-faint); font-size: 0.8rem; margin: 0; letter-spacing: 0.04em; }
.foot-credit a { color: var(--parchment-dim); }
.foot-credit a:hover { color: var(--gold); }

/* ---- Reveal on scroll (JS adds .seen); reduced-motion safe */
[data-lift] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-lift].seen { opacity: 1; transform: none; }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 900px) {
  .hero-grid, .book-feature, .author-split, .twobook, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { text-align: left; padding-top: 1rem; gap: 2.5rem; }
  .hero-cover { order: -1; }
  .book-feature .cover-hold, .twobook .cover-hold { order: -1; }
  .author-split .author-portrait { max-width: 320px; margin-inline: auto; }
  /* centre the homepage author-teaser button when stacked */
  .author-split .btn { display: block; width: max-content; margin-inline: auto; }
  .flipbook { --s: 0.78; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(15,14,20,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ink-line);
    padding: 0.5rem clamp(1.25rem, 5vw, 3rem) 1.5rem;
    transform: translateY(-120%); transition: transform .4s var(--ease);
  }
  .nav-open .nav-links { transform: translateY(0); }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--ink-line); }
  .nav-links a { display: block; padding: 1.1rem 0; font-size: 0.95rem; }
  .signup-form { flex-direction: column; }
  .review-wall { columns: 1; }
  /* keep the mobile hero to a single screen: smaller cover, calmer clock */
  /* keep the turning clock a clear presence behind the mobile hero;
     large enough to frame the content, nudged up so its centre sits behind the title */
  .hero-atmos { transform: translateY(-11%); }
  .hero-timeslip .clockwork { width: min(178vw, 720px) !important; height: min(178vw, 720px) !important; opacity: 0.12; }
  /* stack the buy links full-width so they read evenly on a phone */
  .buy-row { flex-direction: column; align-items: stretch; }
  .buy-row .btn { width: 100%; justify-content: center; }
  .flipbook { --s: 0.58; }
}

@media (prefers-reduced-motion: reduce) {
  .clockwork-spin { animation: none; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .intro { display: none; }
  .hero-in { animation: none; opacity: 1; transform: none; }
  [data-lift] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .btn-primary:hover, .btn-ghost:hover { transform: none; }
}
