:root {
  color-scheme: light;
  --background: #f5f6fb;
  --surface: #ffffff;
  --text: #17181c;
  --muted: #606674;
  --line: #e4e6ee;
  --accent: #147efb;
}

* {
  box-sizing: border-box;
}

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

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

.site-header,
.site-footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 22px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

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

.nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 22px 40px;
}

.hero,
.document {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
}

.hero h1,
.document h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.document h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafc;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 28px;
}

section {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
}

section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

p {
  margin: 0 0 14px;
}

.site-footer {
  color: var(--muted);
  font-size: 0.92rem;
}

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

  .hero,
  .document {
    border-radius: 14px;
    padding: 24px;
  }
}
