/* Benchmark site styles. Colors, fonts, corners, width and density come from data/site.json via render.js. */
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url("fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/public-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* Defaults (Benchmark, light). render.js overrides these from the theme settings. */
  --fog: #eef1ee; --surface-raised: #ffffff; --surface-sunken: #e2e7e3;
  --ink: #18201d; --ink-muted: #4e5a55; --rule: #c5ccc7;
  --cypress: #1f4a3d; --on-cypress: #ffffff; --lagoon: #11706e; --on-lagoon: #ffffff; --brass: #a8741a;
  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 40px; --space-6: 64px;
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 0px;
  --page-width: 1120px;
  --card-min: 300px;
  color-scheme: light;
}
body.compact { --space-4: 18px; --space-5: 28px; --space-6: 44px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--fog); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 26px; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--lagoon); text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--cypress); }
:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 2px; }
[hidden] { display: none !important; }

.station { font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; }
.wrap { max-width: var(--page-width); margin: 0 auto; padding: 0 var(--space-4); }
@media (max-width: 480px) { .wrap { padding: 0 var(--space-3); } }
.loading { padding: 120px 24px; text-align: center; color: var(--ink-muted); }

/* Mark: inline SVG drawn from theme colors */
.mark { width: 28px; height: 28px; flex-shrink: 0; display: block; }
.mark .disc { fill: var(--cypress); } .mark .line { stroke: var(--fog); } .mark .ring { stroke: var(--fog); } .mark .tri { fill: var(--brass); }
.mark.inverse .disc { fill: var(--on-cypress); } .mark.inverse .line, .mark.inverse .ring { stroke: var(--cypress); }
.lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--cypress); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 18px; white-space: nowrap; }
.lockup:hover { color: var(--cypress); }

/* Site bar */
.sitebar { position: sticky; top: 0; z-index: 20; background: var(--surface-raised); border-bottom: 1.5px solid var(--ink); }
.sitebar .wrap { display: flex; align-items: center; gap: var(--space-4); min-height: 56px; }
.sitebar nav { display: flex; gap: var(--space-1); margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.sitebar nav::-webkit-scrollbar { display: none; }
.sitebar nav a { display: flex; gap: var(--space-2); align-items: baseline; padding: 16px 10px 13px; color: var(--ink-muted); text-decoration: none; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent; }
.sitebar nav a b { font-family: var(--font-mono); font-weight: 500; font-size: 11px; color: var(--lagoon); }
.sitebar nav a:hover, .sitebar nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--lagoon); }
body.no-sheets .sitebar nav a b, body.no-sheets .sheet-no, body.no-sheets .sheet-head .station { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: 10px 18px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--surface-raised); color: var(--ink); font: 600 15px var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { color: var(--cypress); border-color: var(--cypress); }
.btn.primary { background: var(--cypress); border-color: var(--cypress); color: var(--on-cypress); }
.btn.primary:hover { background: var(--lagoon); border-color: var(--lagoon); color: var(--on-lagoon); }
.btn svg { width: 16px; height: 16px; }

/* Datum line */
.datum { position: relative; height: 24px; }
.datum::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; border-top: 1.5px solid var(--rule); }
.datum::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 11px; border-left: 1.5px solid var(--rule); border-right: 1.5px solid var(--rule); }
.datum .marker { position: absolute; top: 3px; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid var(--brass); transform: translateX(-50%); z-index: 1; }
.datum .label { position: absolute; top: 0; background: var(--fog); padding: 0 var(--space-2); color: var(--ink-muted); z-index: 1; white-space: nowrap; }
.spacer { height: var(--space-5); }

/* Chips */
.chip { font-family: var(--font-mono); font-weight: 500; font-size: 11px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border: 1px solid currentColor; border-radius: 2px; white-space: nowrap; flex-shrink: 0; }
.chip.live { color: var(--cypress); } .chip.prog { color: var(--lagoon); } .chip.plan { color: var(--ink-muted); } .chip.past { color: var(--ink-muted); border-style: dashed; }

