* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: #000;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.35;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  font-size: 0.9rem;
}

.brand {
  font-weight: 300;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  color: #555;
}

.nav-links a {
  display: inline-block;
  font-weight: 300;
  outline-offset: 6px;
  transform: translateY(0) scale(1);
  transition:
    color 140ms ease,
    opacity 140ms ease,
    transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #000;
  transform: translateY(-1px);
}

.nav-links a:active {
  opacity: 0.72;
  transform: translateY(0) scale(0.96);
}

.nav-links a.is-haptic {
  animation: hapticTap 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero {
  display: grid;
  align-content: center;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100svh - 86px);
  margin: 0 auto;
  padding: 80px 0 120px;
}

h1,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.8rem, 10vw, 8.8rem);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  width: min(420px, 100%);
  margin-bottom: 0;
  color: #555;
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  font-weight: 300;
  line-height: 1.2;
}

@media (max-width: 660px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    width: min(100% - 28px, 560px);
    padding: 22px 0;
  }

  .nav-links {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    width: min(100% - 28px, 560px);
    min-height: calc(100svh - 128px);
    padding: 64px 0 96px;
  }

  h1 {
    font-size: clamp(3.15rem, 15vw, 4.4rem);
  }

  .hero p {
    font-size: clamp(1.2rem, 6vw, 1.65rem);
  }
}

@keyframes hapticTap {
  0% {
    transform: translateY(0) scale(1);
  }

  42% {
    transform: translateY(0) scale(0.94);
  }

  100% {
    transform: translateY(-1px) scale(1);
  }
}
