/* Resume site, editorial direction (chosen 2026-11-17).
   Derived from the house kit (~/.claude/skills/web-ui-build/assets/kit.css): same colour roles,
   type discipline and reading layout. Every text token is at least 5.3:1 on every surface.
   Type scale (px): 12 13 14 15 16 | 19 claim | 24 section | 40-72 name. Do not add sizes. */

/* ---- tokens (light) ------------------------------------------------------ */
:root {
  color-scheme: light dark;
  --page: #f6f4ef; --surface: #fbfaf7; --sunken: #ece9e1;
  --ink: #141210; --ink-2: #4f4a43; --ink-3: #635d55; --mark: #8a8378;
  --line: rgba(20,18,16,.10); --line-2: rgba(20,18,16,.18);
  --accent: #a3401f; --accent-ink: #8f3519; --accent-wash: rgba(163,64,31,.09);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --radius: 4px;
}
/* ---- tokens (dark) ------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --page: #121110; --surface: #1b1a18; --sunken: #252320;
    --ink: #f1eee8; --ink-2: #c9c3b8; --ink-3: #a59f94; --mark: #8a8378;
    --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.17);
    --accent: #e0835f; --accent-ink: #eb9a7a; --accent-wash: rgba(224,131,95,.13);
  }
}

/* ---- base ---------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }

/* ---- frame --------------------------------------------------------------- */
.page { max-width: 1120px; margin: 0 auto; padding: 0 16px 72px; }
.masthead {
  position: sticky; top: 0; z-index: 10; margin: 0 -16px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: color-mix(in srgb, var(--page) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.masthead .mark { display: inline-flex; align-items: center; min-height: 36px; white-space: nowrap;font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.masthead nav { display: flex; gap: 4px; }
.masthead nav a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 8px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-weight: 550;
}
.masthead nav a:hover { color: var(--ink); background: var(--accent-wash); }
.masthead nav .hide-sm, .masthead .mark .full { display: none; }

/* ---- lead: who, what, the evidence beside it ----------------------------- */
.lead { display: grid; gap: 28px 48px; padding: 32px 0 8px; align-items: start; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent-ink); letter-spacing: .02em; }
.name {
  font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.04;
  letter-spacing: -.025em; margin-top: 10px;
}
.role { font-size: 16px; color: var(--ink-2); margin-top: 10px; }
.role b { color: var(--ink); font-weight: 600; }
.claim { font-family: var(--font-display); font-size: 19px; line-height: 1.45; margin-top: 18px; max-width: 34ch; }
.basis { font-size: 14px; color: var(--ink-2); margin-top: 12px; max-width: 52ch; }
.cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface);
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink);
}
.btn.primary { background: var(--ink); color: var(--page); border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid var(--line); }
.facts > div { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.facts > div:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
.facts > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
.facts b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.facts span { font-size: 13px; color: var(--ink-2); }

/* ---- career timeline (the lead's "chart") ------------------------------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 18px; }
.panel > h2 { font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 14px; }
.tl { --y0: 2016; --y1: 2027; display: grid; gap: 10px; }
.tl .r { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; }
.tl .r > span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl .r.now > span { color: var(--ink); font-weight: 600; }
.tl .track { position: relative; height: 14px; border-radius: 3px; background: var(--sunken); }
.tl .bar {
  position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--mark);
  left: calc((var(--s) - var(--y0)) / (var(--y1) - var(--y0)) * 100%);
  width: max(6px, calc((var(--e) - var(--s)) / (var(--y1) - var(--y0)) * 100%));
}
.tl .r.work .bar { background: color-mix(in srgb, var(--accent) 55%, var(--sunken)); }
.tl .r.now .bar { background: var(--accent); }
.tl .axis { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; font-size: 12px; color: var(--ink-3); }
.tl .axis div { position: relative; height: 16px; }
.tl .axis div span { position: absolute; transform: translateX(-50%); left: calc((var(--y) - var(--y0)) / (var(--y1) - var(--y0)) * 100%); }
.key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* ---- sections ------------------------------------------------------------ */
.section { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-2); scroll-margin-top: 64px; }
.section > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section > header h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.015em; }
.section > header p { font-size: 13px; color: var(--ink-3); }
.h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 14px; }
.prose { color: var(--ink-2); max-width: 68ch; }

/* selected work: one case = problem, what was built, result */
.cases { display: grid; gap: 14px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 18px; display: grid; gap: 10px; align-content: start; }
.case .where { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.case h3 { font-family: var(--font-display); font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.case p { font-size: 14px; color: var(--ink-2); }
.case .result { font-size: 14px; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 12px; }
.case .result b { font-variant-numeric: tabular-nums; white-space: nowrap; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px; font-weight: 550; color: var(--ink-2); padding: 3px 9px; border-radius: 999px;
  background: var(--sunken);
}

/* experience: company > roles */
.jobs { display: grid; gap: 0; }
.job { display: grid; gap: 6px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.job:first-child { padding-top: 0; }
.job:last-child, .stack > div:last-child { border-bottom: 0; padding-bottom: 0; }
.job .org { font-weight: 650; font-size: 16px; }
.job .meta { font-size: 13px; color: var(--ink-3); }
.job .roles { display: grid; gap: 14px; }
.job .roles h3 { font-size: 15px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.job .roles h3 .when { font-size: 13px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.job .roles ul { margin-top: 6px; display: grid; gap: 4px; }
.job .roles li { font-size: 14px; color: var(--ink-2); padding-left: 16px; position: relative; max-width: 72ch; }
.job .roles li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 1px; background: var(--ink-3); }

/* skills: grouped, not tag soup */
.stack { display: grid; gap: 0; }
.stack > div { display: grid; gap: 6px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.stack dt { font-size: 13px; font-weight: 650; color: var(--ink); }
.stack dd { font-size: 14px; color: var(--ink-2); }

.split { display: grid; gap: 28px 48px; }
.kv { display: grid; gap: 10px; }
.kv b { display: block; font-weight: 600; }
.kv span { font-size: 14px; color: var(--ink-2); }

.contact { margin-top: 56px; padding: 28px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 16px; }
.contact h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.015em; }
.contact .links { display: flex; flex-wrap: wrap; gap: 8px; }
.foot { margin-top: 28px; font-size: 12px; color: var(--ink-3); }

/* ---- editorial motifs ------------------------------------------------------ */
.eyebrow { font-variant-caps: all-small-caps; font-size: 15px; letter-spacing: .06em; }
.name { font-variation-settings: "opsz" 60; }
.claim { font-style: italic; }

/* ---- wider screens -------------------------------------------------------- */
@media (min-width: 560px) {
  .masthead nav .hide-sm { display: inline-flex; }
  .masthead .mark .full { display: inline; }
  .masthead .mark .short { display: none; }
  .name { font-size: 52px; }
}
@media (min-width: 900px) {
  .page { padding: 0 40px 96px; }
  .masthead { margin: 0 -40px; padding: 14px 40px; }
  .lead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding-top: 56px; }
  .name { font-size: 72px; }
  .lead > aside { margin-top: 12px; }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job { grid-template-columns: 220px minmax(0, 1fr); }
  .stack > div { grid-template-columns: 220px minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print {
  .masthead, .cta { display: none !important; }
  body { background: #fff; }
  .page { max-width: none; padding: 0; }
}
