/* Reset, typography primitives, layout helpers */

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

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

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

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

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--link-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--text-default);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
  font-weight: 700;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--space-4); }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }

hr {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: var(--space-7) 0;
}

blockquote {
  font-family: var(--font-accent);
  font-size: var(--fs-xl);
  font-style: italic;
  margin: var(--space-6) 0;
  padding-left: var(--space-5);
  border-left: 3px solid var(--accent-exhibition);
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--space-8) 0; }
.section--tight { padding: var(--space-6) 0; }

.section--warm    { background: var(--color-warm-gray); }
.section--white   { background: var(--color-white); }
.section--inverse { background: var(--bg-inverse); color: var(--text-inverse); }
.section--inverse a { color: var(--color-orange); }

.grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); }

.prose { max-width: var(--container-narrow); }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }

/* ---------- Utility ---------- */

.accent-font { font-family: var(--font-accent); }
.text-muted  { color: var(--text-muted); }
.text-small  { font-size: var(--fs-sm); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
}

.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;
}
