@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --ink: #0e2a38;           
  --ink-soft: #24404f;       
  --text: #3b515e;           
  --muted: #62767f;          
  --green-900: #0d3d33;
  --green-800: #124f42;      
  --green-700: #17604e;
  --green-600: #1b6b54;      
  --green-500: #24866a;
  --green-400: #3ea583;
  --mint-50: #f5fbf9;
  --mint-100: #ebf7f2;
  --mint-200: #dbf0e7;
  --mint-300: #bfe5d6;
  --line: #dcebe4;
  --white: #fff;
  --danger: #b42318;

  /* Type */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 64, 52, 0.04), 0 6px 18px rgba(15, 64, 52, 0.05);
  --shadow-md: 0 14px 34px rgba(15, 64, 52, 0.12);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4.4vw, 56px);
  --header-h: 72px;
  --section-y: clamp(56px, 7vw, 92px);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
figure { margin: 0; }

:focus-visible {
  outline: 3px solid rgba(31, 122, 94, 0.5);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--mint-300); color: var(--green-900); }

/* ---------- Layout helpers ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); background: #fff; }
.section--tint {
  background: linear-gradient(135deg, #dff0e8 0%, #eef8f3 40%, #f5faf7 100%);
}
.section--flush-top { padding-top: 0; }

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--green-800);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
.eyebrow {
  margin-bottom: 12px;
  color: var(--green-600);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.h1-page {
  font-size: clamp(2.1rem, 4.1vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.15rem);
  line-height: 1.2;
}
.accent { color: var(--green-600); }

.lead {
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.7;
  color: var(--text);
}
.muted { color: var(--muted); }

/* ---------- Icons ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

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