:root {
  --bg: #f3efe6;
  --bg-strong: #e7decb;
  --paper: rgba(255, 252, 246, 0.82);
  --ink: #11202c;
  --muted: #5f6a72;
  --accent: #0f7c82;
  --accent-dark: #0f3a4d;
  --warm: #ff8f5c;
  --line: rgba(17, 32, 44, 0.12);
  --shadow: 0 24px 60px rgba(17, 32, 44, 0.12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(15, 124, 130, 0.18), transparent 28%),
    radial-gradient(circle at left 15%, rgba(255, 143, 92, 0.22), transparent 24%),
    linear-gradient(180deg, #f8f3e9 0%, #efe7d6 100%);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 24px;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--warm), var(--accent));
  box-shadow: 0 0 0 6px rgba(255, 143, 92, 0.14);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.panel {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero,
.page-hero,
.article-hero {
  position: relative;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
  padding: 44px;
  min-height: 420px;
}

.hero::after,
.article-hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 143, 92, 0.26), transparent 68%);
  pointer-events: none;
}

.hero-copy,
.page-hero,
.article-copy {
  position: relative;
  z-index: 1;
}

.hero h1,
.page-hero h1,
.article-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
  max-width: 10ch;
}

.page-hero h1,
.article-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #f9f8f3;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.hero-metrics {
  display: grid;
  gap: 14px;
  align-content: start;
}

.metric-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(17, 32, 44, 0.04);
  border: 1px solid rgba(17, 32, 44, 0.06);
  animation: rise 700ms ease both;
}

.metric-value {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}

.metric-label {
  color: var(--muted);
}

.section-grid {
  margin-top: 42px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(15, 58, 77, 0.95), rgba(15, 124, 130, 0.88));
  color: #f6f2e9;
  box-shadow: var(--shadow);
  animation: rise 820ms ease both;
}

.featured-card h3,
.article-card h3,
.topic-card h3 {
  margin: 0 0 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  line-height: 1.05;
}

.featured-copy p:last-of-type {
  color: rgba(246, 242, 233, 0.82);
}

.featured-art,
.card-image {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.featured-art img,
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-grid,
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-card,
.topic-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 252, 246, 0.9);
  border: 1px solid rgba(17, 32, 44, 0.08);
  box-shadow: var(--shadow);
  animation: rise 900ms ease both;
}

.article-card .card-image {
  aspect-ratio: 16 / 9;
}

.card-copy p,
.topic-card p,
.story-flow p,
.story-flow li,
.channel-audience {
  color: var(--muted);
}

.meta-line,
.article-meta,
.pill-row,
.topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.pill-row span,
.topic-meta span,
.article-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.topic-card .topic-meta span,
.article-card .meta-line {
  padding: 0;
  background: none;
  border: 0;
}

.process {
  margin-top: 42px;
  padding: 28px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-steps > div {
  padding: 22px;
  border-radius: 22px;
  background: rgba(17, 32, 44, 0.04);
}

.process-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--warm), #ffd277);
}

.page-hero {
  padding: 36px;
  margin-top: 18px;
}

.article-layout {
  margin-top: 20px;
}

.article-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 32px;
}

.cover-frame {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(17, 32, 44, 0.08);
}

.article-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-top: 24px;
}

.story-rail {
  display: grid;
  gap: 14px;
  align-content: start;
  position: sticky;
  top: 16px;
  height: fit-content;
}

.rail-card,
.story-section,
.faq-block,
.sources-block,
.cta-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 252, 246, 0.92);
  border: 1px solid rgba(17, 32, 44, 0.08);
  box-shadow: var(--shadow);
}

.rail-card p:last-child,
.rail-card a {
  margin: 0;
  color: var(--muted);
}

.rail-label {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.story-flow {
  display: grid;
  gap: 18px;
}

.story-section h2,
.faq-block h2,
.sources-block h2 {
  margin-top: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.9rem;
  line-height: 1.08;
}

.story-section ul,
.sources-block ul {
  padding-left: 18px;
}

.faq-block details {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.faq-block details:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.faq-block summary {
  cursor: pointer;
  font-weight: 700;
}

.review-note {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 143, 92, 0.14);
  color: var(--ink);
}

.cta-card {
  background: linear-gradient(135deg, rgba(15, 124, 130, 0.12), rgba(255, 143, 92, 0.14));
}

.empty-state {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 252, 246, 0.88);
  border: 1px dashed rgba(17, 32, 44, 0.16);
  color: var(--muted);
}

.site-footer {
  padding: 34px 0 12px;
  color: var(--muted);
  text-align: center;
}

.stagger-item:nth-child(2) {
  animation-delay: 80ms;
}

.stagger-item:nth-child(3) {
  animation-delay: 140ms;
}

.stagger-item:nth-child(4) {
  animation-delay: 200ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero,
  .featured-card,
  .article-hero,
  .article-body {
    grid-template-columns: 1fr;
  }

  .process-steps,
  .card-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .story-rail {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100vw - 20px, 100%);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .page-hero,
  .article-hero,
  .process {
    padding: 24px;
  }

  .hero h1 {
    font-size: 2.9rem;
  }

  .page-hero h1,
  .article-copy h1 {
    font-size: 2.3rem;
  }
}
