:root {
  --paper: #ffffff;
  --ink: #1a1a1a;
  --mute: #5a5a5a;
  --line: #e4e4e4;
  --yellow: #fbc81e;
  --yellow-soft: #fff6d6;
  --coral: #e8553e;
  --red: #c23a26;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Futura", "Futura PT", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.05rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.85rem 4vw;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mark { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; margin-right: auto; }
.top nav { display: flex; gap: 1.3rem; align-items: center; }
.top nav a { text-decoration: none; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.top nav a:hover { color: var(--red); }
.nav-buy { background: var(--red); color: #fff !important; padding: 0.4rem 0.8rem; }
.nav-buy:hover { background: var(--ink); }
.menu { display: none; border: 1px solid var(--ink); background: transparent; padding: 0.35rem 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }

.eyebrow, .kicker { font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin: 0 0 0.9rem; }
.lede { font-size: clamp(1.15rem, 1.9vw, 1.4rem); max-width: 38rem; }

.button, button[type="submit"] {
  display: inline-block;
  background: var(--red); color: #fff;
  text-decoration: none; border: 0;
  padding: 0.95rem 1.3rem;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; font-weight: 600;
  cursor: pointer;
}
.button:hover, button[type="submit"]:hover { background: var(--ink); color: #fff; }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button.ghost:hover { background: var(--ink); color: #fff; }
.button.light { background: #fff; color: var(--ink); }
.button.light:hover { background: var(--yellow); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.soon { margin: 0.9rem 0 0; font-size: 0.92rem; color: var(--mute); }
.soon a { color: inherit; }

/* Home hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4vw; align-items: center; max-width: 1300px; margin: 0 auto; padding: 4.5rem 4vw 3.5rem; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); font-weight: 700; letter-spacing: -0.045em; line-height: 0.98; margin: 0 0 1.3rem; max-width: 13ch; }
.hero-book { margin: 0; }
.hero-book img { width: min(100%, 440px); margin: 0 auto; }

/* Short quotes under the hero */
.press { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; max-width: 1300px; margin: 0 auto; padding: 1.5rem 4vw 4.5rem; text-align: center; }
.press figure { margin: 0; }
.press blockquote { margin: 0; font-size: clamp(1.2rem, 1.9vw, 1.5rem); font-style: italic; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
figcaption { margin-top: 0.8rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }

/* Dark band */
.tension { background: var(--ink); color: #fff; padding: 6rem 4vw; }
.tension-inner { max-width: 50rem; margin: 0 auto; }
.tension h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin: 0 0 1.4rem; }
.tension p { font-size: 1.22rem; color: #d6d6d6; }
.symptoms { list-style: none; padding: 0; margin: 2rem 0; border-top: 1px solid #333; }
.symptoms li { position: relative; padding: 1rem 0 1rem 2.2rem; border-bottom: 1px solid #333; font-size: 1.15rem; }
.symptoms li::before { content: "!"; position: absolute; left: 0.35rem; top: 0.95rem; color: var(--yellow); font-weight: 800; }
.sting { color: #fff !important; font-size: 1.35rem !important; font-style: italic; margin-top: 2rem; }
.from-book { margin: 2.2rem 0 0; padding: 0.2rem 0 0 1.4rem; border-left: 3px solid var(--yellow); }
.from-book p { margin: 0; color: #fff; font-size: 1.4rem; font-style: italic; line-height: 1.4; }
.from-book cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #9d9d9d; }

/* Prose sections */
.release, .story { max-width: 48rem; margin: 0 auto; padding: 5.5rem 4vw 2rem; }
.release h2, .story h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin: 0.2rem 0 1.3rem; }
.release p, .story p { font-size: 1.2rem; }
.story a:not(.button) { color: var(--red); }

.master { text-align: center; padding: 4rem 4vw 5rem; }
.master .say { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 8vw, 6.5rem); letter-spacing: -0.01em; line-height: 1.05; max-width: none; margin: 0.4rem auto 1.4rem; }
.master .say span { box-shadow: inset 0 -0.18em 0 var(--yellow); }
.master p { max-width: 38rem; margin: 0 auto; font-size: 1.2rem; }
.master .actions { justify-content: center; }

/* Fair Warning */
.warning { background: var(--yellow-soft); padding: 5rem 4vw; }
.warning-inner { max-width: 62rem; margin: 0 auto; }
.warning blockquote { margin: 0 auto; max-width: 46rem; text-align: center; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; font-style: italic; letter-spacing: -0.02em; line-height: 1.25; }
.warning .sig { text-align: center; margin: 1rem 0 0; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
.promises div { background: #fff; padding: 1.5rem 1.4rem; border-top: 4px solid var(--yellow); }
.promises strong { display: block; font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.promises p { margin: 0; color: var(--mute); }

/* Patches */
.patches { max-width: 1250px; margin: 0 auto; padding: 5rem 4vw 2rem; }
.patches > h2, .patches > p { text-align: center; }
.patches > h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0.2rem 0 0.6rem; }
.patches > p { color: var(--mute); max-width: 40rem; margin: 0 auto 2.4rem; font-size: 1.1rem; }
.patch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.patch-grid div { border: 1px solid var(--line); padding: 1.3rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; transition: background 0.2s ease, color 0.2s ease; }
.patch-grid div:hover { background: var(--ink); color: #fff; }
.patch-grid strong { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
.patch-grid em { color: var(--red); font-size: 1.02rem; }
.patch-grid div:hover em { color: var(--yellow); }
.patch-grid span { font-size: 0.95rem; color: var(--mute); }
.patch-grid div:hover span { color: #cfcfcf; }
.center { text-align: center; }

/* Reader quotes */
.wall { padding: 5rem 4vw 2.5rem; border-top: 1px solid var(--line); margin-top: 3rem; }
.wall-head { text-align: center; max-width: 48rem; margin: 0 auto 3rem; }
.wall-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin: 0.2rem 0 0.6rem; }
.wall-head p { color: var(--mute); font-size: 1.1rem; }
.wall-grid { columns: 3 300px; column-gap: 1.4rem; max-width: 1300px; margin: 0 auto; }
.wall-grid figure { break-inside: avoid; margin: 0 0 1.4rem; padding: 1.6rem 1.6rem 1.3rem; border: 1px solid var(--line); border-top: 3px solid var(--yellow); }
.wall-grid blockquote { margin: 0; font-style: italic; font-size: 1.08rem; line-height: 1.55; }
.wall-grid .big blockquote { font-size: 1.35rem; font-weight: 500; line-height: 1.35; }
.wall-grid figcaption::before { content: "— "; }
.wall-cta { text-align: center; margin-top: 2.4rem; }

/* Fridge sheet */
.fridge { background: var(--yellow); padding: 5rem 4vw; }
.fridge-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4vw; align-items: center; max-width: 1150px; margin: 0 auto; }
.fridge img { width: 100%; border: 1px solid rgba(0, 0, 0, 0.15); background: #fff; transform: rotate(-2deg); }
.fridge h2, .fridge h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin: 0.2rem 0 1rem; }
.fridge p { font-size: 1.2rem; }
.fridge .kicker { color: var(--ink); }
.fridge .button.ghost { border-color: var(--ink); }
.fridge-steps { padding-left: 1.2rem; font-size: 1.1rem; }
.fridge-steps li { margin: 0.4rem 0; }

/* Second page */
.page-hero { text-align: center; padding: 4.5rem 4vw 2rem; max-width: 60rem; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; margin: 0.3rem 0 1.2rem; }
.page-hero .lede { margin: 0 auto; }
.page-hero .actions { justify-content: center; }
.contents { max-width: 60rem; margin: 0 auto; padding: 3rem 4vw 1rem; }
.contents h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 0.2rem 0 1.2rem; text-align: center; }
.part { margin: 2.4rem 0 0; }
.part h3 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); font-weight: 600; margin: 0 0 0.6rem; }
.part ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.part li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.part li b { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--coral); line-height: 1.2; }
.part li strong { display: block; font-size: 1.15rem; }
.part li span { color: var(--mute); }

.author { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: center; max-width: 1250px; margin: 4rem auto 0; padding: 0 4vw; }
.author img { width: 100%; }
.author h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0.2rem 0 1rem; }
.author a:not(.button) { color: var(--red); }

.legal { max-width: 46rem; margin: 0 auto; padding: 4rem 4vw; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0.2rem 0 0.6rem; }
.legal h2 { font-size: 1.35rem; margin: 2.4rem 0 0.5rem; letter-spacing: -0.01em; }
.legal p { color: #333; }
.legal a { color: var(--red); }

/* Sign-up */
.signup-band { text-align: center; padding: 4.5rem 4vw; border-top: 1px solid var(--line); }
.signup-band h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 0 0 0.5rem; }
.fine { color: var(--mute); font-size: 0.95rem; }
form { display: grid; gap: 0.7rem; }
.signup-band form { margin: 1.4rem auto 0; grid-template-columns: 1fr auto; align-items: end; max-width: 32rem; text-align: left; }
label { display: grid; gap: 0.3rem; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
input { border: 1px solid #cfcfcf; background: #fff; color: var(--ink); padding: 0.8rem; font-size: 1rem; }
.hp { position: absolute; left: -9999px; }
.form-status { grid-column: 1 / -1; margin: 0; }
.form-status[data-state="ok"] { color: #1d6b3a; }
.form-status[data-state="err"] { color: var(--red); }

/* Footer */
.site-footer { background: #111; color: #cfcfcf; padding: 0 4vw 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.foot-quote { margin: 0; padding: 4.5rem 0 3.5rem; text-align: center; border-bottom: 1px solid #2a2a2a; }
.foot-quote blockquote { margin: 0 auto; max-width: 50rem; color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.3rem); font-style: italic; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.foot-quote figcaption { color: #8d8d8d; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding: 3.5rem 0; }
.foot-mark { font-family: var(--display); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; }
.foot-brand p { max-width: 26rem; font-size: 0.95rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.93rem; }
.site-footer nav h2 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: #8d8d8d; font-weight: 500; margin: 0 0 0.6rem; }
.foot-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid #2a2a2a; padding-top: 1.6rem; font-size: 0.82rem; color: #8d8d8d; }
.foot-legal span:last-child { display: flex; gap: 1.4rem; }
.foot-legal a { color: #cfcfcf; }

a.button, a.button:visited { color: #fff; }
a.button.ghost, a.button.light { color: var(--ink); }
a.button.ghost:hover { color: #fff; }

@media (max-width: 1000px) {
  .patch-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu { display: inline-flex; }
  .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 0.4rem 4vw 1rem; }
  .top nav.open { display: flex; }
  .top nav a { padding: 0.7rem 0; border-top: 1px solid var(--line); }
  .top nav .nav-buy { text-align: center; margin-top: 0.6rem; padding: 0.7rem; }
  .hero, .fridge-inner, .author { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; text-align: center; }
  .hero h1, .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .actions { justify-content: center; }
  .hero-book img { width: min(70%, 320px); }
  .fridge img { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .press, .promises { grid-template-columns: 1fr; }
  .signup-band form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .patch-grid, .foot-grid { grid-template-columns: 1fr; }
}
@media print {
  .top, .site-footer, .signup-band { display: none; }
}
