/* Copied from working/website/design-system-2026-10-16/ by tools/sync_design_system.py. Edit the design system, then sync. */
/* Jungle Haus design system — tokens. Draft 4, 2026-10-18.
   Primitives first, then semantic roles per theme: light (the lead),
   dark and forest (the bands).
   tokens.json holds the same values. Pages use the semantic roles only. */

/* Inter 4.1, the approved face (decision 2026-10-18), served from its own
   files: the variable web fonts first, the TTF only as a fallback. Never
   from an outside server. Pages copy these files and keep LICENSE.txt. */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable-Latin.woff2') format('woff2'),
       url('../fonts/InterVariable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable-Italic-Latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ---------- Color primitives ---------- */
  /* Green: the brand color. 600 is the approved action green. */
  --green-50: #eef6f1;
  --green-100: #d8ede0;
  --green-200: #b6e6c8;
  --green-250: #a3dab8;
  --green-300: #8ccba5;
  --green-400: #5fa67e;
  --green-500: #4a9069;
  --green-600: #397b58;
  --green-700: #326e4e;
  --green-800: #2b6044;
  --green-900: #24563b;
  --green-950: #173a2b;
  --green-975: #12301f;

  /* Forest: the surfaces of the green band, between green-950 and green-700. */
  --forest-800: #1d4535;
  --forest-750: #24503e;
  --forest-700: #2f5c49;
  --forest-650: #386a55;

  /* Neutral: green-tinted grays. 900/850/800 are the approved dark surfaces,
     50/100/150 the approved light ones. */
  --neutral-0: #ffffff;
  --neutral-50: #f7faf8;
  --neutral-100: #edf2ef;
  --neutral-150: #e3ebe6;
  --neutral-200: #d4ddd7;
  --neutral-250: #c6d2c9;
  --neutral-300: #b2c1b6;
  --neutral-400: #8e9c92;
  --neutral-500: #78857a;
  --neutral-550: #707d75;
  --neutral-600: #556158;
  --neutral-650: #4a5650;
  --neutral-700: #3f4a44;
  --neutral-800: #27312d;
  --neutral-850: #1e2523;
  --neutral-900: #171c1b;
  --neutral-950: #101413;
  --neutral-ink: #202822;
  /* Text on dark. Green-tinted in draft 3 (were #ededf3 and #c3c3cc). */
  --ivory: #eceeeb;
  --ash: #c2c8c3;

  /* Red: errors only. */
  --red-200: #ffb8b2;
  --red-800: #852e29;

  /* ---------- Type ---------- */
  /* Faces, and everything tuned to them, live together. Inter is the one
     face for display and text; browsers pick its Display cut on their own
     at large sizes (optical size axis). */
  --font-inter: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: var(--font-inter);
  --font-text: var(--font-inter);
  --font-numeric: var(--font-text);
  --font-display-adjust: 0.546;
  --font-text-adjust: 0.546;
  --tracking-display: -0.03em;
  --tracking-heading-lg: -0.022em;
  --tracking-heading: -0.012em;
  --weight-display: 480;
  --weight-emphasis: 480;
  --weight-text: 400;
  --weight-strong: 530;

  --text-caption: 12px;
  --text-label: 12px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --text-body-lg: 18px;
  --text-subheading: 21px;
  --text-lead: clamp(18px, 1.4vw, 20px);
  --text-heading-sm: 28px;
  --text-heading-lg: clamp(40px, 3.9vw, 54px); /* 40 from 34 on tablets (review 10-25, R8) */
  /* Light sections' heads on wide screens (Lane B pass 2, Business Q5 10-23). */
  --text-heading-xl: clamp(54px, 4.6vw, 66px);
  /* Display follows the window's height too, so the hero copy always
     clears the desk in the landscape. */
  --text-display: clamp(44px, min(6.6vw, 10vh), 96px);
  /* Statement: one short line per big moment, centered (Lane F direction,
     approved 2026-10-22). 48px on phones, up to 96px on wide screens. */
  --text-statement: clamp(48px, 6.6vw, 96px);
  --leading-statement: 1;
  --tracking-statement: -0.035em;

  --leading-display: 1.02;
  --leading-tight: 1.08;
  --leading-heading: 1.2;
  --leading-snug: 1.35;
  --leading-body: 1.5;

  --tracking-caption: 0.01em;
  --tracking-label: 0.08em;

  /* ---------- Spacing (4px base) ---------- */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-56: 56px;
  --space-72: 72px;
  --space-112: 112px;
  --space-128: 128px;

  /* ---------- Layout ---------- */
  --page-max: 1200px;
  --measure: 68ch;
  --measure-lead: 46ch;
  /* Desktop, tablet (900px and below) and phone (520px and below) values.
     Pages switch on the window width; components switch on their own
     width, so a phone-sized frame gets phone spacing anywhere. */
  --gutter-desktop: 40px;
  --gutter-tablet: 24px;
  --gutter-phone: 20px;
  --section-space-desktop: 160px;
  --section-space-tablet: 96px;
  --section-space-phone: 72px;
  --card-padding-desktop: 32px;
  --card-padding-phone: 24px;
  --gutter: var(--gutter-desktop);
  --section-space: var(--section-space-desktop);
  --card-padding: var(--card-padding-desktop);
  --block-gap: 64px;
  --target: 48px;
  --target-compact: 44px;
  --target-large: 56px;
  --header-height: 80px;
  --header-height-compact: 72px;

  /* ---------- Shapes ---------- */
  --radius-structural: 4px;
  --radius-input: 8px;
  --radius-card: 12px;
  --radius-pill: 40px;
  --stroke-hairline: 1px;
  --stroke-underline: 2px;
  --stroke-focus: 2px;
  --focus-offset: 3px;
  --icon-size-sm: 20px;
  --icon-size: 24px;
  --icon-size-lg: 32px;
  --tile-size: 40px;
  --icon-stroke: 1.5;
  --illustration-stroke: 2;
  --opacity-disabled: .5;

  /* ---------- Motion ---------- */
  --duration-control: 160ms;
  --duration-nav: 200ms;
  --duration-section: 240ms;
  --duration-illustration-step: 600ms;
  --duration-illustration-total: 2400ms;
  --delay-hover-open: 120ms;
  --delay-hover-close: 250ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --reveal-travel: 6px;
  --duration-reveal: 600ms;
  --reveal-travel-section: 16px;
  --reveal-stagger: 150ms;
  /* Calm motion (Lane F direction): entrances 450-700 ms with a soft
     ease-out, no bounce or overshoot anywhere. */
  --duration-enter: 600ms;
  --duration-move: 1000ms;
  --ease-soft: cubic-bezier(.19, 1, .22, 1);
  --enter-stagger: 150ms;

  /* ---------- Layers ---------- */
  --layer-base: 0;
  --layer-header: 20;
  --layer-menu: 30;
  --layer-skip: 40;

  /* ---------- Brand ---------- */
  /* The logo (approved/brand/logo-v1). The header and footer use the
     horizontal lockup inline, in the text color, about 32px tall (never
     under 24px); the symbol alone may go down to 16px. The name-as-text
     values remain only for a .jh-brand without its SVG. */
  --brand-name-size: 21px;
  --brand-name-weight: var(--weight-strong);
  --brand-name-tracking: 0.01em;
  --wordmark-height: 32px;
  --mark-size: 16px;
}

