/**
 * Minimal modern reset. Deliberately small — theme.json already handles
 * base color/typography, so this only normalizes box-sizing, media
 * defaults, and form-control font inheritance.
 */

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

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

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

button {
    background: none;
    border: 0;
    cursor: pointer;
}

a {
    text-decoration: none;
}

ul[class], ol[class] {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Visible focus everywhere, one definition — see tokens.css --ww-focus-ring.
   Never remove :focus-visible outline without replacing it; color alone is
   never sufficient (WCAG 2.2 AA). */
:focus-visible {
    outline: none;
    box-shadow: var(--ww-focus-ring);
    border-radius: var(--ww-radius-sm);
}

.ww-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;
}

/* WCAG 2.2 SC 2.4.1 "Bypass Blocks" — hidden until keyboard-focused. */
.ww-skip-link {
    position: absolute;
    top: -999px;
    left: 0;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--wp--preset--color--background, #fff);
    color: var(--wp--preset--color--foreground, #111);
}

.ww-skip-link:focus {
    top: 0;
}

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