/* The Unlikely If — site styles. No external fonts or scripts (privacy + speed). */
:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #121826;
  --muted: #5b6475;
  --line: #e3e7ef;
  --accent: #1f6bff;
  --accent-ink: #ffffff;
  --navy: #0d1630;
  --quote: #eef3ff;
  --radius: 14px;
  --maxw: 1080px;
  --readw: 700px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1122; --surface: #121a31; --text: #e8ecf5; --muted: #9aa5bd;
    --line: #223053; --accent: #5b93ff; --navy: #050914; --quote: #16224a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); }
img, iframe { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.read { max-width: var(--readw); margin: 0 auto; }

/* Header */
.site-header { background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -0.01em; font-size: 19px; }
.brand img { width: 34px; height: 34px; flex: none; border-radius: 8px; }
.nav { display: flex; gap: 18px; font-size: 15px; flex-wrap: wrap; }
.nav a { color: #c9d4ee; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 56px 0 64px; }
.hero h1 { font-family: var(--serif); font-size: clamp(34px, 6vw, 58px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.02em; max-width: 14ch; }
.hero p { color: #c9d4ee; font-size: 19px; max-width: 46ch; margin: 0 0 24px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.btn:hover { filter: brightness(1.08); }

/* Cards */
.section { padding: 48px 0; }
.section h2 { font-size: 24px; margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card .kicker { font-size: 13px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.card h3 { font-family: var(--serif); font-size: 22px; line-height: 1.25; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card.soon { opacity: .6; pointer-events: none; }

/* Article */
.article-head { padding: 40px 0 8px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.article-head h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 46px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.015em; }
.meta { color: var(--muted); font-size: 14.5px; }
.answer { background: var(--quote); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 20px; margin: 28px 0; }
.answer strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 6px; }
.article-body h2 { font-family: var(--serif); font-size: 28px; line-height: 1.25; margin: 44px 0 12px; }
.article-body h3 { font-size: 20px; margin: 28px 0 8px; }
.article-body p, .article-body li { margin: 0 0 16px; }
.article-body ul, .article-body ol { padding-left: 22px; }
.timeline { list-style: none; padding: 0 !important; margin: 24px 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline b { display: block; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--surface); }
.video { position: relative; aspect-ratio: 9 / 16; max-width: 360px; margin: 28px auto; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 16px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; }
.sources { font-size: 15px; color: var(--muted); }
.note { font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; }

/* Ad slot placeholder (AdSense Auto ads place themselves; this just reserves no space) */
.ad-slot { margin: 28px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 28px 0 40px; color: var(--muted); font-size: 14.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); margin-right: 14px; }

/* Simple pages */
.page { padding: 40px 0; }
.page h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 42px); margin: 0 0 18px; }
.page h2 { font-size: 21px; margin: 32px 0 8px; }
