/* ==========================================================================
   nathanathomas.com
   Senior product designer, document-heavy high-stakes workflows.
   Visual system: documentary minimalism on a quiet systematic foundation.
   Paper field, signal-red accent, monospaced figures, thin ledger rules.
   One stylesheet for the whole site. Edit tokens in :root to retune.
   ========================================================================== */

:root {
  --paper: #faf9f6;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --faint: #8f8d86;
  --rule: #e3e1da;
  --rule-soft: #eeece6;
  --accent: #c0362c;          /* signal red, from compliance/annotation language */
  --panel: #f4f2ec;           /* understated UI frame fill */
  --mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --maxw: 720px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover { color: var(--accent); border-color: var(--accent); }

/* --------------------------------------------------------------- header */
header.site {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--rule); margin-bottom: 64px;
}
header.site .name { font-weight: 600; border: none; letter-spacing: -0.01em; }
header.site .name:hover { color: var(--accent); }
header.site nav a {
  font-size: 15px; color: var(--muted); margin-left: 22px; border: none;
}
header.site nav a:hover { color: var(--accent); }
header.site nav a[aria-current="page"] { color: var(--ink); }

/* --------------------------------------------------------------- sections */
section { margin-bottom: 84px; }

h1 {
  font-size: 38px; line-height: 1.18; font-weight: 600;
  letter-spacing: -0.02em; margin: 0 0 22px;
}
.sub { font-size: 19px; color: var(--ink); max-width: 600px; margin: 0 0 14px; }
.sub.dim { color: var(--muted); font-size: 17px; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); margin: 0 0 22px;
  padding-bottom: 8px; border-bottom: 1px solid var(--rule);
}
h2 { font-size: 15px; font-weight: 600; margin: 0 0 16px; }

p { margin: 0 0 18px; }
.muted { color: var(--muted); }
.lead { font-size: 19px; }

/* --------------------------------------------------------------- buttons */
.cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.03em;
  padding: 11px 18px; border: 1px solid var(--ink); border-radius: 4px;
  background: var(--ink); color: var(--paper); border-bottom: 1px solid var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { color: var(--accent); background: transparent; border-color: var(--accent); }

/* --------------------------------------------------------------- case cards (index/work) */
.case { padding-top: 26px; border-top: 1px solid var(--rule); margin-bottom: 38px; }
.case .label { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 8px; }
.case h3 { font-size: 22px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
.case h3 a { border: none; }
.case p { margin-bottom: 14px; }
.case .more { font-family: var(--mono); font-size: 13px; border: none; }
.case .more:hover { color: var(--accent); }
.num { font-family: var(--mono); }

/* understated UI frame, supporting role only */
.frame {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 22px 24px;
  margin: 6px 0 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.7;
}
.frame .frame-label {
  display: block; color: var(--faint); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 10px;
}

/* --------------------------------------------------------------- engagement / how I work steps */
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
ol.steps li {
  counter-increment: s; padding: 16px 0; border-bottom: 1px solid var(--rule);
  display: flex; gap: 16px;
}
ol.steps li::before {
  content: counter(s); font-family: var(--mono); color: var(--accent);
  font-size: 14px; flex: 0 0 22px;
}
ol.steps b { font-weight: 600; }

/* --------------------------------------------------------------- case study body */
.case-study .meta {
  font-family: var(--mono); font-size: 12.5px; color: var(--accent);
  letter-spacing: 0.03em; margin: 0 0 18px;
}
.case-study .anon-note {
  font-family: var(--mono); font-size: 12px; color: var(--faint);
  border: 1px dashed var(--rule); border-radius: 4px;
  padding: 10px 14px; margin: 0 0 36px; line-height: 1.6;
}
.block { margin-bottom: 34px; }
.block h2 {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); font-weight: 600;
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule-soft);
}

/* the honest scoreboard */
.scoreboard {
  border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
  margin: 4px 0 8px;
}
.scoreboard .row { padding: 18px 22px; }
.scoreboard .row + .row { border-top: 1px solid var(--rule); }
.scoreboard .row .tag {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 8px; display: block;
}
.scoreboard .verify .tag { color: var(--accent); }
.scoreboard .nomeasure .tag { color: var(--faint); }
.scoreboard p { margin: 0; }

.related {
  margin-top: 8px; padding: 16px 0 0; border-top: 1px solid var(--rule-soft);
  font-size: 16px; color: var(--muted);
}

.backlink { font-family: var(--mono); font-size: 13px; border: none; }
.backlink:hover { color: var(--accent); }

/* --------------------------------------------------------------- testimony */
blockquote { margin: 0 0 22px; padding-left: 18px; border-left: 2px solid var(--accent); }
blockquote p { font-size: 18px; margin-bottom: 6px; }
blockquote cite { font-style: normal; font-size: 14px; color: var(--muted); font-family: var(--mono); }

/* --------------------------------------------------------------- more work list */
ul.worklist { list-style: none; padding: 0; margin: 0; }
ul.worklist li { padding: 18px 0; border-top: 1px solid var(--rule); }
ul.worklist li b { font-weight: 600; }
ul.worklist li .note { color: var(--muted); }

/* --------------------------------------------------------------- footer */
footer.site {
  border-top: 1px solid var(--rule); padding: 40px 0 70px;
  color: var(--muted); font-size: 14px; line-height: 1.7;
}
footer.site a { color: var(--muted); border-color: var(--rule); }
footer.site a:hover { color: var(--accent); border-color: var(--accent); }
footer.site .fineprint { font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  header.site { flex-direction: column; gap: 14px; margin-bottom: 48px; }
  header.site nav { margin-left: -22px; }
  header.site nav a { margin: 0 0 0 22px; }
  section { margin-bottom: 64px; }
}
