/* Reset + base typography + layout primitives. */

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

[hidden] { display: none !important; }

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (min-width: 768px) {
  html { font-size: 18px; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--primary-muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--primary-ink);
  font-weight: 600;
  margin: 0 0 var(--s-4);
  letter-spacing: -0.01em;
  line-height: var(--lh-display);
  font-variation-settings: "opsz" 36, "SOFT" 30;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: var(--lh-tight); }
h4 { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: var(--lh-tight); }

p { margin: 0 0 var(--s-4); max-width: 68ch; }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25rem; }
li { margin-bottom: var(--s-2); }

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

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

/* Eyebrow / kicker label */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-muted);
  margin-bottom: var(--s-3);
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--on-dark { color: var(--accent-soft); }

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.container--narrow { max-width: var(--container-narrow); }

/* Section spacing */
.section { padding: var(--s-8) 0; }
@media (min-width: 768px) { .section { padding: var(--s-9) 0; } }
.section--tight { padding: var(--s-7) 0; }
.section--dark { background: var(--primary-deep); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--soft { background: #fff; }
.section--accent-soft { background: var(--accent-soft); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--primary-ink);
  color: #fff;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  z-index: 999;
}
.skip-link:focus { left: 8px; }

/* Focus ring — used everywhere */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Utility */
.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;
}

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }

.lead { font-size: 1.15rem; line-height: 1.55; color: var(--text); max-width: 60ch; }

/* Add space for sticky mobile CTA so content never sits underneath it */
@media (max-width: 767px) {
  body { padding-bottom: var(--mobile-cta-h); }
}
