/* Tokens restated verbatim from aispa.css. This page does not load style.css
   either, and the three files drifting apart is what once made AISPA read as a
   different site next to the homepage — keep them identical. */
:root {
    --fg: #0D0F0F;
    --fg2: #5c5348;
    --fg3: #8a8279;
    --bg: #ffffff;
    --bg2: #F3EFEC;
    --border: #e0d8d2;
    --border-mid: #d4ccc4;
    --brand: #8C1515;
    --brand-deep: #401415;
    --brand-hover: #6f1010;
    --accent: #E54A2B;
    --r: 8px;
    --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --mono: 'Source Code Pro', ui-monospace, monospace;
}

* { box-sizing: border-box; }

body.page-blog {
    margin: 0;
    font-family: var(--sans);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.blog-wrap {
    width: min(100% - 48px, 1120px);
    margin: 0 auto;
}

/* Present for assistive tech and for the document outline; never painted. */
.blog-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ── Rail + posts ───────────────────────────────────────────────────────── */

.blog-layout {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 0 64px;
    padding: 64px 0 96px;
}

/* Sticky so the index stays reachable once the list outgrows one screen. */
.blog-rail {
    position: sticky;
    top: 92px;
    align-self: start;
}

.blog-rail-head {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-mid);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fg3);
}

.blog-rail-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-rail-list li + li { margin-top: 4px; }

.blog-rail-list a {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 0;
    text-decoration: none;
    color: var(--fg2);
    transition: color .16s ease;
}

.blog-rail-n {
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.5;
    color: var(--fg3);
    font-variant-numeric: tabular-nums;
}

.blog-rail-t {
    font-size: 14px;
    line-height: 1.4;
}

.blog-rail-list a:hover { color: var(--brand); }
.blog-rail-list a:hover .blog-rail-n { color: var(--brand); }

.blog-rail-list a:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.blog-post {
    padding-bottom: 34px;
    border-bottom: 1px solid var(--border);
}

.blog-post + .blog-post { padding-top: 34px; }

.blog-post-date {
    margin: 0;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg3);
}

.blog-post-title {
    margin: 10px 0 0;
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.blog-post-title a {
    color: var(--fg);
    text-decoration: none;
    transition: color .16s ease;
}

.blog-post-title a:hover { color: var(--brand); }

.blog-post-excerpt {
    max-width: 640px;
    margin: 14px 0 0;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--fg2);
}

.blog-post-more {
    display: inline-block;
    margin: 18px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: border-color .16s ease;
}

.blog-post-more:hover { border-bottom-color: var(--brand); }

.blog-post-title a:focus-visible,
.blog-post-more:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

/* ── Narrow ─────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    /* The rail stops being a rail and becomes a header above the posts; a
       232px column against a squeezed article helps neither. */
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 48px;
    }

    .blog-rail {
        position: static;
    }
}

@media (max-width: 640px) {
    .blog-wrap { width: min(100% - 28px, 1120px); }
    .blog-layout { padding: 40px 0 64px; }
}
