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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: auto;
}

body {
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    color: var(--gray-light);
    background-color: var(--black);
    overflow-x: hidden;
}

body.is-loading {
    opacity: 0;
}

body.is-loaded {
    opacity: 1;
    transition: opacity 0.6s var(--ease-out-expo);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(102, 114, 174, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 114, 174, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

::selection {
    background: rgba(200, 132, 158, 0.35);
    color: var(--white);
}

::-moz-selection {
    background: rgba(200, 132, 158, 0.35);
    color: var(--white);
}

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

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

:focus-visible {
    outline: 2px solid var(--indigo);
    outline-offset: 3px;
}

.section-title {
    font-family: var(--font-impact);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--white);
    letter-spacing: 0.02em;
    line-height: var(--lh-heading);
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
}

.section-title .accent {
    color: var(--pink);
}

.section-label {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--indigo);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
    display: block;
}

@media (pointer: coarse) {
    body, a, button { cursor: auto !important; }
}

[id] {
    scroll-margin-top: 100px;
}
