@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --paper: #f3efe6;
  --paper-2: #ebe5d8;
  --card: #f8f5ef;
  --ink: #191813;
  --ink-2: #45413a;
  --muted: #69645a;
  --line: #d3cbbb;
  --line-strong: #191813;
  --grid: rgba(25, 24, 19, 0.055);
  --accent: #d9480f;
  --accent-text: #b33b0b;
  --accent-soft: rgba(217, 72, 15, 0.12);
  --ok: #2b7a3b;
  --code-bg: #e7e0d1;
  --shadow: 4px 4px 0 var(--line-strong);
  --sans: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1115;
    --paper-2: #161920;
    --card: #14171d;
    --ink: #ece7dc;
    --ink-2: #c4beb1;
    --muted: #9a9486;
    --line: #2c313b;
    --line-strong: #ece7dc;
    --grid: rgba(236, 231, 220, 0.04);
    --accent: #ff8a3d;
    --accent-text: #ff9a55;
    --accent-soft: rgba(255, 138, 61, 0.13);
    --ok: #6fcf7f;
    --code-bg: #1b1f27;
    --shadow: 4px 4px 0 var(--accent);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1115;
  --paper-2: #161920;
  --card: #14171d;
  --ink: #ece7dc;
  --ink-2: #c4beb1;
  --muted: #9a9486;
  --line: #2c313b;
  --line-strong: #ece7dc;
  --grid: rgba(236, 231, 220, 0.04);
  --accent: #ff8a3d;
  --accent-text: #ff9a55;
  --accent-soft: rgba(255, 138, 61, 0.13);
  --ok: #6fcf7f;
  --code-bg: #1b1f27;
  --shadow: 4px 4px 0 var(--accent);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img, svg { max-width: 100%; }
::selection { background: var(--accent); color: var(--paper); }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: var(--paper); padding: 0.4rem 0.8rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

.site-head {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.9rem;
}
.mark { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.mark svg { width: 1.15rem; height: 1.15rem; fill: var(--accent); transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.mark:hover svg { transform: rotate(45deg); }
.mark b { font-weight: 600; color: var(--muted); }
.site-head nav { display: flex; align-items: center; gap: clamp(0.6rem, 2.5vw, 1.5rem); }
.site-head nav a { text-decoration: none; color: var(--ink-2); padding: 0.2rem 0; border-bottom: 1px solid transparent; }
.site-head nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.site-head nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--accent); }
.theme {
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
}
.theme:hover { border-color: var(--ink); }
.theme svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.theme svg path { fill: currentColor; stroke: none; }

.mono, .eyebrow, .chip, time, .post-meta, .label { font-family: var(--mono); }
.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1.25rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.eyebrow b { color: var(--accent-text); font-weight: 600; }

h1, h2, h3 { font-family: var(--sans); line-height: 1.08; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
p, li, dd { text-wrap: pretty; }

section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.hero { padding-top: clamp(2.5rem, 8vw, 6rem); }
.hero h1 {
  font-size: clamp(3rem, 12.5vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.hero h1 .last { display: block; color: var(--accent); }
.hero h1 .star { display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.06em; vertical-align: 0.28em; fill: var(--ink); }
.lede { font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.3; max-width: 36ch; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 1.25rem; }
.lede { text-wrap: balance; }
.lede em { font-style: normal; background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
.roles { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--mono); font-size: 0.88rem; color: var(--ink-2); margin: 0 0 2rem; padding: 0; list-style: none; }
.roles li { position: relative; padding-left: 1.1em; }
.roles li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 8px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.9rem; font-weight: 600;
  padding: 0.7rem 1.1rem; text-decoration: none;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--accent); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--accent); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { color: var(--paper); }

.pipeline-wrap { border: 1.5px solid var(--line-strong); background: var(--card); box-shadow: var(--shadow); }
.pipeline-bar {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.65rem 1rem; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
}
.pipeline-bar b { color: var(--ink); font-weight: 600; }
.pipeline-bar .running { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--accent-text); }
.pipeline-bar .running::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.lanes { padding: 1.5rem 1rem 1.25rem; display: grid; gap: 1.5rem; }
.lane-name { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 0.6rem; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stage { position: relative; min-width: 0; padding: 0 1rem 0 0; }
.stage::before {
  content: ""; position: absolute; top: 10px; left: 1.4rem; right: 0.2rem; height: 2px;
  background: var(--line);
}
.stage:last-child::before { display: none; }
.stage.done::before { background: var(--ok); }
.node {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--ok); background: var(--card); color: var(--ok);
  font-size: 0.7rem; font-weight: 800; font-family: var(--mono);
  margin-bottom: 0.55rem;
}
.done .node { background: var(--ok); color: var(--card); }
.node svg { display: block; }
.run .node { border-color: var(--accent); }
.run .node::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
.run .node::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent);
  opacity: 0; animation: ring 1.6s ease-out infinite;
}
@keyframes pulse { 50% { transform: scale(0.6); } }
@keyframes ring { 0% { opacity: 0.6; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.35); } }
.stage div > strong { display: block; font-size: 1rem; line-height: 1.2; letter-spacing: -0.01em; }
.stage div > span { display: block; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); margin-top: 0.2rem; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head a { font-family: var(--mono); font-size: 0.88rem; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card {
  position: relative; display: flex; flex-direction: column;
  border: 1.5px solid var(--line-strong); background: var(--card);
  padding: 1.25rem 1.25rem 1.1rem; text-decoration: none; color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--accent); color: var(--ink); }
