:root {
  color-scheme: light;
  --paper: #e7ebe5;
  --sheet: #f7f8f3;
  --ink: #18211b;
  --muted: #59645c;
  --leaf: #365d44;
  --rule: #cbd2ca;
  --shadow: 0 18px 46px rgba(25, 41, 31, 0.09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: var(--leaf);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid #86a78f;
  outline-offset: 4px;
}

.site-header,
.site-footer,
main {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 20px;
}

.brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
  font-weight: 650;
}

.sheet {
  margin-bottom: 28px;
  padding: clamp(28px, 7vw, 64px);
  background: var(--sheet);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

h1,
h2 {
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 12ch;
  margin: 0 0 20px;
  font-size: clamp(40px, 8vw, 64px);
}

h2 {
  margin: 44px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 24px;
}

p,
ul {
  max-width: 68ch;
}

.summary {
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 19px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 36px 0;
  overflow: hidden;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.fact {
  min-height: 128px;
  padding: 20px;
  background: var(--sheet);
}

.fact strong {
  display: block;
  margin-bottom: 8px;
  color: var(--leaf);
  font-size: 15px;
}

.action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 22px;
  background: var(--leaf);
  color: white;
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
}

.meta,
.site-footer {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 40px;
}

@media (max-width: 620px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .fact {
    min-height: auto;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #101713;
    --sheet: #18211b;
    --ink: #f2f6ef;
    --muted: #b6c0b7;
    --leaf: #a9cc98;
    --rule: #344038;
    --shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  }

  .action {
    color: #101713;
  }
}
