/* Companion Field Guide — landing page
 *
 * THE BOOK'S IDENTITY, not a business unit's (DM, 2026-09-12). The page sells
 * a book; a reader who meets the cover and then lands here must be looking at
 * the same product. This supersedes the Battledress styling the page shipped
 * with earlier on 2026-09-12 — see 09_Web/README.md for the REC-550 reading.
 *
 * Palette sampled from the SHIPPED artefacts, not from the cover brief (which
 * proposed ink-navy/gold and was overtaken by what was actually built):
 *   Cover_Front_Commercial_6x9.svg, and Pictures/Korparc/linkedin/make.py
 *   whose own comment reads "Palette is the BOOK's identity, not Korparc's".
 *
 *   BONE #F2EEE5  ground         INK  #2A2420  type + dark surface
 *   CLAY #C96442  display accent  SKIN #E8C4A8  sub-ground
 *
 * ⚠ CLAY IS A DISPLAY COLOUR ONLY — 3.37:1 on bone, which clears AA for large
 * text and non-text but FAILS the 4.5:1 body threshold. Small text, links and
 * button labels take CLAY-DEEP #AE5132: same 15.1-degree hue, one step darker,
 * 4.51:1 on bone and 4.51:1 for bone-on-it. Do NOT tidy these into one value —
 * the split is what keeps the page at AA while still looking like the book.
 *
 * Type follows the book's own stack: Fraunces for display (self-hosted,
 * instanced to the cover's axes — opsz 144, SOFT 0, WONK 1) over the
 * interior's body stack 'Iowan Old Style', Palatino, Georgia. That stack is
 * system fonts by the book's own choice, so the body costs nothing to serve
 * and renders as the book does. No Google CDN (KP-STD-005).
 */

/* ── Faces ─────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Fraunces";
  src: url("./fonts/fraunces-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("./fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("./fonts/fraunces-italic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ── Tokens ────────────────────────────────────────────────────────── */

:root {
  --bone: #f2eee5;
  --ink: #2a2420;
  --clay: #c96442;       /* display + non-text ONLY — see the header note */
  --clay-deep: #ae5132;  /* small text, links, button labels */
  --skin: #e8c4a8;
  --ink-soft: #5c5249;   /* secondary type on bone */
  --rule: #ddd5c6;

  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --body: "Iowan Old Style", Palatino, Georgia, "Times New Roman", serif;

  --measure: 640px;
  --pad-x: 48px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--clay-deep);
}
a:hover {
  color: var(--ink);
}

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

/* ── Layout ────────────────────────────────────────────────────────── */

.section {
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  display: flex;
  justify-content: center;
}

.wrap {
  max-width: var(--measure);
  width: 100%;
}

/* The book's own label device: tracked caps in clay, set in the display face
 * — not the mono the Battledress version used. */
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-deep);
}

/* ── Hero ──────────────────────────────────────────────────────────── */

/* ⚠ THE HERO GROUND MUST STAY LIGHT (DM, 2026-09-12). The character cutout
 * was made against a light background: the jersey's top cream stripe is
 * TRANSPARENT in the PNG, and the figure carries a painted pale ground-shadow
 * at the feet. On bone both are invisible and correct. On any dark ground the
 * stripe becomes a hole that fills with the background colour, and the shadow
 * reads as a glow — which is exactly what happened when this shipped on olive,
 * then on ink. Do not "improve" this to a dark hero without recutting the art.
 * This is also the composition the book's own LinkedIn banner uses. */
.hero {
  background: var(--bone);
  padding: 76px var(--pad-x) 0;
  border-bottom: 1px solid var(--rule);
}

.hero-inner {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  flex: 1 1 auto;
}

/* The character sits to the right of the type — the composition the book's
 * own LinkedIn banner established. */
.hero-figure {
  flex: 0 0 240px;
  margin: 0;
  align-self: flex-end;
}

.hero .eyebrow {
  color: var(--clay-deep);
  display: block;
  margin-bottom: 18px;
}

/* The short clay rule under the title — the book's own banner device. */
.hero-rule {
  width: 132px;
  height: 2px;
  background: var(--clay);
  border: 0;
  margin: 0 0 20px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 62px;
  line-height: 1.04;
  color: var(--ink);
  margin: 0 0 18px;
  text-wrap: balance;
}

.hero p {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 0 76px;
}

/* Keeps a short closing clause from breaking and stranding its last word. */
.nowrap {
  white-space: nowrap;
}

/* ── Hook ──────────────────────────────────────────────────────────── */

.hook {
  padding-top: 80px;
  padding-bottom: 8px;
}

.hook p {
  font-size: 21px;
  line-height: 1.68;
  margin: 0 0 24px;
}
.hook p:last-child {
  margin-bottom: 0;
}

/* ── Benefits ──────────────────────────────────────────────────────── */

.benefits {
  padding-top: 56px;
  padding-bottom: 88px;
}

.benefits ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 18px;
  line-height: 1.5;
}

.benefits svg {
  flex: 0 0 20px;
  margin-top: 5px;
}

.benefits strong {
  font-family: var(--display);
  font-weight: 600;
}

