/* Shared, self-hosted visual system. Existing document tokens are aliases. */
html:root {
  color-scheme: dark;
  --carbon: #101713;
  --forest: #1b2922;
  --ivory: #f0f0e6;
  --sage: #a8c2b1;
  --signal: #74d6b2;
  --mineral: #dae3d9;
  --ink: var(--ivory);
  --muted: #b5bdb4;
  --quiet: #91a095;
  --rule: #34433a;
  --page: var(--carbon);
  --panel: #17221b;
  --button-ink: #101713; --button-hover: #94e4c4;
  --gutter: clamp(22px, 5.6vw, 88px);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --ease: cubic-bezier(.22,.68,.15,1);
  --bg: var(--page); --bg2: var(--panel);
  --text: var(--ink); --text2: var(--muted); --text3: var(--quiet);
  --mint: var(--signal); --line: var(--rule); --line2: #536256;
  --surface: #18241d; --surface2: #213027;
  --mintSoft: #213c30; --mintLine: #527b66; --hi: #3f5145; --home-band: #17231c; --home-cue: #203a2c;
}
html[data-theme='light'] {
  color-scheme: light;
  --ink: #17251c; --muted: #43584a; --quiet: #52675a;
  --rule: #bac8bb; --page: #e9ece3; --panel: #dfe5d9;
  --signal: #246347; --sage: #506c58;
  --button-ink: #f0f0e6; --button-hover: #174b34;
  --line2: #9aac9b; --surface: #dfe5d9; --surface2: #d5dece;
  --mintSoft: #d4e0cd; --mintLine: #809d85; --hi: #fafbf6; --home-band: #dfe7da; --home-cue: #d4e3cf;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; opacity: .5; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
[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; }
::selection { color: var(--page); background: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 6px; }
p { text-wrap: pretty; }
.shell { width: min(calc(100% - var(--gutter) * 2), 1360px); margin-inline: auto; }
.eyebrow { margin: 0 0 24px; font: 400 14px/1.5 var(--sans); color: var(--sage); letter-spacing: .015em; }
.signal { display: inline-block; flex: none; width: 6px; height: 6px; background: var(--signal); border-radius: 50%; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font: 400 34px/1 var(--serif); letter-spacing: -.035em; }
.wordmark:hover { color: var(--ink); }
.brand-mark > rect:first-child { fill:#153c26; stroke:#78b092; }
.brand-mark > rect:not(:first-child) { fill:#f2f8f5; }
.brand-mark > circle,.brand-mark > rect:nth-of-type(3) { fill:#bfffd3; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 54px; padding: 15px 23px; border: 1px solid transparent; border-radius: 5px; background: var(--signal); color: var(--button-ink); font: 500 16px/1.4 var(--sans); transition: background .2s, border-color .2s; }
.button:hover { color: var(--button-ink); background: var(--button-hover); }
.button-small { min-height: 44px; padding: 10px 16px; font-size: 14px; gap: 16px; }
.button-outline { color: var(--ink); background: transparent; border-color: var(--rule); }
.button-outline:hover { color: var(--ink); background: var(--panel); border-color: var(--quiet); }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 16px; }
.text-link:hover { color: var(--signal); }
.text-link > svg, .text-link > span { transition: transform .25s var(--ease); }
.text-link:hover > svg, .text-link:hover > span { transform: translate(3px, -1px); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--ink); flex: none; }
.icon-button:hover { border-color: var(--sage); background: var(--panel); }
.theme-toggle { width: 40px; height: 40px; border-color: transparent; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled, .site-header:has(.mobile-menu:not([hidden])) { background: var(--page); border-color: var(--rule); }
@supports (backdrop-filter: blur(20px)) { .site-header.is-scrolled { background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(20px); } }
.header-inner { height: 90px; display: flex; align-items: center; gap: 32px; }
.desktop-nav { display: flex; align-items: center; gap: clamp(20px,2.8vw,44px); margin-left: auto; }
.desktop-nav a { position: relative; font-size: 15px; color: var(--muted); padding-block: 12px; }
.desktop-nav a:hover, .desktop-nav a[aria-current] { color: var(--ink); }
.desktop-nav a::after { content: ''; position: absolute; bottom: 5px; height: 1px; left: 0; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.desktop-nav a:hover::after { transform: scaleX(1); }
.header-controls { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; border: 0; }
.menu-toggle span { width: 19px; height: 1px; background: currentColor; transition: transform .2s; }
.menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu { padding: 12px var(--gutter) 30px; max-height: calc(100dvh - 76px); overflow: auto; }
.mobile-menu a { display: block; padding: 13px 0; font: 400 26px/1.2 var(--sans); border-bottom: 1px solid var(--rule); }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 20px; padding: 15px 22px; background: var(--signal); color: var(--page); }
.skip-link:focus { top: 12px; }
.section-space { padding-block: clamp(90px,10vw,155px); }
.section-heading { display: grid; grid-template-columns: 1.12fr .72fr; gap: 13%; align-items: end; margin-bottom: 65px; }
.home-page h2 { margin: 0; font: 400 clamp(48px,5.7vw,88px)/1.02 var(--sans); letter-spacing: -.05em; text-wrap: pretty; }
.home-page h3 { font-weight: 400; }
:where(.home-page) p { line-height: 1.7; }
.section-intro { margin: 0; color: var(--muted); font-size: 16px; }
.section-intro p { margin: 0 0 20px; }
.section-intro p:last-child { margin-bottom: 0; }
.site-footer { padding: 70px 0 30px; border-top: 1px solid var(--rule); }
.footer-top { display: grid; grid-template-columns: 1.5fr .8fr 1fr .55fr; gap: 7%; }
.footer-top > p { max-width: 28em; margin: 0; color: var(--muted); font-size: 16px; }
.footer-top > div { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; font-size: 15px; }
.footer-top > div > span { margin-bottom: 10px; color: var(--quiet); }
.footer-top a:hover { color: var(--signal); }
.footer-wordmark { position: relative; margin: 52px 0 -15px; font: 400 clamp(130px,26vw,415px)/.85 var(--serif); letter-spacing: -.065em; color: var(--sage); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; border-top: 1px solid var(--rule); padding-top: 25px; margin-top: 65px; font-size: 14px; color: var(--muted); }
.footer-fine { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; margin-top: 25px; color: var(--quiet); font-size: 14px; }
.footer-fine p { margin: 0; line-height: 1.6; }
.footer-fine a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) {
  .desktop-nav { gap: 22px; }
  .header-inner { gap: 18px; }
  .section-heading { gap: 7%; }
  .footer-top { gap: 5%; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 88px; }
  .header-inner { height: 76px; }
  .wordmark { font-size: 30px; }
  .desktop-nav { display: none; }
  .header-controls { margin-left: auto; gap: 3px; }
  .header-controls .button { min-height: 42px; font-size: 14px; padding: 9px 12px; gap: 10px; white-space: nowrap; }
  .header-controls .button svg { width: 14px; }
  .menu-toggle { display: inline-flex; }
  .section-heading { grid-template-columns: 1fr; gap: 26px; margin-bottom: 38px; }
  .section-intro { max-width: 36em; }
  .section-space { padding-block: 80px; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; gap: 32px 18px; }
  .footer-top > p { grid-column: 1 / -1; max-width: 35em; }
  .footer-fine { grid-template-columns: 1fr; gap: 14px; }
  .footer-bottom { margin-top: 40px; }
}
@media (max-width: 380px) { .header-inner { gap:8px; } .header-controls .button svg { display: none; } .theme-toggle { width: 33px; } .brand-mark { width: 23px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
html[data-motion='paused'] { scroll-behavior: auto; }
html[data-motion='paused'] *, html[data-motion='paused'] *::before, html[data-motion='paused'] *::after { animation-play-state: paused !important; }
