:root {
  --bg: #fbfaf7;
  --ink: #161616;
  --muted: #6f6b63;
  --focus: #161616;
  --font-weight-normal: 400;
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  touch-action: manipulation;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

a:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--focus);
  outline-offset: 5px;
}

p {
  margin: 0;
}

.home {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding:
    calc(2rem + env(safe-area-inset-top))
    clamp(1.25rem, 5vw, 4rem)
    calc(2rem + env(safe-area-inset-bottom));
}

.intro {
  width: min(100%, 36rem);
  text-align: center;
}

.statement {
  max-width: 34rem;
  margin: 0 auto;
  animation: rise-in 760ms var(--ease-out-quart) both;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  font-weight: var(--font-weight-normal);
  letter-spacing: 0;
  line-height: 1.14;
  text-wrap: balance;
}

.contact {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact a:hover {
  color: var(--ink);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  .home {
    place-items: center;
  }

  .statement {
    max-width: 21rem;
    font-size: clamp(1.5rem, 6.8vw, 1.7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .statement {
    animation: none;
  }
}
