:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #182026;
  --muted: #52606d;
  --border: #d9e2ec;
  --accent: #1d4ed8;
  --accent-text: #ffffff;
  --radius: 10px;
}

body.high-contrast {
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --border: #475569;
  --accent: #38bdf8;
  --accent-text: #0f172a;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
}

.container {
  width: min(960px, 100% - 2rem);
  margin-inline: auto;
}

.site-header,
.site-footer {
  background-color: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: 1rem;
}

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

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

main {
  padding-block: 2.5rem;
  display: grid;
  gap: 2rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

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

.card,
.counter-panel {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card h2,
.counter-panel h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.card p,
.counter-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.counter-readout {
  font-size: 1.1rem;
  margin-bottom: 1rem !important;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}