:root {
    --primary: #000;
    --accent: #dc2626;
    --accent-dark: #b91c1c;
    --bg-light: #f9f9f9;
    --bg-dark: #000;
    --text: #333;
    --max-width: 1200px;
    --safe-height: 100vh;
    --safe-width: 100vw;
}

@supports (height: 100dvh) {
    :root {
        --safe-height: 100dvh;
    }
}

@supports (width: 100dvw) {
    :root {
        --safe-width: 100dvw;
    }
}

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

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body,
p,
td {
    font-family: 'Open Sans Variable', 'Segoe UI', sans-serif;
    font-size: 1.1rem;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
    scroll-padding-top: 5rem;
}

body {
    overflow-x: hidden;
    position: relative;
}

section {
    scroll-margin-top: 0.5rem;
}

.underline {
    display: block;
    height: 3px;
    width: 80%;
    background-color: var(--accent);
    margin: 0.5rem auto 0;
    margin-bottom: 3rem;
}

.reveal {
    will-change: transform, opacity;
    contain: layout style paint;
}

header,
h1,
h2,
h3,
h4,
h5,
h6,
span {
    font-family: 'Good Times', sans-serif;
    font-weight: 800;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    display: inline-block;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
}

[data-parallax-target] {
    will-change: transform;
    transition: transform 0.2s ease-out;
}

/* Tablet breakpoint (landscape phones and small tablets) */
@media (min-width: 600px) {
    h1 {
        font-size: 2rem;
        letter-spacing: 0.6px;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    section[id] {
        scroll-margin-top: 2rem;
    }
}

/* Desktop breakpoint */
@media (min-width: 900px) {
    h1 {
        font-size: 3rem;
        letter-spacing: 1px;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2.2rem;
    }

    .underline {
        height: 3px;
        width: 25%;
        background-color: var(--accent);
        margin: 0.5rem auto 0;
        margin-bottom: 3rem;
    }
}