/* ==========================================================================
   sfwunlocked.com - v2

   A sibling of francisskipper.com and pointssouth.agency.
   Type system is the personal site's: Playfair Display for display and
   pull text, DM Sans 300 for body, DM Mono tracked caps for labels.
   Ground is SFW paper (#F8F7F4) with the personal site's grain.

   RED RULES (agreed 2026-09-06):
     1. Red has three jobs: the logo, the label/number tick, and one big
        red-pen moment per page. Nothing else.
     2. Buttons and links are ink. Never red.
     3. Dark ink bands are allowed. The logo never sits on one.
   No em dashes anywhere in copy.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/playfair-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-italic-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/dmsans-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/dmsans-italic-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dmmono-latin-400.woff2') format('woff2');
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  --paper: #f8f7f4;
  --paper-2: #efece6;
  --white: #fffdf9;
  --ink: #1c1a17;
  --ink-2: #3d3a35;
  --ink-3: #7d7973;
  --grey: #545454;
  --red: #c11d1d;
  --rule: rgba(28, 26, 23, 0.12);
  --rule-solid: #ddd9d1;

  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --max: 1040px;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --nav-h: 72px;
}

/* --- Reset ---------------------------------------------------------------- */

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

a { color: inherit; text-decoration: none; }

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

/* --- Skip link ------------------------------------------------------------ */

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1rem; z-index: 200;
  font-family: var(--mono); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.72rem;
}
.skip:focus { left: 0; }

/* --- Shell ---------------------------------------------------------------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: 780px; }

/* --- Labels: the all-caps motif ------------------------------------------ */

.label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2.25rem;
}
.label::after {
  content: '';
  flex: 0 0 60px;
  height: 1px;
  background: var(--rule);
}
.label--red { color: var(--red); }
.label--red::after { background: var(--red); flex-basis: 40px; }
.label--tight { margin-bottom: 1rem; }

/* Legacy alias used by the inner pages until they are reworked. */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.9rem;
}
.eyebrow--red { color: var(--red); }

/* --- Type ----------------------------------------------------------------- */

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
}

h1 em, h2 em { font-style: italic; color: var(--red); }

.pull {
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink);
  max-width: 34em;
}
.pull strong { font-weight: 500; }

p { color: var(--ink-2); max-width: var(--measure); }
p + p { margin-top: 1rem; }
strong { font-weight: 500; color: var(--ink); }

.lede {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.small { font-size: 0.85rem; color: var(--ink-3); }
.note { font-size: 0.85rem; color: var(--ink-3); font-style: italic; }

/* --- Buttons: ink on paper, paper on ink. Never red. --------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.95rem 1.4rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--ink-2); color: var(--paper); transform: translateY(-1px); }
.btn::after { content: '\2192'; font-family: var(--body); font-weight: 400; }
.btn--plain::after { content: none; }

.on-ink .btn { border-color: var(--paper); color: var(--paper); }
.on-ink .btn:hover { background: var(--paper); color: var(--ink); }
.on-ink .btn--solid { background: var(--paper); color: var(--ink); }
.on-ink .btn--solid:hover { background: #fff; color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.textlink {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity 0.2s;
}
.textlink:hover { opacity: 0.6; }
.on-ink .textlink { color: var(--paper); border-color: rgba(248,247,244,0.5); }

/* --- Nav ------------------------------------------------------------------ */

.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s;
}
.masthead.scrolled { box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06); }