/* Hero */
.hero { padding: var(--space-6) 0 var(--space-5); }
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: var(--space-5); align-items: end; }
.hero-simple .hero-grid { grid-template-columns: 1fr; }
.hero-centered { text-align: center; }
.hero-centered .hero-grid { grid-template-columns: 1fr; justify-items: center; }
.hero-centered .lead, .hero-centered .sub { margin-left: auto; margin-right: auto; }
.hero-centered .cta { justify-content: center; }
.hero h1 { font-weight: 800; font-size: clamp(48px, 8vw, 88px); line-height: .95; letter-spacing: -0.01em; }
.hero h1 span { color: var(--cypress); }
.hero .tag { margin-top: var(--space-3); color: var(--lagoon); }
.hero .lead { margin-top: var(--space-4); font-size: 19px; line-height: 30px; max-width: 58ch; }
.hero .sub { margin-top: var(--space-2); color: var(--ink-muted); max-width: 62ch; }
.hero .cta { margin-top: var(--space-4); display: flex; gap: 12px; flex-wrap: wrap; }

.titleblock { border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--surface-raised); font-size: 14px; line-height: 20px; }
.titleblock .tb-head { display: flex; align-items: center; gap: 10px; background: var(--cypress); color: var(--on-cypress); padding: 10px 12px; }
.titleblock .tb-head .mark { width: 22px; height: 22px; }
.titleblock dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.titleblock dl div { padding: 8px 12px; border-top: 1px solid var(--rule); }
.titleblock dl div:nth-child(odd) { border-right: 1px solid var(--rule); }
.titleblock dl div.full { grid-column: 1 / -1; border-right: 0; }
.titleblock dt { color: var(--ink-muted); }
.titleblock dd { margin: 2px 0 0; font-weight: 600; }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--surface-raised); margin-top: var(--space-5); }
.figures div { padding: var(--space-3) var(--space-4); border-right: 1px solid var(--rule); }
.figures div:last-child { border-right: 0; }
.figures strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 44px; color: var(--cypress); font-variant-numeric: tabular-nums; }
.figures span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* Sheets */
.sheet { background: var(--surface-raised); border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; margin-top: var(--space-3); scroll-margin-top: 72px; }
.sheet-head { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-4); border-bottom: 1.5px solid var(--ink); }
.sheet-no { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 30px; color: var(--on-cypress); background: var(--cypress); padding: 4px 12px; border-radius: var(--radius); }
.sheet-head h2 { font-weight: 800; font-size: 32px; line-height: 36px; }
.sheet-head p { font-size: 14px; color: var(--ink-muted); margin-top: 4px; }
.sheet-head .station { color: var(--ink-muted); text-align: right; }
.sheet-body { padding: var(--space-4); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.block { display: grid; gap: var(--space-3); align-content: start; grid-column: 1 / -1; min-width: 0; }
.block.half { grid-column: span 1; }
.block > h3 { font-weight: 700; font-size: 22px; line-height: 28px; display: flex; gap: 12px; align-items: baseline; padding-bottom: var(--space-2); border-bottom: 1px solid var(--rule); }
.block > h3 .station { color: var(--lagoon); }
.block > h3 .chip { margin-left: auto; }
.note { color: var(--ink-muted); max-width: 72ch; }
ul.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
ul.ticks li { padding-left: 22px; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 9px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--cypress); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; }
th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); padding: 8px 10px; border-bottom: 1.5px solid var(--ink); }
td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
td:first-child { font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr)); gap: var(--space-3); }
.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--fog); padding: var(--space-4); display: grid; gap: var(--space-2); align-content: start; }
.card.feature { border: 1.5px solid var(--cypress); }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card h4 { font-weight: 700; font-size: 20px; line-height: 26px; }
.card p { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.card .stack { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .04em; color: var(--ink); }
.card a { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--ink-muted); grid-column: 1 / -1; }
.lineage { background: var(--surface-sunken); border-radius: var(--radius); padding: var(--space-3) var(--space-4); font-size: 14px; line-height: 22px; }
.lineage b { font-weight: 600; }
.pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }
.pairs h4 { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--lagoon); margin-bottom: 6px; }
.pairs p { font-size: 14px; line-height: 22px; }

