/* FnExec design system: components. Requires tokens.css, fonts.css, base.css before it.
   Each block below is one component. Class names are the component's public contract. */

/* ---- masthead: mark, site nav, the register switch ---- */
.masthead { border-bottom: 1px solid var(--line); background: var(--bg); }
.masthead .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: var(--space-6); }
.brand { display: inline-flex; color: var(--fg); text-decoration: none; }
.masthead nav { display: flex; flex-wrap: wrap; gap: var(--space-5); font-size: var(--text-sm); font-weight: 500; }
.masthead nav a { text-decoration: none; color: var(--fg-muted); }
.masthead nav a[aria-current="page"], .masthead nav a:hover { color: var(--fg); }
.masthead .right { display: flex; align-items: center; gap: var(--space-6); }
@media (max-width: 960px) {
  .masthead .container { flex-wrap: wrap; padding-top: var(--space-4); padding-bottom: var(--space-4); }
  .masthead .right { width: 100%; justify-content: space-between; }
}

/* ---- register switch ---- */
.register { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-full); padding: 2px; font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.02em; background: var(--bg-raised); }
.register button { appearance: none; border: 0; background: transparent; color: var(--fg-muted); font: inherit; padding: 4px 12px; border-radius: var(--radius-full); cursor: pointer; line-height: 1.6; }
.register button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.register button[data-set-register="nerd"] { font-family: var(--font-mono); }
.register button:focus-visible { outline-offset: 1px; }

/* ---- buttons and links ---- */
.button { display: inline-block; text-decoration: none; font-weight: 500; font-size: var(--text-md); padding: 12px 20px; border-radius: var(--radius-md); background: var(--accent); color: var(--accent-fg); border: 1px solid transparent; line-height: 1.4; }
.button:hover { background: var(--accent-hover); color: var(--accent-fg); }
.button.secondary { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.button.secondary:hover { background: var(--bg-sunken); color: var(--fg); }
.quiet { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }

/* ---- first screen ---- */
.hero { padding: var(--space-20) 0 var(--space-24); }
.hero .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-16); align-items: start; }
.hero .deck { margin-top: var(--space-8); max-width: var(--measure); color: var(--fg-muted); font-size: var(--text-xl); }
.hero .deck.nerd { font-family: var(--font-mono); font-size: var(--text-md); line-height: var(--leading-loose); }
.hero .actions { margin-top: var(--space-10); }
.hero h1 { max-width: 18ch; }
.hero .record { margin-top: var(--space-2); }
@media (max-width: 860px) { .hero { padding: var(--space-12) 0 var(--space-16); } .hero .container { grid-template-columns: 1fr; gap: var(--space-10); } }

.eyebrow { font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-6); }

/* ---- record panel: what the engine's record holds. The signature component. ---- */
.record { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); align-self: start; }
.record-title { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.record-list { list-style: none; margin-top: var(--space-2); }
.record-list li { display: grid; grid-template-columns: 3ch 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); font-size: var(--text-md); font-family: var(--register-font); }
.record-list li:last-child { border-bottom: 0; }
.record-list .k { font-family: var(--font-mono); color: var(--accent); font-weight: 500; }
.record-foot { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--fg-muted); font-family: var(--register-font); }

/* ---- check: one line of a delivery checklist, pass or fail ---- */
.check { display: grid; grid-template-columns: 5.5ch 1fr; gap: var(--space-4); align-items: baseline; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); font-family: var(--register-font); font-size: var(--text-md); }
.check .verdict { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 6px; border-radius: var(--radius-sm); text-align: center; }
.check .verdict.pass { color: var(--pass); background: var(--pass-soft); }
.check .verdict.fail { color: var(--fail); background: var(--fail-soft); }

/* ---- cards ---- */
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); }
.card h3 { margin-bottom: var(--space-3); }
.card .who { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: var(--space-3); }
.card p { font-size: var(--text-md); color: var(--fg-muted); }
.card p + p { margin-top: var(--space-3); }
.card .nerd { font-family: var(--font-mono); font-size: var(--text-sm); line-height: var(--leading-loose); }

/* ---- thesis: a pull line set in the display face ---- */
.thesis { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, var(--display-sm)); line-height: 1.3; max-width: 30ch; text-wrap: balance; }
.thesis-source { margin-top: var(--space-4); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--fg-muted); }

/* ---- notice: a plain box for limits and standings, never a warning colour ---- */
.notice { border-left: 3px solid var(--line-strong); padding: var(--space-2) 0 var(--space-2) var(--space-6); color: var(--fg-muted); font-size: var(--text-md); }
.notice > * + * { margin-top: var(--space-3); }
.notice .nerd { font-family: var(--font-mono); font-size: var(--text-sm); }

/* ---- founder entry ---- */
.founder { padding: var(--space-8) 0; border-top: 1px solid var(--line); }
.founder .name { font-family: var(--font-display); font-size: var(--display-xs); }
.founder .role { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--fg-muted); margin: var(--space-1) 0 var(--space-4); }
.founder p { max-width: var(--measure); }
.founder .nerd { font-family: var(--font-mono); font-size: var(--text-md); line-height: var(--leading-loose); }

/* ---- standing: a two-column fact list for "where each stands today" ---- */
.standing { display: grid; grid-template-columns: 12ch 1fr; gap: var(--space-3) var(--space-6); font-size: var(--text-md); }
.standing dt { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 3px; }
.standing dd { color: var(--fg); }

/* ---- figure ---- */
.figure { margin: var(--space-8) 0; }
.figure figcaption { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--fg-muted); font-family: var(--font-mono); }

/* ---- colophon footer ---- */
.colophon { border-top: 1px solid var(--line); padding: var(--space-10) 0 var(--space-12); font-size: var(--text-sm); color: var(--fg-muted); }
.colophon p + p { margin-top: var(--space-2); }
.colophon a { color: inherit; }
.colophon .mono { font-family: var(--font-mono); }

/* ---- steps: a numbered process, one line of mono numeral per step ---- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--space-8); }
.steps li { counter-increment: step; border-top: 2px solid var(--fg); padding-top: var(--space-4); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500; color: var(--accent); letter-spacing: 0.06em; margin-bottom: var(--space-3); }
.steps h3 { font-size: var(--display-xs); margin-bottom: var(--space-3); }
.steps p { font-size: var(--text-md); color: var(--fg-muted); }
.steps .who { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: var(--space-2); }

/* ---- term: a word the site uses as a name, such as the What and the How ---- */
.term { font-weight: 600; color: var(--fg); }
