:root {
  /* Primitives */
  --white: #ffffff;
  --mist-100: #f1f7ef;
  --mist-200: #e9f3e7;
  --mist-300: #dbead9;
  --mist-350: #d2e4d1;
  --mist-400: #c1d9c2;
  --fern-400: #85ae90;
  --fern-600: #426d56;
  --fern-700: #345f49;
  --fern-800: #2d503e;
  --forest-600: #52695a;
  --forest-900: #243b30;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-sm: .5rem;
  --radius-md: .75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-pill: 999px;

  /* Semantic */
  color-scheme: light;
  --canvas: var(--mist-100);
  --surface: var(--white);
  --ink: var(--forest-900);
  --muted: var(--forest-600);
  --accent: var(--fern-700);
  --action: var(--fern-600);
  --on-action: var(--white);
  --action-hover: var(--fern-800);
  --line: var(--mist-350);
  --soft: var(--mist-200);
  --selected: var(--mist-300);
  --shadow-ink: 36 59 48;
  --shadow: 0 14px 36px rgb(var(--shadow-ink) / 7%);

  --font-sans: "Nunito Sans", sans-serif;
  --type-display: clamp(2rem, 1.375rem + 2vw, 3.125rem);
  --type-editorial: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  --type-heading: clamp(1.625rem, 1.4rem + .95vw, 2.25rem);
  --type-subheading: 1.25rem;
  --type-body: 1rem;
  --type-description: .875rem;
  --type-caption: .75rem;
  --weight-display: 625;
  --weight-editorial: 640;
  --weight-heading: 650;
  --weight-control: 675;

  --layout-max: 75rem;
  --journal-max: 70rem;
  --reading-width: 42rem;
  --gutter: var(--space-12);
  --tap-target: 2.75rem;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --motion-press: 140ms;
  --motion-hover: 180ms;

  /* Component */
  --button-radius: var(--radius-pill);
  --button-fill: var(--action);
  --button-ink: var(--on-action);
  --button-hover: var(--action-hover);
  --button-shadow: 0 4px 12px rgb(var(--shadow-ink) / 10%);
  --button-disabled-fill: var(--soft);
  --button-disabled-ink: var(--muted);
  --button-min-height: var(--space-12);
  --button-prominent-height: 3.375rem;
  --panel-radius: var(--radius-lg);
  --media-radius: var(--radius-lg);
  --media-radius-compact: var(--radius-md);
  --orb-center: var(--fern-400);
  --orb-edge: var(--mist-400);
  --footer-card: var(--mist-200);
  --scene-duration-ms: 7000;
  --scene-transition-ms: 480;
  --scene-ease: cubic-bezier(.4, 0, .2, 1);
  --parallax-scrub-s: .35;
}

:is(.marketing, .journal, .info-page) {
  --canvas: #f6f5ef;
  --surface: #fdfcf8;
  --ink: #223b32;
  --muted: #52655b;
  --accent: #3f6b55;
  --action: var(--accent);
  --on-action: #faf9f4;
  --action-hover: #315741;
  --button-fill: var(--action);
  --button-ink: var(--on-action);
  --button-hover: var(--action-hover);
  --line: #d9ded3;
  --soft: #e8ede3;
  --shadow: 0 24px 70px rgb(34 59 50 / 12%);
}

@media (max-width: 850px) {
  :root { --gutter: var(--space-6); }
}

@media (max-width: 360px) {
  :root { --gutter: var(--space-4); }
}
