/* ---------- Base / reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.05;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 var(--s-4);
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p { margin: 0 0 var(--s-4); }
.lead { font-size: var(--fs-lead); color: var(--text-mid); line-height: 1.55; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-6); }
.container--wide { max-width: var(--maxw-wide); }
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--warm { background: var(--bg-warm); }
.section--white { background: var(--surface); }

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: var(--s-3) var(--s-5);
  border-radius: var(--r-sm);
}
.skip-link:focus { left: var(--s-4); top: var(--s-4); }

/* visible focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--brand-sky);
  outline-offset: 2px;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: var(--s-8); }
.mt-12 { margin-top: var(--s-12); }
