/**
 * @file theme.css
 * Runtime design tokens for the GS Prime theme, extracted from the Figma
 * design file "G&S Prime Holdings" (re-verified 2026-11-08 against the file
 * version 2414500489741314930; see docs/figma-build-plan.md).
 *
 * These are served unaggregated (see gsprime.libraries.yml) so values can be
 * adjusted without rebuilding the compiled Tailwind CSS.
 *
 * WCAG pairing rules (verified 2026-10-31, full matrix in the build plan):
 * - Text on light backgrounds (white / rose / rose-hover): burgundy, navy or
 *   ink only — NEVER gold (2.41:1).
 * - Text on dark backgrounds (navy / ink / burgundy): white; gold only on ink
 *   (8.17:1) or as large text on navy (6.42:1).
 * - Gold background always pairs with ink text (8.17:1), never white.
 * - Owner-approved exception (2026-11-08): gold text on burgundy (4.12:1).
 *   It fails AA for body-size text; it passes 3:1 only for large text. Used
 *   only for footer column titles and social links.
 * - The "-hover" variants are the designer's secondary palette and keep every
 *   state change above the AAA threshold.
 */

:root {
  /* Brand palette (primary + hover/secondary variants). */
  --gs-burgundy: #831435;
  --gs-burgundy-hover: #931e41;
  --gs-gold: #e59625;
  --gs-gold-hover: #ebae56;
  --gs-rose: #e4dadb; /* The design's "grey" — a dusty rose. */
  --gs-rose-hover: #f4f4f4;
  --gs-ink: #090b11;
  --gs-ink-hover: #26272c;
  --gs-navy: #042641;
  --gs-navy-hover: #04375f;
  --gs-white: #ffffff;
  --gs-slate: #4a4a54; /* Unnamed in the style guide; used for nav links (8.74:1 on white). */

  /* Typography families: Poppins for headings/UI, Lato for body. */
  --gs-font-sans: 'Poppins', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  --gs-font-body: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;

  /* Page layout. Mobile (360) values first; tablet (768) and desktop (1440)
   * overrides follow. Container is the content maximum; margin is the
   * gutter on each side of the page. Desktop: 1302 + 2 × 69 = 1440. */
  --gs-margin: 16px;
  --gs-gutter: 16px;
  --gs-container: 1302px;

  /* Spacing scale (designer's Spacing System). Fixed across breakpoints. */
  --gs-space-1: 8px;
  --gs-space-2: 16px;
  --gs-space-3: 24px;
  --gs-space-4: 32px;
  --gs-space-5: 48px;
  --gs-space-6: 80px;
  --gs-space-7: 160px;

  /* Semantic gaps (Figma Spacing System roles, verified 2026-11-08).
   * caption 8: caption under an image; eyebrow 8: eyebrow -> heading;
   * heading 16: heading -> the copy under it (also eyebrow -> body);
   * para 24 (16 from tablet down): between paragraphs;
   * group 48: heading group -> the content it heads; card 32: inside cards. */
  --gs-gap-eyebrow: 8px;
  --gs-gap-caption: 8px;
  --gs-gap-heading: 16px;
  --gs-gap-para: 16px;
  --gs-gap-group: 48px;
  --gs-gap-card: 32px;

  /* Section and hero vertical padding. Section: 48 / 64 / 80. Hero top:
   * 64 / 96 / 160. Editors select these through the section "padding" prop. */
  --gs-section-y: 48px;
  --gs-hero-top: 64px;

  --gs-radius: 16px;
  --gs-radius-card: 40px;

  /* Team band: gold strip starts where the card image ends (measured from the
     mounted Splide carousel, including the band section padding). */
  --gs-team-band-top: 288px; /* Team/service cards: rounded top, square bottom. */

  /* Minimum width for a homepage team carousel card. 320px keeps the name and
     role readable and fits the 360px design width (328px of content) without
     clipping or forcing a partial-card peek. min(..., 100%) in main.css keeps
     the floor from ever exceeding its slide on narrower screens. */
  --gs-team-card-min: 320px;

  /* Type scale — mobile (360) first; tablet (768) and desktop (1440)
   * overrides follow. Values are the designer's documented
   * "Text Styles — Desktop, Tablet, Mobile" table. */
  --gs-h1-size: 36px;
  --gs-h1-lh: 40px;
  --gs-h2-size: 28px;
  --gs-h2-lh: 31px;
  --gs-h3-size: 22px;
  --gs-h3-lh: 25px;
  --gs-h4-size: 20px;
  --gs-h4-lh: 23px;
  --gs-h5-size: 15px;
  --gs-h5-lh: 18px;
  --gs-p1-size: 18px;
  --gs-p1-lh: 25px;
  --gs-p2-size: 16px;
  --gs-p2-lh: 24px;
  --gs-nav-size: 18px;
  --gs-nav-lh: 18px;
  --gs-link-size: 16px;
  --gs-link-lh: 18px;
  --gs-link-2-size: 18px;
  --gs-link-2-lh: 20px;
  --gs-caps-size: 14px;
  --gs-caps-lh: 15px;
  --gs-small-size: 12px;
  --gs-small-lh: 14px;

  /* Undocumented styles found in the Figma frames, tokenized from the
   * exported text properties (2026-11-08). The Figma only specifies these at
   * 1440, so mobile/tablet values below scale them down proportionally to the
   * designer's documented H3/P1 type scale (see @media blocks below). Weights
   * are from the Figma export; Lato 600 has no webfont in the fontsource set,
   * so the nav CTA uses Lato 700 (see the build plan). */
  --gs-legal-size: 10px; /* Poppins 500 — footer copyright and legal links. */
  --gs-legal-lh: 11px;
  --gs-legal-tracking: -0.3px;
  --gs-legal-weight: 500;

  --gs-item-title-size: 18px; /* Poppins 400 — services list titles. */
  --gs-item-title-lh: 24px;
  --gs-item-title-tracking: -0.9px;
  --gs-item-title-weight: 400;

  --gs-card-name-size: 16px; /* Poppins 600 — team card name. */
  --gs-card-name-lh: 17.6px;
  --gs-card-name-tracking: -0.48px;
  --gs-card-name-weight: 600;

  --gs-card-name-lg-size: 22px; /* Poppins 400 — about card name (H3 mobile). */
  --gs-card-name-lg-lh: 26px;
  --gs-card-name-lg-tracking: -0.44px;
  --gs-card-name-lg-weight: 400;

  --gs-card-role-lg-size: 16px; /* Lato 400 — about card role. */
  --gs-card-role-lg-lh: 22px;
  --gs-card-role-lg-tracking: -0.32px;
  --gs-card-role-lg-weight: 400;

  --gs-brand-size: 14px; /* Poppins 700 — navbar wordmark. */
  --gs-brand-lh: 28px;
  --gs-brand-tracking: -0.5px;
  --gs-brand-weight: 700;

  --gs-nav-cta-size: 14px; /* Figma: Lato 600. Lato 700 used (no 600 webfont). */
  --gs-nav-cta-lh: 20px;
  --gs-nav-cta-tracking: 0;
  --gs-nav-cta-weight: 700;

  --gs-footer-brand-size: 18px; /* Poppins 600 — footer wordmark. */
  --gs-footer-brand-lh: 25px;
  --gs-footer-brand-tracking: 0;
  --gs-footer-brand-weight: 600;

  /* Lead / intro: previously hard-coded arbitrary utilities in text.twig,
   * now breakpoint-driven like the rest of the scale. */
  --gs-lead-size: 18px; /* Lato 400 — lead paragraph. */
  --gs-lead-lh: 25px;
  --gs-lead-tracking: -0.02em;
  --gs-intro-size: 20px; /* Poppins 400 — intro paragraph. */
  --gs-intro-lh: 30px;

  /* AAA profile copy: line spacing stays >= 1.5x font size and paragraph
   * spacing >= 1.5x line spacing at every breakpoint (WCAG 1.4.8). */
  --gs-profile-copy-size: 18px;
  --gs-profile-copy-lh: 27px;
  --gs-profile-copy-gap: 40.5px;

  /* Decorative glyphs (chevrons, + / >). Kept in the scale so they do not
   * dominate small screens. */
  --gs-glyph-chevron: 24px;
  --gs-glyph-cta: 32px;
  --gs-glyph-plus: 18px;

  /* Homepage services bars on mobile: the 64px numeral plus the 48px group
   * gap leaves only ~216px for the bar at 360, so long titles wrap to three
   * lines and touch the 20px rounded corners. Tighten the gap, drop the title
   * one step and enforce vertical padding (mobile only; 768+ keeps Figma). */
  --gs-item-bar-gap: 16px;
  --gs-item-bar-size: 16px;
  --gs-item-bar-lh: 22px;
  --gs-item-bar-py: 12px;
}

