/*
 * Atrium — Editorial Theme
 * -------------------------------------------------------------------------
 * Replaces cyber.css for the public-facing site.
 * Stack: vanilla CSS, no preprocessor, no build step.
 * Design philosophy: warm paper / warm ink, serif body, multi-author voices.
 * -------------------------------------------------------------------------
 */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
    /* Typography */
    --font-serif: "Source Serif 4", Charter, "Bitstream Charter", Georgia, serif;
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, "JetBrains Mono", "Cascadia Code", monospace;

    /* Spacing (0.25rem grid) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;

    /* Radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-pill: 999px;

    /* Motion */
    --motion-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
    --motion-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --motion-slow: 320ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-max: 1200px;
    --measure: 65ch;

    /* Scroll progress */
    --progress: 0;
}

/* ==========================================================================
   2. DARK THEME (default)
   ========================================================================== */

:root,
[data-theme="dark"] {
    color-scheme: dark;

    --color-bg:      #15140f;
    --color-surface: #1e1d18;
    --color-fg:      #e8e4d8;
    --color-fg-muted: #8a8478;
    --color-border:  #2e2c26;
    --color-link:    #e8e4d8;
    --color-accent:  #c8b898;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   3. LIGHT THEME
   ========================================================================== */

[data-theme="light"] {
    color-scheme: light;

    --color-bg:      #faf8f3;
    --color-surface: #ffffff;
    --color-fg:      #1a1a17;
    --color-fg-muted: #6b6358;
    --color-border:  #e0ddd5;
    --color-link:    #1a1a17;
    --color-accent:  #4a4036;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   4. AUTHOR SIGNATURE COLORS
   Each class sets --author-color for the element and its descendants.
   Dual-value: lighter for dark bg, darker for light bg.
   ========================================================================== */

.author--slate  { --author-color: #8aa0b4; }
.author--moss   { --author-color: #78a865; }
.author--clay   { --author-color: #d08a5c; }
.author--plum   { --author-color: #b07ea8; }
.author--ochre  { --author-color: #d4a84c; }
.author--indigo { --author-color: #7a90cc; }
.author--rust   { --author-color: #cc7060; }
.author--sage   { --author-color: #90b080; }

[data-theme="light"] .author--slate  { --author-color: #3e5060; }
[data-theme="light"] .author--moss   { --author-color: #3a6028; }
[data-theme="light"] .author--clay   { --author-color: #8a4c1e; }
[data-theme="light"] .author--plum   { --author-color: #683a60; }
[data-theme="light"] .author--ochre  { --author-color: #7a5a12; }
[data-theme="light"] .author--indigo { --author-color: #364070; }
[data-theme="light"] .author--rust   { --author-color: #782a1c; }
[data-theme="light"] .author--sage   { --author-color: #38582e; }

/* ==========================================================================
   5. PICO CSS OVERRIDES
   ========================================================================== */

:root,
[data-theme="dark"],
[data-theme="light"] {
    /* Fonts */
    --pico-font-family: var(--font-sans);
    --pico-font-family-monospace: var(--font-mono);

    /* Colors */
    --pico-background-color: var(--color-bg);
    --pico-color: var(--color-fg);
    --pico-muted-color: var(--color-fg-muted);
    --pico-muted-border-color: var(--color-border);
    --pico-border-color: var(--color-border);

    /* Primary = neutral (we don't use a brand accent) */
    --pico-primary: var(--color-fg);
    --pico-primary-background: var(--color-fg);
    --pico-primary-border: var(--color-fg);
    --pico-primary-hover: var(--color-fg-muted);
    --pico-primary-focus: rgba(232, 228, 216, 0.15);
    --pico-primary-inverse: var(--color-bg);

    /* Cards */
    --pico-card-background-color: var(--color-surface);
    --pico-card-border-color: var(--color-border);
    --pico-card-box-shadow: none;

    /* Forms */
    --pico-form-element-background-color: var(--color-surface);
    --pico-form-element-border-color: var(--color-border);

    /* Headings */
    --pico-h1-color: var(--color-fg);
    --pico-h2-color: var(--color-fg);
    --pico-h3-color: var(--color-fg);
    --pico-h4-color: var(--color-fg);

    /* Border radius */
    --pico-border-radius: var(--radius-md);
}

/* ==========================================================================
   6. BASE
   ========================================================================== */

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    /* offset sticky header so anchor jumps (footnotes, headings) don't hide behind it */
    scroll-padding-top: 5rem;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--color-bg);
    color: var(--color-fg);
    overflow-x: clip;
}

.container {
    max-width: var(--container-max);
    padding-inline: var(--space-5);
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: opacity var(--motion-fast);
}

a:hover { opacity: 0.72; }

/* Strong focus ring (a11y) */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--color-fg);
    outline-offset: 3px;
}

/* ==========================================================================
   7. SKIP LINK
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -48px;
    left: var(--space-5);
    padding: var(--space-2) var(--space-4);
    background: var(--color-surface);
    color: var(--color-fg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    text-decoration: none;
    z-index: 1000;
    transition: top var(--motion-base);
}

.skip-link:focus { top: var(--space-3); }

/* ==========================================================================
   8. SCROLL PROGRESS
   ========================================================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    z-index: 100;
    pointer-events: none;
}

.scroll-progress::after {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(var(--progress));
    background: var(--color-fg-muted);
    opacity: 0.5;
    transition: transform 80ms linear;
}

/* ==========================================================================
   9. THEME TOGGLE
   ========================================================================== */

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-fg-muted);
    cursor: pointer;
    transition: border-color var(--motion-fast), color var(--motion-fast);
}

.theme-toggle:hover {
    border-color: var(--color-fg-muted);
    color: var(--color-fg);
}

.theme-toggle svg { width: 1rem; height: 1rem; }

/* Sun visible in dark mode, moon in light mode */
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
/* Fallback when no data-theme set (default = dark) */
:root:not([data-theme="light"]) .icon-moon { display: none; }

/* ==========================================================================
   10. SITE HEADER
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: var(--space-4);
    gap: var(--space-4);
}

.site-header nav > ul {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.site-title a {
    color: var(--color-fg);
    text-decoration: none;
}

.site-title a:hover { opacity: 1; color: var(--color-fg); }

.site-nav-link {
    font-size: 0.875rem;
    color: var(--color-fg-muted);
    text-decoration: none;
    transition: color var(--motion-fast);
}

.site-nav-link:hover { color: var(--color-fg); opacity: 1; }

/* ==========================================================================
   11. SITE FOOTER
   ========================================================================== */

.site-footer {
    margin-top: var(--space-8);
    padding-block: var(--space-6);
    border-top: 1px solid var(--color-border);
    font-size: 0.8125rem;
    color: var(--color-fg-muted);
}

.site-footer nav {
    display: flex;
    gap: var(--space-5);
    margin-bottom: var(--space-3);
}

.site-footer nav a {
    color: var(--color-fg-muted);
    text-decoration: none;
}

.site-footer nav a:hover { color: var(--color-fg); }

/* ==========================================================================
   12. VOICES MOSAIC
   ========================================================================== */

.voices {
    margin-block: var(--space-8) var(--space-7);
}

.voices__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-fg-muted);
    margin-bottom: var(--space-5);
    display: block;
}

.voices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    border: 1px solid var(--color-border);
    /* 1px gaps between cards filled by the border color — clean editorial grid */
    gap: 1px;
    background-color: var(--color-border);
}

.voice-card {
    background: var(--color-bg);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: background-color var(--motion-fast);
}

.voice-card:hover { background: var(--color-surface); }

.voice-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.voice-card__dot {
    color: var(--author-color, var(--color-fg-muted));
    line-height: 1;
    font-size: 0.625rem;
}

.voice-card__author-link {
    color: var(--author-color, var(--color-fg));
    text-decoration: none;
}

.voice-card__author-link:hover { opacity: 0.8; }

.voice-card__title {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.voice-card__title a {
    color: var(--color-fg);
    text-decoration: none;
}

.voice-card__title a:hover { opacity: 0.8; }

.voice-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.voice-card__meta {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    font-size: 0.8125rem;
    color: var(--color-fg-muted);
    margin-top: auto;
}

.voice-card__more {
    font-size: 0.8125rem;
    color: var(--author-color, var(--color-fg-muted));
    text-decoration: none;
    font-weight: 500;
}

.voice-card__more:hover { opacity: 0.8; }

/* ==========================================================================
   13. ACTIVITY LIST (chronological)
   ========================================================================== */

.activity {
    margin-block: var(--space-7) var(--space-8);
}

.activity__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-fg-muted);
    margin-bottom: var(--space-5);
    display: block;
}

.post-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding-block: var(--space-5);
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
}

.post-row:first-child { border-top: 1px solid var(--color-border); }

@media (min-width: 560px) {
    .post-row--has-thumb { grid-template-columns: 1fr auto; align-items: start; }
}

.post-row__content { display: flex; flex-direction: column; gap: var(--space-2); }

.post-row__title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.post-row__title a {
    color: var(--color-fg);
    text-decoration: none;
}

.post-row__title a:hover { opacity: 0.8; }

.post-row__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.8125rem;
    color: var(--color-fg-muted);
}

.post-row__author-link {
    color: var(--author-color, var(--color-fg-muted));
    text-decoration: none;
    font-weight: 500;
}

.post-row__author-link:hover { opacity: 0.8; }

.post-row__sep { color: var(--color-border); }

.post-row__thumb-wrap { flex-shrink: 0; }

.post-row__thumb {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   14. PAGINATION
   ========================================================================== */

.pagination-numbered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-1);
    flex-wrap: wrap;
    margin-top: var(--space-7);
    padding: 0;
    list-style: none;
}

.pagination-numbered a,
.pagination-numbered .is-current,
.pagination-numbered .nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding-inline: var(--space-2);
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background-color var(--motion-fast), color var(--motion-fast);
}

.pagination-numbered a {
    color: var(--color-fg-muted);
    border: 1px solid transparent;
}

.pagination-numbered a:hover {
    color: var(--color-fg);
    border-color: var(--color-border);
    opacity: 1;
}

.pagination-numbered .is-current {
    color: var(--color-fg);
    border: 1px solid var(--color-fg-muted);
    font-weight: 600;
}

.pagination-numbered .is-ellipsis {
    color: var(--color-fg-muted);
    padding-inline: var(--space-1);
}

.pagination-numbered .nav-arrow {
    color: var(--color-fg-muted);
    border: 1px solid var(--color-border);
    font-size: 1rem;
}

.pagination-numbered .nav-arrow:hover {
    color: var(--color-fg);
    border-color: var(--color-fg-muted);
    opacity: 1;
}

/* ==========================================================================
   15. POST DETAIL
   ========================================================================== */

.post-detail {
    max-width: var(--measure);
    margin-inline: auto;
    padding-block: var(--space-7);
}

.post-detail__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-fg);
    margin-bottom: var(--space-5);
}

/* ---- Byline --------------------------------------------------------------- */

.byline {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-left: var(--space-4);
    border-left: 3px solid var(--author-color, var(--color-border));
    margin-bottom: var(--space-7);
}

.byline__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--author-color, var(--color-fg-muted));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
    user-select: none;
}

