/* ==========================================================================
   ULTRABLOCK DESIGN TOKENS

   Created on       : 2026-12-02
   Last updated     : 2026-12-02
   Version          : 1.00

   Two layers. Layer 1 holds the raw values, layer 2 the roles that
   components use. A redesign changes this file, not the components.
   Source: _designs/css/colors_and_type.css (UltraBlock design system).
   ========================================================================== */

:root {
    /* Layer 1: primitives. Raw values, never used directly in components. */

    /* Brand green. #1B9E74 is the original brand colour; white text on it has a
       contrast of 3,4 to 1, below the 4,5 to 1 that WCAG AA and Lighthouse need.
       #15845F reaches 4,7 to 1 and carries every surface and text in green. */
    --green-500: #1B9E74;
    --green-600: #15845F;
    --green-700: #126F50;

    /* Red for blocked services and protection off */
    --red-500: #d22d2d;

    /* Grey ramp, light to dark */
    --gray-0: #FFFFFF;
    --gray-50: #f7f7f8;
    --gray-100: #e9eaed;
    --gray-150: #e9ecef;
    --gray-200: #c7cad1;
    --gray-250: #adb5bd;
    --gray-300: #abb0ba;
    --gray-450: #6B7280;
    --gray-550: #676f7e;
    --gray-600: #5c6370;
    --gray-650: #343a40;
    --gray-700: #454a54;
    --gray-800: #2e3138;
    --gray-850: #22252a;
    --gray-900: #17191c;

    /* Rating star */
    --yellow-500: #ffc107;

    /* Typography: system Helvetica, no webfont */
    --font-sans: Helvetica, "Helvetica Neue", Arial, sans-serif;
    --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    --fs-lead: 1.2rem;
    --fs-small: .875rem;
    --lh-lead: 1.6;
    --ls-tight: -.01em;

    /* Sizes, radii, shadows and motion */
    --container: 1140px;
    --gutter: 1.5rem;
    --radius-sm: .25rem;
    --radius-btn: .35rem;
    --radius-btn-lg: .4rem;
    --radius: .5rem;
    --radius-lg: .75rem;
    --radius-pill: 50rem;
    --shadow-btn: 0 2px 4px rgba(21, 132, 95, .15);
    --shadow-dropdown: 0 .5rem 1rem rgba(0, 0, 0, .15);
    --shadow-lg: 0 .3rem 1.5rem rgba(0, 0, 0, .25);
    --transition: .2s ease;

    /* Layer 2: semantic. Roles, built from primitives. Components use these. */

    /* Accent: buttons, links, the green surfaces */
    --accent: var(--green-600);
    --accent-hover: var(--green-700);
    --accent-text: var(--green-700);
    --accent-wash: rgba(21, 132, 95, .1);
    --accent-ring: rgba(21, 132, 95, .3);

    /* Danger: blocked services, protection off */
    --danger: var(--red-500);
    --danger-wash: #fcefef;
    --danger-tint: rgba(210, 45, 45, .07);
    --danger-soft: rgba(210, 45, 45, .12);

    /* Surfaces */
    --surface: var(--gray-0);
    --surface-sunken: var(--gray-50);
    --surface-muted: var(--gray-100);
    --surface-dark: var(--gray-900);
    --surface-dark-raised: var(--gray-850);

    /* Ink: text and icons on light surfaces */
    --ink: var(--gray-850);
    --ink-heading: var(--gray-850);
    --ink-strong: var(--gray-650);
    --ink-subtle: var(--gray-550);
    --ink-muted: var(--gray-450);
    --ink-soft: var(--gray-600);
    --ink-faint: var(--gray-300);
    --ink-dim: var(--gray-200);
    --ink-dark: var(--gray-700);
    --ink-darker: var(--gray-800);
    --rating-star: var(--yellow-500);

    /* On green: everything that sits on the accent surface. Full white for
       text, so it keeps 4,7 to 1; translucent white only for lines and glass. */
    --on-accent: var(--gray-0);
    --on-green-body: var(--gray-0);
    --on-green-soft: var(--gray-0);
    --on-green-border: rgba(255, 255, 255, .2);
    --on-green-glass: rgba(255, 255, 255, .3);
    --on-green-glass-hover: rgba(255, 255, 255, .4);

    /* Lines */
    --border: var(--gray-100);
    --border-color-strong: var(--gray-200);
    --link-underline: var(--gray-150);
    --link-underline-hover: var(--gray-250);
}
