@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Italiana&display=swap');

:root {
  --ivory: #f4ead7;
  --paper: #fbf5e9;
  --tobacco: #7b4a2d;
  --walnut: #321d14;
  --oxblood: #7b171b;
  --gold: #b28a45;
  --gold-light: #ddbf7e;
  --ink: #211713;
  --muted: #6c5c53;
  --shadow: 0 30px 70px rgba(40, 22, 13, .18);
  --serif: "Italiana", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(178,138,69,.13), transparent 25rem),
    repeating-linear-gradient(90deg, transparent 0, transparent calc(50vw - 1px), rgba(80,48,30,.04) 50vw, transparent calc(50vw + 1px)),
    var(--ivory);
  font-family: var(--sans);
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h1 { margin: .2rem 0 1.5rem; font-size: clamp(3rem, 7vw, 7.8rem); letter-spacing: -.045em; }
h2 { margin: 0 0 1.3rem; font-size: clamp(2.2rem, 4.4vw, 5rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.35rem, 2vw, 2rem); }
p, li { font-size: clamp(1rem, 1.2vw, 1.12rem); }
main > section { position: relative; width: min(1260px, calc(100% - 40px)); margin: 0 auto 32px; }

.read-line { position: fixed; z-index: 100; inset: 0 0 auto; height: 4px; background: rgba(255,255,255,.2); }
.read-line span { display: block; width: 0; height: 100%; background: var(--gold-light); }
.book-head {
  position: sticky; z-index: 50; top: 4px; display: flex; align-items: center; justify-content: space-between;
  width: min(1360px, calc(100% - 24px)); min-height: 72px; margin: 12px auto;
  padding: 10px 18px; color: var(--paper); background: rgba(39,22,16,.94);
  border: 1px solid rgba(221,191,126,.4); box-shadow: 0 12px 40px rgba(20,10,6,.2);
  backdrop-filter: blur(16px);
}
.brand img, .book-foot img { width: 144px; height: 42px; object-fit: contain; }
.fold-index { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 2rem); }
.fold-index a { color: var(--paper); font-size: .8rem; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.fold-index a:hover { color: var(--gold-light); }
.menu-key { display: none; color: var(--paper); background: none; border: 1px solid var(--gold); padding: .55rem .8rem; }

.cover-fold {
  min-height: 780px; display: grid; grid-template-columns: 1.07fr .93fr; overflow: hidden;
  color: var(--paper); background: var(--walnut); box-shadow: var(--shadow);
}
.cover-fold::after, .centre-spread::after {
  content: ""; position: absolute; inset: 0 auto 0 50%; width: 2px;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.12), rgba(0,0,0,.2));
  pointer-events: none;
}
.cover-copy { position: relative; z-index: 2; padding: clamp(50px, 7vw, 110px); align-self: center; }
.cover-copy::before {
  content: ""; position: absolute; inset: 30px; border: 1px solid rgba(221,191,126,.4);
  background: radial-gradient(circle at top left, rgba(178,138,69,.2), transparent 35%);
  pointer-events: none;
}
.cover-copy > * { position: relative; }
.folio, .section-mark, .bookmark { letter-spacing: .16em; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.folio, .section-mark { color: var(--gold-light); }
.cover-copy p { max-width: 63ch; color: #e9ddc9; }
.cover-image { margin: 0; position: relative; min-height: 100%; }
.cover-image img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.12) contrast(1.03); }
figcaption { padding: .9rem 1rem; color: var(--muted); background: var(--paper); border-top: 1px solid #d9c8aa; font-size: .88rem; }
.cover-image figcaption { position: absolute; right: 24px; bottom: 24px; left: 24px; color: var(--paper); background: rgba(33,23,19,.86); border: 1px solid rgba(221,191,126,.45); backdrop-filter: blur(8px); }
.cover-actions { display: flex; align-items: center; gap: 1.3rem; margin-top: 2rem; }
.brass-button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.2rem;
  color: var(--ink); background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: 1px solid #e6cd99; text-decoration: none; font-weight: 700;
}
.text-link { color: var(--gold-light); text-underline-offset: .35em; }

