/* Base: reset, typography, focus, links. Uses tokens only. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; color: var(--c-text); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); line-height: 1.4; font-weight: 600; }
p { margin: 0; }

a { color: var(--c-accent); text-underline-offset: 2px; }
a:hover { color: var(--c-accent-hover); }

code, kbd, pre, .mono { font-family: var(--font-mono); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

img, svg { display: block; max-width: 100%; }

/* Keyboard focus: always visible, never on mouse click */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: var(--syn-selection); }

.sr-only {
  position: absolute; 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; left: var(--sp-4); top: -48px; z-index: 100;
  background: var(--c-accent); color: var(--c-on-accent);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm); text-decoration: none;
}
.skip-link:focus { top: var(--sp-2); }

.muted { color: var(--c-muted); }
.small { font-size: var(--fs-small); }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-small);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-accent);
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
