:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --text: #e5e5e5;
  --muted: #a1a1a1;
  --subtle: #929292;
  --line: #252525;
  --font: "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.85 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: #d3d3d3; color: #111; }
h1, h2, p { margin: 0; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
a:hover { text-decoration: underline; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--text); outline-offset: 6px; border-radius: 2px; }
.page { width: min(820px, calc(100% - 80px)); margin-inline: auto; min-height: 100svh; display: flex; flex-direction: column; }
/* Navigation shares the content edge and scrolls with the page. */
.header { padding-top: 32px; flex-shrink: 0; }
nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 12px; color: var(--muted); }
nav a { position: relative; padding: 10px 0; white-space: nowrap; transition: color .2s ease; }
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
nav a:hover, nav a:focus-visible, nav a[aria-current] { color: var(--text); text-decoration: none; }
nav a:hover::after, nav a:focus-visible::after, nav a[aria-current]::after { transform: scaleX(1); }
main { flex: 1; animation: arrive .35s ease both; }
.home-main { display: flex; align-items: center; padding: 70px 0 100px; }
.landing { width: 100%; }
h1 { font-size: 32px; line-height: 1.4; font-weight: 500; letter-spacing: -.055em; }
.landing h1 { font-size: clamp(30px, 4.3vw, 46px); }
.tagline { font-size: 17px; line-height: 1.8; margin-top: 20px; }
.intro-links { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 32px; font-size: 12px; }
a > span[aria-hidden] { display: inline-block; color: var(--subtle); transition: transform .18s ease, color .18s ease; }
a:hover > span[aria-hidden], a:focus-visible > span[aria-hidden] { transform: translate(2px,-2px); color: var(--text); }
a:active { opacity: .7; }
.content-main { padding: 70px 0 65px; }
.section > h1 { margin-bottom: 38px; }
.section-body { max-width: 700px; }
h2 { font-size: 18px; line-height: 1.5; font-weight: 500; letter-spacing: -.025em; }
h2 + p { margin-top: 12px; }
.project + .project, .job + .job, .education-entry + .education-entry { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 30px; }
.tools { font-size: 11px; color: var(--subtle); margin-top: 12px; }
details { margin-top: 10px; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; cursor: pointer; list-style: none; font-size: 12px; color: var(--muted); transition: color .18s ease; }
summary::-webkit-details-marker { display: none; }
summary:hover, details[open] > summary { color: var(--text); }
summary > span { font-size: 18px; line-height: 1; transition: transform .2s ease; }
details[open] > summary > span { transform: rotate(45deg); }
details.is-closing > summary > span { transform: rotate(0); }
.detail-content { padding: 10px 0 8px 18px; margin: 5px 0 14px; border-left: 1px solid #383838; font-size: 13px; }
details.is-animating { overflow: hidden; will-change: height; }
.detail-content p + p { margin-top: 12px; }
.steps { padding-left: 20px; margin: 16px 0 0; color: var(--muted); }
.steps li + li { margin-top: 6px; }
.more-projects { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 30px; }
.more-projects article + article { margin-top: 24px; }
.more-projects h2 { font-size: 16px; }
.entry-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 5px 20px; }
.entry-heading > span { font-size: 11px; color: var(--subtle); }
.job-meta { font-size: 12px; color: var(--subtle); margin-top: 7px; }
.job-meta + p { margin-top: 16px; }
#about .job-meta { margin-top: 18px; }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 10px; left: 20px; transform: translateY(-200%); padding: 12px; background: var(--text); color: var(--bg); z-index: 30; }
.skip-link:focus { transform: translateY(0); }
@keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 650px) {
  .page { width: calc(100% - 40px); }
  .header { padding-top: 20px; }
  nav { gap: 18px; font-size: 11px; }
  nav a { padding: 10px 0; }
  .home-main { padding-block: 55px 75px; }
  .landing h1 { font-size: clamp(26px, 6.5vw, 36px); }
  .tagline { font-size: 14px; }
  .wide-break { display: none; }
  .intro-links { gap: 12px 20px; }
  .content-main { padding-block: 45px; }
  .section > h1 { margin-bottom: 30px; font-size: 28px; }
  .entry-heading { display: block; }
  .entry-heading > span { display: block; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root { --bg: #fff; --text: #111; --muted: #333; --subtle: #444; --line: #ccc; }
  .page { width: 100%; min-height: auto; }
  .header, .skip-link { display: none; }
  .home-main, .content-main { padding: 0; }
  .project, .job { break-inside: avoid; }
}
