/* ================================================================
   Into What Wasn't — Base Stylesheet
   Single source of truth for design tokens and shared styles.
   Page-specific styles remain inline in each document.
   ================================================================ */

:root {
    /* ── Surfaces ── */
    --bg: #08080c;
    --bg-elevated: #0e0e14;

    /* ── Text ── */
    --text: #d4cdc4;
    --text-bright: #e8e2d9;
    --text-dim: #7a746c;
    --text-muted: #5c584f;

    /* ── Accent (amber) ── */
    --amber: #c49a6c;
    --amber-dim: rgba(196, 154, 108, 0.3);
    --amber-glow: rgba(196, 154, 108, 0.08);
    --amber-strong: #8a6d4e;

    /* ── Lines & rules ── */
    --line-subtle: rgba(196, 154, 108, 0.1);
    --line-faint: rgba(226, 222, 214, 0.05);
    --line-border: rgba(196, 154, 108, 0.12);

    /* ── Typography ── */
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Outfit', system-ui, 'Helvetica Neue', sans-serif;
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.75;
    font-size: 17px;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Accessible focus ── */
:focus {
    outline: none;
}

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

/* ── Skip navigation ── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--bg-elevated);
    color: var(--amber);
    border: 1px solid var(--amber-dim);
    font-family: var(--sans);
    font-size: 0.8rem;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* ── Standard navigation (used by inner pages) ── */
.site-nav {
    padding: 2rem clamp(1.25rem, 4vw, 2rem) 0;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-nav .nav-home {
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.site-nav .nav-home:hover {
    color: var(--amber);
}

.site-nav .nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.site-nav .nav-links a {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-nav .nav-links a:hover {
    color: var(--text-bright);
}

.site-nav .nav-links a.active {
    color: var(--amber);
}

/* ── Article/entry shared elements ── */
em {
    font-style: italic;
    color: var(--text-bright);
}

strong {
    font-weight: 400;
    color: var(--amber);
}

.section-break {
    text-align: center;
    margin: 3rem 0;
    color: var(--amber-dim);
    font-size: 1.2rem;
    letter-spacing: 0.5em;
}

.voice {
    border-left: 2px solid var(--amber-dim);
    padding-left: 1.25rem;
    margin: 2rem 0;
}

.voice-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

blockquote {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-bright);
    border-left: 2px solid var(--amber);
    padding-left: 1.25rem;
    margin: 2.5rem 0;
    line-height: 1.6;
}

blockquote cite {
    display: block;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 300;
    color: var(--text-dim);
    margin-top: 0.75rem;
}

/* ── Entrance animation ── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes emerge {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Mobile breakpoint ── */
@media (max-width: 640px) {
    .site-nav {
        padding: 1.5rem 1.25rem 0;
    }

    .site-nav .nav-links {
        gap: 1rem;
    }

    .site-nav .nav-links a {
        font-size: 0.65rem;
    }

    .voice {
        padding-left: 1rem;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
