:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  color: #201d1f;
  background: #f7f5f7;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; line-height: 1.65; }

a { color: #b94f49; }

header, main, footer {
  width: min(100% - 40px, 760px);
  margin-inline: auto;
}

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

.brand {
  color: inherit;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

nav { display: flex; gap: 16px; }
nav a { color: #6f686d; text-decoration: none; }

main { padding: 48px 0 80px; }

.hero { text-align: center; padding: 64px 0 72px; }
.hero h1 { margin: 0; font-size: clamp(38px, 9vw, 64px); line-height: 1.12; letter-spacing: -0.04em; }
.hero p { max-width: 600px; margin: 22px auto 30px; color: #6f686d; font-size: 19px; }

.button {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  color: #fff;
  background: #e67c73;
  font-weight: 750;
  text-decoration: none;
}

.card {
  margin: 16px 0;
  padding: 24px;
  border: 1px solid rgb(32 29 31 / 9%);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgb(48 35 45 / 6%);
}

h1 { font-size: 34px; line-height: 1.25; letter-spacing: -0.025em; }
h2 { margin-top: 38px; font-size: 22px; line-height: 1.35; }
h3 { margin-top: 24px; }
p, li { color: #514b4f; }
.muted { color: #777075; }

footer { padding: 28px 0 44px; border-top: 1px solid rgb(32 29 31 / 10%); color: #777075; font-size: 14px; }

@media (prefers-color-scheme: dark) {
  :root { color: #f3eff1; background: #151315; }
  nav a, .hero p, p, li, .muted, footer { color: #b9b1b6; }
  .card { background: #201d20; border-color: rgb(255 255 255 / 10%); box-shadow: none; }
  a { color: #f09a91; }
}

@media (max-width: 520px) {
  header { align-items: flex-start; }
  nav { flex-direction: column; gap: 4px; text-align: right; }
  main { padding-top: 28px; }
}
