/* Airtree design tokens — mirrored from airtree.vc ("frontier" variables). */
:root {
  /* Palette */
  --banksia: #fb5e00;
  --light-banksia: #ffccb5;
  --manuka: #f7f6e3;
  --remu: #262d29;
  --light-sky: #c9d6e4;
  --southern-sky: #8093ad;
  --eucalyptus: #637857;
  --light-eucalyptus: #bbd4b7;
  --wattle: #ffff48;
  --white: #fff;
  --hairline: #262d2924;
  --soft: #262d299e;
  --hairline-light: #f7f6e333;
  --soft-light: #f7f6e3b3;

  /* Brandmark line colour (from the supplied SVGs) */
  --mark-line: #f7e7cc;

  /* Type */
  --font-display: "Prody", sans-serif;
  --font-body: "Suisse Intl", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --weight-regular: 400;
  --weight-book: 450;
  --weight-medium: 500;

  --text-display: 2.25rem;
  --text-h2: 1.75rem;
  --text-h3: 1.125rem;
  --text-big-number: 7rem;
  --text-lead: 1.25rem;
  --text-medium: 1rem;
  --text-body: 1rem;
  --text-label: 0.6875rem;

  /* Shape */
  --radius-button: 0.45rem;
  --radius-card: 10px;
  --radius-regular: 1rem;
  --radius-big: 2rem;

  /* Buttons: regular (airtree's button, ~38px on desktop, ~31px on
     phones), large (the flights CTA) and round icon buttons (arrows, close). */
  --button-font: 0.6875rem;
  /* Small buttons and chips share the original filter chips' height
     (~39px on desktop, ~34.5px on phones): their padding, and a fixed line
     box so buttons and chips match even with different text sizes. */
  --button-pad-y: min(0.6rem, 10.5px);
  --button-line: calc(min(0.6875rem, 13px) * 1.25);
  --button-pad-x: 0.8rem;
  --button-large-font: var(--text-body);
  --button-large-min: 3.25rem;
  --icon-button: 2.75rem;
  --icon-button-font: 1rem;

  /* Layout */
  --page-max: 1550px;
  --gutter: 1.5rem;
  --section-space: clamp(4rem, 8vw, 8rem);
  /* Extra room above a section when the nav jumps to it, on top of its padding. */
  --jump-space: 0px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-ui: 0.3s;

  /* Scroll-driven ink colour (sunset.js flips it at dusk) */
  --ink: var(--remu);
  --ink-soft: var(--soft);
  --ink-hairline: var(--hairline);
}

@media (max-width: 600px) {
  :root {
    --text-big-number: 4.5rem;
  }
}

/* Phones, after airtree.vc at 375px: labels grow (they'd be 9.6px
   otherwise), the page margin narrows to 1rem and sections tighten. */
@media (max-width: 767px) {
  :root {
    --text-label: 0.9rem;
    --gutter: 1rem;
    --section-space: 4.5rem;
    --jump-space: 1.5rem;  /* the tighter padding leaves content hard up against the nav */
    --button-font: 0.85rem;
    --button-line: 1.125rem;  /* the chips' 0.9rem text × 1.25 */
    --button-pad-x: 0.9rem;
    --icon-button: 3.25rem;  /* icon-only buttons need the bigger tap area */
  }
}
