/* Wake Up or Become Irrelevant – book website
   Design derived from the cover "Signalfeld dunkel":
   Bricolage Grotesque (condensed, extra bold) for display, Inter for text,
   ink black, warm paper white and one signal orange with two darker echoes. */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-standard.woff2") format("woff2-variations"),
       url("../fonts/bricolage-grotesque-latin-standard.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #141414;
  --ink-raised: #1b1a19;
  --ink-line: #2d2b29;
  --ink-field: #4a4744;
  --paper: #f5f3ee;
  --paper-line: #d9d5cc;
  --muted: #b8b4ac;
  --muted-ink: #57534d;
  --signal: #ff5a1f;
  --signal-text: #b33a0d;   /* signal for small text on paper (AA) */
  --signal-soft: #ff8a5c;   /* error text on ink */
  --ember: #773119;
  --ash: #3a1f16;

  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 75rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--signal); color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 82%;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.005em;
  line-height: .9;
}

.upper { text-transform: uppercase; }
.signal { color: var(--signal); }

.skip {
  position: absolute;
  left: -999px;
  top: .5rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--signal);
  color: var(--ink);
  font-weight: 600;
}
.skip:focus { left: .5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 82%;
  font-variation-settings: "opsz" 96;
  font-size: 1.3rem;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  gap: 2px;
  width: .85rem;
}
.brand-mark i { display: block; height: 3px; background: var(--signal); }
.brand-mark i:nth-child(2) { background: var(--ember); }
.brand-mark i:nth-child(3) { background: var(--ash); }

.brand-tail { color: var(--signal); }

@media (max-width: 30rem) {
  .brand-tail { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .9rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 0;
  font: 600 1rem/1.1 var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}

.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: var(--paper); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--paper); color: var(--ink); }

.btn-ghost { border-color: currentColor; background: transparent; color: var(--paper); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }

.btn-sm { min-height: 2.5rem; padding: .5rem 1rem; font-size: .875rem; }

.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}
.text-link:hover { color: var(--signal); }

/* ---------- Shared section bits ---------- */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--ink-line); }

.label {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.5rem;
  color: var(--signal);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.label::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; }

.section-title {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: .92;
  text-wrap: balance;
}
.section-title .line { display: block; }

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dot {
  flex: none;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--signal);
}

