/* ============================================================
   Base — reset, typography, links (light theme)
   ============================================================ */

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out),
              opacity var(--t-fast) var(--ease-out);
}

a:hover { color: var(--red); }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--ink);
}

h1 { font-size: clamp(var(--fs-40), 6vw, var(--fs-80)); }
h2 { font-size: clamp(var(--fs-32), 4.5vw, var(--fs-56)); }
h3 { font-size: clamp(var(--fs-24), 3vw, var(--fs-32)); }
h4 { font-size: var(--fs-20); }
h5 { font-size: var(--fs-18); }
h6 { font-size: var(--fs-16); }

p {
  margin: 0 0 var(--s-4);
  line-height: var(--lh-relaxed);
  color: var(--ink-2);
  max-width: 64ch;
}

p strong { color: var(--ink); font-weight: 600; }

/* Small uppercase label */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--red);
}

.lead {
  font-size: clamp(var(--fs-18), 1.4vw, var(--fs-20));
  line-height: var(--lh-snug);
  color: var(--ink);
  max-width: 56ch;
  font-weight: 400;
}

/* Selection */
::selection {
  background: var(--red);
  color: #fff;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.container-prose {
  width: 100%;
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 768px) {
  .container,
  .container-narrow,
  .container-prose {
    padding: 0 var(--gutter-lg);
  }
}

/* Section spacing */
.section {
  padding: clamp(var(--s-8), 8vw, var(--s-9)) 0;
}

.section-sm {
  padding: var(--s-7) 0;
}

/* Hairline */
.rule {
  height: 1px;
  width: 100%;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* Utilities */
.text-center { text-align: center; }
.muted { color: var(--ink-3); }
.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;
}