.masthead .wrap {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: block; line-height: 0; flex: 0 0 auto; }
.brand img { width: 118px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a { color: var(--ink-3); transition: color 0.2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }
.nav .btn { padding: 0.7rem 1rem; margin-left: 0.5rem; color: var(--paper); }
.nav .btn::after { content: none; }

.nav-toggle {
  display: none;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

main { padding-top: var(--nav-h); }

/* --- Sections ------------------------------------------------------------- */

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  border-bottom: 1px solid var(--rule);
}
.section--flush { border-bottom: 0; }
.section--tint { background: var(--paper-2); }

.on-ink { background: var(--ink); color: var(--paper); }
.on-ink h1, .on-ink h2, .on-ink h3 { color: var(--paper); }
.on-ink p { color: rgba(248, 247, 244, 0.72); }
.on-ink p em, .on-ink p strong { color: var(--paper); }
.on-ink .label { color: rgba(248, 247, 244, 0.45); }
.on-ink .label::after { background: rgba(248, 247, 244, 0.18); }
.on-ink .label--red { color: var(--red); }
.on-ink .label--red::after { background: var(--red); }
.on-ink .pull { color: rgba(248, 247, 244, 0.9); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split--text-wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--photo { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.75rem;
}
.hero h1 { margin-bottom: 1.75rem; }
.hero .lede { max-width: 30rem; }

/* Ghost text behind the hero, like the agency site's wordmark. */
.hero-ghost {
  position: absolute;
  top: 50%;
  left: -1rem;
  transform: translateY(-50%);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(7rem, 18vw, 17rem);
  line-height: 1;
  color: rgba(28, 26, 23, 0.035);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* The red-pen object: a slide cover with three letters across it. */
.deck {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 440px;
  width: 100%;
  margin: 0 0 0 auto;
}
.deck-card {
  position: absolute;
  inset: 0;
  background: var(--white);
  border: 1px solid var(--rule-solid);
  box-shadow: 0 30px 60px -30px rgba(28, 26, 23, 0.35), 0 2px 6px rgba(28, 26, 23, 0.05);
  padding: 8% 9% 8%;
  display: flex;
  flex-direction: column;
}
.deck-card::before,
.deck-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  border: 1px solid var(--rule-solid);
  z-index: -1;
}
.deck-card::before { transform: translate(10px, 10px); }
.deck-card::after { transform: translate(20px, 20px); opacity: 0.6; }

.deck-meta {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
}
.deck-title {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.25;
  color: var(--ink);
  margin-top: 8%;
  max-width: 80%;
}
.deck-lines { margin-top: auto; display: grid; gap: 8px; }
.deck-lines span { display: block; height: 6px; background: var(--paper-2); }
.deck-lines span:nth-child(1) { width: 92%; }
.deck-lines span:nth-child(2) { width: 74%; }
.deck-lines span:nth-child(3) { width: 84%; }
.deck-lines span:nth-child(4) { width: 56%; }

/* The three letters. Written, not typeset: italic, over-scale, tilted. */
.deck-sfw {
  position: absolute;
  right: 9%;
  bottom: 22%;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(5rem, 11vw, 7.5rem);
  line-height: 0.8;
  color: var(--red);
  letter-spacing: -0.04em;
  transform: rotate(-8deg);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.deck-sfw svg {
  position: absolute;
  left: -6%;
  width: 112%;
  bottom: -26%;
  height: auto;
  overflow: visible;
}
.deck-caption {
  position: absolute;
  left: 0;
  bottom: -2.6rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --- Tally strip: 45 / 15 / 6 ------------------------------------------ */

.tally {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tally div { padding: 1.6rem 1.25rem 1.6rem 0; border-right: 1px solid var(--rule); }
.tally div:last-child { border-right: 0; }
.tally b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.tally b.struck {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
}
.tally span {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.5;
}

/* --- Red-margin pull ----------------------------------------------------- */

.redpull {
  border-left: 2px solid var(--red);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 24em;
}
.on-ink .redpull { color: var(--paper); }

/* --- Stats (proof) -------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.stats b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stats b sup { font-size: 0.5em; color: var(--red); vertical-align: top; position: relative; top: 0.15em; }
.stats span {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 18ch;
}
.on-ink .stats span { color: rgba(248,247,244,0.5); }

/* --- Book object ---------------------------------------------------------- */

.book {
  position: relative;
  width: min(100%, 270px);
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  background: var(--ink);
  color: var(--paper);
  padding: 11% 11% 10% 13%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 50px -25px rgba(28, 26, 23, 0.5);
}
.book::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(0,0,0,0.3));
}
.book-kicker {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.5);
}
.book-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-top: 1.5rem;
  color: var(--paper);
}
.book-title em { color: var(--red); font-style: italic; }
.book-sub {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(248,247,244,0.75);
  margin-top: 0.9rem;
  max-width: none;
}
.book-author {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.7);
}
.book-status {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule-solid);
  padding: 0.45rem 0.75rem;
  background: var(--white);
}
.book-status::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--red);
  margin-right: 0.6rem;
  vertical-align: middle;
}

