/* WinTheLongGameBook.com — shared styles
   Colors come from the book cover: navy and black on white, gold only as a small accent. */
:root {
  --ink: #111111;
  --text: #2a2a2a;
  --muted: #4a4a4a;
  --navy: #16244f;
  --navy-dark: #0b1430;
  --gold-text: #8a5a1f;   /* passes contrast on white */
  --gold-line: #c58a3e;   /* decorative rules only */
  --gold-on-dark: #d9a35b;
  --paper: #ffffff;
  --soft: #f5f4f0;
  --line: #e3e1da;
  --field: #bdbab0;
  --serif: 'Playfair Display', Georgia, serif;
  --label: 'Oswald', 'Arial Narrow', sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--gold-line); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- type ---------- */
.kicker { font-family: var(--label); font-weight: 500; font-size: 15px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-text); margin: 0; }
.on-dark .kicker { color: var(--gold-on-dark); }
h1, h2, h3 { margin: 0; color: var(--ink); }
h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(44px, 7vw, 76px); line-height: 1.04; letter-spacing: -0.5px; }
h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.12; }
h3 { font-family: var(--label); font-weight: 600; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text); margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.quote { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.28; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; border-radius: 4px; font: 600 17px var(--sans); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background .15s, color .15s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--soft); color: var(--navy-dark); }
.btn-ghost-light { color: #fff; border-color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.wordmark { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 9px; }
.wordmark .w1 { font-family: var(--serif); font-weight: 700; font-size: 24px; }
.wordmark .w2 { font-family: var(--label); font-weight: 600; font-size: 18px; letter-spacing: 2px; }
.wordmark:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink); padding: 6px 0; }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; border-bottom: 2px solid var(--navy); }
.nav .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; color: #fff; border-bottom: 0; }
@media (max-width: 760px) {
  .site-header { position: static; }
  .nav { gap: 4px 18px; font-size: 14px; }
}

/* ---------- sections ---------- */
section { padding: 96px 0; }
.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.navy { background: var(--navy); color: #fff; }
.black { background: var(--ink); color: #fff; }
.navy h2, .black h2, .navy h1, .black h1 { color: #fff; }
.on-dark .lead, .on-dark p { color: #dadfea; }
@media (max-width: 760px) { section { padding: 64px 0; } }

.rule { width: 36px; height: 2px; background: var(--gold-line); display: inline-block; }
.kicker-row { display: flex; align-items: center; gap: 12px; }

/* hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-cover { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.hero-cover img { width: 100%; max-width: 390px; box-shadow: 0 30px 60px rgba(17,17,17,.22), 0 6px 14px rgba(17,17,17,.12); border-radius: 2px; }
.subtitle strong { color: var(--navy); font-style: italic; }
.small { font-size: 14px; color: var(--muted); }

/* grids & cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.grid-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card-link { text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.card-link:hover { color: var(--ink); border-color: var(--navy); box-shadow: 0 8px 24px rgba(22,36,79,.08); }
.card .meta { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
.card .title { font-family: var(--label); font-weight: 600; font-size: 21px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); line-height: 1.3; }
.card .go { font-weight: 600; color: var(--navy); font-size: 15px; margin-top: auto; padding-top: 4px; }
.card .hook { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--navy); line-height: 1.4; }

/* pillars */
.pillars { display: flex; flex-wrap: wrap; gap: 32px; }
.pillar-col { flex: 1 1 440px; min-width: 0; }
.pillar-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 4px; }
.pillar-head h3 { font-size: 28px; letter-spacing: 2px; color: var(--ink); }
.pillar-col.ems .pillar-head { border-color: var(--navy); }
.pillar-col.ems .pillar-head h3 { color: var(--navy); }
.pillar { display: flex; gap: 20px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pillar:last-child { border-bottom: 0; }
.piece { font-size: 44px; line-height: 1; width: 52px; text-align: center; flex: none; }
.ems .piece { color: var(--navy); }
.pillar strong { display: block; font-size: 19px; margin-bottom: 2px; }

/* assessment band */
.band { background: var(--navy); color: #fff; border-radius: 10px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.band h2 { color: #fff; font-size: clamp(30px, 4vw, 42px); }
.band p { color: #dadfea; }
.band .kicker { color: var(--gold-on-dark); }

/* chapter list */
.toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; font-size: 15px; }
.toc h3 { font-size: 16px; letter-spacing: 1.5px; margin-bottom: 8px; color: var(--ink); }
.toc .ems h3 { color: var(--navy); }
.toc ol { margin: 0; padding-left: 22px; color: #3a3a3a; display: flex; flex-direction: column; gap: 4px; }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.form-card label { font-size: 14px; font-weight: 600; }
.form-card input, .form-card select, .form-card textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--field); border-radius: 4px; min-height: 48px; width: 100%; background: #fff; color: var(--ink); }
.form-card input:focus, .form-card select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(22,36,79,.15); }
.form-card .btn { width: 100%; margin-top: 6px; }
.form-card .fine { font-size: 13px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.notice { background: #fff8ec; border: 1px solid #ecd9b8; color: #5c4214; border-radius: 6px; padding: 12px 14px; font-size: 14px; }

/* quote band */
.quote-band { text-align: center; }
.quote-band .wrap { max-width: 980px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.quote-band .rule { background: var(--gold-on-dark); width: 48px; }
.quote-band .quote { font-style: italic; color: #fff; }
.quote-band .cite { font-family: var(--label); letter-spacing: 2px; font-size: 15px; color: var(--gold-on-dark); text-transform: uppercase; }

/* split layouts */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.split .grow { flex: 1 1 500px; }
.split .side { flex: 1 1 340px; }
.author-photo { width: 100%; max-width: 380px; border-radius: 6px; background: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 14px; font-weight: 600; border: 1px solid #d6d3ca; border-radius: 999px; padding: 7px 15px; }

/* retailers */
.formats { display: flex; flex-wrap: wrap; gap: 10px; }
.format { font: 600 15px var(--sans); border: 1.5px solid var(--field); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 18px; min-height: 44px; cursor: pointer; }
.format[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.retailers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.retailer { text-decoration: none; background: #fff; color: var(--ink); border: 1px solid #d6d3ca; border-radius: 4px; padding: 14px; font-weight: 600; font-size: 15px; text-align: center; }
.retailer:hover { border-color: var(--navy); color: var(--navy); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.step-num { font-family: var(--label); font-weight: 600; font-size: 36px; color: var(--navy); line-height: 1; }

/* landing pages */
.lm-hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.lm-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.lm-form { flex: 1 1 380px; min-width: 0; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; color: var(--text); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(-45deg); }
.from-book { border-top: 1px solid var(--line); padding-top: 18px; display: flex; gap: 16px; align-items: center; }
.from-book img { width: 64px; box-shadow: 0 6px 14px rgba(0,0,0,.15); }

/* footer */
.site-footer { background: var(--ink); color: #cfcfcf; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.site-footer a { color: #cfcfcf; }
.site-footer a:hover { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer .wordmark { color: #fff; }

/* prose (privacy page) */
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--text); }
.prose p + p { margin-top: 14px; }
