@font-face { font-family: "Anton"; src: url("../fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0a0a0a;
  --ink-2: #141414;
  --line: #2b2b2b;
  --text: #f4f1ea;
  --muted: #b3aea4;
  --red: #d81f26;
  --red-bright: #ff3b3f;
  --paper: #efe9dc;
  --paper-ink: #16130f;
  --gold: #c9a24a;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, -apple-system, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(100% - 40px, 1160px); margin-inline: auto; }
.narrow { width: min(100% - 40px, 720px); }

h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1.08; letter-spacing: .01em; }
h2 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); }
h3 { font-family: var(--body); font-weight: 600; }

.eyebrow {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 14px;
}

section { padding-block: clamp(72px, 10vw, 120px); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 30px;
  font: 600 1.1rem/1.2 var(--body);
  text-decoration: none;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 5px 5px 0 #fff; }
.btn-primary:hover { background: #b9151c; transform: translate(2px, 2px); box-shadow: 3px 3px 0 #fff; }
.btn-wide { width: 100%; min-height: 68px; font-size: 1.3rem; }
.price { display: inline-flex; align-items: baseline; gap: 8px; }
.price s { font-weight: 400; opacity: .8; }
.price strong { font-weight: 600; }

/* First screen: strip + hero fill the window, so the store band sits on the fold */
.fold { display: flex; flex-direction: column; min-height: 100svh; }

/* Announcement strip */
.announce { padding: 10px 20px; background: var(--paper); color: var(--paper-ink); font-size: 1rem; font-weight: 600; line-height: 1.35; text-align: center; }
.announce strong { color: #b3141b; font-weight: 600; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-block: 0;
  background:
    url("../img/splatter.svg") top right / 620px no-repeat,
    radial-gradient(ellipse 620px 520px at 74% 56%, rgba(216, 31, 38, .24), transparent 70%),
    var(--ink);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  grid-template-areas: "head book" "cta book";
  column-gap: 56px;
  align-items: center;
  align-content: center;
  flex: 1;
  padding-block: clamp(28px, 5svh, 56px);
}
.hero-head { grid-area: head; align-self: end; }
.hero-book { grid-area: book; justify-self: center; }
.hero-cta { grid-area: cta; align-self: start; margin-top: 22px; }

h1 { font-size: clamp(3.2rem, min(7.4vw, 11.5svh), 6.6rem); line-height: 1.16; }
.cut { display: inline-block; padding: 0 .16em; line-height: 1.12; }
.cut-red { background: var(--red); color: #fff; transform: rotate(-2deg); clip-path: polygon(0 4%, 98% 0, 100% 95%, 3% 100%); }
.cut-paper { background: var(--paper); color: var(--ink); transform: rotate(1.2deg); clip-path: polygon(2% 0, 100% 5%, 98% 100%, 0 94%); }

.lede { max-width: 33em; margin-bottom: 26px; font-size: 1.2rem; line-height: 1.5; color: #e4e0d8; }

/* Store band + slider */
.band { position: relative; z-index: 1; display: flex; align-items: center; background: var(--ink-2); border-block: 1px solid var(--line); }
.band-label { flex: none; padding: 20px 28px 20px max(20px, calc((100vw - 1160px) / 2)); font: 400 1.5rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.marquee-track { display: flex; width: max-content; animation: glide var(--marquee-time, 30s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; }
.marquee-group a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-inline: 30px; color: var(--text); font-weight: 600; font-size: 1.12rem; text-decoration: none; white-space: nowrap; }
.marquee-group a:hover { color: var(--red-bright); text-decoration: underline; text-underline-offset: 4px; }
@keyframes glide { to { transform: translateX(-50%); } }

/* The book hangs from strings, like the figures on the cover */
.puppet { position: relative; transform-origin: 50% -500px; animation: sway 7s ease-in-out infinite; }
.string { position: absolute; bottom: 100%; width: 1px; height: 1000px; margin-bottom: -6px; background: linear-gradient(to top, #d8d3c8, rgba(216, 211, 200, .35)); }
.s1 { left: 16%; } .s2 { left: 50%; } .s3 { left: 84%; }
.book { position: relative; width: clamp(210px, min(25vw, 38svh), 330px); perspective: 1200px; }
.book img { width: 100%; transform: rotateY(-14deg); transform-origin: left center; box-shadow: 14px 18px 34px rgba(0, 0, 0, .7), 3px 0 0 #d9d4c7, 6px 0 0 #a8a296; }
@keyframes sway { 0%, 100% { transform: rotate(-.9deg); } 50% { transform: rotate(.9deg); } }

/* Problem */
.problem { background: var(--ink-2); }
.problem h2 { margin-bottom: 26px; }
.problem p + p { margin-top: 18px; }
.problem .eyebrow + h2 + p { margin-top: 0; }
.punch { font-family: var(--display); font-size: clamp(1.55rem, 3.4vw, 2.1rem); line-height: 1.25; text-transform: uppercase; letter-spacing: .015em; padding-top: 12px; }
.punch em { font-style: normal; color: var(--red-bright); }

/* Section heads */
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 + p { margin-top: 16px; color: var(--muted); }

/* Pantheon */
.files { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.files li { position: relative; padding: 22px 20px 24px; background: var(--paper); color: var(--paper-ink); }
.files li:nth-child(odd) { transform: rotate(-.6deg); }
.files li:nth-child(even) { transform: rotate(.5deg); }
.file-no { display: inline-block; margin-bottom: 14px; padding: 0 8px; border: 2px solid var(--red); color: var(--red); font: 700 .8rem/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.files h3 { font-family: var(--display); font-weight: 400; font-size: 1.45rem; line-height: 1.15; text-transform: uppercase; margin-bottom: 8px; }
.files p { font-size: .98rem; line-height: 1.45; }

/* Machine */
.machine { background: var(--ink-2); }
.traps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.traps article { display: flex; gap: 22px; padding-block: 28px; border-top: 1px solid var(--line); }
.trap-no { font-family: var(--display); font-size: 3.2rem; line-height: 1; color: var(--red); min-width: 34px; }
.traps h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: 8px; }
.traps p { color: var(--muted); }

/* Audit */
.tear { height: 30px; margin-bottom: -1px; background: var(--ink-2) url("../img/torn.svg") center / 1600px 100% repeat-x; position: relative; }
.tear-flip { transform: scaleY(-1); margin-block: -1px 0; background-color: var(--ink); }
.audit { background: var(--paper); color: var(--paper-ink); padding-block: clamp(56px, 8vw, 96px); }
.audit .eyebrow { color: #b3141b; }
.audit-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.audit h2 { margin-bottom: 18px; }
.fair { margin-top: 16px; padding-left: 14px; border-left: 3px solid var(--red); font-size: 1rem; }
.questions { background: var(--ink); color: var(--text); padding: 30px; transform: rotate(.7deg); }
.questions-title { font: 700 .9rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.questions li { display: flex; gap: 12px; padding-block: 11px; font-weight: 600; font-size: 1.12rem; line-height: 1.35; border-top: 1px solid var(--line); }
.questions li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border: 2px solid var(--red-bright); }

/* Author */
.author h2 { margin-bottom: 22px; }
.author p + p { margin-top: 16px; }

/* FAQ */
.faq { background: var(--ink-2); }
.faq h2 { margin-bottom: 24px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; font-weight: 600; font-size: 1.12rem; line-height: 1.35; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); font-size: 1.5rem; line-height: 1; color: var(--red-bright); }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 20px; color: var(--muted); }

/* Final */
.final { background: radial-gradient(ellipse 760px 480px at 26% 50%, rgba(216, 31, 38, .24), transparent 70%), var(--ink); }
.final-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(36px, 7vw, 80px); align-items: center; max-width: 980px; }
.final-cover { width: clamp(170px, 20vw, 230px); box-shadow: 12px 16px 30px rgba(0, 0, 0, .7); }
.final h2 span { display: block; color: var(--red-bright); }
.final-btn { margin-top: 30px; }
.final-also { margin-top: 20px; color: var(--muted); }
.final-also a { color: var(--text); text-underline-offset: 4px; }
.final-also a:hover { color: var(--red-bright); }

/* Footer */
.footer { padding-block: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* Mobile buy bar */
.buybar { display: none; }

@media (max-width: 1020px) {
  .files { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  body { font-size: 1.03rem; }
  .announce { padding: 7px 16px; font-size: .9rem; }
  .announce strong { display: block; }
  .hero { background-size: 340px, auto, auto; background-position: top right, 0 0, 0 0; background-image: url("../img/splatter.svg"), radial-gradient(ellipse 340px 300px at 50% 44%, rgba(216, 31, 38, .26), transparent 70%); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "book" "cta"; padding-block: 14px 16px; }
  .eyebrow { margin-bottom: 8px; }
  h1 { font-size: clamp(2.7rem, 13vw, 4.4rem); }
  .hero-book { margin-top: 14px; }
  .string { display: none; }
  .book { width: clamp(104px, 21svh, 170px); }
  .hero-cta { display: flex; flex-direction: column; margin-top: 18px; }
  .lede { display: none; }
  .btn-wide { min-height: 60px; font-size: 1.15rem; }
  .band-label { padding: 14px 12px 14px 16px; font-size: 1.05rem; }
  .marquee-group a { gap: 8px; padding-inline: 16px; font-size: .95rem; }
  .marquee-group img { width: 18px; height: 18px; }
  .traps, .audit-grid { grid-template-columns: minmax(0, 1fr); }
  .audit-grid { gap: 32px; }
  .final-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }

  .buybar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 10, .96);
    border-top: 1px solid var(--line);
    font-weight: 600;
    font-size: .92rem;
    line-height: 1.25;
    transform: translateY(110%);
    visibility: hidden;
    transition: transform .2s, visibility .2s;
  }
  .buybar.is-on { transform: none; visibility: visible; }
  .buybar .btn { flex-wrap: nowrap; white-space: nowrap; width: auto; flex: none; min-height: 46px; padding: 10px 22px; font-size: 1rem; box-shadow: none; }
  .footer { padding-bottom: 96px; }
}

@media (max-width: 460px) {
  .files { grid-template-columns: minmax(0, 1fr); }
  .files li:nth-child(n) { transform: none; }
}

@media (max-width: 360px) {
  .announce { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .puppet { animation: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee-group { flex-wrap: wrap; }
  .marquee-group[aria-hidden] { display: none; }
  .btn, .buybar { transition: none; }
}
