@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/geist-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../assets/fonts/geistmono-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- tokens: one calm system for every page ---------- */
:root {
  --paper: #f1efe8;
  --ink: #15130e;
  --ink-2: #45413a;
  --ink-3: #635d53;
  --red: #c2553a;          /* graphic accent only */
  --red-text: #a8452c;     /* accent for text */
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* motion: confident arrival, symmetric morph */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --radius: 2px;  /* one corner for every control: drawn edges, not pills */

  /* grid: 12 columns between the outer margins */
  --gutter: clamp(20px, 5vw, 80px);
  --gap: 24px;
  --content-r: var(--gutter); /* right edge of all content */
  --bar-h: 72px;

  /* type stops */
  --fs-display: 88px; --fs-h2: 56px; --fs-h3: 26px; --fs-body: 19px; --fs-label: 12px;
  --lh-display: .98; --lh-h2: 1.02; --lh-body: 1.55;
}
@media (max-width: 1439px) { :root { --fs-display: 76px; --fs-h2: 50px; --fs-h3: 24px; --fs-body: 18px; } }
@media (max-width: 1279px) { :root { --fs-display: 64px; --fs-h2: 44px; --fs-h3: 22px; --fs-body: 17px; --gap: 20px; } }
@media (max-width: 1024px) { :root { --fs-display: 56px; --fs-h2: 40px; --fs-h3: 22px; --fs-body: 17px; --gap: 20px; } }
@media (max-width: 760px) { :root { --fs-display: 44px; --fs-h2: 34px; --fs-h3: 21px; --fs-body: 16px; --gap: 16px; --bar-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 24px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  scrollbar-color: color-mix(in srgb, currentColor 34%, transparent) transparent;
}
::selection { background: var(--red); color: var(--paper); }
input, textarea { caret-color: var(--red); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: calc(var(--bar-h) + 24px); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 16px; border-radius: var(--radius);
  background: var(--ink); color: var(--paper); font: 600 15px/1 var(--sans); text-decoration: none;
  transform: translateY(-200%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- logo ---------- */
.brandbox { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brandbox svg { height: 30px; width: auto; flex: none; }
.brandbox .wm { font-family: var(--mono); font-weight: 500; font-size: 16px; letter-spacing: 4px; line-height: 1; }
@media (max-width: 760px) { .brandbox svg { height: 26px; } .brandbox .wm { font-size: 14px; letter-spacing: 3.4px; } }

/* ---------- header: same on every page ---------- */
.bar {
  --bar-bg: var(--paper); --bar-fg: var(--ink);
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bar-bg) 86%, transparent); color: var(--bar-fg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .4s, background .5s var(--ease), color .5s var(--ease);
}
.bar.scrolled { border-bottom-color: color-mix(in srgb, var(--bar-fg) 12%, transparent); }
.bar-nav { display: flex; align-items: center; gap: 4px; }
.bar-nav a, .bar-nav button { font: 500 15px/1 var(--sans); letter-spacing: -.01em; color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 1px; padding: 12px 12px; border: 0; border-radius: var(--radius); background: none; cursor: pointer; transition: text-decoration-color .2s var(--ease); }
.bar-nav a:hover, .bar-nav button:hover, .bar-nav a[aria-current="page"] { text-decoration-color: currentColor; }
.bar-nav .bar-cta { margin-left: 8px; font-weight: 600; padding: 11px 16px; background: var(--bar-fg); color: var(--bar-bg); text-decoration: none; transition: background .25s var(--ease), color .25s var(--ease); }
.bar-nav .bar-cta:hover { background: var(--red-text); color: var(--paper); }
@media (max-width: 760px) { .bar-nav .hide-m { display: none; } }

/* ---------- buttons: one system ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 14px 22px; border-radius: var(--radius);
  font: 600 16px/1.2 var(--sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--red-text); border-color: var(--red-text); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.btn-outline:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
