:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f5f2;
  --text: #101116;
  --muted: #656872;
  --line: #e7e7e3;
  --accent: #ff5b48;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #111216;
    --text: #f7f9ff;
    --muted: #a9abb5;
    --line: #292b31;
    --accent: #ff806c;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

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

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

main {
  padding: 64px 0 52px;
}

.hero {
  min-height: 58vh;
  display: grid;
  align-content: center;
  padding-bottom: 36px;
}

h1,
h2 {
  line-height: 1.14;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 9vw, 72px);
}

h2 {
  margin: 40px 0 12px;
  font-size: 24px;
}

p,
li {
  max-width: 70ch;
}

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

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

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

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

.rule {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.meta,
footer {
  color: var(--muted);
}

footer {
  padding: 24px 0 42px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 560px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
  }

  nav {
    justify-content: flex-start;
  }

  main {
    padding-top: 42px;
  }
}