.byline__info { display: flex; flex-direction: column; gap: 0.2rem; }

.byline__name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--author-color, var(--color-fg));
    text-decoration: none;
}

.byline__name:hover { opacity: 0.8; }

.byline__meta {
    font-size: 0.8125rem;
    color: var(--color-fg-muted);
    display: flex;
    gap: var(--space-2);
}

/* ---- Post body ------------------------------------------------------------ */

.post-body {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-fg);
}

.post-body > * + * { margin-top: 1.25em; }

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--color-fg);
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.post-body h2 { font-size: 1.375rem; }
.post-body h3 { font-size: 1.1875rem; }
.post-body h4 { font-size: 1rem; }

.post-body a {
    color: var(--color-fg);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.post-body blockquote {
    border-left: 3px solid var(--color-border);
    padding-left: var(--space-5);
    margin-left: 0;
    font-style: italic;
    color: var(--color-fg-muted);
}

.post-body code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.1em 0.35em;
    border-radius: var(--radius-sm);
}

.post-body pre {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    overflow-x: auto;
    margin-block: 1.5em;
}

.post-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-block: 0.5em;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    margin-block: 1.5em;
}

.post-body th,
.post-body td {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    text-align: left;
}

.post-body th {
    background: var(--color-surface);
    font-weight: 600;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
}

