:root {
  --ink: #1a1512;
  --paper: #fdfbf6;
  --stone: #ebe4d3;
  --stone-soft: #f4efe2;
  --white: #ffffff;
  --char: #1a1512;
  --char-deep: #0f0b09;
  --char-soft: #3a302a;
  --paprika: #c23a1b;
  --paprika-deep: #9f2e14;
  --butter: #f4c542;
  --butter-soft: #fbe9a8;
  --sage: #4f6340;
  --sage-soft: #e2ead3;
  --muted: #5f564d;
  --line: #d9cfba;
  --field-line: #7a7064;
  --success: #3d6b3a;
  --danger: #a8341f;
  --warn: #8a5a00;

  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 4px;
  --radius-sm: 2px;
  --shadow: 0 0 0 0 transparent;
  --shadow-lg: 6px 6px 0 var(--char);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);

  --max: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(56px, 7vw, 96px);
  --concept-h: 36px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: var(--paprika); text-underline-offset: 3px; }
a:hover { color: var(--paprika-deep); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--char);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.7rem, 6.6vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
h4 { font-size: 1.15rem; }

:focus-visible { outline: 3px solid var(--paprika); outline-offset: 3px; border-radius: 2px; }

.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.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: 12px; top: -80px; z-index: 200;
  background: var(--char); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