@media (min-width: 768px) {
  :root {
    --gs-margin: 32px;
    --gs-gutter: 24px;
    --gs-team-band-top: 321px;
    --gs-section-y: 64px;
    --gs-hero-top: 96px;
    --gs-gap-para: 24px;

    --gs-h1-size: 48px;
    --gs-h1-lh: 53px;
    --gs-h2-size: 32px;
    --gs-h2-lh: 35px;
    --gs-h3-size: 26px;
    --gs-h3-lh: 30px;
    --gs-h4-size: 22px;
    --gs-h4-lh: 25px;

    /* Undocumented styles: tablet midpoint. */
    --gs-item-title-size: 20px;
    --gs-item-title-lh: 26px;
    --gs-item-title-tracking: -1px;
    --gs-card-name-lg-size: 26px;
    --gs-card-name-lg-lh: 30px;
    --gs-card-name-lg-tracking: -0.52px;
    --gs-card-role-lg-size: 18px;
    --gs-card-role-lg-lh: 24px;
    --gs-card-role-lg-tracking: -0.36px;
    --gs-footer-brand-size: 20px;
    --gs-footer-brand-lh: 28px;
    --gs-glyph-chevron: 28px;
    --gs-glyph-cta: 40px;
    --gs-glyph-plus: 20px;
  }
}

