/* ===========================
   BASE
   =========================== */

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

html {
    font-size: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans), sans-serif;
    font-size: var(--fs-1);
    line-height: var(--lh);
    color: var(--text);
    background: var(--bg);
    word-wrap: break-word;
    hyphens: auto;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    text-underline-offset: .2em;
    transition: color .2s ease;
}

a:hover {
    color: var(--primary-strong);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

/* Page skeleton */
.layout-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main spacing (inner sheet handles backgrounds) */
.site-main {
    flex: 1;
    padding: var(--sp-6) 0 var(--sp-7);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
}