/* Mambos design tokens Source of truth */

:root {
    /* typography */
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Russo One', 'Poppins', sans-serif;

    --leading-tight: 1.2; /* used for almost all text in Figma */
    --leading-text: 1.4;  /* longer paragraphs */

    --text-2xs: 0.75rem;                                           /* 12px        tags on season cards */
    --text-xs: clamp(0.75rem, 0.706rem + 0.188vw, 0.875rem);       /* 12 -> 14px   tags, dates, footer links */
    --text-s: clamp(0.875rem, 0.831rem + 0.188vw, 1rem);           /* 14 -> 16px   body, menu, buttons */
    --text-m: clamp(1rem, 0.956rem + 0.188vw, 1.125rem);           /* 16 -> 18px   section subtitles */
    --text-l: clamp(1rem, 0.912rem + 0.376vw, 1.25rem);            /* 16 -> 20px   hero badge */
    --text-xl: clamp(1.125rem, 0.993rem + 0.563vw, 1.5rem);        /* 18 -> 24px   hero subtitle */

    /* Russo One, always uppercase */
    --text-display-s: clamp(1.25rem, 1.162rem + 0.376vw, 1.5rem);  /* 20 -> 24px   card titles */
    --text-display-m: clamp(1.5rem, 1.324rem + 0.751vw, 2rem);     /* 24 -> 32px   large card titles */
    --text-display-l: clamp(1.75rem, 1.486rem + 1.127vw, 2.5rem);  /* 28 -> 40px   section titles */

    /* spacing */
    --space-3xs: clamp(0.375rem, 0.331rem + 0.188vw, 0.5rem);      /* 6 ->   8px */
    --space-2xs: clamp(0.5rem, 0.412rem + 0.376vw, 0.75rem);       /* 8 ->  12px */
    --space-xs: clamp(0.75rem, 0.662rem + 0.376vw, 1rem);          /* 12 ->  16px */
    --space-s: clamp(1rem, 0.912rem + 0.376vw, 1.25rem);
    --space-m: clamp(1.25rem, 1.162rem + 0.376vw, 1.5rem);         /* 20 ->  24px */
    --space-l: clamp(1.5rem, 1.324rem + 0.751vw, 2rem);            /* 24 ->  32px  card padding */
    --space-xl: clamp(1.875rem, 1.655rem + 0.939vw, 2.5rem);       /* 30 ->  40px */
    --space-2xl: clamp(2rem, 1.604rem + 1.69vw, 3.125rem);
    --space-3xl: clamp(3.75rem, 2.87rem + 3.756vw, 6.25rem);       /* 60 -> 100px  section vertical padding */
    --space-4xl: clamp(5.625rem, 4.305rem + 5.634vw, 9.375rem);    /* 90 -> 150px  large section padding */

    /* radii */
    --radius-s: 0.625rem;                                          /* 10px  chips, burger */
    --radius-m: 0.75rem;                                           /* 12px  buttons */
    --radius-l: clamp(1rem, 0.824rem + 0.751vw, 1.5rem);           /* 16 -> 24px  photos, cards */
    --radius-section: clamp(1.5rem, 0.928rem + 2.441vw, 3.125rem);  /* 24 -> 50px  rounded section corners */

    /* layout */
    --container-max-width: 90rem;   /* 1440px */
    --container-padding-x: 2.5rem;  /* 40px, stepped below */
    --grid-gap: 1.25rem;            /* 20px between photos / cards */
    --card-inset: clamp(1rem, 0.824rem + 0.751vw, 1.5rem); /* 16 -> 24px */

    /* colors */
    --color-orange: #ec9324;
    --color-orange-hover: #ed6f21;
    --color-ink: #150d0a;
    --color-teal: #17998c;
    --color-teal-hover: #106f65;
    --color-red: #ea2323;
    --color-blue: #086999;
    --color-white: #ffffff;
    --color-cream: #fbefd8;
    --color-wave-back: #8dbbd0;
    --color-wave-middle: #99cbe1;
    --color-wave-front: #0e719f;

    /* colors */
    --color-burger-bg: var(--color-orange);
    --color-burger-bg-hover: var(--color-orange-hover);
    --color-header-border: #ec932433; /* EC9324 at 20% opacity */
}

@media (max-width: 64rem) {
    :root {
        --container-padding-x: 1.875rem; /* 30px, tablet */
    }
}

@media (max-width: 48rem) {
    :root {
        --container-padding-x: 1rem; /* 16px, mobile */
        --grid-gap: 0.75rem;         /* 12px */
    }
}

@media (max-width: 23.4375rem) {
    :root {
        --container-padding-x: 0.75rem; /* 12px, small phones */
    }
}