@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 2.4s ease-out infinite; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(255 90 31 / .55); }
  70%, 100% { box-shadow: 0 0 0 .6rem rgb(255 90 31 / 0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow-x: clip;   /* clip the glow sideways, let the book shadow fade out below */
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3.5rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

.hero-copy { container-type: inline-size; }

.hero-title {
  font-size: clamp(2.75rem, 24cqi, 8.5rem);
  line-height: .84;
  text-transform: uppercase;
}
.hero-title .line { display: block; }
/* As on the cover, the IRRELEVANT echoes run a size smaller. */
.hero-title .line:nth-child(n+3) { font-size: .77em; }
.hero-title .echo-1 { color: var(--ember); }
.hero-title .echo-2 { color: var(--ash); }

@media (prefers-reduced-motion: no-preference) {
  .hero-title .line { animation: rise .9s var(--ease) both; }
  .hero-title .line:nth-child(2) { animation-delay: .07s; }
  .hero-title .line:nth-child(3) { animation-delay: .14s; }
  .hero-title .line:nth-child(4) { animation-delay: .3s; }
  .hero-title .line:nth-child(5) { animation-delay: .44s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(.22em); }
  to { opacity: 1; transform: none; }
}

.hero-sub { margin: 2.5rem 0 0; max-width: 36rem; }

.book-title {
  display: block;
  font-size: clamp(2.1rem, 11cqi, 3.4rem);
  line-height: .95;
}

.book-subtitle {
  display: block;
  margin-top: .6rem;
  font-size: clamp(1.125rem, 5.2cqi, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .005em;
}

.hero-tagline {
  max-width: 32rem;
  margin: 1rem 0 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}

.hero-cover {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Warm light behind the book, so its dark cover and cast shadow read */
.hero-cover::before {
  content: "";
  position: absolute;
  inset: -8% -30%;
  background:
    radial-gradient(ellipse 42% 48% at 60% 52%, rgb(255 90 31 / .32), rgb(255 90 31 / .1) 60%, transparent 100%),
    radial-gradient(ellipse 30% 40% at 52% 50%, rgb(245 243 238 / .06), transparent 100%);
  pointer-events: none;
}

/* 3D book: the cover image sits in front, ::before is the page block on the
   right edge, ::after the back cover with the cast shadow. Turned so the
   pages show; the cover is as dark as the page, the pages make it a book. */
/* Stage: perspective for the 3D book plus a silhouette shadow cast to the
   lower right. The filter sits here because on .book it would flatten the 3D. */
.book-3d {
  perspective: 1600px;
  filter:
    drop-shadow(1.25rem 1rem 1rem rgb(0 0 0 / .55))
    drop-shadow(3rem 2.5rem 2.5rem rgb(0 0 0 / .5));
}

.book {
  --book-w: min(68vw, 24rem);
  --book-t: calc(var(--book-w) * .11);
  position: relative;
  width: var(--book-w);
  aspect-ratio: 2 / 3;
  margin: 0;
  transform-style: preserve-3d;
  transform: rotateY(-32deg) rotateX(3deg);
  transition: transform .9s var(--ease);
}

.book picture {
  position: absolute;
  inset: 0;
  display: block;
  transform: translateZ(calc(var(--book-t) / 2));
  border-radius: 0 3px 3px 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgb(245 243 238 / .08);
}
.book img { width: 100%; height: 100%; object-fit: cover; }

/* Hinge crease near the spine and a soft sheen across the cover */
.book picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgb(0 0 0 / .5) 0,
      rgb(255 255 255 / .14) 1%,
      rgb(0 0 0 / .25) 2.4%,
      transparent 6%),
    linear-gradient(115deg, rgb(255 255 255 / .07) 0%, transparent 35%, transparent 70%, rgb(0 0 0 / .18) 100%);
  pointer-events: none;
}

/* Page block */
.book::before {
  content: "";
  position: absolute;
  top: 1.2%;
  bottom: 1.2%;
  left: 0;
  width: calc(var(--book-t) - 2px);
  transform: translateX(calc(var(--book-w) - var(--book-t) / 2 - 3px)) rotateY(90deg);
  background:
    linear-gradient(90deg, rgb(0 0 0 / .28), transparent 18%, transparent 82%, rgb(0 0 0 / .35)),
    repeating-linear-gradient(90deg, #f5f3ee 0 2px, #ddd8ce 2px 3px);
}

/* Back cover */
.book::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateZ(calc(var(--book-t) / -2));
  border-radius: 0 3px 3px 0;
  background: #0d0d0d;
}

@media (hover: hover) {
  .book:hover { transform: rotateY(-18deg) rotateX(2deg); }
}

/* Fade the wrapper, not the book: opacity on .book would flatten the 3D */
@media (prefers-reduced-motion: no-preference) {
  .hero-cover { animation: fade 1.2s .35s var(--ease) both; }
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Myth ---------- */
.myth-quote {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: .92;
  text-wrap: balance;
}

.myth-body {
  display: grid;
  gap: 1.25rem;
  max-width: 64rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 50rem) {
  .myth-body { grid-template-columns: 1fr 1.5fr; gap: 3rem; }
}

.myth-body p { margin: 0; color: var(--muted); }
.myth-body .lead { color: var(--paper); font-weight: 600; }

.question-shift {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--ink-line);
}

.q {
  display: grid;
  gap: .75rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--ink-line);
}

@media (min-width: 50rem) {
  .q { grid-template-columns: 15rem 1fr; gap: 2rem; align-items: baseline; }
}

.q-label {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.q p { margin: 0; }

.q-old p {
  color: var(--muted);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.3;
}
.q-old s {
  text-decoration-color: var(--signal);
  text-decoration-thickness: 3px;
}

.q-new .q-label { color: var(--signal); }
.q-new p {
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: .98;
  text-wrap: balance;
}

/* ---------- Rules of relevance ---------- */
.shift-list {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink-line);
}

.shift-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1.5rem;
  padding-block: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--ink-line);
}

.shift-key {
  font-size: clamp(3.25rem, 12.5vw, 9.5rem);
  line-height: .85;
  text-transform: uppercase;
}

.shift-val {
  color: var(--muted);
  font-size: clamp(1.125rem, 2.2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.3;
}

/* Words ignite from the cover's echo colours to paper as they scroll in. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .shift-key {
      animation: ignite linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
  }
}

@keyframes ignite {
  from { color: var(--ash); }
  50% { color: var(--ember); }
  80% { color: var(--signal); }
  to { color: var(--paper); }
}

.shifts-note {
  max-width: 44rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  color: var(--muted);
}
.shifts-note strong { color: var(--paper); font-weight: 600; }

/* ---------- Inside the book (paper) ---------- */
.paper {
  background: var(--paper);
  color: var(--ink);
}
.section.paper { border-top: 0; }
.section.paper + .section { border-top: 0; }
.paper .label { color: var(--signal-text); }
.paper .lead { color: var(--muted-ink); }

.inside-head {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
}
.inside-head .lead { margin: 0; max-width: 42rem; }

.parts {
  display: grid;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

@media (min-width: 54rem) {
  .parts {
    grid-auto-flow: column;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    column-gap: 3.5rem;
  }
}

.parts li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--paper-line);
}

