/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        /* Not supported in Safari or Firefox, but causes no issues where not supported */
        scroll-behavior: smooth;
    }
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* Avoid text overflows - balance is not supported in Firefox */
h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

/* Avoid text overflows - pretty is not supported in Firefox */
p {
    text-wrap: pretty;
}

#root,
#__next {
    isolation: isolate;
}

:root {
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1;
    /* fix for Chrome */
    --min-variable-weight: 100;
    --max-variable-weight: 900;
    --hover-distance: 150;
    /* in pixels */
    --min-weight: 100;
    /* Assuming this is the same as min-variable-weight or a base for h1 */
    --text-color: #000;
    --chip-text-color: #000;
    --chip-bg-color: #eee;
    --chip-text-color-hover: #fff;
    --chip-bg-color-hover: #000;
}

@supports (font-variation-settings: normal) {
    :root {
        font-family: InterVariable, sans-serif;
    }
}


@media screen and (min-width: 768px) {
    :root {
        --hover-distance: 220;
    }
}

@media screen and (min-width: 1280px) {
    :root {
        --hover-distance: 440;
    }
}

@media screen and (min-width: 1920px) {
    :root {
        --hover-distance: 660;
    }
}

body {
    cursor: default;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* font-loading class handles opacity, managed by JS */
    margin: 0;
    padding: 0;
}

.content-section {
    user-select: none;
    border-bottom: 1px solid black;
    padding: 1rem;
}

h1 {
    font-size: 20vw;
    font-weight: var(--min-weight);
    line-height: 0.9;
    white-space: nowrap;
    letter-spacing: -0.8rem;
    margin: 0;
}

footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

@media screen and (max-width: 768px) {
    h1 {
        letter-spacing: -0.4rem;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        letter-spacing: -0.2rem;
    }
}

h1 span {
    display: inline-block;
    will-change: font-variation-settings;
}

.font-loading {
    opacity: 0;
}

.font-loaded {
    opacity: 1;
}