@font-face {
    font-family: 'BBHHegarty';
    src: url('../fonts/bbhhegarty.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/intervariable.woff2') format('woff2');
}

@font-face {
    font-family: 'Alegreya';
    src: url('../fonts/alegreya.woff2') format('woff2');
    font-style: normal;
}

@font-face {
    font-family: 'Alegreya';
    src: url('../fonts/alegreya-italic.woff2') format('woff2');
    font-style: italic;
}

/*--- Variables ---*/

:root {
    --black: #0a0a0a;
    --black-dim: #0a0a0a77;
    --black-dark: #0a0a0a11;
    --red: #ff3f3f;
    --white: #fff;
    --white-dim: #fff7;
    --white-dark: #fff1;
    --sunrise: linear-gradient(135deg, #ff3f3f 0%, #ff206c 70%, #ff0099 100%);
}

/* #ff3f3f = oklch(0.6588 0.2275 26.1) */

/*--- Foundation ---*/

* { margin: 0; padding: 0; box-sizing: border-box; }

html,
body {
    height: 100%;
    background: var(--white);
    color: var(--black-dim);
    font-family: 'Alegreya', serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#heading {
    margin-bottom: 1rem;
    font-family: 'BBHHegarty', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
}

#title {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-style: italic;
}

#heading, #title {
    color: var(--black-dim);
}

#body {
    max-width: 20em;
    color: var(--black);
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.45;
    text-align: center;
    text-wrap: balance;
    animation: fadeIn 0.8s ease;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}

#body p + p {
    margin-top: 0.5em;
}

footer {
    position: fixed;
    bottom: 1.5rem;
    color: var(--black-dim);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.04em;
}

/*--- Animation ---*/

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/*--- Dark Mode ---*/

@media (prefers-color-scheme: dark) {
:root {
--black: #fff;
--black-dim: #fff7;
--black-dark: #fff1;
--white: #0a0a0a;
--white-dim: #0a0a0a77;
--white-dark: #0a0a0a11;
}

/* Dark Mode reverses black and white */

}
