/* ============================================================
   BASE — reset + foundations
============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0px;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);

    /* faint paper grain — two stippled radial dot fields */
    background-image: radial-gradient(rgba(31,26,20,.025) 1px, transparent 1px),
    radial-gradient(rgba(31,26,20,.018) 1px, transparent 1px);
    background-size: 3px 3px, 7px 7px;
    background-position: 0 0, 1px 1px;
    overflow-x: hidden;
}

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

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

button {
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

::selection {
    background: var(--coral);
    color: var(--paper);
}

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

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

.sr-only:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    background: var(--paper);
    color: var(--ink);
    padding: 8px 14px;
    clip: auto;
    border: 1px solid var(--ink);
    z-index: 1000;
}
