:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c2230;
  --muted: #5b6475;
  --line: #e4e1d9;
  --accent: #b4571c;
  --night: #1c2540;
  --day: #f2a93b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12172a;
    --surface: #1a2038;
    --text: #eceef4;
    --muted: #a3abbe;
    --line: #2b3352;
    --accent: #f2a93b;
    --night: #8e9bd0;
    --day: #f2a93b;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.brand svg {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.4rem;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}

nav a:first-child {
  margin-left: 0;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

main {
  padding: 3.5rem 0 4rem;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 3rem;
  max-width: 38rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2.75rem 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.cards li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.1rem 1.2rem;
}

.cards h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.cards p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

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

dl.facts dd {
  margin: 0;
}

@media (max-width: 30rem) {
  dl.facts {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  dl.facts dd {
    margin-bottom: 0.8rem;
  }
}

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

footer.site .wrap {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

footer.site p {
  margin: 0 0 0.25rem;
}
