/* Daily Brief — the chrisclark.net family look (tokens, logo, toggle verbatim
   from the landing page) with news-site structure on top. */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    color-scheme: light dark;
    --bg: #F4F6FA; --surface: #FFFFFF; --surface-muted: #EEF1F7;
    --text: #0F172A; --muted: #64748B;
    --primary: #E8834F; --primary-hover: #D4703C; --secondary: #3B82F6;
    --border: rgba(15, 23, 42, 0.08);
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 8px 30px rgba(15, 23, 42, 0.14);
}
:root[data-theme="dark"] {
    --bg: #0B1220; --surface: #121A2B; --surface-muted: #1A2336;
    --text: #E6ECF3; --muted: #94A3B8;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.45);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg); color: var(--text);
    min-height: 100vh; padding: 160px 20px 60px; line-height: 1.5;
    transition: background 0.2s ease, color 0.2s ease;
}

/* -- family chrome: logo top-left, toggle top-right ----------------------- */
.site-logo {
    position: fixed; top: 16px; left: 16px; z-index: 100; display: block;
    width: 240px; height: 128px; border-radius: 10px; overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--border); background: var(--surface);
}
.site-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-toggle {
    position: fixed; top: 16px; right: 16px; z-index: 100; width: 40px; height: 40px;
    border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
    color: var(--text); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow);
    transition: transform 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: inline-block; }

/* -- masthead --------------------------------------------------------------- */
.page { width: 100%; max-width: 760px; margin: 0 auto; }
.masthead { text-align: center; margin-bottom: 36px; }
.masthead-title { font-size: 42px; font-weight: 700; letter-spacing: -0.5px; color: var(--text); text-decoration: none; }
.masthead-tagline { color: var(--muted); font-size: 16px; margin-top: 8px; }
.sections { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.sections a { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.sections a:hover { color: var(--text); }
.sections a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* -- cards ------------------------------------------------------------------ */
.cards { display: flex; flex-direction: column; gap: 12px; }
.lead { margin-bottom: 12px; }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    box-shadow: var(--shadow); padding: 20px 24px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); border-color: var(--primary); }
.lead .card { padding: 28px 30px; }
.lead .card-title { font-size: 28px; }
.kicker { color: var(--primary); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.card-title { font-size: 21px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.25; text-wrap: balance; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--primary-hover); }
.dek { color: var(--muted); font-size: 15.5px; margin-top: 8px; line-height: 1.45; }
.meta { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.meta a { color: var(--secondary); text-decoration: none; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.section-title { font-size: 28px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 18px; }

/* -- story ------------------------------------------------------------------ */
.story, .page-article { max-width: 680px; margin: 0 auto; }
.story h1, .page-article h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.15; margin: 4px 0 12px; text-wrap: balance; }
.story .dek { font-size: 18px; margin: 0 0 12px; }
.story .meta { margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.prose { font-size: 17px; line-height: 1.6; }
.prose p { margin: 0 0 18px; }
.prose h2 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; letter-spacing: -0.2px; }
.prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose a { color: var(--secondary); }
.cite { font-size: 12px; color: var(--muted); vertical-align: super; margin-left: 2px; white-space: nowrap; }
.cite a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--muted); }
.cite a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.related { margin: 24px 0; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); font-size: 14.5px; }
.related h2 { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.related ul { padding-left: 18px; } .related li { margin: 4px 0; } .related a { color: var(--secondary); }
.disclosure { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; line-height: 1.55; }
.disclosure p { margin: 0 0 10px; }
.report-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.report-link:hover { color: var(--primary-hover); }

/* -- ad slots (reserved, D7; blank until a network is configured) ---------- */
.ad-slot { min-height: 90px; margin: 24px auto; max-width: 728px; border-radius: 10px; }
.ad-slot:empty { background: transparent; }
.ad-slot-story { min-height: 250px; max-width: 336px; }

/* -- report form ------------------------------------------------------------ */
form.report label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 4px; }
form.report input[type=text], form.report textarea {
    width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); color: var(--text);
}
.honeypot { position: absolute; left: -9999px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer;
       border: 1px solid transparent; background: var(--primary); color: #fff; }
.btn:hover { background: var(--primary-hover); }
.muted { color: var(--muted); }

/* -- footer ----------------------------------------------------------------- */
.site-footer { text-align: center; margin-top: 48px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.site-footer p { max-width: 560px; margin: 0 auto; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

@media (max-width: 520px) {
    .site-logo { width: 160px; height: 88px; }
    body { padding-top: 120px; }
    .masthead-title { font-size: 32px; }
    .story h1, .page-article h1 { font-size: 27px; }
    .lead .card-title { font-size: 23px; }
    .card { padding: 16px 18px; }
}
