/* ============================================================
   Reset + base typography
   ============================================================ */
*, *::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: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-deep); }

::selection { background: var(--brand); color: #fff; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.025em; }
h3 { font-size: var(--fs-h3); font-weight: 500; }
h4 { font-size: var(--fs-h4); line-height: 1.18; }
h5 { font-size: var(--fs-h5); line-height: 1.22; }
h6 { font-size: var(--fs-h6); line-height: 1.28; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-2); max-width: 60ch; }


.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.container-wide { max-width: 1480px; padding-inline: var(--gutter); margin-inline: auto; }

section { padding-block: clamp(2.75rem, 1.5rem + 3.2vw, 5.5rem); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: var(--space-3);
  background: var(--ink); color: var(--bg);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-s);
  z-index: 100; font-size: var(--fs-small);
}
.skip-link:focus { left: var(--space-3); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Visually Hidden for accessibility & outline algorithm */
.sr-only, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

