@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --bg: #ffffff;
  --ink: #1c1c1c;
  --muted: #666666;
  --line: #e7e7e7;
  --blue: #2456c7;
  --cases: #1f1f1f;
  --deaths: #b32121;
  --recovered: #4a9e2b;
  --panel: #fafafa;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 18px 44px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 0.98rem;
  font-weight: 700;
}

.toplinks {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
}

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

.hero-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1 {
  margin: 12px 0 8px;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 0.98;
}

.hero-status {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 700;
}

.hero-updated,
.hero-summary {
  margin: 8px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

.totals {
  margin-top: 10px;
}

.total {
  padding: 24px 0 26px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.total:last-child {
  border-bottom: 1px solid var(--line);
}

.total h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
}

.total-value {
  margin: 8px 0 4px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(4rem, 13vw, 7.8rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.total-note,
.panel-copy,
.notes-column p,
.footer p {
  margin: 10px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.total-cases .total-value {
  color: var(--cases);
}

.total-deaths .total-value {
  color: var(--deaths);
}

.total-recovered .total-value {
  color: var(--recovered);
}

.total-value.is-text {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.02;
}

.source-panel,
.notes-column {
  margin-top: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px 18px 20px;
}

.panel-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.notes-column h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
}

.warning {
  color: #7b1c1c;
}

.footer {
  padding-top: 24px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 500ms ease-out forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .notes {
    grid-template-columns: 1fr;
  }

  .topbar {
    justify-content: center;
  }

  .toplinks {
    justify-content: center;
  }
}
