/* Article pages — coryhaldeman.com writing */

:root {
    --surface: #faf9f7;
    --surface-dim: #f0eeea;
    --text: #1a1918;
    --text-secondary: #4a4845;
    --text-tertiary: #7a7672;
    --accent: #6b4c3a;
    --accent-dim: #4a352a;
    --border: #e5e2dc;
    --font: 'Source Serif 4', Georgia, serif;
}

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

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

body {
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.75;
    color: var(--text);
    background: var(--surface);
}

::selection {
    background: var(--accent);
    color: var(--surface);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text);
}

.article {
    max-width: 680px;
    margin: 0 auto;
    padding: 10rem 1.5rem 5rem;
}

.article-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
}

.article h1 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.article-subtitle {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 4rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.005em;
    color: var(--text);
    margin: 3.5rem 0 1.5rem;
}

.article-body p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1.75rem;
}

.article-body > p:first-child {
    color: var(--text);
}

.article-body a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-dim);
    padding-bottom: 1px;
    transition: border-color 0.2s ease;
}

.article-body a:hover {
    border-color: var(--accent);
}

.article-close {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    font-size: 1rem;
    color: var(--text-tertiary);
    line-height: 1.8;
}

.article-close a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-dim);
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}

.article-close a:hover {
    border-color: var(--accent);
}

footer {
    padding: 3rem 1.5rem;
    text-align: center;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s ease;
    margin: 0 0.75rem;
}

.footer-links a:hover {
    color: var(--text);
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .nav {
        padding: 1rem 1.5rem;
    }

    .article {
        padding-top: 7rem;
    }
}

/* Figures / exhibits */
.article-figure {
    margin: 3rem 0;
}

.article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    background: var(--surface);
}

.article-figure figcaption {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.6;
}
