/* HantaWatch article page styles
 * Used by /mv-hondius-timeline, /about-hantavirus, /sources
 * Variables and palette match index.html.
 */

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

:root {
    --bg-0: #0a0e14;
    --bg-1: #11161f;
    --bg-2: #1a212c;
    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.16);

    --text-0: #e6edf3;
    --text-1: #9aa6b2;
    --text-2: #6b7785;

    --accent: #38bdf8;
    --ok: #22c55e;
    --warn: #f59e0b;
    --danger: #ef4444;

    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --serif: 'Source Serif Pro', 'Georgia', serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg-0);
    color: var(--text-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ─── Header (matches index.html) ─── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-0);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.logo svg { width: 26px; height: 26px; }
.logo .accent { color: var(--accent); font-weight: 800; }

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-1);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-0); }

.nav-links a.active { border-bottom: 2px solid var(--accent); padding-bottom: 0.1rem; }

/* ─── Article layout ─── */
main {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-0);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-1);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.meta {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-2);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.meta span strong {
    color: var(--text-1);
    font-weight: 500;
}

article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.85rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-0);
}

article h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-0);
}

article p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-0);
    margin-bottom: 1.1rem;
}

article p.lead {
    font-size: 1.15rem;
    color: var(--text-1);
}

article a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    transition: border-color 0.15s;
}

article a:hover { border-bottom-color: var(--accent); }

article ul, article ol {
    padding-left: 1.5rem;
    margin-bottom: 1.1rem;
}

article li {
    margin-bottom: 0.4rem;
    line-height: 1.65;
}

article strong { color: var(--text-0); font-weight: 600; }

/* ─── Callout box ─── */
.callout {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}

.callout.warn { border-left-color: var(--warn); }
.callout.danger { border-left-color: var(--danger); }

.callout-title {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.callout.warn .callout-title { color: var(--warn); }
.callout.danger .callout-title { color: var(--danger); }

.callout p { font-size: 0.95rem; margin-bottom: 0; color: var(--text-1); }

/* ─── Timeline-specific ─── */
.timeline-event {
    border-left: 2px solid var(--border);
    padding: 0 0 1.5rem 1.25rem;
    margin-left: 0.25rem;
    position: relative;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0.4rem;
    width: 12px; height: 12px;
    background: var(--bg-0);
    border: 2px solid var(--text-2);
    border-radius: 50%;
}

.timeline-event.danger::before { border-color: var(--danger); background: var(--danger); }
.timeline-event.warn::before   { border-color: var(--warn);   background: var(--warn); }
.timeline-event.ok::before     { border-color: var(--ok);     background: var(--ok); }
.timeline-event.accent::before { border-color: var(--accent); background: var(--accent); }

.timeline-event .date {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-2);
    font-weight: 500;
    margin-bottom: 0.2rem;
    display: block;
}

.timeline-event .event-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-0);
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.timeline-event p {
    font-size: 0.92rem;
    color: var(--text-1);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ─── Source list ─── */
.source-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.source-card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem 1.1rem;
    transition: border-color 0.15s, transform 0.15s;
}

.source-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }

.source-card a {
    color: var(--text-0);
    text-decoration: none;
    border-bottom: none;
    display: block;
}

.source-card .source-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.source-card .source-meta {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.source-card .source-desc {
    font-size: 0.88rem;
    color: var(--text-1);
    line-height: 1.55;
}

/* ─── Footer ─── */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.25rem;
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-2);
    font-size: 0.8rem;
    font-family: var(--mono);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
}

footer a {
    color: var(--text-1);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

footer a:hover { color: var(--text-0); }

/* ─── Mobile ─── */
@media (max-width: 640px) {
    .nav-container { padding: 0.5rem 0.75rem; gap: 0.5rem; }
    .nav-links { gap: 0.7rem; }
    .nav-links a { font-size: 0.8rem; }
    .logo { font-size: 0.9rem; }
    .logo svg { width: 22px; height: 22px; }
    main { padding: 1.5rem 1rem 3rem; }
    h1 { font-size: 1.7rem; }
    .subtitle { font-size: 1rem; }
    article h2 { font-size: 1.25rem; margin-top: 2rem; }
    article p { font-size: 0.95rem; }
    .meta { font-size: 0.7rem; gap: 0.7rem; }
}
