:root {
  --paper: #f6f2e9;
  --paper-deep: #efe7d8;
  --ink: #1b1b1b;
  --muted: #5b5751;
  --line: #d6cfc4;
  --accent: #c14924;
  --accent-strong: #8e3217;
  --accent-cool: #1f5f6b;
  --surface: #ffffff;
  --shadow: 0 20px 45px rgba(19, 12, 6, 0.12);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #ffffff 0%, var(--paper) 45%, var(--paper-deep) 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  color: var(--accent);
}

.is-hidden {
  display: none !important;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Newsreader", serif;
  letter-spacing: -0.02em;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 20px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  transition: top 0.2s ease;
  z-index: 10;
}

.skip-link:focus {
  top: 20px;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--accent), var(--accent-cool));
  z-index: 1040;
}

.site-header {
  background: rgba(246, 242, 233, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(27, 27, 27, 0.08);
}

.navbar {
  padding: 0.75rem 0;
}

.navbar-brand {
  font-family: "Newsreader", serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.nav-link {
  font-weight: 500;
  color: var(--muted);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--ink);
}

.navbar-toggler {
  border: 1px solid var(--line);
}

.navbar-toggler-icon {
  filter: brightness(0.4);
}

.search-shell input {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.5rem 1rem;
}

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 48px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

.ticker-track span::before {
  content: "*";
  color: var(--accent);
  margin-right: 10px;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero-section {
  position: relative;
}

.story-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 55px rgba(19, 12, 6, 0.16);
}

.story-card.highlight {
  background: linear-gradient(135deg, #fff8f0, #f8f1e5);
}

.story-card.deep-dive {
  background: linear-gradient(160deg, #fff, #f0f6f6);
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(193, 73, 36, 0.1);
  color: var(--accent);
  font-weight: 600;
}

.tag.research {
  background: rgba(31, 95, 107, 0.12);
  color: var(--accent-cool);
}

.tag.policy {
  background: rgba(96, 52, 130, 0.12);
  color: #603482;
}

.tag.capital {
  background: rgba(22, 102, 67, 0.12);
  color: #166643;
}

.dot {
  opacity: 0.5;
}

.display-title {
  font-size: clamp(2.1rem, 2vw + 1.4rem, 3.3rem);
  margin-top: 1rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 1.5rem;
  align-items: center;
}

.hero-image {
  min-height: 220px;
  border-radius: 16px;
  background: radial-gradient(circle at top, rgba(193, 73, 36, 0.8), rgba(31, 95, 107, 0.6)),
    linear-gradient(120deg, #f7e1c4, #f9f4ea);
  position: relative;
  overflow: hidden;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-notes ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-strong);
}

.link-arrow::after {
  content: "->";
  transition: transform 0.2s ease;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.stacked-stories {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: 2rem;
  margin: 0;
}

.filter-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-filter {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.btn-filter.active,
.btn-filter:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.data-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.data-panels .panel {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid var(--line);
  text-align: center;
}

.data-panels h4 {
  margin-bottom: 0.2rem;
  font-size: 1.6rem;
  color: var(--accent-strong);
}

.insight-sidebar {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 110px;
}

.pick-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.pick-list li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
}

.promo-card {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, #fceadf, #f1f6f6);
}

.newsletter {
  background: linear-gradient(130deg, #f3dfd1, #f5f2ec);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  min-width: 220px;
}

.newsletter-form button {
  background: var(--accent-strong);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 1.5rem;
  margin-top: 3rem;
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-article {
  max-width: 1100px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.article-title {
  font-size: clamp(2.6rem, 2vw + 1.8rem, 3.6rem);
  margin: 1rem 0 0.75rem;
}

.article-deck {
  font-size: 1.2rem;
  color: var(--muted);
}

.article-hero {
  height: 320px;
  border-radius: 24px;
  background: radial-gradient(circle at 20% 20%, rgba(31, 95, 107, 0.8), transparent 60%),
    linear-gradient(120deg, #f0d3b7, #f7f3eb);
  margin: 2rem 0 3rem;
  position: relative;
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.article-body p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.article-body h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  color: var(--accent-strong);
  font-style: italic;
}

.article-figure {
  margin: 2rem 0;
}

.figure-box {
  height: 180px;
  border-radius: 18px;
  background: linear-gradient(120deg, #dbe8e8, #f4d9c6);
}

.article-sidebar {
  display: grid;
  gap: 1.5rem;
}

.sidebar-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.sidebar-card.audio {
  background: linear-gradient(135deg, #fbe8d5, #f2f7f5);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }

  .reveal {
    transition: none;
  }
}

@media (max-width: 991px) {
  .insight-sidebar {
    position: static;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .newsletter {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.3rem;
  }

  .story-card {
    padding: 1.4rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
