:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --border: #e5e7eb;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --max-width: 1120px;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

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

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

header {
  padding: 24px 0;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

header nav > a:first-child {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

header nav > div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

header nav a {
  font-weight: 600;
}

header nav a[aria-current="page"] {
  color: var(--text);
}

main {
  padding: 56px 0 72px;
}

main > section:first-child {
  max-width: 760px;
  padding: 56px 0 72px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

main > section:first-child p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

h2 {
  margin-bottom: 24px;
  font-size: 2rem;
  letter-spacing: -0.035em;
}

article {
  max-width: 720px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

article h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

article p {
  color: var(--muted);
}

article p:last-of-type {
  margin-bottom: 24px;
}

article > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 10px;
  font-weight: 700;
}

article > a:hover {
  color: #ffffff;
  background: var(--accent-hover);
}

footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

footer a {
  color: var(--muted);
  font-weight: 600;
}

footer a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.35);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  header nav {
    align-items: flex-start;
    flex-direction: column;
  }

  header nav > div {
    gap: 14px 18px;
  }

  main {
    padding-top: 20px;
  }

  main > section:first-child {
    padding: 40px 0 56px;
  }

  article {
    padding: 24px;
  }
}
