/* Brand tokens — reference: /style.html */
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/source-sans-3-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/source-sans-3-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/source-sans-3-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/source-sans-3-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/source-sans-3-600-italic.woff2') format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  --ink: #111;
  --body: #374151;
  --quiet: #6a655c;       /* warm grey */
  --rule: #e6dfd3;
  --bg: #faf7f1;          /* paper */
  --link: #1f5a8c;        /* sky ink — links only */
  --accent: #97501f;      /* burnt tan — section labels only */
  --sans: 'Source Sans 3', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f4f7;
    --body: #cdd5df;
    --quiet: #93a0af;
    --rule: #253040;
    --bg: #11161c;
    --link: #9cc4e8;
    --accent: #e2a477;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-feature-settings: 'kern';
  font-size: 18px; line-height: 1.6; color: var(--body); background: var(--bg);
  padding: 48px 24px 96px;
}
main, header.site, footer.site { max-width: 680px; margin: 0 auto; }

header.site { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 96px; gap: 16px; flex-wrap: wrap; }
header.site a.name { font-weight: 600; color: var(--ink); text-decoration: none; }
header.site nav a { color: var(--quiet); text-decoration: none; margin-left: 20px; }
header.site nav a:first-child { margin-left: 0; }
header.site nav a[aria-current="page"], header.site nav a:hover { color: var(--ink); }

h1 { font-size: 32px; line-height: 1.25; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 24px; }
h2 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin: 72px 0 20px; }
h3 { font-size: 18px; font-weight: 600; color: var(--ink); }
p + p { margin-top: 16px; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
h3 a { color: var(--ink); }
h3 a:hover { color: var(--link); }
.lede { font-size: 21px; line-height: 1.5; color: var(--ink); }
.quiet { color: var(--quiet); }

/* Work list: typographic rows, no cards */
ol.work { list-style: none; }
ol.work li { padding: 20px 0; border-top: 1px solid var(--rule); }
ol.work li:last-child { border-bottom: 1px solid var(--rule); }
ol.work .meta { font-size: 15px; color: var(--quiet); margin-top: 2px; }
ol.work p.desc { margin-top: 8px; }

/* Resume */
.role { padding: 24px 0; border-top: 1px solid var(--rule); }
.role header { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.role .when { font-size: 15px; color: var(--quiet); white-space: nowrap; }
.role .org { font-size: 15px; color: var(--quiet); }
.role ul { margin: 12px 0 0 18px; }
.role li + li { margin-top: 6px; }
.role h4 { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 16px; }
.contact { font-size: 15px; color: var(--quiet); }
.skills { columns: 2; column-gap: 32px; list-style: none; }
.skills li { padding: 4px 0; break-inside: avoid; }

/* Case study */
.kicker { font-size: 15px; color: var(--quiet); margin-bottom: 12px; }
.case h3 { margin-top: 40px; margin-bottom: 8px; }
dl.facts { margin-top: 40px; border-top: 1px solid var(--rule); }
dl.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
dl.facts dt { font-size: 15px; color: var(--quiet); }
figure { margin: 32px 0 8px; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
figcaption { font-size: 14px; color: var(--quiet); margin-top: 10px; }
@media (min-width: 900px) { figure { margin-left: -60px; margin-right: -60px; } }

.case ul, .case ol.steps { margin: 16px 0 0 20px; }
.case ul li + li, .case ol.steps li + li { margin-top: 10px; }

/* Diagrams and sample tables */
figure.diagram svg { width: 100%; height: auto; color: var(--quiet); }
.dg-box rect { fill: none; stroke: var(--quiet); stroke-width: 1.25; }
.dg-box rect.dg-accent { stroke: var(--ink); stroke-width: 2; }
.dg-text text { fill: var(--ink); }
figure.diagram text.q, .dg-text text.q { fill: var(--quiet); font-weight: 400; }
figure.sample { overflow-x: auto; }
figure.sample table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
figure.sample th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--quiet); font-weight: 500; text-align: left; padding: 0 12px 8px 0; border-bottom: 1px solid var(--rule); }
figure.sample td { padding: 10px 12px 10px 0; vertical-align: top; border-bottom: 1px solid var(--rule); }
figure.sample tr.group td { padding-top: 20px; border-bottom: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); }
.gap { color: #dc2626; } .ok { color: #16a34a; } .warn { color: #92400e; }
@media (prefers-color-scheme: dark) { .gap { color: #f87171; } .ok { color: #4ade80; } .warn { color: #fbbf24; } }

.print-only { display: none; }

/* Style page */
.swatches li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; align-items: center; }
.swatches .sw { grid-row: span 2; width: 40px; height: 40px; border: 1px solid var(--rule); }
ul.plain { margin-left: 18px; } ul.plain li + li { margin-top: 8px; }

footer.site { margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--quiet); }
footer.site a { color: var(--quiet); }

@media (max-width: 560px) {
  body { font-size: 17px; padding-top: 32px; }
  header.site { margin-bottom: 56px; }
  h1 { font-size: 26px; }
  .skills { columns: 1; }
}
@media print {
  @page { size: letter; margin: 0.6in 0.7in 0.7in; }
  :root { --bg: #fff; --rule: #e3e5e8; --body: #2b3340; }
  html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { padding: 0; font-size: 10pt; line-height: 1.42; }
  main { max-width: none; }
  header.site, footer.site, .no-print { display: none; }
  .print-only { display: inline; }
  a { color: var(--link); text-decoration: none; }
  h1 { font-size: 22pt; margin-bottom: 2pt; letter-spacing: -0.01em; }
  .contact { font-size: 9.5pt; }
  .summary { font-size: 10.5pt; margin-top: 10pt !important; color: var(--ink); }
  h2 { font-size: 7.5pt; margin: 18pt 0 4pt; break-after: avoid; }
  .role { padding: 8pt 0 9pt; break-inside: avoid; }
  .role h3 { font-size: 10.5pt; }
  .role .org, .role .when { font-size: 9pt; }
  .role h4 { font-size: 9.5pt; margin-top: 7pt; }
  .role ul { margin: 4pt 0 0 13pt; }
  .role li + li { margin-top: 2pt; }
  .skills { columns: 3; column-gap: 18pt; font-size: 9.5pt; }
  .skills li { padding: 1pt 0; }
}
