@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
}
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5c5c5c;
  --rule: #e4e4e4;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0b0b; --text: #f2f2f2; --muted: #a8a8a8; --rule: #2a2a2a; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans);
}
main, header.top, footer { max-width: 720px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 24px; top: 8px; background: var(--bg); padding: 4px 8px; z-index: 1; }

h1, h2, h3, p, ul, dl { margin: 0; }
.mono, .meta, .label, time { font-family: var(--mono); }
.meta { font-size: 12px; color: var(--muted); line-height: 1.5; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.hero .headline { font-size: 20px; color: var(--muted); margin-top: 12px; line-height: 1.4; }
.hero .intro { margin-top: 24px; }
.hero .intro p + p { margin-top: 12px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; list-style: none; padding: 0; }

/* Sections */
section { border-top: 1px solid var(--rule); padding: 48px 0; }
.label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 400; margin-bottom: 24px; }
.section-intro { margin-bottom: 24px; }

/* Project lists */
.featured { list-style: none; padding: 0; display: grid; gap: 32px; }
.featured h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.featured p { margin-top: 4px; }
.featured .meta { margin-top: 8px; }
.more { list-style: none; padding: 0; }
.more li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.more li .meta { display: block; }
.more li[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; padding: 0; list-style: none; }
.chips[hidden] { display: none; }
.chips button {
  font: 400 12px var(--mono); padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--text); background: transparent; color: var(--text); cursor: pointer;
}
.chips button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* Definition lists */
dl.rows { display: grid; grid-template-columns: 120px 1fr; gap: 12px 24px; }
dl.rows dt { color: var(--muted); font: 400 13px/1.8 var(--mono); }
dl.rows dd { margin: 0; }


.certs { list-style: none; padding: 0; }
.certs li { padding: 4px 0; }
.extra { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s ease, opacity .3s ease; }
.extra[data-open="false"] { grid-template-rows: 0fr; opacity: 0; }
.extra > ul { overflow: hidden; min-height: 0; }
.extra[data-open="false"] > ul { visibility: hidden; transition: visibility 0s .3s; }
.toggle { margin-top: 12px; font: 400 13px var(--mono); background: none; border: 0; padding: 4px 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

footer { border-top: 1px solid var(--rule); padding-top: 32px; padding-bottom: 64px; }

/* Project page */
nav.crumb { padding-top: 32px; font-size: 14px; }
article h1 { font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin-top: 32px; }
article .lede { font-size: 20px; color: var(--muted); margin-top: 12px; line-height: 1.4; }
article dl.rows { margin: 32px 0; }
article section h2 { font: 400 13px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 16px; }
article section p + p { margin-top: 12px; }
article section ul { padding-left: 20px; }
article section li + li { margin-top: 8px; }
article section .stack { padding: 0; }
article section .stack li + li { margin-top: 0; }
.stack { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 0; font: 400 13px var(--mono); }

@media (max-width: 520px) {
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 32px; }
  article h1 { font-size: 30px; }
  dl.rows { grid-template-columns: 1fr; gap: 0; }
  dl.rows dd { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .chips { display: none; } }
