/* Reset + base typography — La Barra QR menu. Fonts are linked in head.php. */

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

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

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

body.site-body--menu {
    margin: 0;
    background: var(--bg);
    color: var(--fg-secondary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: var(--letter-tracking);
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--dur-slow) var(--ease-brand), color var(--dur-slow) var(--ease-brand);
}

.site-body--menu img { max-width: 100%; display: block; }
/*
 * `:where()` keeps these resets at (0,1,0) specificity — the same as a
 * single component class like `.cta-button` — instead of the (0,1,1) that
 * `.site-body--menu a` would otherwise carry. Without this, this reset's
 * `color: inherit` was silently winning over every button/link component's
 * own `color` declaration (same specificity tie-break by source order isn't
 * even reached), which is why CTAs like the WhatsApp buttons were rendering
 * with the inherited body text color instead of their intended contrast.
 */
.site-body--menu :where(a) { color: inherit; text-decoration: none; }
.site-body--menu ul { list-style: none; margin: 0; padding: 0; }
.site-body--menu :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.site-body--menu h1, .site-body--menu h2, .site-body--menu h3 {
    margin: 0;
    font-family: var(--font-display);
    text-transform: uppercase;
    color: var(--fg-primary);
    font-weight: 400;
    letter-spacing: 0.01em;
}
.site-body--menu p { margin: 0; }

.site-body--menu :focus-visible {
    outline: 2px solid var(--fg-primary);
    outline-offset: 2px;
}

.mono { font-family: var(--font-mono); }

/*
 * display: inline-block matters here: icon() (partials/icons.php) emits a
 * placeholder `<i data-lucide="...">` that lucide.createIcons() swaps for
 * a real <svg> on DOMContentLoaded. A plain inline element ignores
 * width/height, so without this the placeholder would sit at zero size
 * and every icon would pop/reflow in once the swap runs.
 */
.icon { display: inline-block; width: 22px; height: 22px; flex-shrink: 0; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-main--menu { display: block; }

/*
 * Faint background grid — one restrained nod to the brand's technical/metal
 * material language. Self-contained decorative overlay: drop it in as its
 * own empty, absolutely-positioned element inside a `position: relative`
 * container (never apply this class directly to a container that also
 * holds text — `opacity` on the element affects its whole subtree,
 * including children, not just the background).
 */
.bg-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(var(--line-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-subtle) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: var(--bg-grid-opacity);
}