.card-id { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 1.4rem; }
.card h3 { font-size: 1.65rem; margin-bottom: 0.5rem; }
.card p { color: var(--ink-2); font-size: 0.98rem; margin-bottom: 1.25rem; }
.card .tags { margin-top: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.tags li { font-family: var(--mono); font-size: 0.72rem; padding: 0.15rem 0.45rem; border: 1px solid var(--line); color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--mono); font-size: 0.75rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.status.private::before { background: var(--muted); }
.status.wip::before { background: var(--accent); }

.chips { display: flex; gap: 0.4rem; }
.chip { font-size: 0.7rem; padding: 0.1rem 0.4rem; border: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.chip-draft { border-color: var(--accent); color: var(--accent-text); }

.post-list { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--line-strong); }
.post-item {
  display: grid; grid-template-columns: 9.5rem 1fr auto; gap: 0.25rem 1.5rem; align-items: baseline;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.post-item time { font-size: 0.8rem; color: var(--muted); }
.post-item a { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.015em; text-decoration: none; line-height: 1.25; }
.post-item a:hover { text-decoration: underline; }
.post-item p { grid-column: 2; margin: 0.25rem 0 0; color: var(--ink-2); font-size: 0.95rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.post-item .chips { grid-column: 3; grid-row: 1; }
.empty { color: var(--muted); font-family: var(--mono); }

.now { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1.5px solid var(--line-strong); background: var(--card); overflow: hidden; }
.now > div { padding: 1.1rem 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.now .label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-text); margin-bottom: 0.35rem; }
.now p { margin: 0; font-size: 0.98rem; color: var(--ink-2); }
.now strong { color: var(--ink); }

.page-head { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); letter-spacing: -0.045em; line-height: 0.95; margin-bottom: 1rem; }
.page-head p:not(.eyebrow) { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; }

.project-head { padding: clamp(2.5rem, 7vw, 5rem) 0 2rem; border-bottom: 1.5px solid var(--line-strong); margin-bottom: 2.5rem; }
.project-head h1 { font-size: clamp(3rem, 10vw, 6.5rem); letter-spacing: -0.05em; line-height: 0.9; margin: 0.5rem 0 1rem; }
.project-head .lede { max-width: 40ch; }
.back { font-family: var(--mono); font-size: 0.85rem; text-decoration: none; color: var(--muted); }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1.75rem 0 0; border: 1px solid var(--line); overflow: hidden; }
.specs div { padding: 0.75rem 0.9rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.specs dt { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.specs dd { margin: 0.15rem 0 0; font-weight: 600; }

.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-bottom: 3rem; }
.aside { position: sticky; top: 1.5rem; border: 1.5px solid var(--line-strong); background: var(--card); padding: 1.1rem; font-size: 0.95rem; }
.aside h2 { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 0.6rem; }
.aside ul { margin: 0 0 1.25rem; padding-left: 1.1rem; }
.aside li::marker, .entry li::marker { color: var(--accent); }
.aside ul:last-child { margin-bottom: 0; }

.prose { max-width: 68ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 2.4rem 0 0.9rem; }
.prose h2::before { content: "## "; font-family: var(--mono); font-size: 0.7em; color: var(--accent); letter-spacing: 0; vertical-align: 0.1em; }
.prose h3 { margin: 1.8rem 0 0.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1.1rem; border-left: 3px solid var(--accent); color: var(--ink-2); font-size: 1.1rem; }
.prose hr { border: 0; border-top: 1px dashed var(--line); margin: 2.5rem 0; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 3px; }
pre { font-family: var(--mono); font-size: 0.85rem; line-height: 1.55; background: var(--code-bg); border-left: 3px solid var(--accent); padding: 1rem 1.1rem; overflow-x: auto; margin: 0 0 1.4em; }
pre code { background: none; padding: 0; font-size: inherit; }
.note { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); border: 1px dashed var(--line); padding: 0.7rem 0.9rem; margin: 1.5rem 0; }
.todo { font-family: var(--mono); font-size: 0.85em; color: var(--accent-text); background: var(--accent-soft); padding: 0.05em 0.35em; }

.post { padding-top: clamp(2.5rem, 7vw, 4.5rem); padding-bottom: 3rem; }
.post-head { max-width: 68ch; margin-bottom: 2.25rem; }
.post-head h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -0.04em; line-height: 1; margin: 1rem 0 0.9rem; }
.post-meta { font-size: 0.82rem; color: var(--muted); margin: 0; }
.draft-banner { margin: 1.25rem 0 0; font-family: var(--mono); font-size: 0.82rem; padding: 0.6rem 0.8rem; border: 1.5px dashed var(--accent); color: var(--accent-text); background: var(--accent-soft); }

