/* Design tokens: reference/research/career-website-examples-2026-10-11.md §4 (WCAG 2.2 AA checked there). */
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-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 {
  --bg: #F7F4EE; --text: #1A1A18; --muted: #4B504C; --accent: #7A2A32;
  --line: #E2DCD1; --card: #FBF9F5; --chip: #EFEAE1;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161514; --text: #ECE8E1; --muted: #A8A49C; --accent: #E8A0A6; --line: #2E2B28; --card: #1C1B19; --chip: #262421; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap, .bar { max-width: 67.5rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .wrap, .bar { padding: 0 2rem; } }

.eyebrow, .label, .go, .kicker, .top nav a, .brand, .meta dt, .when, .chips span, .metrics dd, .foot {
  font-family: var(--mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
}

/* header and footer */
.top { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .bar { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; }
.brand { color: var(--text); text-decoration: none; }
.top nav { display: flex; gap: 1.25rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--accent); }
.foot { border-top: 1px solid var(--line); margin-top: 5rem; color: var(--muted); }
.foot .bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding-top: 1.5rem; padding-bottom: 2rem; }

/* hero */
.hero { padding-top: clamp(3rem, 10vh, 6.5rem); }
.eyebrow { color: var(--accent); margin: 0 0 1.25rem; }
.eyebrow a { text-decoration: none; }
h1 { font: 600 clamp(2.4rem, 6.4vw, 4rem)/1.08 var(--serif); letter-spacing: -0.015em; margin: 0; max-width: 20ch; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); line-height: 1.55; color: var(--muted); margin: 1.25rem 0 0; max-width: 58ch; }
.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }
.btn { display: inline-block; padding: 0.7rem 1.15rem; border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; background: var(--card); }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.primary:hover { filter: brightness(1.08); }

.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 3rem 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics div { padding: 1.25rem 1rem 1.25rem 0; }
.metrics div:nth-child(odd) { border-right: 1px solid var(--line); }
.metrics div:nth-child(even) { padding-left: 1rem; }
.metrics div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .metrics div:nth-child(n) { padding: 1.4rem 1.25rem; border-bottom: 0; border-right: 1px solid var(--line); }
  .metrics div:first-child { padding-left: 0; }
  .metrics div:last-child { border-right: 0; }
}
.metrics dt { font: 600 clamp(1.8rem, 4vw, 2.4rem)/1.1 var(--serif); }
.metrics dd { margin: 0.4rem 0 0; color: var(--muted); letter-spacing: 0.05em; line-height: 1.45; text-transform: none; font-size: 0.78rem; }

/* sections */
.section { margin-top: 4.5rem; }
.kicker { color: var(--muted); margin: 0 0 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }

.cards { display: grid; gap: 1rem; }
@media (min-width: 56rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: 0.65rem; padding: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.label { color: var(--accent); }
.name { font: 600 1.35rem/1.25 var(--serif); }
.desc { color: var(--muted); font-size: 0.98rem; line-height: 1.55; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips span { background: var(--chip); color: var(--muted); padding: 0.25rem 0.5rem; border-radius: 5px; font-size: 0.66rem; letter-spacing: 0.06em; }
.go { color: var(--accent); margin-top: 0.35rem; }

.build { list-style: none; counter-reset: b; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .build { grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; } }
.build li { counter-increment: b; position: relative; padding-left: 2.5rem; color: var(--muted); }
.build li::before { content: counter(b, decimal-leading-zero); position: absolute; left: 0; top: 0.15rem; font: 500 0.8rem var(--mono); color: var(--accent); }
.build strong { color: var(--text); font-weight: 600; }

.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; gap: 0.25rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.log li:last-child { border-bottom: 0; }
@media (min-width: 48rem) { .log li { grid-template-columns: 11rem 1fr; gap: 1.5rem; } }
.when { color: var(--muted); padding-top: 0.25rem; }
.what { color: var(--muted); }
.what strong { display: block; color: var(--text); font-weight: 600; }
.what a { color: inherit; text-decoration-color: var(--accent); }
.what a:hover { color: var(--accent); }

.tools { color: var(--muted); max-width: 70ch; margin: 0; }
.contact p { margin: 0.35rem 0; font-size: 1.15rem; }
.muted { color: var(--muted); }

/* case study and résumé */
.study { padding-top: clamp(2.5rem, 8vh, 5rem); max-width: 48rem; }
.study h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: none; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin: 2rem 0 0; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta .wide { grid-column: 1 / -1; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0.25rem 0 0; font-size: 0.98rem; }
.note { color: var(--muted); font-size: 0.9rem; font-style: italic; margin: 1rem 0 0; }
.prose { max-width: 66ch; margin-top: 2rem; }
.prose h2 { font: 600 1.5rem/1.3 var(--serif); margin: 2.5rem 0 0.75rem; }
.prose h3 { font: 600 1.2rem/1.35 var(--serif); margin: 2rem 0 0.25rem; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.4rem 0; }
.prose li::marker { color: var(--accent); }
.resume .prose h2 { font: 500 0.78rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; }
.next { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.next .kicker { display: block; border: 0; padding: 0; margin: 0 0 0.5rem; }
.next a { font: 600 1.25rem/1.35 var(--serif); text-decoration: none; }

@media (max-width: 30rem) { .top nav { gap: 0.9rem; } .brand { font-size: 0.7rem; } }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

/* panel revision 2026-12-05 */
.quiet { display: flex; gap: 1.25rem; margin: 1rem 0 0; font-family: var(--mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.quiet a { color: var(--muted); }
.quiet a:hover { color: var(--accent); }
@media (min-width: 56rem) { .cards.two { grid-template-columns: 1fr 1fr; } }
