/* Ethical Agent Network, shared design tokens
   Generated from the EAN Design Hub (library.json / DESIGN.md), 2026-08-07.
   Source of truth is the hub. Do not invent values here. */

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-VariableFont_wdth_wght.ttf') format('truetype-variations');
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  /* One green. Nothing else is an accent. */
  --green-900: #0E3E22;
  --green-800: #145833;
  --green-700: #1F7A47;
  --green-600: #2C9358;
  --green-500: #3EAD6B;
  --green-400: #6FC591;
  --green-300: #A6DCBC;
  --green-200: #D2EDDE;
  --green-100: #E8F5EE;
  --green-050: #F4FAF6;

  /* Warm neutrals with a yellow bias. Never blue. */
  --ink-900: #111111;
  --ink-700: #2C2C2A;
  --ink-600: #4A4A47;
  --ink-500: #6B6B66;
  --ink-300: #B7B7B1;
  --ink-200: #D9D9D3;
  --ink-100: #ECECE7;
  --ink-050: #F5F4EF;

  --paper: #FBFAF6;
  --white: #FFFFFF;
  --warning: #C68A1B;
  --danger: #B23A2E;

  /* Warm shadows only. Never blue tinted. No inner shadows. */
  --shadow-xs: 0 1px 2px rgba(17, 17, 17, .04);
  --shadow-sm: 0 2px 6px rgba(17, 17, 17, .06);
  --shadow-md: 0 8px 20px -8px rgba(17, 17, 17, .12);
  --shadow-lg: 0 24px 48px -20px rgba(17, 17, 17, .18);
  --shadow-stamp: 0 6px 14px -6px rgba(20, 88, 51, .35);

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 200ms;

  --measure: 680px;
  --max: 1200px;
}

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

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

/* Emoji safety cap. WordPress emoji conversion is turned off in functions.php
   (ean_disable_emojis), so emoji render as native text-sized glyphs. This is a
   belt-and-braces rule in case a plugin re-adds a twemoji image: it keeps any
   such image at text size and inline, rather than ballooning to its natural
   72px. Added 2026-09-03 after emoji in a member-area card rendered enormous. */
img.emoji, img.wp-smiley {
  display: inline !important;
  height: 1em !important;
  width: 1em !important;
  margin: 0 .05em 0 .1em !important;
  vertical-align: -0.1em !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body {
  margin: 0;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

/* Headlines run condensed. The width contrast is the brand signature. */
h1, h2, h3, .condensed {
  font-stretch: 75%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.08; }
h3 { font-size: clamp(1.375rem, 2.2vw, 2rem); line-height: 1.15; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
}

/* Browser surface theming. The cheapest signal a page was built, not assembled. */
::selection { background: var(--green-200); color: var(--green-900); }
body { caret-color: var(--green-700); }
* { scrollbar-color: var(--green-700) var(--ink-100); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink-100); }
::-webkit-scrollbar-thumb { background: var(--green-700); border: 3px solid var(--ink-100); border-radius: var(--r-pill); }

:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

a { color: inherit; }

/* Buttons. Primary is a green pill, echoing the round sticker. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn-primary {
  background: var(--green-700);
  color: var(--white);
  border-radius: var(--r-pill);
  padding: 17px 34px;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-800); }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }

.btn-secondary {
  background: var(--paper);
  color: var(--green-800);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-sm);
  padding: 16px 28px;
}
.btn-secondary:hover { background: var(--green-100); border-color: var(--green-200); }

.btn-onforest {
  background: var(--white);
  color: var(--green-900);
  border-radius: var(--r-pill);
  padding: 17px 34px;
}
.btn-onforest:hover { background: var(--green-100); }

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--r-sm);
  padding: 16px 28px;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .8); }

/* Links carry an underline. The brand favours obvious link affordance. */
.tlink {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

/* Stamp caps. MEMBER badge, EAN APPROVED, running footer only. Never a kicker. */
.stamp {
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Placeholder figures. Nick is supplying the real ones from Enid.
   The dotted rule is a build-time marker and comes off before launch. */
.tbc {
  border-bottom: 2px dotted currentColor;
  padding-bottom: .04em;
}

/* Available to screen readers, invisible on screen. Used to give the animating
   counters a stable value to announce, since a figure mid count reads as "0". */
/* ⚠️ [hidden] sets display:none at the lowest specificity there is, so any
   component with its own display rule silently ignores it. .btn is
   inline-flex, and that alone left the funnel's Back and submit buttons on
   screen on step one while the script believed it had hidden them. */
[hidden] { display: none !important; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: var(--measure); }

.hairline { border: 0; border-top: 1px solid var(--ink-200); margin: 0; }

/* Capture mode. Adding ?shot to the URL pins viewport-height sections to a
   fixed height so a single full-page screenshot reads the way the page does
   in a normal window. Build tooling only, never shipped behaviour. */
.shot .hero, .shot .statement, .shot .proof, .shot .plate, .shot .lead, .shot .crest { min-height: 800px !important; }
.shot .split { min-height: 720px !important; }

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