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

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--surface);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--container-padding);
    overflow-x: hidden;
}

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

button,
select,
input,
textarea {
    font-family: inherit;
    font-size: 1rem;
}

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

.hidden {
    display: none;
}

.reveal {
    animation: reveal 0.7s ease both;
}

.reveal.delay-1 {
    animation-delay: 0.05s;
}

.reveal.delay-2 {
    animation-delay: 0.15s;
}

.reveal.delay-3 {
    animation-delay: 0.25s;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