.part-no {
  color: var(--signal);
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 82%;
  font-variation-settings: "opsz" 96;
  font-size: 2.25rem;
  line-height: .9;
}

.parts h3 {
  margin-bottom: .35rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.parts p {
  margin: 0;
  color: var(--muted-ink);
  font-size: .975rem;
  line-height: 1.55;
}

.five-five {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

@media (min-width: 54rem) {
  .five-five { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.five {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--ink);
  color: var(--paper);
}

.five h3 {
  margin-bottom: .4rem;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  text-transform: uppercase;
}

.five-intro {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: .975rem;
}

.five ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: five;
}

.five li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: .85rem;
  border-top: 1px solid var(--ink-line);
  counter-increment: five;
  font-size: 1.0625rem;
  font-weight: 600;
}

.five li::before {
  content: counter(five, decimal-leading-zero);
  color: var(--signal);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

.five.strategies {
  background: var(--signal);
  color: var(--ink);
}
.five.strategies .five-intro { color: rgb(20 20 20 / .78); }
.five.strategies li { border-top-color: rgb(20 20 20 / .22); }
.five.strategies li::before { color: var(--ink); }

/* ---------- Audience ---------- */
.audience-grid {
  display: grid;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--ink-line);
}

.audience-grid article {
  padding-block: 2rem;
  border-bottom: 1px solid var(--ink-line);
}

@media (min-width: 54rem) {
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
  .audience-grid article { padding: 2.25rem 2rem 2.5rem; }
  .audience-grid article:first-child { padding-left: 0; }
  .audience-grid article + article { border-left: 1px solid var(--ink-line); }
}

.num {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--signal);
  font-size: 3.5rem;
}

.audience-grid h3 {
  margin-bottom: .6rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.audience-grid p { margin: 0; color: var(--muted); }

/* ---------- Pre-read (signal field) ---------- */
.preread {
  background: var(--signal);
  color: var(--ink);
}
.section.preread, .preread + .section { border-top: 0; }

.preread .label { color: var(--ink); }

.preread-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 60rem) {
  .preread-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 31rem); }
}

.preread-title {
  font-size: clamp(3rem, 8.5vw, 7rem);
  line-height: .86;
  text-transform: uppercase;
}

.preread .lead { max-width: 34rem; margin: 1.75rem 0 0; }

.checks {
  display: grid;
  gap: .8rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.checks li {
  display: grid;
  grid-template-columns: .65rem 1fr;
  gap: .9rem;
  align-items: baseline;
}

.checks li::before {
  content: "";
  width: .65rem;
  height: .65rem;
  background: var(--ink);
}

.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 2rem 4rem -2rem rgb(0 0 0 / .55);
}

.form-card-title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  text-transform: uppercase;
}

.draft-note {
  margin: 0 0 1.5rem;
  padding: .6rem .8rem;
  border: 1px dashed var(--ink-field);
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.45;
}

.form { display: grid; gap: 1.1rem; }

.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 32rem) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: .4rem; }

.field label {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.field .opt { font-weight: 400; letter-spacing: 0; text-transform: none; }

.field input {
  width: 100%;
  min-height: 3.1rem;
  padding: .75rem .9rem;
  border: 1px solid var(--ink-field);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font: 400 1rem/1.4 var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #75716b; }
.field input:hover { border-color: var(--muted); }
.field input:focus { outline: none; border-color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }

.field-error {
  display: none;
  margin: 0;
  color: var(--signal-soft);
  font-size: .8125rem;
}

.was-validated .field:has(input:invalid) input { border-color: var(--signal-soft); }
.was-validated .field:has(input:invalid) .field-error,
.was-validated .consent:has(input:invalid) + .field-error { display: block; }

.consent {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: .8rem;
  align-items: start;
  margin-top: .25rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  appearance: none;
  display: grid;
  place-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin: .1rem 0 0;
  border: 1px solid #6c6863;
  background: transparent;
  cursor: pointer;
}
.consent input::before {
  content: "";
  width: .7rem;
  height: .7rem;
  background: var(--signal);
  transform: scale(0);
  transition: transform .15s var(--ease);
}
.consent input:checked { border-color: var(--signal); }
.consent input:checked::before { transform: scale(1); }
.was-validated .consent:has(input:invalid) input { border-color: var(--signal-soft); }
.consent a { color: var(--paper); text-underline-offset: .2em; }

.form .btn-primary {
  width: 100%;
  min-height: 3.5rem;
  margin-top: .4rem;
  font-size: 1.0625rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: .8125rem;
  text-align: center;
}

/* Starting height until Jotform's embed handler sizes the frame to its content */
.jotform-frame { display: block; width: 100%; height: 34rem; border: 0; }

/* ---------- Authors ---------- */
.author-list {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--signal);
}

.author-list li {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--ink-line);
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  line-height: 1;
  text-wrap: balance;
}

