/* ============================================================
   BASE
   Reset, root typography, the type scale, and layout
   primitives (container, section rhythm). No component styling
   lives here. All values resolve to tokens.css.
   ============================================================ */

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

html{
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol{
  margin: 0;
}

ul[role="list"],
ol[role="list"]{
  list-style: none;
  padding: 0;
}

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

svg{ height: auto; }

input, button, textarea, select{
  font: inherit;
  color: inherit;
}

button{ background: none; border: none; cursor: pointer; }

/* ---- Root typography ---- */
html{
  font-size: 100%;
  scroll-behavior: smooth;
}

body{
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Type scale ---- */
h1, h2, h3, h4, h5, h6{
  color: var(--ink);
  font-family: var(--display);
  line-height: 1.05;
  font-weight: 700;
  text-wrap: balance;
}

h1{ font-size: var(--h1); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; }
h2{ font-size: var(--h2); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
h3{ font-size: var(--h3); font-weight: 700; letter-spacing: -0.01em; }
h4{ font-size: var(--h4); font-weight: 600; }

/* h5 is the kicker / eyebrow role: uppercase, tracked, teal with a gold dash */
h5,
.kicker{
  font-family: var(--display);
  font-size: var(--h5);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: var(--s1);
}
h5::before,
.kicker::before{
  content: "";
  width: 20px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  flex: none;
}

/* Mint kicker variant, for section heads where teal would clash */
.kicker--teal{ color: var(--mint); }

p{
  font-size: var(--body);
  line-height: 1.6;
  max-width: 68ch;
  text-wrap: pretty;
}

.lede{
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink-mute);
  max-width: 60ch;
}

/* Italic subtitle role used in the hero */
.subtitle{
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.25;
  color: var(--ink-mute);
  max-width: 52ch;
  margin-block: var(--s1) var(--s2);
}

small{ font-size: 0.82rem; }

/* ---- Links ---- */
a{
  color: var(--teal);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover{ color: var(--mint); }

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

.section{
  padding-block: clamp(56px, 8vw, 84px);
}
.section--tight{ padding-block: clamp(40px, 6vw, 60px); }
.section--loose{ padding-block: clamp(72px, 10vw, 108px); }

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
