/* Greg Drake Digital v2 — Broadsheet Field Guide. Brand tokens locked (see Brand Assets README). */
:root {
  --page: oklch(0.965 0.006 85);
  --paper: #FCFAF8;
  --ink: #1D1A18;
  --gray: #6C6862;
  --gray-rev: #9B948B;
  --line: oklch(0.90 0.006 85);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Outfit', sans-serif; font-weight: 400;
  background: var(--page); color: var(--ink);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--paper); padding: 10px 18px; z-index: 10; font-weight: 600; text-decoration: none; }
.skip:focus { left: 0; top: 0; }

/* Logo lockup — locked spec, do not re-tune */
.logo { display: inline-block; text-decoration: none; }
.logo .name { font-family: 'Jost', sans-serif; font-weight: 380; font-size: 17px; letter-spacing: 0.0195em; color: var(--ink); line-height: 1; }
.logo .digital { display: flex; justify-content: space-between; padding-left: 1.37px; padding-right: 1.76px; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 10.51px; line-height: 1; color: var(--gray); margin-top: -0.94px; }

header.site { padding: 24px 0; border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
nav.site { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
nav.site a { font-weight: 500; font-size: 14px; color: var(--ink); text-decoration: none; padding: 4px 0; }
nav.site a:hover, nav.site a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
nav.site a.btn { background: var(--ink); color: var(--paper); padding: 10px 18px; text-decoration: none; }
nav.site a.btn:hover { opacity: .88; }

.kicker { font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gray); display: block; }

/* Editorial headline scale */
.hero { padding: 72px 0 40px; }
.hero h1 { font-family: 'Jost', sans-serif; font-weight: 400; font-size: clamp(2rem, 5.2vw, 3.3rem); line-height: 1.12; max-width: 22ch; }
.hero .standfirst { margin-top: 22px; font-size: 1.12rem; font-weight: 300; color: var(--gray); max-width: 58ch; }
.hero .standfirst strong { color: var(--ink); font-weight: 500; }

h2.chapter { font-family: 'Jost', sans-serif; font-weight: 400; font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.2; max-width: 26ch; margin: 0 0 14px; }
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section p { font-size: 1rem; font-weight: 300; color: var(--gray); max-width: 62ch; margin-bottom: 14px; }
.section p strong, .section li strong { color: var(--ink); font-weight: 500; }
.section ul, .section ol { margin: 0 0 14px 20px; font-size: 1rem; font-weight: 300; color: var(--gray); max-width: 60ch; }
.section li { margin: 6px 0; }
.section a { color: var(--ink); }

/* Machine summary block — quiet but present */
.summary { border-left: 2px solid var(--ink); padding: 4px 0 4px 20px; margin: 26px 0; }
.summary p { font-size: .97rem; color: var(--gray); font-weight: 300; max-width: 58ch; margin: 0; }

/* 60-Second Test ledger */
.test { background: var(--paper); border: 1px solid var(--ink); margin: 36px 0; }
.test .t-head { padding: 18px 24px 12px; border-bottom: 1px solid var(--line); }
.test .t-head h2, .test .t-head h3 { font-family: 'Jost', sans-serif; font-weight: 500; font-size: 1.15rem; }
.test .t-row { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.test .t-row:last-child { border-bottom: none; }
.test .no { font-family: 'Jost', sans-serif; font-weight: 380; color: var(--gray); }
.test .t-row p { font-size: .95rem; font-weight: 300; color: var(--gray); margin: 0 0 6px; max-width: 64ch; }
.test .t-row p strong { color: var(--ink); font-weight: 500; }
.prompt { background: var(--page); border: 1px solid var(--line); padding: 12px 14px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .86rem; color: var(--ink); margin: 8px 0; user-select: all; }
.outcomes { margin-top: 10px; }
.outcomes li { margin: 5px 0; font-size: .92rem; }

/* Instrument rows (external checks) */
.instr { border-top: 1px solid var(--ink); }
.instr .i-row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.instr h3, .instr h2 { font-family: 'Jost', sans-serif; font-weight: 500; font-size: 1.02rem; }
.instr h2 a { color: var(--ink); }
.instr p { font-size: .93rem; margin: 0 0 4px; }
.instr .expect { font-size: .82rem; color: var(--gray); }

/* Scoreboard (before/after) */
table.scoreboard { width: 100%; border-collapse: collapse; margin: 22px 0 6px; font-size: .93rem; font-variant-numeric: tabular-nums; }
table.scoreboard caption { text-align: left; font-size: .78rem; color: var(--gray); margin-bottom: 8px; }
table.scoreboard th { text-align: left; font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: var(--gray); border-bottom: 1px solid var(--ink); padding: 8px 12px 8px 0; }
table.scoreboard td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; color: var(--gray); font-weight: 300; vertical-align: top; }
table.scoreboard td:first-child { color: var(--ink); font-weight: 400; }
table.scoreboard .was { text-decoration: line-through; }
table.scoreboard .now { color: var(--ink); font-weight: 500; }

/* Ink band — Exhibit A and CTA closers only */
.band-ink { background: var(--ink); color: var(--paper); padding: 56px 0; }
.band-ink .kicker { color: var(--gray-rev); }
.band-ink h2 { font-family: 'Jost', sans-serif; font-weight: 400; font-size: clamp(1.4rem, 3.4vw, 2rem); max-width: 26ch; }
.band-ink p { margin-top: 12px; font-size: .98rem; font-weight: 300; color: var(--gray-rev); max-width: 58ch; }
.band-ink a:not(.cta-light) { color: var(--paper); }
.band-ink .readings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.band-ink .reading { border: 1px solid oklch(0.34 0.008 70); padding: 18px 18px; }
.band-ink .reading .num { font-family: 'Jost', sans-serif; font-size: 1.7rem; line-height: 1.15; color: var(--paper); }
.band-ink .reading .lbl { font-size: .8rem; color: var(--gray-rev); margin-top: 6px; }
.cta-light { display: inline-block; margin-top: 26px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 15px 30px; }
.cta-light:hover, .cta-dark:hover { opacity: .88; }
.cta-dark { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 15px 30px; }
.cta-note { display: block; margin-top: 10px; font-size: .83rem; color: var(--gray); }
.band-ink .cta-note { color: var(--gray-rev); }

/* Question doors (services) */
.door { padding: 40px 0; border-top: 1px solid var(--ink); }
.door .kicker { margin-bottom: 8px; }
.door h2 { font-family: 'Jost', sans-serif; font-weight: 400; font-size: clamp(1.4rem, 3.2vw, 1.9rem); margin-bottom: 12px; }
.door p { font-size: 1rem; font-weight: 300; color: var(--gray); max-width: 60ch; margin-bottom: 12px; }
.door .products { font-size: .93rem; color: var(--gray); }
.door .more { font-weight: 500; color: var(--ink); }

/* Self-check quiz — Diagnostic Terminal grammar */
.quiz { max-width: 720px; background: var(--paper); border: 1px solid var(--ink); margin: 30px 0; }
.quiz .q-head { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.quiz .q-head h3 { font-family: 'Jost', sans-serif; font-weight: 500; font-size: 1.1rem; }
.quiz .q-head p { font-size: .88rem; color: var(--gray); margin: 4px 0 0; }
.quiz fieldset { border: none; border-bottom: 1px solid var(--line); padding: 16px 24px; display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; align-items: center; }
.quiz legend { float: left; font-size: .95rem; font-weight: 400; color: var(--ink); max-width: 46ch; padding: 0; }
.quiz .yn { display: flex; gap: 8px; }
.quiz .yn label { border: 1px solid var(--ink); padding: 6px 16px; font-size: .88rem; font-weight: 500; cursor: pointer; }
.quiz .yn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quiz .yn input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.quiz .yn label:has(input:checked) { background: var(--ink); color: var(--paper); }
.quiz .q-foot { padding: 18px 24px; }
button.grade-btn { background: var(--ink); color: var(--paper); border: none; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .95rem; padding: 14px 28px; cursor: pointer; }
button.grade-btn:hover { opacity: .88; }
.result { display: none; border-top: 1px solid var(--ink); padding: 22px 24px; }
.result.show { display: block; }
.result .stamp { font-family: 'Jost', sans-serif; font-weight: 400; font-size: 3rem; line-height: 1; }
.result .verdict { font-size: .95rem; color: var(--gray); margin-top: 8px; max-width: 52ch; }
.result ul { margin: 12px 0 0 18px; font-size: .9rem; color: var(--gray); }
.grade-carry { background: var(--paper); border: 1px solid var(--line); padding: 12px 16px; font-size: .9rem; margin: 14px 0; display: none; }
.grade-carry.show { display: block; }
.grade-carry button { background: none; border: none; text-decoration: underline; font: inherit; color: var(--gray); cursor: pointer; padding: 0; margin-left: 8px; }

/* Reading specimen table + prose pages */
.page-hero { padding: 60px 0 20px; }
.page-hero h1 { font-family: 'Jost', sans-serif; font-weight: 400; font-size: clamp(1.8rem, 4.4vw, 2.7rem); line-height: 1.15; max-width: 24ch; }
.page-hero .standfirst { margin-top: 16px; font-size: 1.07rem; font-weight: 300; color: var(--gray); max-width: 58ch; }
.case { background: var(--paper); border: 1px solid var(--line); padding: 36px; margin: 26px 0; }
.case .kicker { margin-bottom: 10px; }
.case h2, .case h3 { font-family: 'Jost', sans-serif; font-weight: 400; font-size: 1.4rem; margin-bottom: 12px; }
.case p { font-size: .97rem; font-weight: 300; color: var(--gray); max-width: 64ch; margin-bottom: 12px; }
.case p strong { color: var(--ink); font-weight: 500; }

.email-line { font-size: 1.05rem; }
.email-line .addr { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .95rem; user-select: all; }

footer.site { border-top: 1px solid var(--ink); padding: 40px 0 28px; font-size: .88rem; color: var(--gray); margin-top: 56px; }
footer.site .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
footer.site h3 { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gray); margin-bottom: 10px; }
footer.site ul { list-style: none; }
footer.site li { margin: 6px 0; }
footer.site a { color: var(--ink); text-decoration: none; font-weight: 400; }
footer.site a:hover { text-decoration: underline; }
footer.site .util { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; font-size: .84rem; }
footer.site .addr { user-select: all; }

@media (max-width: 860px) {
  .band-ink .readings { grid-template-columns: 1fr; }
  .instr .i-row { grid-template-columns: 1fr; gap: 6px; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .quiz fieldset { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { footer.site .cols { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
