/* AGAL TOYS — BASE: resets & typography */

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

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

body {
    font-family: var(--font-body);
    background-color: var(--brand-bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
svg {
    max-inline-size: 100%;
    display: block;
}

img {
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.2;
    margin: 0;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
    overflow-wrap: break-word;
}

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

button {
    font-family: inherit;
}

/* Respect the user's reduced-motion preference without disabling every
   animation globally (which can make some transitions feel broken rather
   than absent) — case-by-case overrides live alongside each animation. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background: var(--brand-accent-tint);
    color: var(--brand-accent-hover);
}

main {
    min-block-size: 40dvh;
}

.container {
    max-inline-size: 1280px;
}

.text-brand { color: var(--brand-primary) !important; }
.text-accent { color: var(--brand-accent) !important; }
.bg-brand-accent { background-color: var(--brand-accent) !important; }

/* Visually-hidden but announced to assistive tech — used for icon-only
   controls whose accessible name isn't already visible text. */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
