/* Theory Road site concepts (2026-11-04). Brand system from ~/Code/theory-road/brand/BRAND-GUIDELINES.md:
   Libre Franklin, light grounds, ink, hairline rules, the word-search device. No imagery, no accent color doing double duty. */
:root {
  --ink: #0a0a0a; --white: #fff; --paper: #efebe3; --grey: #6f6b64; --faint: #d9d6d0; --rule: #0a0a0a;
  --font: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px); --max: 1280px;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
a[href^="tel"], .nb { white-space: nowrap; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--white); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.rule { border-top: 1px solid var(--rule); }
.paper { background: var(--paper); }

/* type */
.d1 { font-weight: 900; letter-spacing: -.045em; line-height: .92; font-size: clamp(48px, 9vw, 132px); }
.d2 { font-weight: 900; letter-spacing: -.04em; line-height: .98; font-size: clamp(34px, 5vw, 64px); }
.d3 { font-weight: 800; letter-spacing: -.03em; line-height: 1.08; font-size: clamp(22px, 2.4vw, 30px); }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink); max-width: 38em; }
.muted { color: var(--grey); }
.label { font-size: 14px; font-weight: 700; }
.small { font-size: 15px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--rule); }
.hdr .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.mark { font-weight: 900; letter-spacing: -.045em; font-size: 22px; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tel { font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (max-width: 900px) { .nav { display: none; } .hdr .tel { margin-left: auto; } }
@media (max-width: 420px) { .hdr .btn { display: none; } }

/* buttons: flat, square, sentence case */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; background: var(--ink); color: var(--white); border: 2px solid var(--ink); font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #2a2a2a; border-color: #2a2a2a; }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--white); }
.btn.lg { height: 60px; padding: 0 28px; font-size: 18px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, .tile:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }

/* url box: one field, one button */
.urlbox { display: flex; max-width: 640px; border: 2px solid var(--ink); background: var(--white); }
.urlbox label { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 16px; min-width: 0; }
.urlbox label span { font-size: 12px; font-weight: 700; color: var(--grey); }
.urlbox input { border: 0; font: 600 18px var(--font); padding: 2px 0 0; outline: none; min-width: 0; background: transparent; }
.urlbox .btn { height: 64px; border-width: 0; border-left: 2px solid var(--ink); }
@media (max-width: 560px) { .urlbox { flex-direction: column; } .urlbox label { height: 64px; } .urlbox .btn { border-left: 0; border-top: 2px solid var(--ink); width: 100%; } }
.err { color: #9b1c1c; font-size: 14px; font-weight: 600; min-height: 20px; margin-top: 6px; }

/* the word-search wall */
.wall { font-weight: 900; letter-spacing: -.035em; line-height: 1.04; color: var(--faint); }
.wall .row { display: flex; justify-content: space-between; column-gap: .3em; white-space: nowrap; }
.wall .row.left { justify-content: flex-start; }
.wall .ink { color: var(--ink); }
.wall a { text-decoration: none; }
.wall a:hover { color: var(--ink); }

/* ledger rows */
.ledger { list-style: none; padding: 0; }
.ledger > li { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 16px; padding: 28px 0; border-top: 1px solid var(--rule); }
.ledger > li:last-child { border-bottom: 1px solid var(--rule); }
.num { font-weight: 700; font-size: 15px; color: var(--grey); padding-top: 6px; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .ledger.wide > li { grid-template-columns: 56px minmax(0,1fr) minmax(0,1.2fr); } }
.chips { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 15px; font-weight: 600; }
.chips a { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.chips a:hover { text-decoration-color: var(--ink); }

/* columns with hairlines */
.cols { display: grid; gap: 0; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--rule); }
.cols > div { padding: 24px 24px 8px 0; }
.cols > div + div { border-left: 1px solid var(--rule); padding-left: 24px; }
@media (max-width: 900px) { .cols { grid-template-columns: minmax(0,1fr); } .cols > div + div { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; } }
.spec { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); }
@media (max-width: 700px) { .spec { grid-template-columns: minmax(0,1fr); gap: 4px; } }

section { padding: clamp(56px, 8vw, 112px) 0; }
.sh { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }

/* brief card: two steps, ONE fixed size (house rule) */
.brief { border: 2px solid var(--ink); background: var(--white); display: flex; flex-direction: column; height: 600px; }
.brief .top { padding: 22px 22px 0; }
.brief .steps { font-size: 13px; font-weight: 700; color: var(--grey); display: flex; align-items: center; gap: 8px; }
.brief .steps i { display: inline-block; width: 24px; height: 4px; background: var(--faint); }
.brief .steps i.on { background: var(--ink); }
.brief h3 { font-weight: 900; letter-spacing: -.03em; font-size: 26px; line-height: 1.1; margin-top: 10px; }
.brief .body { flex: 1; overflow: auto; padding: 16px 22px; }
.brief .foot { padding: 16px 22px 22px; border-top: 1px solid var(--faint); display: flex; gap: 12px; align-items: center; }
.brief .foot .btn { flex: 1; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.tile { position: relative; border: 1px solid var(--faint); padding: 12px 12px; cursor: pointer; display: block; }
.tile input { position: absolute; opacity: 0; }
.tile b { display: block; font-size: 15px; line-height: 1.2; }
.tile span { display: block; font-size: 13px; color: var(--grey); margin-top: 2px; }
.tile:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #f7f6f3; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 12px; }
.fields .full { grid-column: 1 / -1; }
.fields label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.fields input, .fields select { width: 100%; height: 46px; border: 1px solid #b9b5ad; padding: 0 12px; font: 500 16px var(--font); background: var(--white); border-radius: 0; }
.back { background: none; border: 0; font: 700 15px var(--font); text-decoration: underline; cursor: pointer; padding: 0 6px; }
.done { display: none; height: 100%; flex-direction: column; justify-content: center; padding: 22px; }
.brief.sent .top, .brief.sent .body, .brief.sent .foot { display: none; }
.brief.sent .done { display: flex; }
@media (max-width: 560px) { .brief { height: 640px; } .fields { grid-template-columns: minmax(0,1fr); } }

/* footer */
.ftr { background: var(--ink); color: var(--white); padding: 64px 0 32px; }
.ftr a { text-decoration: none; }
.ftr .grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; font-size: 15px; }
.ftr .grid b { display: block; margin-bottom: 10px; }
.ftr .grid a { display: block; color: #cfcbc3; padding: 3px 0; }
.ftr .giant { font-weight: 900; letter-spacing: -.05em; line-height: .85; font-size: clamp(64px, 15.5vw, 230px); margin-top: 56px; white-space: nowrap; }
.ftr .legal { color: #8a8780; font-size: 13px; margin-top: 18px; }
@media (max-width: 800px) { .ftr .grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.demo-note { background: var(--paper); font-size: 13px; text-align: center; padding: 8px var(--gutter); border-bottom: 1px solid var(--faint); }

/* hero layouts */
.hero-a { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
.hero-b { display: grid; gap: 28px clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "h form" "s form"; align-items: start; }
.hero-b .h { grid-area: h; } .hero-b .s { grid-area: s; } .hero-b .brief { grid-area: form; }
@media (max-width: 900px) {
  .hero-a { grid-template-columns: minmax(0, 1fr); }
  .hero-b { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "form" "s"; }
}
.b-h1 { font-weight: 900; letter-spacing: -.045em; line-height: .95; font-size: clamp(44px, 6vw, 92px); }