/* ---------- Light: the lead theme ---------- */
:root,
[data-theme="light"] {
  color-scheme: light;
  --canvas: var(--neutral-50);
  --surface: var(--neutral-100);
  --raised: var(--neutral-150);
  --overlay: var(--neutral-0);
  --overlay-hover: var(--neutral-50);
  --text: var(--neutral-ink);
  --text-muted: var(--neutral-600);
  --text-on-image: var(--neutral-0);
  --text-on-image-muted: var(--ivory);
  --line: var(--neutral-200);
  --border: var(--neutral-500);
  --action: var(--green-600);
  --action-hover: var(--green-700);
  --action-pressed: var(--green-800);
  --on-action: var(--neutral-0);
  --secondary: var(--neutral-150);
  --secondary-hover: var(--neutral-250);
  --secondary-pressed: var(--neutral-300);
  --focus: var(--green-900);
  --link: var(--green-800);
  --link-hover: var(--green-900);
  --accent: var(--green-700);
  --error: var(--red-800);
  --success: var(--green-900);
  --hairline: rgb(32 40 34 / .1);
  --selection: var(--green-200);
  --on-selection: var(--neutral-ink);
  --nav-ink: var(--text-muted);
  --nav-ink-strong: var(--text);
  --hero-base: var(--neutral-950);
  --hero-shade: 16 20 19;
  --shadow-panel: 0 16px 40px rgb(23 28 27 / .12), 0 1px 2px rgb(23 28 27 / .06);
  --ill-paper: var(--neutral-0);
  --ill-ink: var(--neutral-600);
  --ill-quiet: var(--neutral-200);
  --ill-fill: var(--neutral-150);
  --ill-green: var(--green-600);
  --ill-accent: var(--green-300);
}

