@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Literata:opsz,wght@7..72,400;7..72,500;7..72,600;7..72,700;7..72,800&display=swap');

:root { --font-inter: 'Inter'; --font-literata: 'Literata'; }

:root {
  --bg: #f6f8fb;
  --paper: #ffffff;
  --ink: #102235;
  --ink-soft: #42566c;
  --muted: #718096;
  --line: #dce5ef;
  --cobalt: #174a7c;
  --cobalt-deep: #0c2f55;
  --cobalt-soft: #d9e8f5;
  --aqua: #7ec4c1;
  --sand: #efe7d7;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(12, 47, 85, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(23, 74, 124, 0.08), transparent 34rem),
    radial-gradient(circle at top right, rgba(126, 196, 193, 0.24), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-inter), ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--cobalt-deep);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 74, 124, 0.22);
  border-radius: 50%;
  background: var(--paper);
  color: var(--cobalt);
  font-family: var(--font-literata), serif;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--font-literata), serif;
  font-size: 1.08rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 44px;
  align-items: center;
  padding: 24px 0 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cobalt);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-literata), Georgia, serif;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.65rem, 5.6vw, 5.45rem);
  font-weight: 650;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 620;
}

h3 {
  font-size: 1.45rem;
}

.hero-lede {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 700;
}

.button.primary {
  background: var(--cobalt-deep);
  color: #fff;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--cobalt-deep);
}

.hero-panel {
  position: relative;
  min-height: 590px;
}

.hero-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 74, 124, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(16, 34, 53, 0.06), rgba(16, 34, 53, 0.35)),
    url("/images/cobaltatlas-hero.png") center / cover,
    linear-gradient(135deg, #dce8f3, #f7f9fb);
  box-shadow: var(--shadow);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 12px;
}

.map-card {
  position: absolute;
  width: min(290px, 70%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 48px rgba(12, 47, 85, 0.16);
}

.map-card span {
  display: block;
  color: var(--cobalt);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.map-card strong {
  display: block;
  margin-top: 8px;
  line-height: 1.35;
}

.map-card-a {
  left: -20px;
  bottom: 78px;
}

.map-card-b {
  right: -12px;
  top: 70px;
}

.atlas-section,
.split-section,
.evidence-section,
.article-list {
  padding: 78px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.topic-grid,
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topic-card,
.evidence-card,
.score-panel,
.post-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.topic-card {
  min-height: 240px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topic-card span,
.post-row span,
.score-label {
  color: var(--cobalt);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: start;
}

.split-section p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--cobalt);
  font-weight: 800;
}

.score-panel {
  padding: 24px;
}

.score-panel div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.score-panel div:last-child {
  border-bottom: 0;
}

.evidence-card {
  min-height: 170px;
  padding: 22px;
}

.evidence-card span {
  display: block;
  color: var(--aqua);
  font-family: var(--font-literata), serif;
  font-size: 2.8rem;
}

.evidence-card p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.post-list {
  display: grid;
  gap: 10px;
}

.post-row {
  display: grid;
  grid-template-columns: 150px 1fr 110px;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
}

.post-row small {
  color: var(--muted);
  text-align: right;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 40px auto 0;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.site-footer strong {
  color: var(--ink);
}

.article-header-nav {
  border-bottom: 1px solid var(--line);
}

.article-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 780px);
  gap: 54px;
  align-items: start;
  padding: 54px 0 90px;
}

.evidence-rail {
  position: sticky;
  top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
}

.rail-kicker {
  display: block;
  color: var(--cobalt);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.evidence-rail strong {
  display: block;
  margin-top: 10px;
  line-height: 1.35;
}

.evidence-rail dl {
  margin: 20px 0 0;
}

.evidence-rail div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.evidence-rail dt {
  color: var(--muted);
  font-size: 0.76rem;
}

.evidence-rail dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.article-body {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: clamp(28px, 5vw, 58px);
  box-shadow: 0 20px 60px rgba(12, 47, 85, 0.08);
}

.article-body h1 {
  font-size: clamp(2.3rem, 4.8vw, 4.55rem);
}

.article-intro {
  color: var(--ink-soft);
  font-size: 1.25rem;
  line-height: 1.72;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-content {
  color: #21364d;
  font-size: 1.06rem;
  line-height: 1.82;
}

.article-content h2,
.faq-section h2,
.source-note h2 {
  margin-top: 46px;
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.article-content p {
  margin: 0 0 18px;
}

.article-content a {
  color: var(--cobalt);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--cobalt);
  background: var(--cobalt-soft);
  color: var(--cobalt-deep);
  font-family: var(--font-literata), serif;
  font-size: 1.22rem;
  line-height: 1.55;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 0.95rem;
}

.article-content th,
.article-content td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: #eef4f9;
  color: var(--cobalt-deep);
}

.article-content ul,
.article-content ol {
  padding-left: 1.4rem;
}

.faq-section,
.source-note {
  margin-top: 42px;
  padding-top: 8px;
}

details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p,
.source-note p {
  color: var(--ink-soft);
  line-height: 1.72;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero,
  .split-section,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    min-height: 420px;
  }

  .topic-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .post-row {
    grid-template-columns: 1fr;
  }

  .post-row small {
    text-align: left;
  }

  .evidence-rail {
    position: static;
  }
}

@media (max-width: 560px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 3.1rem;
  }

  .hero-panel {
    min-height: 360px;
  }

  .map-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: calc(100% - 24px);
    margin: 12px;
  }

  .hero-visual {
    position: relative;
    min-height: 260px;
  }

  .site-footer {
    flex-direction: column;
  }
}