.post-body ul,
.post-body ol {
    padding-left: var(--space-5);
}

.post-body li + li { margin-top: 0.35em; }

/* ---- Cover image inline in post detail ------------------------------------ */

.post-cover {
    margin-inline: calc(-1 * var(--space-4));
    margin-block: var(--space-6);
}

.post-cover img {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

/* ---- Other voices section ------------------------------------------------- */

.other-voices {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.other-voices__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-fg-muted);
    margin-bottom: var(--space-5);
    display: block;
}

.other-voices__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-4);
}

.other-voices__card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--motion-fast);
}

.other-voices__card:hover { border-color: var(--color-fg-muted); }

.other-voices__card-author {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.other-voices__dot { color: var(--author-color, var(--color-fg-muted)); font-size: 0.625rem; }

.other-voices__author-name {
    color: var(--author-color, var(--color-fg));
    text-decoration: none;
}

.other-voices__card-title {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.other-voices__card-title a {
    color: var(--color-fg);
    text-decoration: none;
}

.other-voices__card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-sm);
    order: -1; /* thumb above title */
}

.other-voices__card-meta {
    font-size: 0.8125rem;
    color: var(--color-fg-muted);
}

/* ---- Prev / next nav ------------------------------------------------------ */

.prev-next-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-top: var(--space-7);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border);
}

