/* =========================================================
   Weber's Law — Acroneo Press
   Palette pulled from the cover art:
   deep navy night, near-black, amber streetlight, alert red
   ========================================================= */

:root {
  --ink:        #05080f;   /* near-black base            */
  --navy:       #0a1426;   /* deep cover navy            */
  --navy-2:     #0f1d36;   /* lifted panel navy          */
  --paper:      #eef2f8;   /* primary text on dark       */
  --muted:      #9fb0c8;   /* secondary text             */
  --amber:      #e6a851;   /* streetlight gold           */
  --amber-hi:   #f4c574;   /* gold highlight             */
  --alert:      #cf3b32;   /* surveillance red accent    */
  --line:       rgba(159,176,200,.16);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;
  --display: "Oswald", var(--sans);

  --maxw: 1120px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(16px, 1vw + 14px, 18px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-hi); text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

.section { padding-block: clamp(64px, 10vw, 130px); position: relative; }

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: .01em;
  margin: 0 0 1.2rem;
  line-height: 1.05;
}
.section__title::after {
  content: "";
  display: block;
  width: 64px; height: 2px;
  margin-top: .9rem;
  background: linear-gradient(90deg, var(--amber), transparent);
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  z-index: 1;                /* above the shared .topstage__bg */
  min-height: auto;          /* size to content, not the full viewport */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Shared stage holding the hero + The Story over one continuous photo. */
.topstage { position: relative; overflow: hidden; }
.topstage__bg {
  position: absolute; left: 0; right: 0; top: -30%; bottom: -30%;
  background: url("../img/hero-bg.jpg") center 30% / cover no-repeat;
  filter: saturate(1.05) brightness(.75);   /* dim the photo for text legibility */
  will-change: transform;
  z-index: 0;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 70% 20%, rgba(10,20,38,.30), transparent 60%),
    linear-gradient(180deg, rgba(5,8,15,.55) 0%, rgba(5,8,15,.55) 55%, rgba(5,8,15,.45) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(90px,12vh,140px) clamp(20px,5vw,48px) clamp(60px,8vh,90px);
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__cover {
  margin: 0;
  perspective: 1200px;
}
.hero__cover img {
  width: 100%;
  border-radius: 6px;
  box-shadow:
    0 2px 0 rgba(255,255,255,.06) inset,
    0 30px 70px -20px rgba(0,0,0,.85),
    0 0 0 1px rgba(255,255,255,.05),
    0 0 60px -10px rgba(230,168,81,.35);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.hero__cover:hover img {
  transform: translateY(-6px) rotateX(2deg) rotateY(-3deg);
  box-shadow:
    0 40px 90px -20px rgba(0,0,0,.9),
    0 0 0 1px rgba(255,255,255,.06),
    0 0 90px -8px rgba(230,168,81,.5);
}

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .72rem;
  color: var(--amber);
  margin: 0 0 1rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: .95;
  margin: 0;
  letter-spacing: .005em;
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.hero__by {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: clamp(.85rem, 1.6vw, 1rem);
  color: var(--paper);
  margin: 1rem 0 1.6rem;
}
.hero__tag {
  max-width: 46ch;
  color: #dbe3f0;            /* brighter than --muted, just below --paper */
  font-size: 1.08rem;
  margin: 0 0 2.2rem;
}

/* ============================ BUTTONS ============================ */
.buy { display: flex; flex-wrap: wrap; gap: 16px; }
.buy--stack { flex-direction: column; }

.btn {
  --bg: var(--amber);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 14px 26px;
  border-radius: 4px;
  font-family: var(--sans);
  line-height: 1.15;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  position: relative;
}
.btn__kicker {
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: .8;
}
.btn__label { font-size: 1.02rem; font-weight: 600; letter-spacing: .01em; }

.btn--primary {
  background: linear-gradient(180deg, var(--amber-hi), var(--amber));
  color: #2a1c06;
  box-shadow: 0 10px 30px -10px rgba(230,168,81,.6);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(230,168,81,.75); }

.btn--ghost {
  background: rgba(255,255,255,.04);
  color: var(--paper);
  border: 1px solid rgba(159,176,200,.4);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--amber); color: var(--amber-hi); }

/* ============================ SCROLL CUE ============================ */
.scroll-cue {
  position: absolute;
  right: clamp(28px, 5vw, 64px); bottom: 26px;
  z-index: 3;
  display: block;
  width: 2px; height: 52px;
}
.scroll-cue__line {
  position: absolute; inset: 0;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(159,176,200,.22);   /* faint static track */
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 45%;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--amber), transparent);
  animation: cue 1.9s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-110%); opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(240%);  opacity: 0; }
}

