/*
 * Design tokens. All colours, shadows and the container width in assets/css come from here;
 * only pure white and black are written as literals.
 * The Astra Customizer palette keeps its own copy for parts Astra renders (header button, links):
 * Theme Color = teal-strong, Link Hover = teal-stronger, Heading = ink, Background = surface-mist.
 */

:root {
  /* Brand teal */
  --gyla-color-teal: #1b9c85;          /* decoration only: lines, icons, borders (3.4:1 on white) */
  --gyla-color-teal-strong: #137563;   /* buttons with white text, teal text on light surfaces (5.1:1+) */
  --gyla-color-teal-stronger: #0e5e4f; /* hover of teal-strong */
  --gyla-color-teal-bright: #28b49a;   /* teal on dark surfaces */

  /* Text */
  --gyla-color-ink: #0f172a;           /* headings; also the dark section background */
  --gyla-color-text: #475569;
  --gyla-color-text-muted: #5b6878;    /* 5.1:1+ on every light surface */
  --gyla-color-on-dark-text: #cbd5e1;
  --gyla-color-on-dark-muted: #94a3b8;
  --gyla-color-danger: #e45454;

  /* Warm accent: orange against the greens */
  --gyla-color-orange: #f28c28;        /* fills with ink text on top (7.3:1); too light for text on white */
  --gyla-color-orange-strong: #d9650f; /* stars and icons on light surfaces (3.6:1 on white); not for body text */
  --gyla-color-lime: #9dc63f;          /* fills with ink text only */

  /* Surfaces and borders */
  --gyla-color-surface-soft: #f3f8f6;
  --gyla-color-surface-mist: #edf6ee;
  --gyla-color-border: #dfeae6;
  --gyla-color-border-strong: #8aa39c;
  --gyla-color-surface-warm: color-mix(in srgb, var(--gyla-color-orange) 10%, #ffffff);

  /* Footer and mobile menu */
  --gyla-color-forest: #16312b;
  --gyla-color-forest-deep: #15342e;
  --gyla-color-forest-night: #03170f;

  /* Elevation */
  --gyla-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --gyla-shadow-md: 0 18px 44px rgba(15, 23, 42, 0.12);
  --gyla-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);

  /* Type scale (Montserrat comes from Astra) */
  --gyla-text-display: clamp(30px, 4.2vw, 52px); /* page H1 */
  --gyla-text-h2: clamp(32px, 4vw, 48px);        /* section headings */
  --gyla-text-title-lg: clamp(22px, 2vw, 26px);  /* card and panel titles */
  --gyla-text-title: 20px;                       /* step and item titles */
  --gyla-text-lead: clamp(16px, 1.4vw, 18px);    /* intro paragraphs, emphasised lines */
  --gyla-text-body: 16px;
  --gyla-text-small: 15px;
  --gyla-text-caption: 13px;                     /* labels, legal text, badge numbers */

  /* Focus ring: solid colour for 3:1 contrast against the background */
  --gyla-focus-color: var(--gyla-color-teal-strong);
  --gyla-focus-color-on-dark: var(--gyla-color-teal-bright);

  /* Shape */
  --gyla-radius-button: 12px;         /* same as Astra's header button */
  --gyla-radius-media: 12px;          /* every photo and video; Spectra image blocks are set to 12px in the editor */

  /* Layout */
  --gyla-container: 1400px; /* = Astra Customizer → Container → Content Width; Astra caps sections at it, change both together */
}