/* ── Offer / email capture ─────────────────────────────────────────── */

.offer {
  background: var(--skin);
  padding-top: 76px;
  padding-bottom: 76px;
}

.card {
  background: var(--bone);
  border: 1px solid var(--clay);
  max-width: 560px;
  width: 100%;
  padding: 44px 44px 40px;
}

.card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  color: var(--ink);
  margin: 18px 0 0;
}

.card > p {
  font-size: 17px;
  line-height: 1.6;
  margin: 18px 0 0;
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 28px 0 24px;
}

.field {
  display: block;
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.field input {
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--ink-soft);
  padding: 14px 16px;
  height: 48px;
  width: 100%;
  border-radius: 0;
}

.field input::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.btn-action {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--clay-deep);
  border: none;
  height: 48px;
  width: 100%;
  cursor: pointer;
}
.btn-action:hover {
  background: var(--ink);
}

.consent {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 16px 0 0;
}

/* ── The book ──────────────────────────────────────────────────────── */

.book {
  padding-top: 80px;
  padding-bottom: 80px;
}

.book .wrap {
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.book-figure {
  flex: 0 0 220px;
  margin: 0;
}

.book-copy {
  flex: 1 1 auto;
}

.book h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 29px;
  line-height: 1.3;
  color: var(--ink);
  margin: 12px 0;
}

.book p {
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  color: var(--ink-soft);
}

/* ── Author ────────────────────────────────────────────────────────── */

.author {
  padding-top: 8px;
  padding-bottom: 72px;
}

.author .wrap {
  max-width: 560px;
}

.author h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin: 0 0 14px;
}

.author p {
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

/* ── Footer ────────────────────────────────────────────────────────── */

.site-footer {
  padding: 30px var(--pad-x) 56px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: center;
}

.site-footer .wrap {
  max-width: 560px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-footer a {
  color: var(--ink-soft);
}
.site-footer a:hover {
  color: var(--clay-deep);
}

/* ── Small screens ─────────────────────────────────────────────────── */

@media (max-width: 760px) {
  :root {
    --pad-x: 24px;
  }
  .hero {
    padding-top: 56px;
    padding-bottom: 0;
  }
  .hero-rule {
    margin-left: auto;
    margin-right: auto;
  }
  .hero p {
    margin-bottom: 28px;
  }
  .hero-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero-figure {
    flex: 0 0 auto;
    width: 190px;
  }
  .hook p {
    font-size: 19px;
  }
  .card {
    padding: 32px 24px;
  }
  .book .wrap {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }
  .book-figure {
    flex: 0 0 auto;
    width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ── Document pages (privacy notice) ───────────────────────────────── */
/* These lived in an inline <style> block until 2026-09-12, where the page's
 * own CSP (style-src 'self') silently blocked them and the notice rendered
 * unstyled. Page-specific rules belong here, in the served stylesheet. */

.doc {
  padding: 72px var(--pad-x) 88px;
}

.doc .wrap {
  max-width: 640px;
}

.doc h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.1;
  color: var(--ink);
  margin: 8px 0 8px;
}

.doc h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin: 40px 0 12px;
}

.doc p,
.doc li {
  font-size: 17px;
  line-height: 1.65;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc .stamp {
  display: block;
  margin-bottom: 32px;
}

.gap {
  background: #f7e7e0;
  border-left: 3px solid var(--clay-deep);
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.6;
}

/* The download action. Same treatment as the old submit button — it is still
 * the one dominant action on this surface. */
.download-wrap {
  margin: 0;
}

a.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
a.btn-action:hover {
  color: var(--bone);
}

/* ── Legal pages (privacy) ──────────────────────────────────────────────────
 * Everything here is scoped under .legal, which index.html does not use, so
 * these rules provably cannot alter the landing page. They exist because the
 * site styles by class and gives h1/h2/p/ul no generic styling of their own.
 *
 * ⚠ NO INLINE STYLES ANYWHERE, and that is not a preference. The served CSP is
 * `style-src 'self'`, so a <style> block or a style="" attribute is silently
 * BLOCKED — which is exactly how the withdrawn privacy.html came to render
 * unstyled on 2026-09-12. Rules for a new page belong in this file. */
.legal { max-width: var(--measure); margin: 0 auto; padding: 64px var(--pad-x) 8px; }
.legal h1 { font-family: var(--display); font-size: 34px; line-height: 1.15;
            font-weight: 400; margin: 0 0 6px; color: var(--ink);
            font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1; }
.legal .lede { font-size: 17px; line-height: 1.55; color: var(--ink);
               margin: 0 0 26px; }
.legal h2 { font-family: var(--display); font-size: 19px; font-weight: 400;
            line-height: 1.25; margin: 30px 0 8px; color: var(--ink);
            font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1; }
.legal p { font-size: 15px; line-height: 1.62; margin: 0 0 12px; color: var(--ink-soft); }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { font-size: 15px; line-height: 1.62; margin: 0 0 7px; color: var(--ink-soft); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .updated { font-size: 13px; color: var(--ink-soft); margin-top: 30px; }
.legal .back { font-size: 14px; margin: 26px 0 0; }
