/* =========================================================
   What's On Dublin — shared "Night pages" theme (July 2026)
   Loaded AFTER each page's own <style> so these tokens win.
   Pages keep their old variable names; only the values and
   the shared nav/hero/footer components live here.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Archivo:wght@400;500;600;700&display=swap');

:root {
    --bg: #faf7f0;
    --surface: #ffffff;
    --surface-hover: #f2ede2;
    --border: #e6dfd0;
    --text: #1c1a14;
    --text-muted: #71695a;
    --accent: #9a6200;
    --accent-hover: #7d4f00;
    --green: #177a4c;
    --orange: #b06e10;
    --red: #b3372e;
    --purple: #7b4fc9;
    --gold: #9a6200;
    --pink: #c2447e;
    --spotify: #169c46;
    --radius: 12px;
    --chip-on-bg: #1c1a14;
    --chip-on-ink: #faf7f0;
}

:root[data-theme="dark"] {
    --bg: #0f1218; --surface: #171b23; --surface-hover: #1e232e;
    --border: #262c39; --text: #f2eee4; --text-muted: #98a0b2;
    --accent: #f0b03c; --accent-hover: #ffc961;
    --green: #43cf90; --orange: #f0983c; --red: #ff7a6b;
    --purple: #c9a2ff; --gold: #f0b03c; --pink: #ff8fc7;
    --chip-on-bg: #f2eee4; --chip-on-ink: #12151c;
}
:root[data-theme="light"] {
    --bg: #faf7f0; --surface: #ffffff; --surface-hover: #f2ede2;
    --border: #e6dfd0; --text: #1c1a14; --text-muted: #71695a;
    --accent: #9a6200; --accent-hover: #7d4f00;
    --green: #177a4c; --orange: #b06e10; --red: #b3372e;
    --purple: #7b4fc9; --gold: #9a6200; --pink: #c2447e;
    --chip-on-bg: #1c1a14; --chip-on-ink: #faf7f0;
}

.theme-toggle {
    color: var(--text-muted); line-height: 0; padding: .4rem; border-radius: 99px;
    background: none; border: none; cursor: pointer;
    transition: color .15s, background .15s;
}
.theme-toggle:hover { color: var(--text); background: var(--surface-hover); }
.theme-toggle svg { width: 17px; height: 17px; }

body {
    font-family: 'Archivo', system-ui, -apple-system, sans-serif !important;
    background: var(--bg);
    color: var(--text);
}
.anton { font-family: 'Anton', 'Arial Narrow', sans-serif; font-weight: 400; letter-spacing: .01em; }

/* ---------- Shared nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 500;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .nav { background: var(--bg); } }
.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; gap: 1.2rem; height: 58px;
}
.wordmark {
    font-family: 'Anton', 'Arial Narrow', sans-serif; font-weight: 400;
    font-size: 1.15rem; text-transform: uppercase; text-decoration: none;
    white-space: nowrap; letter-spacing: .04em; color: var(--text);
}
.wordmark em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: .15rem; margin-right: auto; }
.nav-links a {
    text-decoration: none; color: var(--text-muted); font-size: .82rem; font-weight: 500;
    padding: .35rem .6rem; border-radius: 99px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-hover); }
.nav-links a.on { color: var(--text); font-weight: 600; }
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-inner { justify-content: space-between; }
}
/* mobile page links (since nav links hide) — one scrollable line */
.page-links {
    display: none; flex-wrap: nowrap; gap: .35rem;
    max-width: 1100px; margin: 0 auto; padding: .7rem 20px 0;
    overflow-x: auto; scrollbar-width: none;
}
.page-links::-webkit-scrollbar { display: none; }
.page-links a {
    text-decoration: none; font-size: .72rem; font-weight: 600; color: var(--text-muted);
    border: 1px solid var(--border); border-radius: 99px; padding: .22rem .55rem;
    white-space: nowrap; flex: 0 0 auto;
}
@media (max-width: 900px) { .page-links { display: flex; } }

/* ---------- Shared page hero ---------- */
.page-hero { max-width: 1100px; margin: 0 auto; padding: 1.7rem 20px .4rem; }
.page-hero .hero-line { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.page-hero h1 {
    font-family: 'Anton', 'Arial Narrow', sans-serif; font-weight: 400;
    font-size: 1.9rem; text-transform: uppercase; letter-spacing: .02em; margin: 0;
    color: var(--text);
}
.page-hero h1 span { color: var(--accent); }
.page-hero .hero-tag { font-size: .88rem; font-weight: 500; color: var(--text-muted); }
.page-hero .hero-stats { font-size: .78rem; color: var(--text-muted); margin-left: auto; white-space: nowrap; }
.page-hero .hero-stats strong { color: var(--text); font-weight: 600; }
@media (max-width: 700px) { .page-hero .hero-tag { display: none; } .page-hero .hero-stats { margin-left: 0; } }

/* Big screens scale up, matching index */
@media (min-width: 1280px) {
    html { font-size: 17.5px; }
    .nav-inner, .page-hero, .page-links { max-width: 1340px; }
}
