/* =====================================================
   WHAT?studio v2 — Reset & Base
   ===================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::selection { background: var(--red); color: #fff; }

/* ---------- Typography primitives ---------- */
h1, h2, h3, h4 {
    line-height: var(--lh-tight);
    font-weight: 800;
    letter-spacing: var(--tracking-tight);
    text-wrap: balance;
}

.overline {
    display: inline-block;
    font-size: var(--fs-overline);
    font-weight: 800;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: #ff6b6b;
    text-shadow: 0 0 18px rgba(255, 0, 0, 0.28);
}

.lead {
    font-size: var(--fs-lead);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
}

.text-muted { color: var(--text-muted); }

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }

.section {
    padding-block: var(--section-pad);
    position: relative;
}
.section--alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--border);
}

.section-head {
    max-width: 720px;
    margin-bottom: var(--space-12);
}
.section-head--center {
    margin-inline: auto;
    text-align: center;
}
.section-head h2 {
    font-size: var(--fs-h2);
    margin-block: var(--space-4) var(--space-4);
}
.section-head .lead { max-width: 52ch; }
.section-head--center .lead { margin-inline: auto; }

.stack > * + * { margin-top: var(--space-4); }

[hidden] { display: none !important; }

/* ---------- Accessibility ---------- */
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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