/* ============================================================
   EAPL Design Tokens — v1.0
   Source: Website Design Guide §10, Tech Stack Reference §4
   Do not add working styles here. Tokens only.
   ============================================================ */


/* ------------------------------------------------------------
   Self-hosted variable fonts.

   Drop the font files into /wp-content/themes/eapl/assets/fonts/
   Source Serif 4 Variable — https://github.com/adobe-fonts/source-serif
   Inter Variable          — https://rsms.me/inter/

   Subset to Latin before deployment to reduce payload.
   ------------------------------------------------------------ */

@font-face {
    font-family: 'Source Serif 4';
    src: url('../fonts/source-serif-4-var.woff2') format('woff2-variations'),
         url('../fonts/source-serif-4-var.woff2') format('woff2');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Serif 4';
    src: url('../fonts/source-serif-4-italic-var.woff2') format('woff2-variations'),
         url('../fonts/source-serif-4-italic-var.woff2') format('woff2');
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-var.woff2') format('woff2-variations'),
         url('../fonts/inter-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}


/* ------------------------------------------------------------
   CSS custom properties.
   ------------------------------------------------------------ */

:root {

    /* Colour ----------------------------------------------- */
    --color-text-primary:    #1A1A1A;
    --color-text-secondary:  #555555;
    --color-text-tertiary:   #8A8A85;
    --color-bg-primary:      #FAF8F5;   /* warm off-white, NOT pure #FFFFFF */
    --color-bg-secondary:    #F1ECE4;
    --color-bg-placeholder:  #EAE4D7;
    --color-accent:          #E8740C;   /* EAPL orange — used sparingly */
    --color-rule:            #D9D2C6;
    --color-rule-strong:     #B8AE9C;
    --color-dark:            #2D2D2D;

    /* Typography families ---------------------------------- */
    --font-display: 'Source Serif 4', Georgia, 'Times New Roman', Times, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    /* Typographic scale (fluid) ---------------------------- */
    --size-display-xl: clamp(2.75rem, 6vw, 5rem);
    --size-display-l:  clamp(2rem, 4vw, 3.25rem);
    --size-display-m:  clamp(1.5rem, 2.5vw, 2.125rem);
    --size-number:     clamp(2.5rem, 4.5vw, 4rem);
    --size-body-l:     1.1875rem;   /* ~19px */
    --size-body:       1.0625rem;   /* ~17px */
    --size-small:      0.875rem;    /* 14px   */
    --size-micro:      0.75rem;     /* 12px   */

    --line-height-body:    1.6;
    --line-height-tight:   1.2;
    --line-height-display: 1.15;

    /* Spacing scale ---------------------------------------- */
    --space-xs:  0.5rem;    /* 8px   */
    --space-s:   1rem;      /* 16px  */
    --space-m:   2rem;      /* 32px  */
    --space-l:   4rem;      /* 64px  */
    --space-xl:  8rem;      /* 128px */
    --space-2xl: 10rem;     /* 160px */

    /* Layout ----------------------------------------------- */
    --content-wide:    1280px;
    --content-default: 1080px;
    --content-narrow:  720px;

    /* Motion ----------------------------------------------- */
    --transition-fast:    180ms ease;
    --transition-default: 220ms ease;
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast:    0ms;
        --transition-default: 0ms;
    }
}