:root {
  --bg: #fbfaf7;
  --ink: #161616;
  --muted: #6f6b63;
  --line: rgba(22, 22, 22, 0.18);
  --focus: #161616;
  --font-weight-normal: 400;
  --font-weight-semibold: 650;
  --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 {
  animation: rise-in 760ms var(--ease-out-quart) both;
}

.statement {
  max-width: 34rem;
  margin-inline: auto;
  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;
}

.statement strong {
  font-weight: var(--font-weight-semibold);
}

.statement span {
  display: block;
}

.statement a {
  margin-inline: -0.04em;
  border-radius: 0.16em;
  background-image: linear-gradient(rgba(22, 22, 22, 0.1), rgba(22, 22, 22, 0.1));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 0;
  color: var(--ink);
  padding-inline: 0.04em;
  text-decoration: none;
  transition:
    background-size 180ms ease,
    color 180ms ease;
}

.statement a:focus-visible {
  background-size: 100% 0.9em;
}

@media (hover: hover) and (pointer: fine) {
  .statement a:hover {
    background-size: 100% 0.9em;
    color: #000000;
  }
}

@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;
  }

  .statement a {
    transition: none;
  }
}