/* ---------- Dark: the brief dark band, and the footer ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --canvas: var(--neutral-900);
  --surface: var(--neutral-850);
  --raised: var(--neutral-800);
  --overlay: var(--neutral-800);
  --overlay-hover: var(--neutral-850);
  --text: var(--ivory);
  --text-muted: var(--ash);
  --text-on-image: var(--neutral-0);
  --text-on-image-muted: var(--ivory);
  --line: var(--neutral-700);
  --border: var(--neutral-550);
  --action: var(--green-600);
  --action-hover: var(--green-700);
  --action-pressed: var(--green-800);
  --on-action: var(--neutral-0);
  --secondary: var(--neutral-800);
  --secondary-hover: var(--neutral-650);
  --secondary-pressed: var(--neutral-600);
  --focus: var(--green-200);
  --link: var(--green-300);
  --link-hover: var(--green-200);
  --accent: var(--green-200);
  --error: var(--red-200);
  --success: var(--green-200);
  --hairline: rgb(236 238 235 / .09);
  --selection: var(--green-800);
  --on-selection: var(--neutral-0);
  --nav-ink: var(--text-muted);
  --nav-ink-strong: var(--text);
  --hero-base: var(--neutral-950);
  --hero-shade: 16 20 19;
  --shadow-panel: 0 16px 40px rgb(0 0 0 / .32);
  --ill-paper: var(--neutral-850);
  --ill-ink: var(--ash);
  --ill-quiet: var(--neutral-700);
  --ill-fill: var(--neutral-800);
  --ill-green: var(--green-400);
  --ill-accent: var(--green-200);
}

/* ---------- Forest: the green band (one or two per page) ---------- */
[data-theme="forest"] {
  color-scheme: dark;
  --canvas: var(--green-950);
  --surface: var(--forest-800);
  --raised: var(--forest-750);
  --overlay: var(--forest-750);
  --overlay-hover: var(--forest-800);
  --text: var(--ivory);
  --text-muted: var(--ash);
  --text-on-image: var(--neutral-0);
  --text-on-image-muted: var(--ivory);
  --line: var(--forest-700);
  --border: var(--green-400);
  --action: var(--green-200);
  --action-hover: var(--green-250);
  --action-pressed: var(--green-300);
  --on-action: var(--green-975);
  --secondary: var(--forest-750);
  --secondary-hover: var(--forest-700);
  --secondary-pressed: var(--forest-650);
  --focus: var(--green-200);
  --link: var(--green-200);
  --link-hover: var(--green-100);
  --accent: var(--green-200);
  --error: var(--red-200);
  --success: var(--green-200);
  --hairline: rgb(236 238 235 / .12);
  --selection: var(--green-200);
  --on-selection: var(--green-975);
  --nav-ink: var(--text-muted);
  --nav-ink-strong: var(--text);
  --hero-base: var(--neutral-950);
  --hero-shade: 16 20 19;
  --shadow-panel: 0 16px 40px rgb(0 0 0 / .32);
  --ill-paper: var(--forest-800);
  --ill-ink: var(--green-100);
  --ill-quiet: var(--forest-700);
  --ill-fill: var(--forest-750);
  --ill-green: var(--green-300);
  --ill-accent: var(--green-100);
}

/* Breakpoints: 900px (tablet) and 520px (phone), the same two the
   components use. */
@media (max-width: 900px) {
  :root { --gutter: var(--gutter-tablet); --section-space: var(--section-space-tablet); --card-padding: var(--card-padding-phone); --block-gap: 48px; }
}
@media (max-width: 520px) {
  :root { --gutter: var(--gutter-phone); --section-space: var(--section-space-phone); --block-gap: 40px; }
}