.prev-next-nav__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    text-decoration: none;
    color: var(--color-fg);
    padding: var(--space-3);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    transition: border-color var(--motion-fast);
}

.prev-next-nav__item:hover { border-color: var(--color-border); opacity: 1; }

.prev-next-nav__item--next { text-align: right; }

.prev-next-nav__label {
    font-size: 0.75rem;
    color: var(--color-fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.prev-next-nav__title {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    line-height: 1.3;
}

.prev-next-nav__placeholder { display: block; }

/* ---- Back to list link ---------------------------------------------------- */

.back-to-list {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    font-size: 0.875rem;
    color: var(--color-fg-muted);
    text-decoration: none;
}

.back-to-list:hover { color: var(--color-fg); opacity: 1; }

/* ==========================================================================
   16. AUTHOR PAGE
   ========================================================================== */

.author-page { padding-block: var(--space-7); }

.author-header {
    display: flex;
    gap: var(--space-5);
    align-items: flex-start;
    padding-bottom: var(--space-7);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-7);
}

@media (max-width: 480px) {
    .author-header { flex-direction: column; }
}

.author-avatar-xl {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: var(--author-color, var(--color-fg-muted));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    user-select: none;
}

.author-info { display: flex; flex-direction: column; gap: var(--space-2); }

.author-name {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--color-fg);
}

.author-stats {
    font-size: 0.875rem;
    color: var(--color-fg-muted);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.author-bio {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-fg-muted);
    font-style: italic;
    margin-top: var(--space-2);
}

.author-posts__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-fg-muted);
    margin-bottom: var(--space-5);
    display: block;
}

/* ==========================================================================
   17. ERROR PAGES
   ========================================================================== */

.error-page {
    max-width: var(--measure);
    margin-inline: auto;
    padding-block: var(--space-8);
    text-align: center;
}

.error-page__code {
    font-family: var(--font-serif);
    font-size: clamp(5rem, 20vw, 9rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--color-fg-muted);
    margin: 0;
}

.error-page__message {
    font-size: 1.125rem;
    color: var(--color-fg);
    margin-block: var(--space-4) var(--space-6);
}

.error-page__sub {
    font-size: 0.875rem;
    color: var(--color-fg-muted);
    margin-bottom: var(--space-6);
}

/* ==========================================================================
   18. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
