:root {
  --bg: #0d1b2a;
  --bg-2: #14243a;
  --surface: #ffffff;
  --surface-2: #f6f3ec;
  --ink: #0d1b2a;
  --ink-2: #45556c;
  --muted: #6b7a90;
  --line: #dfe5ef;
  --accent: #e08e2a;
  --accent-2: #b76812;
  --good: #1f7a4a;
  --bad: #b03030;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(13, 27, 42, 0.08);
  --maxw: 1180px;
  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:wght@600;700;800&display=swap');
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--surface-2);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.7rem; font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); font-size: .92rem; }
.two-col { columns: 2; column-gap: 24px; }
.two-col li { break-inside: avoid; }

/* Header */
.site-header {
  background: var(--bg);
  color: #fff;
  border-bottom: 4px solid var(--accent);
}
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  background: var(--accent);
  color: var(--bg);
  font-family: var(--serif);
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: .02em;
}
.brand-name { font-family: var(--serif); font-size: 1.25rem; }
.primary-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.primary-nav a { color: #f6f3ec; font-weight: 500; }
.primary-nav a:hover { color: var(--accent); text-decoration: none; }

/* Main */
.site-main { padding: 32px 24px 56px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.hero h1 { font-size: 2.6rem; }
.hero p.lede { font-size: 1.15rem; color: var(--ink-2); }
.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--accent-2); color: #fff; text-decoration: none; }
.btn.secondary { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent-2); background: transparent; }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cards.cols-3, .cards.cols-4 { grid-template-columns: repeat(2,1fr); } .hero { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cards.cols-2, .cards.cols-3, .cards.cols-4 { grid-template-columns: 1fr; } .two-col { columns: 1; } .hero h1 { font-size: 2rem; } h1 { font-size: 1.8rem; } }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card h3 { margin: 0; font-size: 1.15rem; }
.card .meta { color: var(--muted); font-size: .85rem; }
.card .blurb { color: var(--ink-2); }
.card .more { font-weight: 600; margin-top: auto; padding-top: 8px; }

/* Section */
.section { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-bottom: 24px; }
.section.no-shadow { box-shadow: none; background: transparent; padding: 0; }

/* Article */
.article { background: var(--surface); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.article h1 { margin-top: 0; }
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--ink-2); }

/* Question page */
.question-card { background: var(--surface); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); margin-bottom: 24px; }
.question-tag { display: inline-block; padding: 4px 10px; background: var(--surface-2); border-radius: 99px; font-size: .8rem; color: var(--ink-2); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.question-text { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; margin: 14px 0 18px; line-height: 1.35; }
.choices { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.choices li {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  background: #fff;
}
.choices li.correct { border-color: var(--good); background: #ecf7f0; }
.choices li .key {
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  padding: 2px 9px;
  font-family: var(--serif);
  height: 28px;
}
.choices li.correct .key { background: var(--good); }
.answer-box {
  background: var(--surface-2);
  border-left: 4px solid var(--good);
  padding: 18px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}
.answer-box strong { color: var(--good); }

.q-pager { display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.q-pager a { font-weight: 600; }

/* Adsense slot placeholders – replaced with real ads later */
.ad-slot { min-height: 90px; }

/* Sidebar layout */
.with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .with-sidebar { grid-template-columns: 1fr; } }
.sidebar .widget { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.sidebar h4 { margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.sidebar ul { padding-left: 0; list-style: none; margin: 0; }
.sidebar li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.sidebar li:last-child { border-bottom: 0; }

/* Footer */
.site-footer { background: var(--bg-2); color: #cfd8e6; margin-top: 60px; padding: 48px 0 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; padding: 0 24px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #cfd8e6; }
.site-footer a:hover { color: var(--accent); }
.site-footer .muted { color: #8aa1bd; }
.footer-bottom { border-top: 1px solid #1f2f47; margin-top: 28px; padding: 18px 24px 0; font-size: .85rem; color: #8aa1bd; }

/* Tables / stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2,1fr); } }
.stat { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-align: center; }
.stat .num { font-family: var(--serif); font-size: 2rem; font-weight: 800; color: var(--accent-2); }
.stat .lbl { color: var(--muted); font-size: .85rem; }

/* Lists */
.q-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.q-list a { display: block; padding: 12px 14px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); color: var(--ink); }
.q-list a:hover { background: var(--surface-2); text-decoration: none; }
.q-list .num { color: var(--accent-2); font-weight: 700; margin-right: 8px; font-family: var(--serif); }
