:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #667085;
  --line: #e4e7ec;
  --accent: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Arial, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  width: min(1040px, calc(100vw - 40px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

main {
  width: min(1040px, calc(100vw - 40px));
  margin: 0 auto;
}

.intro {
  min-height: 420px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
}

.intro > div {
  max-width: 720px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 720;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.lead {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 16px;
}

article,
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

article p,
.note p {
  margin: 0;
  color: var(--muted);
}

.note {
  margin-bottom: 48px;
}

.note--standalone {
  max-width: 680px;
  margin: 96px auto;
}

.note--standalone h1 {
  font-size: 36px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 22px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

footer {
  width: min(1040px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .topbar,
  main,
  footer {
    width: min(100vw - 28px, 1040px);
  }

  .topbar {
    height: 64px;
  }

  nav {
    display: none;
  }

  .intro {
    min-height: 360px;
  }

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