/* Base reset & site-wide primitives. Component styles live in their own files. */

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

body {
    margin: 0;
    background: var(--vl-cream);
    color: var(--vl-ink);
    font-family: var(--vl-font);
    font-weight: var(--vl-weight-regular);
    font-size: var(--vl-text-body);
    line-height: 1.4;
}

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

a {
    color: inherit;
}

/* Soft rule (designer note): no all-caps anywhere — enforce nothing that
   uppercases; use italics/bold for emphasis instead. */

/* Content holds 1600px wide until the viewport can no longer fit
   1600 + 2×40 (i.e. below 1680px); then it shrinks fluidly, always
   keeping the side padding. Liam, 2026-07-21. */
.vl-container {
    max-width: calc(var(--vl-container) + 2 * var(--vl-edge));
    margin-inline: auto;
    padding-inline: var(--vl-edge);
}

/* ── Accessibility skip-link (visually hidden until focused) ── */
.vl-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--vl-ink);
    color: var(--vl-cream);
    padding: 8px 16px;
}

.vl-skip-link:focus {
    left: 0;
}

/* ── Logo — single-colour mark recoloured via CSS mask ──
   One uploaded file drives header (ink) and footer (cream): the mark is
   masked and painted with currentColor, so context sets the colour. */
.vl-logo {
    display: inline-block;
    width: 218px;   /* nodes 1:15 / 3:481 */
    height: 50px;
    background-color: currentColor;
    -webkit-mask: var(--vl-logo-url) no-repeat center / contain;
    mask: var(--vl-logo-url) no-repeat center / contain;
}