footer.site { border-top: 1.5px solid var(--ink); background: var(--surface-raised); margin-top: var(--space-6); }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; padding-top: var(--space-4); padding-bottom: var(--space-4); color: var(--ink-muted); font-size: 14px; }

@media (max-width: 860px) {
  .hero-grid, .sheet-body { grid-template-columns: 1fr; }
  .block.half { grid-column: 1 / -1; }
  .cards.cols-2, .cards.cols-3 { grid-template-columns: 1fr; }
  .sheet-head { grid-template-columns: auto 1fr; }
  .sheet-head .station { display: none; }
  .sitebar nav a span { display: none; }
  body.no-sheets .sitebar nav a span { display: inline; }
}
@media (max-width: 480px) {
  .sheet-body, .sheet-head { padding: var(--space-3); }
  .figures strong { font-size: 32px; line-height: 36px; }
  .cards { grid-template-columns: 1fr; }
  .lockup .name { display: none; }
}

/* Resume page */
.toolbar { max-width: 8.5in; margin: 0 auto; padding: var(--space-4) 0 var(--space-3); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.toolbar .back { margin-right: auto; font-size: 14px; font-weight: 600; text-decoration: none; }
.page-wrap { padding: 0 var(--space-3) var(--space-6); }
.paper { max-width: 8.5in; margin: 0 auto; background: #ffffff; color: #18201d; border: 1.5px solid #18201d; box-shadow: 0 12px 40px rgba(0,0,0,.14); padding: .55in .6in .5in; font-size: 10.5pt; line-height: 1.45;
  --fog: #ffffff; --ink: #18201d; --ink-muted: #4e5a55; --rule: #c5ccc7; }
.paper a { color: var(--ink); }
.r-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: end; }
.r-head .mark { width: 52px; height: 52px; align-self: center; }
.r-head h1 { font-weight: 800; font-size: 30pt; line-height: .95; letter-spacing: -0.01em; }
.r-head h1 span { color: var(--paper-accent, #1f4a3d); }
.contact { text-align: right; font-size: 9.5pt; color: var(--ink-muted); line-height: 1.5; }
.paper .datum { margin-top: 6px; }
.paper .datum .marker { left: 52px; }
.paper section { margin-top: 12px; }
.paper h2 { font-weight: 800; font-size: 12pt; color: var(--paper-accent, #1f4a3d); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 5px; display: flex; gap: 10px; align-items: center; break-after: avoid; }
.paper h2::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.job { margin-top: 9px; break-inside: avoid; }
.job-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.job-head strong { font-weight: 600; font-size: 11pt; }
.job-head .station { font-size: 8.5pt; color: var(--ink-muted); white-space: nowrap; }
.job .sub { font-style: italic; color: var(--ink-muted); font-size: 9.8pt; }
.paper ul { margin: 4px 0 0; padding-left: 16px; }
.paper li { margin: 2px 0; }
.paper li::marker { color: var(--paper-accent, #1f4a3d); }
.paper .skills { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 22px; list-style: none; padding: 0; margin: 0; }
.paper b { font-weight: 600; }
.paper .stack { color: var(--ink-muted); font-size: 9.3pt; }
@media (max-width: 640px) {
  .paper { padding: 22px 18px; font-size: 15px; }
  .r-head { grid-template-columns: auto 1fr; }
  .contact { grid-column: 1 / -1; text-align: left; }
  .r-head h1 { font-size: 34px; }
  .paper .skills { grid-template-columns: 1fr; }
}
@page { size: Letter; margin: .42in .5in; }
@media print {
  body { background: #fff; }
  .sitebar, .toolbar, footer.site { display: none; }
  .page-wrap { padding: 0; }
  .paper { max-width: none; border: 0; box-shadow: none; padding: 0; font-size: 9.3pt; line-height: 1.36; }
  .r-head h1 { font-size: 25pt; }
  .r-head .mark { width: 44px; height: 44px; }
  .paper h2 { font-size: 11pt; margin-bottom: 4px; }
  .paper section { margin-top: 9px; }
  .job { margin-top: 7px; }
  .job-head strong { font-size: 10pt; }
  .job .sub, .contact { font-size: 9pt; }
  .paper .stack { font-size: 8.6pt; }
  .paper li { margin: 1px 0; }
}
