*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
html.modal-open { overflow: hidden; overscroll-behavior: none; scroll-behavior: auto; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
button, a, input, select, summary, [tabindex] { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: var(--accent); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure, p, h1, h2, h3, ul, ol { margin: 0; }
p + p { margin-top: 1.2em; }
h1, h2, h3 { font-weight: 600; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(48px, 6.6vw, 104px); }
h2 { font-size: clamp(32px, 3.7vw, 60px); }
h3 { font-size: clamp(21px, 2vw, 27px); }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: .4em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--max)); margin-inline: auto; }
.section { padding-block: var(--space); border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--mono); font-size: 11px; line-height: 1.5; letter-spacing: .14em; color: var(--accent); margin-bottom: 22px; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.65; }
.text-link, .text-button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; text-decoration: none; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 6px 0; }
.text-link:hover, .text-button:hover { color: var(--accent); border-color: var(--accent); }
.anchor-alias { display: block; scroll-margin-top: 35px; }
.prose { max-width: 680px; color: var(--muted); }
.prose h3 { color: var(--text); margin-top: 32px; margin-bottom: 12px; font-size: 22px; }
.prose > h3:first-child { margin-top: 0; }
.prose .button { margin-top: 28px; }
.prose p { line-height: 1.8; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--accent); color: var(--ink); padding: 12px 20px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) { .button, .project-card, dialog, select { border: 1px solid ButtonText; } }
