:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --text: #171717;
  --muted: #6f6f6a;
  --line: #d9d9d3;
  --link: #171717;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --text: #f2f2ef;
    --muted: #a7a7a0;
    --line: #343434;
    --link: #f2f2ef;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
}

.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 80px 0 64px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(3rem, 10vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.tagline {
  margin: 0 0 30px;
  max-width: 680px;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  line-height: 1.35;
  color: var(--muted);
}

.contact {
  margin: 0;
  font-size: 1.05rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  display: flex;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.footer a {
  color: inherit;
}

.legal {
  padding: 72px 0 60px;
}

.legal h1 {
  margin: 0 0 38px;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.legal h2 {
  margin: 34px 0 10px;
  font-size: 1.15rem;
}

.legal p {
  margin: 0 0 14px;
  max-width: 720px;
  line-height: 1.65;
}

.back {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--muted);
  text-decoration: none;
}

.back:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 28px, 880px);
  }

  .hero {
    padding: 64px 0 48px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal {
    padding-top: 48px;
  }
}
