/* ==========================================================================
   Variables
   ========================================================================== */

:root {
    color-scheme: light;
    --bg: #f6f3ed;
    --paper: #fffdf8;
    --ink: #1e2428;
    --muted: #667079;
    --line: #d8d1c6;
    --accent: #0b6f70;
    --accent-dark: #084e50;
    --panel: #e8f0ee;
}


/* ==========================================================================
   Base
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
}

a {
    color: var(--accent-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.88);
}

.site-nav {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--accent-dark);
}


/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 36px;
}

.eyebrow {
    margin: 0 0 18px;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

h1 {
    margin: 0 0 20px;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1;
    font-weight: 700;
}

.dek {
    margin: 0;
    max-width: 720px;
    font-family: Arial, sans-serif;
    font-size: 1.08rem;
    line-height: 1.5;
    color: var(--muted);
}


/* ==========================================================================
   Post List
   ========================================================================== */

.post-list {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.post-card {
    display: block;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.post-card h2 {
    margin: 0 0 8px;
    font-size: 1.55rem;
    line-height: 1.2;
}

.post-card p {
    margin: 0;
    color: var(--muted);
}


/* ==========================================================================
   Article Layout
   ========================================================================== */

article {
    background: var(--paper);
}

.article-shell {
    width: 100%;
    padding: 64px 24px 72px;
}

.article-header {
    max-width: 800px;
    margin: 0 auto;
}

.article-header h1 {
    margin-bottom: 22px;
    font-family: Arial, sans-serif;
    font-size: clamp(2.8rem, 5vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.article-meta {
    margin: 16px 0 0;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: var(--muted);
}

.article-author {
    font-weight: 700;
    color: var(--ink);
}

.draft-note {
    max-width: 650px;
    margin: 40px auto 0;
    padding: 18px 20px;
    border-left: 4px solid var(--accent);
    background: var(--panel);
    font-family: Arial, sans-serif;
    color: #203033;
}


/* ==========================================================================
   Article Body
   ========================================================================== */

.article-body {
    max-width: 680px;
    margin: 48px auto 0;
    font-size: 1.13rem;
    line-height: 1.7;
}


/* Article Images
   -------------------------------------------------------------------------- */

.article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 32px auto;
}


/* Article Tables
   -------------------------------------------------------------------------- */

.article-body table {
    width: 100%;
    margin: 32px 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.98rem;
    line-height: 1.5;
}

.article-body th,
.article-body td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.article-body th {
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--panel);
}

.article-body tbody tr:last-child td {
    border-bottom: 0;
}


/* Article Typography
   -------------------------------------------------------------------------- */

.article-body h2 {
    margin: 44px 0 14px;
    font-size: 1.55rem;
    line-height: 1.25;
}

.article-body p {
    margin: 0 0 22px;
}

.article-body ul {
    margin: 0 0 26px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-author-note {
    max-width: 680px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
}

.article-author-note p {
    margin: 0;
}


/* Blockquotes
   -------------------------------------------------------------------------- */

blockquote {
    margin: 34px 0;
    padding: 0 0 0 22px;
    border-left: 4px solid var(--line);
    color: #38444a;
    font-size: 1.28rem;
    line-height: 1.45;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 24px 56px;
    border-top: 1px solid var(--line);
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: var(--muted);
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
    .site-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .article-shell {
        padding: 44px 20px 56px;
    }

    .article-header h1 {
        font-size: clamp(2.45rem, 12vw, 3rem);
        line-height: 1.02;
    }

    .article-body {
        margin-top: 40px;
    }

    .article-meta-separator {
        display: none;
    }

    .article-meta {
        display: grid;
        gap: 2px;
    }

    .article-body table {
        display: block;
        overflow-x: auto;
    }
}
