/* pages.css — shared styling for the pages that are not exported from the
 * design tool (field card, thank you, privacy, terms).
 *
 * Every value here is lifted from the sales page's own CSS. No new colour,
 * no new font, no new component. The sales page and the essay keep their own
 * embedded styles and do not load this file.
 *
 * Note on Newsreader. The upright faces used to be requested from
 * fonts.gstatic.com on URLs that had gone 404, so upright body text fell back
 * to Georgia for a long time. They are now self-hosted alongside the italic,
 * so the site finally reads in the typeface it was always asking for and
 * nothing is fetched from Google at all.
 */

/* ── Fonts (same files the sales page uses) ─────────────────────────────── */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-400-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-400-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/newsreader-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/newsreader-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/newsreader-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #F7F2E7;
  color: #2D2820;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
em, i, .lede { font-family: 'Newsreader', Georgia, serif; font-style: italic; }
a { color: #6B5316; text-decoration: none; }
a:hover { color: #A8862C; }
::selection { background: #c0954c; color: #12100c; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.section { padding: clamp(60px, 9vh, 100px) clamp(24px, 5vw, 72px); }
.wrap { max-width: 720px; margin: 0 auto; }
.wrap-wide { max-width: 980px; margin: 0 auto; }

/* ── Type ──────────────────────────────────────────────────────────────── */
.label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #6B5316;
  margin: 0 0 20px;
}
h1 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 28px;
  color: #11100C;
}
h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 40px 0 14px;
  color: #11100C;
}
p { margin: 0 0 20px; }
.lede { font-size: clamp(19px, 2.1vw, 22px); }
.fine {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.6;
  color: #8a7d63;
}

/* ── Call to action, same gold as the sales page ───────────────────────── */
.cta {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #11100C;
  background: linear-gradient(150deg, #e9d39a 0%, #d8bd76 52%, #c3a557 100%);
  border: 1px solid rgba(17, 16, 12, .28);
  padding: 20px 44px;
  transition: transform .15s ease, filter .15s ease;
  filter: drop-shadow(0 2px 4px rgba(17, 16, 12, .22));
  cursor: pointer;
}
.cta:hover {
  color: #11100C;
  transform: translateY(-2px);
  filter: drop-shadow(0 7px 14px rgba(17, 16, 12, .28));
}

/* ── Email capture ─────────────────────────────────────────────────────── */
.capture { margin: 36px 0 0; }
.capture label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6B5316;
  margin-bottom: 10px;
}
.capture input[type="email"] {
  width: 100%;
  padding: 18px 20px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  color: #2D2820;
  background: #FFFDF8;
  border: 1px solid rgba(20, 16, 12, .28);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.capture input[type="email"]:focus {
  outline: 2px solid #6B5316;
  outline-offset: 1px;
}
.capture .cta { width: 100%; margin-top: 14px; }
@media (min-width: 620px) {
  .capture .row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
  .capture .cta { width: auto; margin-top: 0; padding: 18px 36px; }
}
.formnote { margin-top: 16px; }
.error {
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(140, 40, 30, .4);
  background: #F6E9E2;
  color: #6b2a1c;
  font-size: 16px;
}
[hidden] { display: none !important; }

/* ── Gates ─────────────────────────────────────────────────────────────── */
/* The card is three gates, worked in order. Each gate carries a different
 * instruction about what a failure inside it means, so they are separated
 * visually rather than run together as one list of nine. */
.gate { margin: 52px 0 0; }
.gate:first-of-type { margin-top: 40px; }
.gate-head {
  padding-bottom: 14px;
  border-bottom: 2px solid #6B5316;
}
.gate-n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #6B5316;
  display: block;
  margin-bottom: 8px;
}
.gate-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 8px;
  color: #11100C;
}
/* Gate warnings are colour-coded by severity, taken from gateDefs in the
 * book's own source: gate one is #8E2B2B and italic because a failure there
 * ends the purchase; gates two and three are #514a3c and upright because they
 * only change the price. Colouring all three alike would throw away the
 * distinction the author built in. Both values are the book's, not new. */
.gate-note {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 17px;
  line-height: 1.5;
  color: #514a3c;
  margin: 0;
}
.gate-note--walkaway {
  color: #8E2B2B;
  font-style: italic;
}

/* ── The nine moves ────────────────────────────────────────────────────── */
/* Deliberately a stacked list, not a table: this is read one-handed at a
 * counter on a 375px screen. */
.moves { list-style: none; margin: 0; padding: 0; counter-reset: move; }
.move {
  counter-increment: move;
  padding: 26px 0;
  border-bottom: 1px solid rgba(20, 16, 12, .16);
}
.move:first-child { border-top: 1px solid rgba(20, 16, 12, .16); }
.move .n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .28em;
  color: #6B5316;
  display: block;
  margin-bottom: 8px;
}
.move h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 10px;
  color: #11100C;
}
.move p { margin: 0 0 12px; }
/* The words you actually say out loud. Styled as the book styles them
 * (.fc-script): Newsreader italic in the accent colour, behind a left rule —
 * a quoted human voice, not a code sample. The book drops the indent and
 * uses the rule at narrow widths, which is the only width this page has to
 * work at. */
.move .say {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: #6B5316;
  border-left: 3px solid #6B5316;
  padding: 2px 0 2px 14px;
  margin: 14px 0 0;
}

/* ── Spread figures for move 05 ────────────────────────────────────────── */
/* A short table is right here, unlike the moves themselves: it is two
 * numbers per row and it is being compared against, not read. */
.spread {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}
.spread caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6B5316;
  text-align: left;
  padding-bottom: 8px;
}
.spread th,
.spread td {
  text-align: left;
  padding: 7px 10px 7px 0;
  border-bottom: 1px solid rgba(20, 16, 12, .13);
}
.spread th {
  font-weight: 500;
  color: #6B5316;
  letter-spacing: .06em;
}
.spread td:last-child { color: #8a5a2b; }

/* ── Foot ──────────────────────────────────────────────────────────────── */
.foot {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(20, 16, 12, .16);
}
