/* ---------- font ---------------------------- */

@font-face {
    font-family: 'Geist';
    src: url('../assets/fonts/Geist-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Libre Caslon Text 500';
    src: url('../assets/fonts/LibreCaslonText-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Libre Caslon Text 400';
    src: url('../assets/fonts/LibreCaslonText-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

body {
    font-family: 'Geist', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 100%;
}

button, input, select, textarea {
    background: none;
    border: none;
    margin: 0;
    font: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}
label { font-weight: 600; }
input[type="text"], 
input[type="email"], 
input[type="tel"], 
textarea { border-bottom: 1px solid white; }

button {
    cursor: pointer;
    padding: 0;
}

b, h1, h2, h3 { font-weight: 700; }
h1 { font-size: clamp(80px, 8vw, 120px); line-height: 130%; }
h2 { font-size: clamp(40px, 6vw, 100px); line-height: 130%; }
h3 { font-size: clamp(40px, 4vw, 60px); line-height: 130%; }
h2 span, h3 span {
    font-family: 'Libre Caslon Text 500', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    font-style: italic;
}
h2.min-font-60 { font-size: clamp(60px, 6vw, 100px); }

p, .text-m { font-size: 16px; line-height: 130%; }
.text-s { font-size: 14px; }
.text-xs { font-size: 12px; }

@media (max-width: 767px) {
    h2 span, h3 span {
        font-family: 'Libre Caslon Text 400', system-ui, -apple-system, sans-serif;
        font-weight: 400;
        font-style: italic;
    }
}

/* ---------- base setup + scrolling ---------- */

* { margin: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; }
main > *:not(#casesWrapper), #casesWrapper section { padding-left: var(--site-x-padding); padding-right: var(--site-x-padding); }
a { color: inherit; text-decoration: none; }

main.scroll {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y proximity;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* @media (max-width: 1000px) {
    .scroll-snap {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        scroll-snap-align: center;
        scroll-snap-stop: normal;
        display: flex;
        align-items: center;
        justify-content: center;
    }
} */