/* Klaxon article page styles
 * Used by /about, /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;
}

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; }

/* Language selector */
.lang-selector {
    display: flex;
    gap: 0.25rem;
    border-left: 1px solid var(--border);
    padding-left: 1rem;
    margin-left: 0.25rem;
}

.lang-btn {
    padding: 0.3rem 0.55rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-1);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--mono);
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}

.lang-btn:hover { color: var(--text-0); border-color: var(--border-strong); }

.lang-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #001018;
}

/* ─── 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); }

/* ─── 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;
}

/* ─── Event-type grid (about page roadmap) ─── */
.event-types {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.event-type-card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem 1.1rem;
    position: relative;
}

.event-type-card .status {
    position: absolute;
    top: 0.85rem;
    right: 0.9rem;
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    background: var(--bg-2);
    color: var(--text-2);
    border: 1px solid var(--border);
}

.event-type-card .status.live { background: rgba(34,197,94,0.12); color: var(--ok); border-color: rgba(34,197,94,0.35); }

.event-type-card .icon {
    width: 20px; height: 20px;
    margin-bottom: 0.55rem;
    color: var(--accent);
}

.event-type-card .name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: var(--text-0);
}

.event-type-card .desc {
    font-size: 0.82rem;
    color: var(--text-1);
    line-height: 1.5;
}

/* ─── 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; }
    .lang-selector { padding-left: 0.6rem; gap: 0.2rem; }
    .lang-btn { padding: 0.25rem 0.4rem; font-size: 0.65rem; }
    .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; }
}
