/* Shared blog theme: used by the archive page and blog posts. */
:root {
    --ink: #0e0d0b;
    --paper: #f5f0e8;
    --cream: #ede8d8;
    --accent: #c0392b;
    --muted: #7a7165;
    --rule: #cfc9b8;
    --card: #fffdf8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top, rgba(192, 57, 43, 0.06), transparent 30%),
        linear-gradient(180deg, #f8f3eb 0%, var(--paper) 100%);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

.blog-shell,
.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.blog-article {
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.75;
}

.blog-article .wrap {
    max-width: 720px;
    padding: 0 2rem;
}

.blog-article header {
    text-align: center;
}

.blog-article article {
    padding: 4rem 0 6rem;
}

.blog-article h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.blog-article h1 em {
    font-style: italic;
    color: var(--accent);
}

.blog-article .subtitle {
    font-style: italic;
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto;
}

.blog-article .byline {
    margin-top: 1.6rem;
}

.blog-article .thesis {
    border-left: 4px solid var(--accent);
    background: var(--cream);
    padding: 1.6rem 2rem;
    margin: 3rem 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    position: relative;
}

.blog-article .thesis::before {
    content: '"';
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: -1rem;
    left: 0.8rem;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.blog-article .thesis-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
    font-style: normal;
}

.blog-article h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 3.5rem 0 1rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--rule);
}

.blog-article h2 .round-num {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 0.3rem;
}

.blog-article h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 2rem 0 0.5rem;
}

.blog-article .closing {
    border-top: 2px solid var(--ink);
    padding-top: 2.5rem;
    margin-top: 4rem;
}

.blog-article .closing p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #3a3630;
    line-height: 1.75;
}

.blog-article p {
    margin-bottom: 1.2rem;
    max-width: 68ch;
}

.blog-article .intro-graf {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #3a3630;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.blog-article .divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
}

.blog-article .divider::before,
.blog-article .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.blog-article .analogy {
    border: 1px solid var(--rule);
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    background: white;
}

.blog-article .analogy-title {
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.blog-article .analogy p {
    font-size: 0.93rem;
    margin-bottom: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-article header .kicker,
.blog-article h1,
.blog-article .subtitle,
.blog-article .byline {
    animation: fadeUp 0.6s ease both;
}

.blog-article h1 {
    animation-delay: 0.1s;
}

.blog-article .subtitle {
    animation-delay: 0.2s;
}

.blog-article .byline {
    animation-delay: 0.3s;
}

.blog-header,
header {
    padding: 3rem 0 2rem;
    border-bottom: 2px solid var(--ink);
    position: relative;
    overflow: hidden;
}

.blog-header::before,
header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 31px,
            var(--rule) 31px,
            var(--rule) 32px);
    opacity: 0.28;
    pointer-events: none;
}

.kicker {
    position: relative;
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
}

.page-title,
h1 {
    position: relative;
    margin: 0.5rem 0 0.8rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.page-subtitle,
.subtitle,
.lede {
    position: relative;
    max-width: 66ch;
    margin: 0;
    font-size: 1.06rem;
    color: #37322c;
}

.top-links,
.hero-links {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.top-links a,
.hero-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid var(--rule);
    background: rgba(255, 253, 248, 0.82);
    padding: 0.78rem 1rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.blog-content,
article {
    padding-top: 2.5rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-head h2,
h2 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
}

.section-note,
.byline {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.archive-item,
.archive-empty {
    margin: 0;
    border: 1px solid var(--rule);
    background: rgba(255, 253, 248, 0.9);
    box-shadow: 0 14px 30px rgba(14, 13, 11, 0.05);
}

.archive-card {
    display: grid;
    gap: 0.55rem;
    padding: 1.25rem;
    min-height: 180px;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.archive-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 18px 36px rgba(14, 13, 11, 0.08);
}

.archive-meta,
.blog-list-date {
    font-family: 'DM Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.archive-title,
.blog-list-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    line-height: 1.15;
}

.archive-link,
.blog-list-action {
    align-self: end;
    font-family: 'DM Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.archive-empty {
    padding: 1.25rem;
    grid-column: 1 / -1;
}

.archive-empty p,
.blog-list-empty p {
    margin: 0.5rem 0 0;
    color: #3b362f;
}

.blog-footer,
footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@media (max-width: 640px) {

    .blog-shell,
    .wrap {
        padding: 0 1rem 3rem;
    }

    .blog-header,
    header {
        padding-top: 2.2rem;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}