.double-flap, .spec-fold, .step-fold, .rating-fold, .faq-fold {
  padding: clamp(42px, 7vw, 96px); background: var(--paper); box-shadow: var(--shadow);
  border: 1px solid rgba(123,74,45,.16);
}
.double-flap { clip-path: polygon(0 2%, 49.8% 0, 100% 2%, 100% 98%, 50.2% 100%, 0 98%); }
.double-flap::before, .spec-fold::before, .step-fold::before, .rating-fold::before {
  content: ""; position: absolute; inset: 0 auto 0 50%; width: 1px; background: rgba(73,42,26,.15);
}
.double-flap > p { max-width: 80ch; }
.mode-switch, .cash-tabs { display: inline-flex; gap: 4px; margin: 1.2rem 0; padding: 4px; background: #e9dcc7; border: 1px solid #c7ab7b; }
.mode-switch button, .cash-tabs button {
  padding: .75rem 1.15rem; border: 0; color: var(--ink); background: transparent; cursor: pointer;
}
.mode-switch button.active, .cash-tabs button.active { color: var(--paper); background: var(--oxblood); }
.mode-panel { max-width: 850px; padding: 1.2rem 1.5rem; background: #f1e5d2; border-left: 5px solid var(--gold); }

.spine-fold { display: grid; grid-template-columns: 70px 1fr .8fr; min-height: 680px; background: #e7d5b9; box-shadow: var(--shadow); }
.bookmark {
  display: grid; place-items: center; color: var(--paper); background: var(--oxblood);
  writing-mode: vertical-rl; transform: rotate(180deg); padding: 2rem 0;
}
.spine-content { padding: clamp(42px, 7vw, 90px); }
.numbered-spine { counter-reset: step; padding: 0; list-style: none; }
.numbered-spine li { position: relative; padding: .85rem 1rem .85rem 3.4rem; border-bottom: 1px solid rgba(84,48,29,.16); }
.numbered-spine li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0;
  color: var(--oxblood); font-family: var(--serif); font-size: 1.5rem;
}
.insert-image { margin: 0; min-width: 0; }
.insert-image img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }

.spec-fold { background: #ede0cc; }
.table-wrap, .rating-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.28); }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid rgba(65,39,26,.18); vertical-align: top; }
th { color: var(--paper); background: var(--tobacco); letter-spacing: .07em; text-transform: uppercase; font-size: .78rem; }
tbody tr:hover { background: rgba(178,138,69,.1); }

