/* ══════════════════════════════════════════════════════════════════════════
   publicne.ws — Base reset & document defaults
   ══════════════════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--f-body);
    font-size: var(--fs-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition:
        background 400ms var(--ease),
        color 400ms var(--ease);
    overflow-x: hidden;
    min-height: 100dvh;
    font-feature-settings: "ss01", "cv11";
}

a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
input {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--red);
    color: #fff;
}
:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Skip to content — accessibility */
.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--fg);
    color: var(--bg);
    font-family: var(--f-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 0 0 6px 6px;
}
.skip:focus {
    left: var(--s-3);
    top: 0;
}

/* Screen-reader only */
.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Page shell */
.shell {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Reduced motion — honoured across the system */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* Print — default stylebook/documentation print reset */
@media print {
    body {
        background: #fff;
        color: #000;
    }
    .nav,
    .admin-topbar,
    .admin-sidebar {
        display: none !important;
    }
    a {
        color: #000;
    }
    @page {
        margin: 20mm;
    }
}
