/* Gunuch brand layer, loaded after the kit (system.css, cards.css, motion.css, layout.css).
   Every value comes from the Gunuch brand guidelines v2.0 (Nov 2026): palette p12, proportion p13,
   pairings p14, type p17-19, spacing p22, icons p23, accessibility p24, tokens p25.
   Rule that never bends: Lime never on White (1.1:1). Lime sits only on Forest, or as a fill under Forest/Black text. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* brand tokens, named by job (guidelines p25) */
  --color-brand: #00463E;          /* Forest */
  --color-accent: #D6FF96;         /* Lime */
  --color-text: #0A0A0A;           /* Black, as text */
  --color-surface: #FFFFFF;        /* White */
  --color-surface-muted: #F1F1EC;  /* Paper */
  --color-border: #DADAD2;         /* Line */
  --radius-card: 36px;
  --radius-tile: 42px;

  /* the kit's palette slots, filled from the brand */
  --p-bg: var(--color-surface);
  --p-surface: var(--color-surface-muted);
  --p-ink: var(--color-text);
  --p-muted: #545750;              /* Black at 70% on White: 7.2:1, for labels and meta only */
  --p-accent: var(--color-brand);
  --p-accent-ink: var(--color-accent);
  --p-action: var(--color-brand);  /* buttons Forest with Lime labels (p18, p30); links and focus in Forest */
  --p-action-ink: var(--color-accent);
  --p-inv-bg: var(--color-brand);  /* Forest blocks */
  --p-inv-surface: #0B544B;        /* Forest, one step lighter, for a panel on Forest */
  --p-inv-ink: #FFFFFF;            /* White on Forest 10.8:1 */
  --p-inv-muted: #C9D9D5;          /* on Forest 7.9:1 */
  --p-inv-accent: var(--color-accent);   /* Lime on Forest 9.6:1 */
  --p-inv-accent-ink: var(--color-brand);
  --p-inv-action: var(--color-accent);
  --p-inv-action-ink: var(--color-brand);

  --font-display: "Plus Jakarta Sans", Inter, Arial, sans-serif;
  --font-text: "Plus Jakarta Sans", Inter, Arial, sans-serif;
  --display-weight: 800;           /* Display and Headline ExtraBold 800 (p19) */
  --display-tracking: -0.025em;
  --display-tracking-xl: -0.03em;
  --ly-scale: 1;

  /* type scale, p19: desktop from tablets up, mobile below */
  --t-h1: clamp(44px, 2.667vw + 34px, 72px);   /* Display 72/80, mobile 44/52 */
  --t-h2: clamp(32px, 1.524vw + 26.3px, 48px); /* Headline 48/56, mobile 32/40 */
  --t-h3: clamp(24px, .762vw + 21.1px, 32px);  /* Title 32/40, mobile 24/32 */
  --t-lead: 20px;                              /* Body large 20/30, mobile 18/28 */
  --t-card: 24px;                              /* Subhead 24/32, mobile 20/28 */
  --t-body: 16px;                              /* Body 16/24 */
  --t-small: 14px;                             /* Caption 14/20, the smallest text on screen (p24) */
  --t-label: 14px;
  --ly-h1: var(--t-h1);
  --ly-h1-quiet: clamp(34px, 2.286vw + 25.4px, 64px);

  --r-sm: 12px; --r-md: 24px; --r-lg: var(--radius-card); --r-btn: 999px;
  --btn-h: 48px;                   /* 44 minimum touch target (p24); the brand's pills sit at 48 */
}
@media (max-width: 639px) {
  :root { --t-lead: 18px; --t-card: 20px; }
}
html[data-radius] { --r-sm: 12px; --r-md: 24px; --r-lg: var(--radius-card); --r-btn: 999px; }

body { font-weight: 500; }                       /* Body Medium 500 (p19) */
h1, .t-h1 { line-height: 1.11; }                 /* 72/80 */
h2, .t-h2 { line-height: 1.17; font-weight: 800; }/* 48/56 */
h3, .t-h3 { font-weight: 700; line-height: 1.25; }/* Title Bold 700 */
h4, .t-card, .card > h3, .card > h4 { font-weight: 700; letter-spacing: -0.01em; }
.btn { font-weight: 600; font-size: 16px; line-height: 20px; }  /* Button SemiBold 600 16/20 */

/* the focus ring: Forest on light, Lime on Forest; never animated (p24) */
:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.ground-inverse :focus-visible, .on-forest :focus-visible, .footer--dark :focus-visible { outline-color: var(--color-accent); }

/* the logo is the client's SVG (p5: horizontal first, never redrawn); 2x clear space is kept by the bar's padding */
.nav__logo img, .gn-logo { display: block; height: 32px; width: auto; }
@media (max-width: 639px) { .nav__logo img, .gn-logo { height: 28px; } }

/* the Lime marker: "who acts next" (Lime marks the key moment, p36). Always on Forest or as a fill under Forest text. */
.gn-next { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px;
  background: var(--color-accent); color: var(--color-brand); font-size: 14px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.gn-next::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-brand); }

/* status chips read from fill and outline, palette only (p35) */
.gn-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 4px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; line-height: 20px; white-space: nowrap; border: 1.5px solid var(--color-brand); color: var(--color-brand); background: transparent; }
.gn-chip--fill { background: var(--color-brand); color: var(--color-accent); }
.gn-chip--lime { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-brand); }
.gn-chip svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* outline icons: 24 grid, stroke = size / 12 (set per size by Icon.astro), round ends, one colour (p23) */
.gn-ic { flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* v6 C3: functional warning colours (as accepted for the portal). Warnings only, always small, always with a word and
   an icon; never decorative. Red = a problem to fix; amber = something to check. Ink tones pass 4.5:1 on white/50. */
:root {
  --fn-red: oklch(52% 0.13 30);        /* borders, icons */
  --fn-red-ink: oklch(42% 0.11 30);    /* text */
  --fn-red-50: oklch(96.5% 0.02 30);   /* small tinted backgrounds */
  --fn-amber: oklch(62% 0.12 75);      /* borders, icons */
  --fn-amber-ink: oklch(45% 0.09 70);  /* text */
  --fn-amber-50: oklch(97% 0.03 85);
}
