:root {
  --paper: #F8F7F4;
  --white: #FFFFFF;
  --ink: #111827;
  --muted: #4B5563;
  --subtle: #6B7280;
  --rule: #E5E2DC;
  --emerald: #047857;
  --emerald-bg: #ECFDF5;
  --emerald-border: #A7F3D0;
  --amber: #B45309;
  --amber-bg: #FFFBEB;
  --amber-border: #FDE68A;
  --crimson: #B91C1C;
  --font-serif: "Newsreader", Georgia, Cambria, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Edition Bar */
.edition-bar {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--subtle);
}

.edition-inner {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.edition-left, .edition-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edition-right a:hover {
  color: var(--ink);
}

.divider {
  color: #D1D5DB;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald);
  font-weight: 600;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 247, 244, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
}

.brand-name {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-domain {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--subtle);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.16s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
}

.btn-primary:hover {
  background: #1F2937;
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--rule);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--ink);
}

.btn-lg {
  padding: 12px 22px;
  font-size: 15px;
}

/* Ticker */
.ticker-bar {
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid #1F2937;
}

.ticker-inner {
  padding-top: 9px;
  padding-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.ticker-label {
  flex-shrink: 0;
  background: var(--crimson);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 13px;
  scrollbar-width: none;
}

.ticker-track::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E5E7EB;
}

.ticker-item:hover {
  color: var(--white);
}

.ticker-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #34D399;
}

/* Hero */
.hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--emerald);
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  padding: 5px 10px;
  border-radius: 999px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.hero h1 {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero-lead {
  margin: 18px 0 0;
  font-size: 17px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.65;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.metric-label {
  font-size: 12px;
  color: var(--subtle);
  margin-top: 2px;
}

/* Spotlight Card */
.hero-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 6px 24px rgba(17, 24, 39, 0.05);
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--subtle);
}

.score-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.score-verified {
  background: var(--emerald-bg);
  color: var(--emerald);
  border-color: var(--emerald-border);
}

.score-developing {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: var(--amber-border);
}

.hero-card h2 {
  margin: 16px 0 0;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.25;
}

.hero-card p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.score-bar-wrap {
  margin-top: 20px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.score-bar-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.score-bar {
  height: 7px;
  background: #E5E7EB;
  border-radius: 999px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: var(--emerald);
  border-radius: 999px;
}

.card-cta {
  display: block;
  margin-top: 18px;
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.card-cta:hover {
  background: var(--emerald);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--emerald);
}

.section-head h2 {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.18;
}

.section-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 680px;
}

.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--emerald);
}

.text-link:hover {
  text-decoration: underline;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.article-card:hover {
  border-color: #9CA3AF;
  transform: translateY(-2px);
}

.article-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #F3F4F6;
}

.article-body {
  padding: 18px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.country-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.article-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.3;
}

.article-card p {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-foot {
  padding: 11px 18px;
  border-top: 1px solid var(--rule);
  background: rgba(248, 247, 244, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--subtle);
}

.article-skeleton {
  height: 290px;
  border-radius: 12px;
  background: linear-gradient(90deg, #EFECE6 25%, #F8F7F4 50%, #EFECE6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border: 1px solid var(--rule);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.fallback-banner {
  margin-top: 20px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}

.fallback-banner p {
  margin: 0 0 14px;
  color: var(--muted);
}

/* Regions */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.region-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px;
}

.region-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 20px;
}

.country-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.country-pills a {
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--rule);
  transition: border-color 0.15s ease;
}

.country-pills a:hover {
  border-color: var(--ink);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
}

.step-card h3 {
  margin: 10px 0 8px;
  font-family: var(--font-serif);
  font-size: 19px;
}

.step-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* Contact */
.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px 20px;
  min-width: 230px;
  transition: border-color 0.15s ease;
}

.contact-item:hover {
  border-color: var(--ink);
}

.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--subtle);
}

.contact-email {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--rule);
  padding: 40px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
}

.footer-note {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--subtle);
  max-width: 420px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--subtle);
}

.mono-small {
  font-family: var(--font-mono);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .articles-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 40px 0 36px;
  }
  .btn-ghost {
    display: none;
  }
  .edition-right {
    display: none;
  }
}
