:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #0b1e3f 0%, #020617 45%, #01040f 100%);
  color: #e2e8f0;
}

.container {
  width: min(1080px, 100% - 2rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 3rem;
}

.hero {
  padding: 0;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
}

.subhead {
  color: #b8c6dd;
  max-width: 68ch;
  margin: 0 auto;
}

.metrics {
  margin-top: clamp(1.9rem, 4.5vw, 3rem);
  margin-bottom: clamp(2.8rem, 6vw, 4rem);
  display: grid;
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  margin-inline: auto;
}

.metric-card {
  background: linear-gradient(180deg, #111b31 0%, #0b1427 100%);
  border: 1px solid #2a3950;
  border-radius: 1rem;
  padding: clamp(1.15rem, 2.8vw, 1.65rem);
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.42);
  text-align: center;
  display: grid;
  align-content: center;
  min-height: clamp(150px, 19vw, 190px);
}

.metric-card h2 {
  margin: 0;
  color: #c2cfdf;
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  font-weight: 650;
  line-height: 1.35;
}

.metric-value {
  margin: 0.45rem 0 0;
  font-size: clamp(2.35rem, 7.6vw, 3.55rem);
  font-weight: 800;
  font-family: "Avenir Next Condensed", "Inter", "Segoe UI", Roboto, sans-serif;
  color: #fb7185;
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-variant-numeric: lining-nums tabular-nums;
  text-shadow: 0 0 8px rgba(251, 113, 133, 0.25), 0 0 20px rgba(239, 68, 68, 0.14);
  word-break: break-word;
}

.updates {
  margin-top: 0;
}

.updates h2 {
  margin-bottom: 0.4rem;
  text-align: center;
}


.update-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.95rem;
}

.update-item {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  padding: 1rem;
}

.update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.meta {
  margin: 0;
  color: #94a3b8;
  font-size: 0.875rem;
}

.update-item h3 {
  margin-top: 0.55rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

.update-item p {
  margin-top: 0;
}

.impact {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.impact-lives {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}

.impact-cost {
  background: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
}


.update-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.status-pill {
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-pill-confirmed {
  color: #86efac;
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.28);
}

.status-pill-unconfirmed {
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.28);
}

.update-item.status-unconfirmed {
  border-color: #334155;
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.12);
}

.update-item a {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: none;
}

.update-item a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .container {
    width: min(1080px, 100% - 1.5rem);
  }

  .metrics {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .update-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

}

@media (max-width: 460px) {
  .container {
    width: min(1080px, 100% - 1.75rem);
  }

  .metric-card,
  .update-item {
    padding: 0.85rem;
  }

  .metric-card {
    min-height: 130px;
  }

  .metric-value {
    font-size: clamp(2.1rem, 11.5vw, 2.8rem);
  }

}


.view-sources-btn {
  background: transparent;
  border: 0;
  padding: 0;
  color: #93c5fd;
  font-weight: 600;
  cursor: pointer;
}

.view-sources-btn:hover {
  text-decoration: underline;
}


.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
}

.modal-content {
  position: relative;
  width: min(620px, calc(100% - 2rem));
  max-height: 80vh;
  overflow: auto;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.85rem;
  padding: 1rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.modal-header h3 {
  margin: 0;
}

.modal-close {
  background: transparent;
  border: 0;
  color: #cbd5e1;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.sources-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.sources-item {
  border: 1px solid #1e293b;
  border-radius: 0.6rem;
  padding: 0.75rem;
  background: #111827;
}

.sources-item a {
  color: #bfdbfe;
  font-weight: 600;
  text-decoration: none;
}

.sources-item a:hover {
  text-decoration: underline;
}

.sources-item p {
  margin: 0.3rem 0 0;
  color: #94a3b8;
  font-size: 0.85rem;
}
