:root {
  --navy: #0e2340;
  --navy-dark: #081729;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #767676;
  --accent: #9c1c1c;
  --bg: #fbfaf7;
  --paper: #ffffff;
  --rule: #d9d5cc;
  --rule-strong: #1a1a1a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cdd6e3;
  font-size: 12px;
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.02em;
}
.topbar-tag { color: #8fa2bd; }

/* ---------- Masthead ---------- */
.masthead {
  background: var(--navy);
  text-align: center;
  padding: 30px 20px 20px;
}
.masthead-logo {
  display: inline-block;
}
.masthead-logo img {
  height: 88px;
  width: auto;
  max-width: 90vw;
  display: block;
}
.masthead-tag {
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9c3d3;
}

/* ---------- Nav ---------- */
.sitenav {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 3px solid var(--accent);
}
.sitenav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-wrap: wrap;
  overflow-x: auto;
}
.sitenav a {
  color: #e8ecf2;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 12px 14px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}
.sitenav a:hover,
.sitenav a.active {
  border-bottom-color: var(--accent);
  color: #ffffff;
}

/* ---------- Page layout ---------- */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.section-heading {
  border-bottom: 2px solid var(--rule-strong);
  margin-bottom: 24px;
  padding-bottom: 8px;
}
.section-heading h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  margin: 0;
}

.empty {
  color: var(--muted);
  font-size: 15px;
  padding: 40px 0;
}
.empty code {
  background: #efece4;
  padding: 1px 6px;
  border-radius: 3px;
}

/* ---------- Eyebrow / category tag ---------- */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.eyebrow:hover { text-decoration: underline; }

/* ---------- Lead story ---------- */
.lead-story {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.lead-story h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 12px;
}
.lead-story h1 a:hover { color: var(--accent); }

.dek {
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.byline {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ---------- Front page sections ---------- */
.front-section {
  margin-top: 44px;
  padding-top: 4px;
}
.front-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--rule-strong);
  margin-bottom: 20px;
  padding-bottom: 8px;
}
.front-section-heading h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  margin: 0;
}
.front-section-heading .see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.front-section-heading .see-all:hover { text-decoration: underline; }

.front-section .story-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.front-section .story-card h3 a:hover { color: var(--accent); }

/* ---------- Story grid ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
}
@media (max-width: 760px) {
  .story-grid { grid-template-columns: 1fr; }
}

.story-card {
  padding-top: 4px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.story-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.story-card h2 a:hover { color: var(--accent); }
.story-card .dek {
  font-size: 14px;
  margin-bottom: 8px;
}
.story-card .meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* ---------- Article page ---------- */
.page-article { max-width: 760px; }

.back-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}
.back-link:hover { text-decoration: underline; }

.full-article h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 38px;
  line-height: 1.18;
  margin: 0 0 12px;
}
.full-article .dek {
  font-size: 19px;
}
.full-article .byline {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.article-body p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 20px;
}
.article-body .source-attribution {
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

/* ---------- Footer ---------- */
.sitefooter {
  background: var(--navy-dark);
  color: #b9c3d3;
  margin-top: 40px;
}
.sitefooter-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 40px;
  text-align: center;
}
.sitefooter-logo {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}
.sitefooter-sections {
  font-size: 13px;
  margin: 0 0 14px;
}
.sitefooter-sections a { color: #b9c3d3; }
.sitefooter-sections a:hover { color: #ffffff; }
.sitefooter-disclosure {
  font-size: 12px;
  color: #7c8aa0;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}
