/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    cursor: none;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--color-white);
    background-color: var(--color-dark);
    line-height: 1.5;
    letter-spacing: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
}

::selection {
    background-color: var(--color-accent);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--color-accent);
    color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
    cursor: none;
}

a:hover {
    color: var(--color-accent);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.06em;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Section spacing */
.section {
    padding: var(--spacing-3xl) 0;
}

/* Screen reader only */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}

/* Custom cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.cursor.is-hover {
    width: 40px;
    height: 40px;
    background-color: rgba(235, 53, 68, 0.2);
}

.cursor-follower.is-hover {
    width: 50px;
    height: 50px;
}

@media (max-width: 768px) {
    .cursor,
    .cursor-follower {
        display: none;
    }

    html {
        cursor: auto;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --container-padding: 40px;
        --text-hero: 80px;
        --text-5xl: 70px;
        --text-4xl: 60px;
        --text-3xl: 50px;
        --text-2xl: 40px;
        --text-xl: 36px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 24px;
        --text-hero: 48px;
        --text-5xl: 44px;
        --text-4xl: 40px;
        --text-3xl: 36px;
        --text-2xl: 30px;
        --text-xl: 26px;
        --text-lg: 24px;
        --text-md: 22px;
        --spacing-3xl: 80px;
        --spacing-2xl: 60px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 16px;
        --text-hero: 36px;
        --text-5xl: 34px;
        --text-4xl: 32px;
        --text-3xl: 28px;
        --text-2xl: 26px;
        --text-xl: 22px;
    }
}
