/* Design tokens (v2). Breakpoints (CSS vars do not work in @media): 576 / 768 / 992 / 1200 / 1400;
   write max-width as (x - 0.02px). */

:root {
    /* Design tokens — sync with Figma */
    --wwa-white: #FFF;
    --wwa-black: #000;
    --wwa-black-100: #1D2627;
    --wwa-green-100: #37474A;
    --wwa-green-200: #27292B;
    --wwa-green-300: #A8B3B3;
    --wwa-green-400: #3B3D40;
    --wwa-green-700: #3E5152;
    --wwa-accent: #DEA67E;
    --wwa-accent-100: #F2DBCB;
    --wwa-accent-200: #B26E3C;
    --wwa-light-100: #EFECE8;
    --wwa-light-200: #FCFDFE;
    --wwa-light-300: #FAF8F6;
    --wwa-light-400: #E0DAD2;
    --wwa-light-500: #CDC3B7;
    --wwa-surface-metric: #F4F6F6; /* hero metric card on the framed layout */
    --wwa-neutral-400: #999DA3; /* get-in-touch input placeholder on dark */
    --wwa-surface-wave: #ECEFEF; /* scroll-section wave line stroke */
    --wwa-green-100-50: rgba(55, 71, 74, 0.5); /* green-100 at 50%: close-steps scrim, blog card image placeholder */
    --wwa-neutral-500: #787F87;
    --wwa-neutral-600: #4B4F53;
    --wwa-neutral-600-50: rgba(75, 79, 83, 0.5);
    --wwa-accent-300: #925A31;
    --wwa-font-body: "Public Sans", sans-serif;
    --wwa-font-heading: 'Quasimoda', sans-serif;
    --wwa-shadow-sm: -4px 4px 4px 0 rgba(0, 0, 0, 0.15);
    --wwa-shadow-header: 0 4px 2px 0 rgba(0, 0, 0, 0.16);
    --wwa-header-gutter: 60px;
    --wwa-header-gutter-mobile: 12px;
    --wwa-mobile-panel-gap: 24px;
    --wwa-header-h-desktop: 104px;
    --wwa-header-h-mobile: 96px;
    /* Sticky header: --header-h is the measured height (main.js overrides it on load / resize),
       --wwa-header-offset is where the area below the header starts. */
    --header-h: var(--wwa-header-h-mobile);
    --wwa-adminbar-offset: 0px;
    --wwa-header-offset: calc(var(--header-h) + var(--wwa-adminbar-offset));
    --wwa-transition: 0.3s ease;
    /* Undefined in v1 (body/footer rendered black); defined here to keep the look. See DECISIONS #7. */
    --wwa-color-text: #000;
    --wwa-color-muted: #000;
    box-sizing: border-box;
}

@media (min-width: 1200px) {
    :root {
        --header-h: var(--wwa-header-h-desktop);
    }
}

/* WordPress admin bar: fixed from 601px (32px, 46px up to 782px); below that it scrolls away. */
@media (min-width: 601px) {
    :root:has(> body.admin-bar) {
        --wwa-adminbar-offset: 32px;
    }
}

@media (min-width: 601px) and (max-width: 782px) {
    :root:has(> body.admin-bar) {
        --wwa-adminbar-offset: 46px;
    }
}
