@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/outfit@5.2.5/latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/outfit@5.2.5/latin-600-normal.woff2") format("woff2");
}

:root {
  --bg: #f7f6f3;
  --ink: #2f3437;
  --muted: #787774;
  --err: #9f2f2d;
  --sans: "Outfit", "Helvetica Neue", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.page {
  min-height: 100dvh;
  width: 100%;
  padding: 0 1.375rem;
  display: grid;
  place-items: center;
}

.main {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  animation: enter 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.copy {
  min-width: 0;
}

.logo {
  width: 7.25rem;
  height: 7.25rem;
  flex: 0 0 auto;
  display: block;
  filter: invert(1);
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2rem, 5.8vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.lede {
  margin: 0.75rem 0 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.page[data-state="error"] h1 {
  max-width: 14ch;
}

.page[data-state="error"] .lede {
  color: var(--err);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 520px) {
  .main {
    gap: 1.15rem;
  }

  .logo {
    width: 5.25rem;
    height: 5.25rem;
  }
}