@font-face {
    font-family: "Inter";
    src: url("../fonts/InterVariable.2bf3d951bf9d.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-VariableFont_wght.4d444017fdf9.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --color-navy: #0b2545;
    --color-orange: #d85937;
    --color-green: #00875a;
    --color-off-white: #fbfbfb;
    --color-black: #000000;
    --color-white: #ffffff;

    --font-heading: "Montserrat", Arial, sans-serif;
    --font-body: "Inter", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    min-height: 100vh;
    margin: 0;
    flex-direction: column;
    background: var(--color-off-white);
    color: var(--color-navy);
    font-family: var(--font-body);
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

main {
    width: min(100% - 2rem, 72rem);
    margin-inline: auto;
    padding-block: 2rem;
}

.auth-header {
    color: var(--color-white);
    background: var(--color-navy);
}

.auth-header__inner {
    display: flex;
    width: min(100% - 2rem, 72rem);
    min-height: 5rem;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.auth-header__brand {
    display: inline-flex;
    align-items: center;
}

.auth-header__logo {
    display: block;
    width: 8.5rem;
    height: auto;
}

.auth-header__navigation {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.auth-header__navigation a {
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-header__navigation a:hover {
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.auth-header__navigation .auth-header__track-link {
    padding: 0.625rem 0.875rem;
    background: var(--color-orange);
    border-radius: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
}

.auth-header__navigation .auth-header__track-link:hover {
    filter: brightness(0.9);
    text-decoration: none;
}

.auth-header__navigation a:focus-visible,
.auth-header__brand:focus-visible {
    outline: 3px solid var(--color-orange);
    outline-offset: 4px;
}

.site-footer {
    margin-top: auto;
    color: var(--color-white);
    background: var(--color-navy);
}

.site-footer__inner {
    display: grid;
    width: min(100% - 2rem, 72rem);
    margin-inline: auto;
    padding-block: 3rem;
    grid-template-columns: minmax(14rem, 1.5fr) 2fr;
    gap: 4rem;
}

.site-footer__logo {
    display: block;
    width: 9rem;
    height: auto;
}

.site-footer__brand p {
    max-width: 20rem;
    margin: 1rem 0 0;
    color: rgb(255 255 255 / 75%);
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(8rem, 1fr));
    gap: 2rem;
}

.site-footer__links section {
    display: grid;
    align-content: start;
    gap: 0.625rem;
}

.site-footer__links h2 {
    margin: 0 0 0.375rem;
    color: var(--color-white);
    font-size: 1rem;
}

.site-footer__links a,
.site-footer__legal a {
    width: fit-content;
    color: rgb(255 255 255 / 75%);
    text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__legal a:hover {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.site-footer__legal {
    display: flex;
    width: min(100% - 2rem, 72rem);
    margin-inline: auto;
    padding-block: 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgb(255 255 255 / 20%);
    color: rgb(255 255 255 / 65%);
    font-size: 0.8125rem;
}

.site-footer__legal p {
    margin: 0;
}

.site-footer__legal div {
    display: flex;
    gap: 1rem;
}

@media (max-width: 48rem) {
    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 35rem) {
    .auth-header__inner {
        min-height: 4.5rem;
        gap: 0.75rem;
    }

    .auth-header__logo {
        width: 6.5rem;
    }

    .auth-header__navigation {
        gap: 0.625rem;
    }

    .auth-header__navigation a {
        font-size: 0.75rem;
    }

    .auth-header__navigation .auth-header__track-link {
        padding: 0.5rem 0.625rem;
    }

    .site-footer__links {
        grid-template-columns: 1fr;
    }

    .site-footer__legal {
        align-items: flex-start;
        flex-direction: column;
    }
}

.site-message {
    transition:
        opacity 200ms ease,
        transform 200ms ease;
}

.site-message--leaving {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
}