/* ==========================================================================
   Base: fonts, design tokens, reset, typography.

   UNITS — everything is sized in rem, and 1rem = 10 "design pixels":
     - wide screens (> 1280px): 1rem = 10px, content sits in a centred 980px column;
     - 601–1280px: the desktop layout scales down with the viewport (1rem = 100vw / 128);
     - phones (<= 600px): a separate mobile layout designed for a 320px-wide screen that
       scales with the viewport (1rem = 100vw / 32).
   So a value measured as 24px on the old site is written 2.4rem, on desktop and mobile alike.
   ========================================================================== */

@font-face {
  font-family: "Nexa";
  src: url("../fonts/nexa-bold.bbfd23bcf0f6.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nexa";
  src: url("../fonts/nexa-heavy.444ded7853cc.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-900: #003f28;
  --green-800: #004029;
  --green-700: #004c2d;
  --green-500: #03a65a;
  --sage: #5d8c7b;
  --lime: #68dd68;
  --purple: #4f1c91;
  --lilac-500: #ae9bea;
  --lilac-300: #b5a4ff;
  --lilac-100: #dad2ff;
  --cream: #f2f4ed;
  --paper: #f4f3ef;
  --white: #fff;
  --ink: #30312f;

  --font: "Nexa", "Helvetica Neue", Arial, sans-serif;
  --bold: 700;   /* Nexa Bold — body text */
  --heavy: 900;  /* Nexa Heavy — headings */

  --column: 98rem;         /* 980px content column */
  --header-h: 11rem;
}

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

html {
  font-size: 10px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (max-width: 1280px) { html { font-size: calc(100vw / 128); } }
/* Phones: the mobile layout is designed at 320px wide. Above that it grows more slowly than the screen (about 10%
   smaller than a straight zoom on a 412px phone). Blocks with a fixed width stay centred by adding --gutter
   (half the room left beside the 32rem design; 0 at 320px) to their section's padding or position. */
@media (max-width: 600px)  { html { font-size: min(calc(100vw / 32), calc(10px + (100vw - 320px) / 61)); } :root { --header-h: 8.9rem; --gutter: max(0px, calc((100vw - 32rem) / 2)); } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--green-900);
  font-family: var(--font);
  font-weight: var(--bold);
  font-size: 1.6rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: var(--heavy); font-size: inherit; }
ul, ol { list-style: none; }
b, strong { font-weight: var(--heavy); }
img, picture, svg, video { display: block; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -999rem; top: 0; z-index: 1000;
  padding: 1rem 2rem; background: var(--white); color: var(--purple);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Layout helpers */
.column { width: var(--column); margin-inline: auto; position: relative; }
.only-mobile { display: none !important; }
@media (max-width: 600px) {
  .column { width: auto; }
  .only-desktop { display: none !important; }
  .only-mobile { display: revert !important; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
