:root {
  --navy: #0B2847;
  --navy-deep: #071A30;
  --navy-soft: #15375E;
  --white: #F8FAFC;
  --white-soft: #E6EBF1;
  --ink: #1A2332;
  --ink-soft: #3A4556;
  --amber: #F59E0B;
  --amber-soft: #FBBF24;
  --sea: #6B7B8C;
  --sea-light: #A4B0BD;
  --line: #E1E7ED;
  --line-dark: rgba(248, 250, 252, 0.12);
  --bg: #FDFDFB;
  --card: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--amber); }
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.875rem; margin-top: 2.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.625rem; margin-top: 1.5rem; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.25rem; margin-bottom: 1rem; }
li { margin-bottom: 0.25rem; }
code, kbd { font-family: 'JetBrains Mono', monospace; font-size: 0.875em; background: rgba(11, 40, 71, 0.06); padding: 0.125em 0.35em; border-radius: 3px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }

/* ============ Header ============ */
.site-header {
  background: var(--navy-deep);
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--amber); }
.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--white-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.375rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* ============ Breadcrumbs ============ */
.breadcrumbs {
  padding: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--sea);
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--sea-light);
}
.breadcrumbs a { color: var(--sea); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs [aria-current] { color: var(--ink-soft); }

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(245, 158, 11, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(21, 55, 94, 0.8) 0%, transparent 50%),
    var(--navy-deep);
  color: var(--white);
  padding: 4rem 0 4rem;
}
.hero h1 { color: var(--white); max-width: 780px; }
.hero h1 .accent { color: var(--amber); font-style: italic; }
.hero .lede {
  color: var(--white-soft);
  font-size: 1.125rem;
  max-width: 680px;
  margin-top: 1rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  max-width: 820px;
}
.stat-card {
  background: rgba(248, 250, 252, 0.04);
  border: 1px solid rgba(248, 250, 252, 0.1);
  border-radius: 10px;
  padding: 1.25rem;
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
  display: block;
}
.stat-label { color: var(--sea-light); font-size: 0.875rem; margin-top: 0.375rem; }

/* ============ Cards ============ */
.section { padding: 3rem 0; }
.section-title { margin-bottom: 1.5rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
  box-shadow: 0 8px 24px rgba(11, 40, 71, 0.08);
  color: inherit;
}
.card-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy-soft), var(--navy-deep));
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
  opacity: 0.4;
}
.card-body { padding: 1rem 1.125rem; flex: 1; }
.card-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 0.375rem;
  line-height: 1.25;
}
.card-meta {
  font-size: 0.8125rem;
  color: var(--sea);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.card-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }

/* ============ State page ============ */
.state-header {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0;
}
.state-header h1 { color: var(--white); }
.state-header p { color: var(--white-soft); max-width: 720px; margin-top: 0.5rem; }

/* ============ Detail page ============ */
.detail-hero {
  background: var(--navy-deep);
  color: var(--white);
  padding: 3rem 0;
}
.detail-hero h1 { color: var(--white); }
.detail-hero .detail-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--sea-light);
  font-size: 0.9375rem;
  margin-top: 0.75rem;
}
.detail-hero .detail-meta strong { color: var(--white); }
.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3rem;
  padding: 3rem 0;
}
@media (max-width: 860px) {
  .detail-body { grid-template-columns: 1fr; gap: 2rem; }
}
.detail-main > img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}
.detail-main .image-credit {
  font-size: 0.8125rem;
  color: var(--sea);
  margin-top: -1.25rem;
  margin-bottom: 1.5rem;
}
.sidebar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  font-size: 0.9375rem;
  align-self: start;
}
.sidebar h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sea);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.sidebar h3:first-child { margin-top: 0; }
.sidebar dl { font-family: 'JetBrains Mono', monospace; font-size: 0.875rem; }
.sidebar dt { color: var(--sea); margin-top: 0.5rem; }
.sidebar dd { color: var(--ink); }

/* ============ Article ============ */
.article-content p, .article-content ul, .article-content ol {
  max-width: 680px;
}
.article-content blockquote {
  border-left: 3px solid var(--amber);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--ink-soft);
  font-style: italic;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--navy-deep);
  color: var(--white-soft);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.site-footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.875rem;
}
.site-footer a { color: var(--sea-light); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col p { font-size: 0.875rem; color: var(--sea-light); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.375rem; font-size: 0.875rem; }
.footer-attrib {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--sea);
}
.footer-attrib p { margin-bottom: 0.5rem; }
.footer-attrib strong { color: var(--white-soft); font-weight: 500; }

/* ============ State list ============ */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.state-link {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.state-link:hover { border-color: var(--amber); transform: translateY(-2px); color: inherit; }
.state-name { font-family: 'Fraunces', serif; font-size: 1.125rem; font-weight: 600; color: var(--navy); }
.state-count { font-size: 0.875rem; color: var(--sea); margin-top: 0.25rem; }

/* ============ Utilities ============ */
.muted { color: var(--sea); }
.amber { color: var(--amber); }
.tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.12);
  color: #B8760B;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.tag.heritage { background: rgba(11, 40, 71, 0.08); color: var(--navy); }

/* Ad slots */
.ad-slot {
  margin: 2rem 0;
  text-align: center;
  min-height: 90px;
}
.ad-slot-label {
  font-size: 0.75rem;
  color: var(--sea);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