.chart { border: 1.5px solid var(--line-strong); background: var(--card); padding: 1.25rem 1.25rem 1rem; margin: 1.75rem 0; }
.chart-title { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 1rem; }
.bar-row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; align-items: center; margin-bottom: 0.7rem; font-family: var(--mono); font-size: 0.82rem; }
.bar { height: 2rem; background: var(--line); display: flex; align-items: center; justify-content: flex-end; padding-right: 0.6rem; color: var(--ink); font-weight: 700; }
.bar.after { background: var(--accent-text); color: var(--paper); }
.chart figcaption { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-top: 0.75rem; }

.cv { padding: clamp(2.5rem, 7vw, 4.5rem) 0 3rem; }
.cv-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1.5px solid var(--line-strong); margin-bottom: 2rem; }
.cv-head h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); letter-spacing: -0.045em; line-height: 0.95; }
.cv-head p:not(.eyebrow) { margin: 0.6rem 0 0; color: var(--ink-2); }
.cv-head .mono { font-size: 0.88rem; }
.cv-grid { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0 2.5rem; }
.cv-grid > h2 { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-text); padding-top: 0.3rem; font-weight: 600; }
.cv-block { margin-bottom: 2.5rem; }
.entry { padding: 0 0 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px dashed var(--line); }
.entry:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.entry-top { display: flex; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; align-items: baseline; }
.entry h3 { font-size: 1.2rem; }
.entry time, .entry .when { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.entry .org { color: var(--ink-2); margin: 0.15rem 0 0.5rem; font-weight: 500; }
.entry ul { margin: 0; padding-left: 1.1rem; color: var(--ink-2); }
.skills { display: grid; gap: 0.75rem; }
.skills div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: baseline; }
.skills dt { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.skills dd { margin: 0; }

.site-foot { border-top: 1.5px solid var(--line-strong); margin-top: 3rem; background: var(--paper-2); }
.foot-grid { max-width: var(--wrap); margin: 0 auto; padding: 1.75rem var(--gutter); display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; justify-content: space-between; align-items: center; font-size: 0.92rem; }
.foot-sign { margin: 0; font-weight: 700; line-height: 1.3; }
.foot-sign span { font-weight: 400; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 0.85rem; }
.foot-build { margin: 0; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ok); display: inline-block; }

.notfound { padding: clamp(4rem, 12vw, 8rem) 0; }
.notfound h1 { font-size: clamp(5rem, 22vw, 14rem); line-height: 0.85; letter-spacing: -0.06em; margin-bottom: 1.5rem; }
.notfound pre { margin-bottom: 2rem; }
.notfound pre { max-width: 34rem; }

@media (max-width: 52rem) {
  .layout-2 { grid-template-columns: 1fr; }
  .aside { position: static; }
  .cv-grid { grid-template-columns: 1fr; }
  .cv-grid > h2 { margin-bottom: 0.9rem; }
  .now, .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .cards { grid-template-columns: 1fr; }
  body { font-size: 1rem; }
  .site-head { flex-wrap: wrap; }
  .stages { grid-template-columns: 1fr; gap: 0.9rem; }
  .now { grid-template-columns: 1fr; }
  .stage { display: grid; grid-template-columns: 22px 1fr; gap: 0 0.8rem; padding: 0; }
  .stage::before { top: 22px; bottom: -0.9rem; left: 10px; right: auto; width: 2px; height: auto; }
  .node { margin: 0; }
  .post-item { grid-template-columns: 1fr auto; }
  .post-item time { grid-column: 1; }
  .post-item .chips { grid-column: 2; grid-row: 1; }
  .post-item a, .post-item p { grid-column: 1 / -1; }
  .skills div { grid-template-columns: 1fr; gap: 0.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  :root:not([data-theme="none"]) {
    color-scheme: light;
    --paper: #fff; --card: #fff; --ink: #000; --ink-2: #222; --muted: #555; --line: #bbb; --line-strong: #000; --accent-text: #9a3209; --grid: transparent; --shadow: none;
  }
  body { background: #fff; font-size: 10.5pt; }
  .site-head, .site-foot, .skip, .no-print { display: none !important; }
  .cv { padding: 0; }
  .btn { box-shadow: none; }
  @page { margin: 14mm; }
  .cv-head { padding-bottom: 1rem; margin-bottom: 1.25rem; }
  .cv-head h1 { font-size: 2.6rem; }
  .cv-grid { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0 1.5rem; }
  .cv-grid > h2 { margin-bottom: 0; }
  .cv-block { margin-bottom: 1rem; }
  .skills { gap: 0.3rem; }
  .skills div { grid-template-columns: 6rem 1fr; }
  .entry { padding-bottom: 0.7rem; margin-bottom: 0.7rem; break-inside: avoid; }
  a { text-decoration: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.h-gap { margin-bottom: 1.5rem; }
.project-head .eyebrow { margin-top: 1.5rem; }
.flush { padding-top: 0; }
