/* Copiloted — article pages. Self-contained; matches the index design system. */

:root {
    --bg: #0a0a0b;
    --text: #e8e8e6;
    --text-dim: #a3a3a0;
    --text-faint: #55555a;
    --rule: #232326;
    --max: 1080px;
    --measure: 660px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Helvetica Neue", Helvetica, Arial, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

::selection { background: #2e2e33; color: #fff; }

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

.mono {
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* Header */
header.site {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
}

header.site .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.wordmark { display: flex; align-items: center; }
.wordmark img { height: 22px; width: auto; display: block; }

header.site nav a {
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 2.2rem;
    transition: color 0.2s ease;
}

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

/* Article header */
.article-head {
    padding: 11rem 0 4rem;
    border-bottom: 1px solid var(--rule);
}

.article-head .mono { display: block; margin-bottom: 2rem; }

.article-head h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    max-width: 24ch;
}

.article-head .byline {
    margin-top: 1.6rem;
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* Body */
main.article {
    padding: 4.5rem 0 6rem;
}

main.article .body {
    max-width: var(--measure);
}

main.article p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

main.article p strong { color: var(--text); font-weight: 500; }
main.article p em { color: var(--text-dim); }

main.article h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    margin: 3rem 0 1.2rem;
    letter-spacing: -0.005em;
}

main.article blockquote {
    border-left: 1px solid var(--text-faint);
    padding: 0.4rem 0 0.4rem 1.6rem;
    margin: 2.4rem 0;
}

main.article blockquote p {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.5;
    margin: 0;
}

main.article a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Back link */
.back {
    border-top: 1px solid var(--rule);
    padding: 2.5rem 0;
}

.back a {
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
}

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

/* Footer */
footer.site {
    border-top: 1px solid var(--rule);
    padding: 2.5rem 0 3rem;
}

footer.site .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    justify-content: space-between;
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}

footer.site a { color: var(--text-faint); text-decoration: none; }
footer.site a:hover { color: var(--text-dim); }

@media (max-width: 720px) {
    header.site nav a { margin-left: 1.2rem; }
    header.site nav a.hide-sm { display: none; }
    .article-head { padding: 8rem 0 3rem; }
    main.article { padding: 3rem 0 4rem; }
}
