:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --fg: #111827;
  --muted: #5b6472;
  --border: #e3e6ea;
  --accent: #1d4ed8;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d11;
    --surface: #14181f;
    --fg: #e8eaee;
    --muted: #9aa3b0;
    --border: #252b34;
    --accent: #7aa2ff;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}

.wordmark {
  color: var(--fg);
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark span {
  margin-left: 0.4rem;
  color: var(--muted);
  font-weight: 450;
}

.site-header nav {
  display: flex;
  gap: 1.35rem;
  font-size: 0.9375rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--fg);
}

/* Hero */

main {
  flex: 1;
}

.hero {
  padding-block: 5.5rem 4.5rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 680;
}

.tagline {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  line-height: 1.55;
}

/* Sections */

.section {
  padding-block: 3.5rem;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: 0;
}

.section h2 {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.section p {
  margin: 0 0 1rem;
  max-width: 38rem;
}

.section p:last-child {
  margin-bottom: 0;
}

/* Facts table */

.facts {
  margin: 2rem 0 0;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.9375rem;
}

.facts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-weight: 550;
  text-align: right;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 1.75rem;
}

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

@media (max-width: 30rem) {
  .hero {
    padding-block: 3.75rem 3rem;
  }

  .section {
    padding-block: 2.75rem;
  }
}
