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

:root {
    --bg: #f4f0e8;           /* paper */
    --text: #1c1a17;         /* ink */
    --text-dim: #4a463f;     /* long-form body: a touch darker than index for reading comfort */
    --text-faint: #6f685d;
    --rule: #ddd6c9;
    --accent: #ea822b;       /* brand orange */
    --accent-ink: #a94f17;
    --max: 1200px;
    --measure: 720px;
}

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

html { scroll-behavior: smooth; color-scheme: light; }

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

::selection { background: rgba(234, 130, 43, 0.28); color: var(--text); }

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

.mono {
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 12px;
    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(244, 240, 232, 0.84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
}

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

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

header.site nav a {
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 2.4rem;
    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: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.article-head .mono::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
}

.article-head h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    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: 2px solid var(--accent);
    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-decoration-color: var(--accent);
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

main.article a:hover { color: var(--accent-ink); }

/* 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(--accent-ink); }

/* Footer */
footer.site {
    border-top: 1px solid var(--text);
    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; }
    header.site .wrap { height: 72px; }
    .wordmark img { height: 34px; }
    .article-head { padding: 8rem 0 3rem; }
    main.article { padding: 3rem 0 4rem; }
}
