:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #111116;
  --muted: #5f606b;
  --line: #dedfe7;
  --soft: #f6f6f8;
  --red: #d63a2f;
}

* {
  box-sizing: border-box;
}

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

header, main, footer {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-size: 24px;
  font-weight: 850;
  text-decoration: none;
}

.brand span {
  color: var(--red);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a, footer a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover, footer a:hover {
  color: var(--red);
}

main {
  padding: 48px 0 64px;
}

.hero {
  padding: 44px 0;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 34px 0 10px;
  font-size: 22px;
}

p, li {
  color: var(--muted);
  font-size: 16px;
}

.lede {
  max-width: 680px;
  font-size: 19px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.card {
  min-height: 130px;
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card h2 {
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 13px 18px;
  background: var(--red);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}

.doc {
  max-width: 760px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
}

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