/* ============================ SYNOPSIS ============================ */
.synopsis {
  position: relative;
  z-index: 1;                            /* above the shared .topstage__bg */
  /* Translucent scrim: photo shows through the top, fades to solid ink
     by the bottom so the next section starts clean. */
  background: linear-gradient(180deg,
              rgba(5,8,15,.45) 0%,
              rgba(5,8,15,.62) 40%,
              rgba(6,10,17,.88) 80%,
              var(--ink) 100%);
  padding-top: clamp(28px, 4vw, 56px);   /* tighter gap under the hero */
}
.synopsis__body { max-width: 68ch; }
.synopsis p { margin: 0 0 1.3rem; }
.lede {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.45;
  color: var(--paper);
}
.synopsis strong { color: var(--amber-hi); font-weight: 600; letter-spacing: .04em; }
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  color: var(--amber-hi);
  border-left: 2px solid var(--alert);
  padding-left: 1.2rem;
  margin-top: 2.4rem !important;
}

/* ============================ DETAILS ============================ */
.details { background: var(--navy); border-block: 1px solid var(--line); padding-block: clamp(48px,7vw,84px); }
.facts {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 72px);
}
.fact { display: flex; flex-direction: column; }
.fact__num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--amber);
}
.fact__lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-top: .4rem; }
.readalike { font-family: var(--serif); font-size: 1.25rem; color: var(--muted); margin: 0; }
.readalike em { color: var(--paper); font-style: italic; }

/* ============================ AUTHOR ============================ */
.author { background: linear-gradient(180deg, var(--ink), var(--navy-2)); }
.author__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.author__text p { color: var(--muted); margin: 0 0 1.2rem; }
.author__text em { color: var(--paper); }
.author__aside {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 34px);
  position: sticky; top: 30px;
}
.author__aside h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .82rem;
  color: var(--amber);
  margin: 0 0 1.2rem;
}
.spec { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0 0 1.6rem; }
.spec dt { color: var(--muted); font-size: .85rem; }
.spec dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-size: .9rem; }

/* ============================ FINAL CTA ============================ */
.cta { overflow: hidden; text-align: center; }
.cta__bg {
  position: absolute; left: 0; right: 0; top: -30%; bottom: -30%;
  background: url("../img/cta-bg.jpg") center 35% / cover no-repeat;
  opacity: .5;
  will-change: transform;
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--ink), rgba(5,8,15,.65) 50%, var(--ink));
}
.cta__inner { position: relative; z-index: 2; }
.cta h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  margin: 0 0 2rem;
  line-height: 1.15;
}
.cta .buy { justify-content: center; }

/* ============================ FOOTER ============================ */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 64px); }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center; justify-content: space-between;
}
.footer__logo img { height: 44px; width: auto; opacity: .92; transition: opacity .25s; }
.footer__logo:hover img { opacity: 1; }
.footer__meta { text-align: right; }
.footer__meta p { margin: .2rem 0; }
.footer__fine { color: var(--muted); font-size: .82rem; }

/* ============================ REVEAL ANIMATION ============================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 36px; padding-top: clamp(70px,10vh,110px); }
  .hero__cover { max-width: 270px; margin-inline: auto; }
  .hero__tag { margin-inline: auto; }
  .buy { justify-content: center; }
  .section__title::after { margin-inline: auto; }
  .synopsis__body, .hero__copy { margin-inline: auto; }
  .author__grid { grid-template-columns: 1fr; }
  .author__aside { position: static; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__meta { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .scroll-cue__line::after { animation: none; opacity: .5; transform: none; }
  .topstage__bg { transform: none; }
}