/* --- Photo ---------------------------------------------------------------- */

.photo { position: relative; }
.photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(12%) contrast(1.04);
}
.photo::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--ink);
  transform: translate(12px, 12px);
  pointer-events: none;
}
.photo figcaption {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --- Numbered items (personal-site work list) --------------------------- */

.numbered { list-style: none; padding: 0; margin: 0; }
.numbered > li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.numbered > li:first-child { padding-top: 0; }
.numbered > li:last-child { border-bottom: 0; padding-bottom: 0; }
.numbered .num {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--red);
  padding-top: 0.45rem;
}
.numbered h3 { margin-bottom: 0.5rem; }
.numbered .pull { font-size: 1.08rem; margin-bottom: 0.75rem; }
.numbered .tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --- Cards (agency-site services grid) ---------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule-solid);
  border: 1px solid var(--rule-solid);
}
.cards article {
  background: var(--white);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease;
}
.cards article:hover { background: var(--ink); }
.cards article:hover h3, .cards article:hover p { color: var(--paper); }
.cards article:hover .num { color: rgba(248,247,244,0.25); }
.cards .num {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--rule-solid);
  margin-bottom: 1rem;
  transition: color 0.25s;
}
.cards h3 { margin-bottom: 0.6rem; transition: color 0.25s; }
.cards p { font-size: 0.9rem; transition: color 0.25s; }
.cards .status {
  margin-top: auto;
  padding-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cards article:hover .status { color: rgba(248,247,244,0.5); }

/* --- Writing items -------------------------------------------------------- */

.writing { display: grid; gap: 2rem; }
.writing-item { border-left: 2px solid var(--rule); padding-left: 1.6rem; transition: border-color 0.2s; }
.writing-item:hover { border-color: var(--red); }
.writing-date {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.4rem;
}
.writing-title {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.writing-title:hover { color: var(--red); }
.writing-desc { font-size: 0.88rem; color: var(--ink-3); }

/* --- Facts list (about) --------------------------------------------------- */

.facts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.facts li {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.facts b {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
  padding-top: 0.3rem;
}

/* --- Panel / test callouts ---------------------------------------------- */

.panel { background: var(--white); border: 1px solid var(--rule-solid); padding: 2rem 2.25rem; margin: 2rem 0; }
.test { border-left: 2px solid var(--rule); padding-left: 1.25rem; margin: 1.25rem 0; font-size: 0.95rem; color: var(--ink-3); }
.test strong { color: var(--ink); }

/* --- Chips ---------------------------------------------------------------- */

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 1rem 0 0; }
.chips li {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--rule-solid);
  padding: 0.35rem 0.6rem;
}

/* --- Forms ---------------------------------------------------------------- */

.form { max-width: 34rem; margin-top: 2rem; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--ink);
}
.field input[type='text'], .field input[type='email'], .field select, .field textarea {
  width: 100%;
  font-family: var(--body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule-solid);
  border-radius: 0;
  padding: 0.75rem 0.85rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.check { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.8rem; }
.check input { margin-top: 0.35rem; accent-color: var(--ink); }
.check label { font-family: var(--body); text-transform: none; letter-spacing: normal; font-size: 0.92rem; margin: 0; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; }

/* --- Closing CTA ---------------------------------------------------------- */

.cta { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.cta h2 { max-width: 22ch; margin-bottom: 2rem; }

/* --- Footer --------------------------------------------------------------- */

.colophon { border-top: 1px solid var(--rule); padding: 2.25rem 0 3rem; }
.colophon .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.colophon .copyright, .colophon .elsewhere {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.colophon .elsewhere { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.colophon .elsewhere a { transition: color 0.2s; }
.colophon .elsewhere a:hover { color: var(--ink); }

/* --- Utility -------------------------------------------------------------- */

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .deck { max-width: 400px; margin: 1rem auto 3rem; }
  .split, .split--text-wide, .split--photo { grid-template-columns: minmax(0, 1fr); }
  .split--photo .photo { max-width: 300px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tally div:nth-child(2) { border-right: 0; }
  .tally div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .facts li { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .numbered > li { grid-template-columns: 60px minmax(0, 1fr); gap: 1rem; }

  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav[data-open='true'] { display: flex; }
  .nav a { padding: 0.8rem 0; width: 100%; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin: 1rem 0 0; width: auto; border-bottom: 1px solid var(--ink); }
}

@media (max-width: 560px) {
  html { font-size: 16px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .deck-sfw { font-size: 5rem; }
}

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

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* Page hero: kicker, headline, lede; optional object on the right. */
.page-hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.page-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.page-hero--object .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.page-hero h1 { margin-bottom: 1.5rem; max-width: 16em; }
.page-hero .lede { max-width: 36rem; }
.page-hero .label { margin-bottom: 1.5rem; }

/* Row: label and heading on the left, prose on the right. */
.row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--rule);
}
.row:last-child { border-bottom: 0; }
.row > aside { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; }
.row > aside h2 { font-size: clamp(1.5rem, 2.4vw, 1.85rem); }
.row > aside .label { margin-bottom: 1rem; }
.row > div > * + * { margin-top: 1rem; }
.row > div > h3 { margin-top: 2.5rem; }
.row > div > h3:first-child { margin-top: 0; }
.row > div > h3 + p { margin-top: 0.6rem; }
.row > div > .test { margin-top: 1.25rem; }
.row > div > .actions { margin-top: 2rem; }
.row > div > .small { margin-top: 0.75rem; }

.section .row { padding-top: 0; padding-bottom: 0; border-bottom: 0; }

/* Prose block for pages that just read. */
.prose > * + * { margin-top: 1rem; }
.prose > h2 { margin-top: 3rem; }
.prose > h3 { margin-top: 2.25rem; }
.prose > h3 + p { margin-top: 0.6rem; }
.prose > .label { margin-top: 3.5rem; margin-bottom: 1rem; }
.prose > .label + h2 { margin-top: 0; }

/* Framework: chapter → tool pairing */
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.3;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}
.pair:last-of-type { border-bottom: 1px solid var(--rule); }
.pair .arrow { font-family: var(--mono); color: var(--red); font-size: 0.75rem; letter-spacing: 0.1em; }
.pair small { display: block; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.3rem; }

/* Numbered frameworks list on the book page: two columns of numbered cards. */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule-solid); border: 1px solid var(--rule-solid); }
.grid-2 > div { background: var(--white); padding: 1.6rem 1.75rem; }
.grid-2 .num { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; color: var(--red); margin-bottom: 0.6rem; }
.grid-2 h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.grid-2 p { font-size: 0.92rem; }

/* Big italic statement on its own, ink on paper. */
.statement {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 26em;
}
.statement em { color: var(--red); }

/* Bio block */
.bio-block + .bio-block { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--rule); }

/* Press kit downloads */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule-solid); border: 1px solid var(--rule-solid); }
.dl a { background: var(--white); padding: 1.5rem 1.6rem; display: block; transition: background-color 0.2s; }
.dl a:hover { background: var(--ink); }
.dl a:hover b, .dl a:hover span { color: var(--paper); }
.dl b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.1rem; margin-bottom: 0.25rem; transition: color 0.2s; }
.dl span { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); transition: color 0.2s; }

/* Contact page: form left, context right */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-grid .form { margin-top: 0; max-width: none; }

@media (max-width: 900px) {
  .page-hero--object .wrap { grid-template-columns: minmax(0, 1fr); }
  .page-hero .object { max-width: 280px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .row > aside { position: static; }
  .grid-2, .dl { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
}

/* Forms on a dark band */
.on-ink .field label { color: var(--paper); }
.on-ink .check label { color: rgba(248,247,244,0.8); }
.on-ink .check input { accent-color: var(--paper); }
.on-ink .field input:focus, .on-ink .field select:focus, .on-ink .field textarea:focus { outline-color: var(--paper); }