.step-fold { padding-left: clamp(60px, 12vw, 180px); background: #f7efdf; }
.route-list { position: relative; max-width: 900px; padding-left: 0; counter-reset: route; list-style: none; }
.route-list::before { content: ""; position: absolute; top: 0; bottom: 0; left: 23px; width: 2px; background: var(--gold); }
.route-list li { position: relative; margin: 0 0 1rem; padding: .8rem 1rem .8rem 4rem; background: #eadac2; }
.route-list li::before {
  counter-increment: route; content: counter(route); position: absolute; left: 0; top: .55rem;
  display: grid; place-items: center; width: 48px; height: 48px; color: white; background: var(--oxblood); border-radius: 50%;
}

.cash-fold { padding: clamp(42px, 7vw, 96px); color: var(--paper); background: var(--tobacco); box-shadow: var(--shadow); }
.cash-fold .section-mark { color: #efd296; }
.cash-panel { max-width: 820px; padding: 1rem 1.5rem; color: var(--ink); background: var(--paper); }
.wide-figure { margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 320px; align-items: stretch; }
.wide-figure img { width: 100%; height: 460px; object-fit: cover; }
.wide-figure figcaption { display: grid; align-content: end; padding: 2rem; }

.terms-insert {
  padding: clamp(42px, 7vw, 96px); background: #e9d5b5; border: 2px dashed var(--tobacco); box-shadow: 10px 14px 0 rgba(86,48,28,.15);
}
.insert-toggle { padding: .8rem 1.2rem; color: var(--paper); background: var(--oxblood); border: 0; cursor: pointer; }
.insert-body { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-height: 0; margin-top: 0; overflow: hidden; opacity: 0; transition: .45s ease; }
.insert-body.open { max-height: 900px; margin-top: 1.5rem; opacity: 1; }
.insert-body > div { padding: 1.5rem; background: rgba(255,255,255,.35); }

.centre-spread { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); box-shadow: var(--shadow); }
.spread-copy, .live-copy { padding: clamp(42px, 6vw, 80px); }
.live-copy { color: var(--paper); background: var(--walnut); }
.live-copy figure { margin: 2rem 0 0; }
.live-copy img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.fan-list { padding-left: 1.2rem; }
.fan-list li { margin: .7rem 0; padding: .35rem .7rem; background: #e9dbc5; transform-origin: left; }
.fan-list li:nth-child(2n) { transform: rotate(.5deg); }

.sealed-flap { display: grid; grid-template-columns: 170px 1fr; gap: 2rem; align-items: center; padding: clamp(42px, 7vw, 90px); color: var(--paper); background: var(--oxblood); box-shadow: var(--shadow); }
.seal { display: grid; place-items: center; aspect-ratio: 1; border: 2px solid var(--gold-light); border-radius: 50%; font-family: var(--serif); font-size: 2.5rem; box-shadow: inset 0 0 0 10px var(--oxblood), inset 0 0 0 12px var(--gold-light); }
.rating-fold td:nth-child(2) { position: relative; min-width: 130px; color: var(--oxblood); font-weight: 700; }
.rating-fold td:nth-child(2)::after {
  content: ""; display: block; width: var(--score-width, 0); height: 4px; margin-top: .45rem; background: linear-gradient(90deg, var(--oxblood), var(--gold)); transition: width 1.2s ease;
}

.front-back, .audience-fold { display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow); }
.front-side, .back-side, .audience-fold article { padding: clamp(42px, 6vw, 80px); }
.front-side { background: var(--paper); }
.back-side { color: var(--paper); background: var(--oxblood); }
.audience-fold article:first-child { background: #ddc49f; }
.audience-fold article:last-child { background: #f5ebda; }

.policy-cover { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 2rem; padding: clamp(42px, 7vw, 90px); background: var(--paper); border: 8px double var(--tobacco); }
.age-mark { display: grid; place-items: center; width: 130px; height: 130px; color: var(--paper); background: var(--oxblood); border-radius: 50%; font-family: var(--serif); font-size: 3rem; }
.closing-cover { padding: clamp(55px, 9vw, 130px); color: var(--paper); background: var(--walnut); box-shadow: var(--shadow); }
.closing-cover p { max-width: 80ch; }

.faq-fold { margin-bottom: 70px; }
.faq-item { border-top: 1px solid #cbb394; }
.faq-item h3 { margin: 0; }
.faq-item button { width: 100%; padding: 1.2rem 3rem 1.2rem 0; text-align: left; color: var(--ink); background: transparent; border: 0; cursor: pointer; position: relative; }
.faq-item button::after { content: "+"; position: absolute; right: .2rem; color: var(--oxblood); font-size: 1.6rem; }
.faq-item button[aria-expanded="true"]::after { content: "−"; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-answer > p { min-height: 0; margin: 0; overflow: hidden; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer > p { padding: 0 0 1.4rem; }

.cookie-note {
  position: fixed; z-index: 70; right: 18px; bottom: 18px; width: min(380px, calc(100% - 36px));
  padding: 1rem; color: var(--paper); background: var(--walnut); border: 1px solid var(--gold); box-shadow: var(--shadow);
}
.cookie-note p { margin: 0 0 .7rem; font-size: .9rem; }
.cookie-note button { padding: .55rem .8rem; background: var(--gold-light); border: 0; cursor: pointer; }
.cookie-note.hide { display: none; }
.book-foot { display: flex; align-items: center; gap: 2rem; padding: 2rem max(24px, calc((100vw - 1260px)/2)); color: var(--paper); background: #160d09; }
.book-foot p { margin-right: auto; font-size: .85rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .menu-key { display: inline-block; }
  .fold-index {
    position: absolute; top: calc(100% + 8px); right: 0; display: none; width: min(300px, 90vw);
    padding: 1rem; align-items: stretch; flex-direction: column; background: var(--walnut); border: 1px solid var(--gold);
  }
  .fold-index.open { display: flex; }
  .cover-fold, .spine-fold, .centre-spread, .front-back, .audience-fold { grid-template-columns: 1fr; }
  .cover-fold::after, .centre-spread::after, .double-flap::before, .spec-fold::before, .step-fold::before, .rating-fold::before { display: none; }
  .cover-image { min-height: 500px; }
  .spine-fold { grid-template-columns: 52px 1fr; }
  .insert-image { grid-column: 1 / -1; }
  .insert-image img { min-height: 360px; }
  .wide-figure { grid-template-columns: 1fr; }
  .insert-body { grid-template-columns: 1fr; }
  .sealed-flap, .policy-cover { grid-template-columns: 110px 1fr; }
  .age-mark { width: 100px; height: 100px; }
}

@media (max-width: 600px) {
  main > section { width: min(100% - 20px, 1260px); margin-bottom: 16px; }
  .book-head { width: calc(100% - 12px); }
  .cover-copy, .double-flap, .spec-fold, .step-fold, .cash-fold, .terms-insert, .spread-copy, .live-copy, .rating-fold, .faq-fold, .front-side, .back-side, .audience-fold article, .closing-cover { padding: 34px 24px; }
  h1 { font-size: 3.2rem; }
  .cover-actions { align-items: flex-start; flex-direction: column; }
  .spine-fold { display: block; }
  .bookmark { writing-mode: horizontal-tb; transform: none; padding: .8rem; }
  .wide-figure img { height: 310px; }
  .sealed-flap, .policy-cover { grid-template-columns: 1fr; }
  .seal, .age-mark { width: 90px; height: 90px; }
  .book-foot { align-items: flex-start; flex-direction: column; gap: .6rem; }
}

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