@media (min-width: 1440px) {
  :root {
    --gs-margin: 69px;
    --gs-gutter: 30px;
    --gs-team-band-top: 364px;
    --gs-section-y: 80px;
    --gs-hero-top: 160px;

    --gs-h1-size: 64px;
    --gs-h1-lh: 70px;
    --gs-h2-size: 40px;
    --gs-h2-lh: 44px;
    --gs-h3-size: 30px;
    --gs-h3-lh: 35px;
    --gs-h4-size: 25px;
    --gs-h4-lh: 29px;
    --gs-p1-size: 20px;
    --gs-p1-lh: 28px;
    --gs-nav-size: 20px;
    --gs-nav-lh: 20px;
    --gs-link-2-size: 20px;
    --gs-link-2-lh: 22px;
    --gs-caps-size: 16px;
    --gs-caps-lh: 18px;

    /* Undocumented styles: original 1440 desktop values (unchanged). */
    --gs-item-title-size: 24px;
    --gs-item-title-lh: 24px;
    --gs-item-title-tracking: -1.2px;
    --gs-card-name-lg-size: 30px;
    --gs-card-name-lg-lh: 30px;
    --gs-card-name-lg-tracking: -0.6px;
    --gs-card-role-lg-size: 20px;
    --gs-card-role-lg-lh: 24.2px;
    --gs-card-role-lg-tracking: -0.4px;
    --gs-lead-size: 20px;
    --gs-lead-lh: 24.2px;
    --gs-intro-size: 24px;
    --gs-intro-lh: 35.5px;
    --gs-profile-copy-size: 20px;
    --gs-profile-copy-lh: 30px;
    --gs-profile-copy-gap: 45px;
  }
}
