@import 'normalize.css';

@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/raleway/raleway-regular.woff2') format('woff2'),
        url('assets/fonts/raleway/raleway-regular.woff') format('woff'),
        url('assets/fonts/raleway/raleway-regular.ttf') format('truetype'),
        url('assets/fonts/raleway/raleway-regular.eot')
            format('embedded-opentype'),
        url('assets/fonts/raleway/raleway-regular.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/raleway/raleway-bold.woff2') format('woff2'),
        url('assets/fonts/raleway/raleway-bold.woff') format('woff'),
        url('assets/fonts/raleway/raleway-bold.ttf') format('truetype'),
        url('assets/fonts/raleway/raleway-bold.eot') format('embedded-opentype'),
        url('assets/fonts/raleway/raleway-bold.svg') format('svg');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Museo Slab';
    src: url('assets/fonts/museo-slab/museo-slab-bold.woff2') format('woff2'),
        url('assets/fonts/museo-slab/museo-slab-bold.woff') format('woff'),
        url('assets/fonts/museo-slab/museo-slab-bold.ttf') format('truetype'),
        url('assets/fonts/museo-slab/museo-slab-bold.eot')
            format('embedded-opentype'),
        url('assets/fonts/museo-slab/museo-slab-bold.svg') format('svg');
    font-weight: bold;
    font-style: normal;
}

:root {
    --color-white: rgb(255 255 255);
    --color-blue: rgb(38 50 114);
    --color-darkblue: rgb(32 42 96);
    --color-gold: rgb(235 169 84);
}

*,
*::before,
*::after {
    font-feature-settings: 'lnum', 'tnum' 1;
}

body {
    font-family: Raleway, Helvetica, sans-serif;
    font-size: 16px;
    background-color: var(--color-darkblue);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Museo Slab', serif;
    font-weight: bold;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 0.5em;
    color: var(--color-white);
}

h1 {
    font-size: clamp(1.5rem, 0.8571rem + 2.8571vw, 3rem);
}

h2 {
    font-size: clamp(1.25rem, 0.9286rem + 1.4286vw, 2rem);
}

p,
li,
address,
blockquote {
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: clamp(1rem, 0.9464rem + 0.2381vw, 1.125rem);
    color: var(--color-white);

    &:first-child {
        margin-top: 0;
    }

    &:last-child {
        margin-bottom: 0;
    }
}

address {
    font-style: normal;
    line-height: 1.5;
}

a {
    color: var(--color-white);
    text-decoration: underline;

    &:hover,
    &:focus {
        text-decoration: none;
        color: var(--color-gold);
    }
}

section,
.wrapper {
    width: 100%;
    max-width: min(75rem, 90vw);
    margin-inline: auto;
    padding: clamp(3rem, 2.5714rem + 1.9048vw, 4rem) 0;
}

.logo {
    width: clamp(6rem, 5.1429rem + 3.8095vw, 8rem);
    /* filter: brightness(0) invert(1); */
    height: auto;
}

.overline {
    margin-bottom: 0.25em;
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--color-gold);
    letter-spacing: 0.1em;
}

.background-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.25;
}

.box {
    padding: 1.5rem;
    border-radius: 1.5rem;
    background-color: color-mix(
        in oklab,
        var(--color-darkblue) 80%,
        transparent
    );
    color: var(--color-white);
    width: fit-content;
    margin-inline: auto;

    * {
        color: inherit;
    }
}

header {
    position: fixed;
    inset: 0 0 auto 0;
    background-color: var(--color-blue);
    color: var(--color-white);
    z-index: 10;

    .wrapper {
        display: flex;
        /* justify-content: center; */
        align-items: center;
        padding: 1rem 0;
    }
}

main {
    position: relative;
    flex-grow: 1;
    padding-top: 5.125rem;

    section {
        text-align: center;
    }

    p {
        max-width: 60ch;
        margin-inline: auto;
    }
}

footer {
    background-color: var(--color-blue);
    color: var(--color-white);
    margin-top: auto;

    .wrapper {
        display: grid;
        grid-template-columns: repeat(
            auto-fit,
            minmax(min(calc((75rem - 3rem) / 3), 100%), 1fr)
        );
        align-items: end;
        gap: 1.5rem;
        padding: 2rem 0;

        > * {
            margin: 0;
        }
    }

    p,
    h2,
    address {
        color: inherit;
        text-wrap: balance;
        text-wrap: pretty;
    }

    .legal {
        font-size: 0.875rem;
    }
}
