/* ==========================================================================
   BASE RESET & TYPOGRAPHY
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-cream);
    background-image: radial-gradient(rgba(0, 0, 0, 0.14) 1.25px, transparent 1.25px);
    background-size: 22px 22px;
    color: var(--ink);
    font-family: var(--font-sans);
    line-height: 1.55;
    overflow-x: hidden;
}

main {
    flex: 1;
}

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

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

ul,
ol {
    list-style: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* Accessible Neobrutalist Focus Ring */
:focus-visible {
    outline: 3px dashed var(--ink);
    outline-offset: 3px;
}

/* Typography Scale */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.display-xl {
    font-size: clamp(2.35rem, 5vw, 4.1rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.display-lg {
    font-size: clamp(1.85rem, 3.6vw, 2.9rem);
    font-weight: 800;
    line-height: 1.08;
}

.display-md {
    font-size: clamp(1.35rem, 2.3vw, 1.85rem);
    font-weight: 700;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Surface Color Modifiers */
.bg-yellow { background-color: var(--accent-yellow); color: var(--ink); }
.bg-pink   { background-color: var(--accent-pink);   color: var(--ink); }
.bg-cyan   { background-color: var(--accent-cyan);   color: var(--ink); }
.bg-mint   { background-color: var(--accent-mint);   color: var(--ink); }
.bg-white  { background-color: var(--bg-paper);      color: var(--ink); }
.bg-cream  { background-color: var(--bg-cream);      color: var(--ink); }
.bg-black  { background-color: var(--ink);           color: var(--bg-paper); }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

@media (min-width: 768px) {
    .container {
        padding-inline: 2rem;
    }
}

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

