/*
 * Design tokens: every colour, font, size, shadow and timing used on the site.
 * Change a value here and it changes everywhere.
 *
 * The palette and type come from the supplied hotel theme, with its navy (#191628)
 * and sand (#b99c87) each taken a step darker.
 */

@layer reset, tokens, base, layout, components, pages, utilities;

@font-face {
    font-family: "Playfair Display";
    src: url("../fonts/playfair-display-latin.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/roboto-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Metric-matched system fallbacks, so text barely moves when the web fonts arrive. */
@font-face {
    font-family: "Playfair Fallback";
    src: local("Georgia");
    size-adjust: 104%;
    ascent-override: 104%;
    descent-override: 24%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Roboto Fallback";
    src: local("Arial");
    size-adjust: 100.3%;
    ascent-override: 92.5%;
    descent-override: 24.3%;
    line-gap-override: 0%;
}

@layer tokens {
    :root {
        /* Colour */
        --navy: #120f20;
        --navy-raised: #1c192d;
        --navy-muted: #322f44;
        --sand: #8d715c;
        --sand-ink: #7d6350;
        --sand-pale: #cdb8a6;
        --linen: #f3f1ee;
        --white: #fff;
        --text: #55586a;
        --line: #e3dfda;
        --line-on-navy: rgb(255 255 255 / 0.16);
        --text-on-navy: rgb(255 255 255 / 0.78);
        --error: #a3261a;
        --success: #25634a;

        /* Type */
        --font-display: "Playfair Display", "Playfair Fallback", Georgia, serif;
        --font-body: "Roboto", "Roboto Fallback", Arial, sans-serif;

        --text-xs: 0.8125rem;
        --text-sm: 0.9375rem;
        --text-md: 1rem;
        --text-lg: 1.125rem;
        --text-xl: 1.375rem;
        --text-2xl: clamp(1.75rem, 1.42rem + 1.35vw, 2.375rem);
        --text-3xl: clamp(2.125rem, 1.6rem + 2.2vw, 3.25rem);
        --text-4xl: clamp(2.25rem, 1.35rem + 3.7vw, 4rem);

        /* Space */
        --space-2xs: 0.25rem;
        --space-xs: 0.5rem;
        --space-sm: 0.75rem;
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 4.5rem;
        --section: clamp(4rem, 2.6rem + 6vw, 7.5rem);
        --gutter: clamp(1.125rem, 0.4rem + 3vw, 2.5rem);
        --container: 90.625rem;
        --header-height: 5.625rem;
        --topbar-height: 3.125rem;

        /* Height of the header as first seen: the page heroes fill the rest of the screen. */
        --chrome-height: var(--header-height);

        /* Depth, taken from the theme */
        --shadow-card: 0 0 48px 0.5px rgb(0 0 0 / 0.1);
        --shadow-soft: 0 10px 60px rgb(0 0 0 / 0.07);
        --shadow-lift: 0 15px 30px -10px rgb(0 0 0 / 0.09);
        --shadow-deep: 0 0 35px rgb(0 0 0 / 0.2);

        /* Motion */
        --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
        --ease-out: cubic-bezier(0.16, 0.84, 0.3, 1);
        --quick: 200ms;
        --steady: 500ms;
        --slow: 900ms;
    }
}
