/* Base: reset, typography, layout primitives. */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-800); }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--emerald-500);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--mint-100); color: var(--forest-800); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--forest-800); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; color: #fff; }

/* Type scale */
.display, .display-xl, .display-2, .display-3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.025em;
  color: var(--forest-800);
}
.display { font-size: var(--fs-display); line-height: 1.02; }
.display-xl { font-size: var(--fs-display-xl); line-height: 0.98; }
.display-2 { font-size: var(--fs-display-2); line-height: 1.06; }
.display-3 { font-size: var(--fs-display-3); line-height: 1.12; }
.display em, .display-xl em, .display-2 em, .display-3 em { font-style: italic; color: var(--green-700); font-weight: 400; }
.light { color: #fff; }
.display-xl.light em { color: var(--emerald-300); }

.lead { font-size: var(--fs-lg); line-height: 1.65; color: var(--ink-2); max-width: 36rem; }
.muted { color: var(--muted); }
.muted-light, .light-muted { color: rgba(255, 255, 255, 0.74); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: var(--s-4);
}
.eyebrow-light { color: var(--emerald-300); }
.eyebrow-pill {
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line);
  padding: 7px 14px 7px 10px; border-radius: var(--r-pill); letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
}
.eyebrow-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(32, 165, 107, 0.18);
}

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-sub { margin-top: var(--s-4); font-size: var(--fs-lg); max-width: 40rem; }
.section-head-split {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6);
}
.section-head-split > div { max-width: 720px; }
.section-head-split > p { max-width: 340px; }

/* Lucide icons default sizing */
[data-lucide], .lucide { width: 1.15em; height: 1.15em; stroke-width: 1.9; flex: none; }

/* Programmatic focus targets (sections after anchor navigation) */
[tabindex="-1"]:focus { outline: none; }
