/* Base: reset, type, links, focus, utilities */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--link-hover); }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
input::placeholder { color: var(--muted); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Utilities */
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.num { font-family: var(--font-mono); font-weight: 500; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.accent-text { color: var(--accent-text); }
.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;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted);
}
.caption { font-size: 12.5px; color: var(--muted); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--area-1)); flex: none; }
.swatch--sm { width: 8px; height: 8px; border-radius: 2px; }

/* Theme toggle icons: show the icon for the mode you'd switch TO */
[data-theme="dark"] .icon-moon,
:root:not([data-theme]) .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
