:root {
    --navy: #14304a;
    --navy-light: #1e4d6e;
    --navy-muted: #2a6690;
    --slate: #475c6f;
    --slate-light: #3d4f5f;
    --muted: #7a8d9e;
    --border: #d8e1e8;
    --bg: #f0f3f6;
    --card: #ffffff;
    --accent: #2d8cc4;
    --accent-warm: #d4a94e;
    --text: #1f2e3c;
    --radius: 16px;
    --shadow: 0 1px 3px rgba(14,30,50,.06), 0 8px 24px rgba(14,30,50,.07);
    --shadow-lg: 0 2px 6px rgba(14,30,50,.06), 0 16px 40px rgba(14,30,50,.10);
    --max-w: 960px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}

/* ── Accent bar ── */
.accent-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--navy) 0%, var(--accent) 50%, var(--accent-warm) 100%);
}

/* ── Header ── */
.site-header {
    background: var(--card);
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    width: clamp(120px, 16vw, 180px);
    height: auto;
    flex-shrink: 0;
}

.header-meta {
    min-width: 0;
}

.site-header h1 {
    font-size: clamp(20px, 2.8vw, 26px);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: .02em;
    line-height: 1.2;
}

.header-sub {
    margin-top: 6px;
    font-size: 13px;
    color: var(--slate-light);
    letter-spacing: .04em;
}

/* ── Main ── */
.main {
    padding: 40px 28px 48px;
}

/* ── Month card ── */
.month-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.month-card + .month-card {
    margin-top: 24px;
}

.month-card.is-latest {
    box-shadow: var(--shadow-lg);
    border-color: rgba(20,48,74,.15);
}

.month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fafbfc, #f5f7f9);
}

.month-date {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.month-year {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .06em;
}

.month-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.01em;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.status-badge.is-published {
    background: rgba(20,48,74,.07);
    color: var(--navy-light);
}

.status-badge.is-published::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3aaf6a;
    flex-shrink: 0;
}

.status-badge.is-pending {
    background: rgba(212,169,78,.10);
    color: #9a7a28;
}

.status-badge.is-pending::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-warm);
    flex-shrink: 0;
}

.month-card.is-upcoming {
    border-style: dashed;
    border-color: #d0d8e0;
    background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(244,247,250,.8));
    box-shadow: none;
}

.month-card.is-upcoming .month-header {
    background: transparent;
    border-bottom-style: dashed;
}

.month-body {
    padding: 24px 28px 28px;
}

.month-body h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 18px;
}

/* ── Metrics ── */
.metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.metric {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 14px;
    background: #f4f7fa;
    border: 1px solid #e8edf2;
    border-radius: 10px;
}

.metric-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.metric-label {
    font-size: 12px;
    color: var(--slate-light);
    white-space: nowrap;
}

/* ── Summary & Actions ── */
.month-summary {
    color: var(--slate);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.month-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--navy);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all .15s ease;
    cursor: pointer;
}

.btn:hover {
    border-color: #c0cdd8;
    box-shadow: 0 2px 8px rgba(14,30,50,.08);
}

.btn-primary {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.btn-primary:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    box-shadow: 0 4px 12px rgba(20,48,74,.20);
}

/* ── Reference ── */
.reference {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 28px 0;
}

.reference-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.reference-text p {
    font-size: 13px;
    color: var(--slate);
    line-height: 1.6;
}

.reference-text p.reference-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.reference-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border);
    background: #f8fafb;
    padding: 22px 0 28px;
}

.footer-inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.footer-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate);
}

.footer-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

.footer-credit {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.credit-label {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.footer-credit strong {
    font-size: 13px;
    color: var(--navy);
}

/* ── Responsive ── */
@media (max-width: 720px) {
    .container { padding: 0 20px; }
    .main { padding: 28px 20px 36px; }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .site-logo { width: 140px; }

    .month-header,
    .month-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .metrics { gap: 8px; }

    .metric {
        padding: 6px 10px;
    }

    .metric-val { font-size: 16px; }

    .month-actions {
        flex-direction: column;
    }

    .month-actions .btn {
        width: 100%;
    }

    .reference-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .reference-actions {
        flex-direction: column;
        width: 100%;
    }

    .reference-actions .btn {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-credit {
        align-items: flex-start;
    }
}
