/* ==========================================================================
   tokens.css — design tokens (scoped under .lp-site) and font faces
   ========================================================================== */

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
    font-weight: 400 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

.lp-site {
    /* Surfaces */
    --c-ivory: #F8F7F2;
    --c-white: #FFFFFF;
    --c-sand: #F0EDE5;
    --c-stone: #E7E4DA;
    --c-stone-highlight: #F3F0E9;

    /* Brand */
    --c-forest: #172A24;
    --c-forest-muted: #375C4A;
    --c-forest-dark: #11201B;
    --c-sage: #D9E3D8;

    /* Text (secondary darkened from #535C56 so muted #4D5952 stays the lighter tier) */
    --c-text: #202521;
    --c-text-secondary: #3E4842;
    --c-text-muted: #4D5952;

    /* Text on forest */
    --c-on-forest: #F8F7F2;
    --c-on-forest-secondary: #C9D1C7;
    --c-on-forest-rule: rgba(248, 247, 242, 0.18);

    /* Borders */
    --c-border: #DCDDD5;
    --c-border-strong: #BFC7BE;
    --c-border-control: #8A948C; /* ≥3:1 against white for form control boundaries */

    /* Semantic */
    --c-success: #286447;
    --c-success-bg: #EAF4ED;
    --c-warning: #895A22;
    --c-warning-bg: #FBF1DD;
    --c-error: #B42318;
    --c-error-bg: #FDEDEB;

    /* Typography */
    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-body: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

    --fs-hero: clamp(2.5rem, 1.55rem + 3.9vw, 5rem);       /* 40 → 80 */
    --fs-h2: clamp(2.125rem, 1.45rem + 2.5vw, 3.5rem);     /* 34 → 56 */
    --fs-h3: clamp(1.4rem, 1.22rem + 0.55vw, 1.875rem);   /* 22 → 30 */
    --fs-lede: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); /* 17 → 19 */
    --fs-body: 1rem;                                       /* 16 */
    --fs-body-lg: 1.0625rem;                               /* 17 */
    --fs-sm: 0.875rem;                                     /* 14 */
    --fs-xs: 0.8125rem;                                    /* 13 */
    --fs-eyebrow: 0.75rem;                                 /* 12 */

    --lh-tight: 1.04;
    --lh-heading: 1.08;
    --lh-snug: 1.3;
    --lh-body: 1.65;

    --tracking-eyebrow: 0.14em;
    --tracking-display: -0.012em;

    /* Spacing scale (4 → 128) */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.25rem;
    --s-6: 1.5rem;
    --s-8: 2rem;
    --s-10: 2.5rem;
    --s-12: 3rem;
    --s-16: 4rem;
    --s-20: 5rem;
    --s-24: 6rem;
    --s-28: 7rem;
    --s-32: 8rem;

    --section-y: clamp(3.25rem, 2rem + 4.6vw, 6.75rem);   /* 52 → 108 */
    --gutter: clamp(1.125rem, 0.6rem + 2.6vw, 3.75rem);   /* 18 → 60 */

    /* Containers */
    --container: 77.5rem;      /* 1240 */
    --container-wide: 90rem;   /* 1440 */
    --measure: 45rem;          /* 720 reading width */

    /* Radii */
    --r-xs: 4px;
    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 16px;

    /* Shadows (used sparingly) */
    --shadow-sm: 0 1px 2px rgba(23, 42, 36, 0.06);
    --shadow-md: 0 1px 2px rgba(23, 42, 36, 0.05), 0 8px 24px -12px rgba(23, 42, 36, 0.18);

    /* Motion */
    --t-fast: 160ms;
    --t-base: 220ms;
    --t-image: 360ms;
    --t-max: 450ms;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Focus */
    --focus-ring: 0 0 0 2px var(--c-white), 0 0 0 4px var(--c-forest-muted);
    --focus-outline: 2px solid var(--c-forest-muted);
    --focus-offset: 3px;

    /* Layers */
    --z-base: 1;
    --z-sticky: 50;
    --z-menu: 60;
    --z-skip: 100;

    --header-h: 4.25rem; /* 68 mobile */
}

@media (min-width: 1024px) {
    .lp-site {
        --header-h: 5rem; /* 80 desktop */
    }
}