.authors .lead {
  max-width: 46rem;
  margin: 2.5rem 0 0;
  color: var(--muted);
}

/* ---------- Closing ---------- */
.closing-quote {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: .95;
  text-wrap: balance;
}

.closing-actions { margin-top: 2.5rem; }

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
}

.footer-inner p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }

/* ---------- Thank-you page ---------- */
.thanks { padding-block: clamp(2.5rem, 7vw, 5.5rem) var(--section); }

.thanks-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

@media (min-width: 56rem) {
  .thanks-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}

.thanks-copy { container-type: inline-size; }

.thanks-title {
  font-size: clamp(3rem, 15cqi, 8rem);
  line-height: .88;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.thanks-title .line { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .thanks-title .line { animation: rise .9s var(--ease) both; }
  .thanks-title .line + .line { animation-delay: .12s; }
}

.thanks-copy > .lead { max-width: 36rem; margin: 2rem 0 0; color: var(--muted); }

.recap {
  display: grid;
  max-width: 36rem;
  margin: 2rem 0 0;
  border-top: 2px solid var(--signal);
}

.recap div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding-block: .9rem;
  border-bottom: 1px solid var(--ink-line);
}

.recap dt {
  padding-top: .2rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.recap dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.thanks-subtitle {
  margin-top: clamp(3rem, 6vw, 4rem);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-transform: uppercase;
}

.steps {
  display: grid;
  gap: 1.4rem;
  max-width: 36rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  color: var(--muted);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--signal);
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 82%;
  font-variation-settings: "opsz" 96;
  font-size: 2rem;
  line-height: .95;
}

.steps strong { display: block; color: var(--paper); font-weight: 600; }

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.75rem;
}

.share-status {
  min-height: 1.5em;
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: .875rem;
}

.thanks-cover { display: flex; justify-content: center; }
.thanks-cover .book { --book-w: min(52vw, 19rem); }

@media (min-width: 56rem) {
  .thanks-cover { position: sticky; top: 7rem; }
}

/* ---------- Legal pages (imprint, privacy policy) ---------- */
.legal { padding-block: clamp(2.5rem, 7vw, 5.5rem) var(--section); }

.legal-head,
.legal-body { max-width: 46rem; }

.legal-title {
  font-size: clamp(2.75rem, 9vw, 6rem);
  line-height: .88;
  text-transform: uppercase;
  hyphens: manual;
  overflow-wrap: break-word;
}

.legal-note {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
}
.legal-note a { color: var(--paper); text-decoration-color: var(--signal); text-underline-offset: .2em; }
.legal-note a:hover { color: var(--signal); }

.legal-body {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 2rem;
  border-top: 2px solid var(--signal);
  color: var(--muted);
}

.legal-body h2 {
  margin: 3rem 0 1rem;
  color: var(--paper);
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 82%;
  font-variation-settings: "opsz" 96;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1;
  text-wrap: balance;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-no { color: var(--signal); }

.legal-body h3 {
  margin: 2rem 0 .5rem;
  color: var(--paper);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.legal-body p { margin: 0 0 1rem; }
.legal-body strong { color: var(--paper); font-weight: 600; }

.legal-body a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
.legal-body a:hover { color: var(--signal); }

.legal-body ul {
  display: grid;
  gap: .5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.legal-body li {
  position: relative;
  padding-left: 1.4rem;
}
.legal-body li::before {
  content: "";
  position: absolute;
  top: .6em;
  left: 0;
  width: .5rem;
  height: .5rem;
  background: var(--signal);
}

.legal-body .legal-date {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink-line);
  font-size: .875rem;
}

.site-footer a[aria-current="page"] { color: var(--paper); }

/* Privacy link under the form card; the Jotform consent text cannot carry a link */
.form-privacy {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: .8125rem;
  text-align: center;
}
.form-privacy a { color: var(--paper); text-underline-offset: .2em; }
.form-privacy a:hover { color: var(--signal); }
