@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/brand/source-serif-4.woff2") format("woff2-variations"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/brand/source-serif-4-italic.woff2") format("woff2-variations"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/brand/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/brand/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f3ec;
  --paper-2: #efebe1;
  --surface: #fbf9f4;
  --ink: #1c1b18;
  --ink-2: #57534a;
  --ink-3: #6a655c;
  --rule: #ddd6c7;
  --rule-strong: #c9c0ad;
  --accent: #1d6b66;
  --accent-wash: #dcebe8;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 40rem;
  --gutter: 16px;
  --section: clamp(56px, 9vw, 112px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161513;
    --paper-2: #1d1c19;
    --surface: #1b1a17;
    --ink: #e9e4d8;
    --ink-2: #b3ad9f;
    --ink-3: #8f8a7e;
    --rule: #2f2d28;
    --rule-strong: #45413a;
    --accent: #5cc0b5;
    --accent-wash: #11211e;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 1.1875rem; line-height: 1.6; font-kerning: normal; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--ink-3); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
code, kbd, pre { font-family: var(--mono); font-size: 0.85em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 760px) { :root { --gutter: 40px; } }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--surface); padding: 8px 12px; }
.kicker { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 0.9rem; }
.muted { color: var(--ink-3); }

.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-weight: 500; font-size: 1.05rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.tile { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 7px; background: var(--paper-2); border: 1px solid var(--rule-strong); font-family: var(--mono); font-weight: 500; font-size: 0.85rem; line-height: 1; color: var(--ink); white-space: nowrap; }
.wordmark .t { color: var(--accent); }
.wordmark .cur { display: inline-block; width: 0.55em; height: 1em; background: var(--accent); vertical-align: -0.15em; margin-left: 0.05em; }
@media (prefers-reduced-motion: no-preference) { .wordmark:hover .cur { animation: blink 1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }

.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.primary { display: flex; gap: 4px 22px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 0.875rem; font-weight: 500; }
.primary a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.primary a[aria-current="page"] { border-bottom-color: var(--accent); }

.site-footer { border-top: 1px solid var(--rule); margin-top: var(--section); padding: 32px 0 48px; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.site-footer p { margin: 0; }
