@font-face {
  font-family: "Bitter";
  src: url("/fonts/bitter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/fonts/work-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --shell: #F8E5DE;
  --cream: #F9F6F0;
  --ink: #141210;
  --ink-soft: color-mix(in srgb, var(--ink) 74%, var(--shell));
  --violet: #7433E4;
  --apricot: #FEA872;

  --serif: "Bitter", Georgia, serif;
  --sans: "Work Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { background: var(--shell); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--apricot); color: var(--ink); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: clamp(2rem, 8vh, 5rem) 1.5rem 2rem;
  text-align: center;
}

/* Logo */
.logo { margin: 0 0 2rem; line-height: 0; }
.logo svg {
  display: block;
  width: min(84vw, 600px);
  height: auto;
  overflow: visible;
}
.logo path {
  transform-box: fill-box;
  transform-origin: 50% 85%;
  animation: letter-in 560ms var(--ease-out) backwards;
  animation-delay: calc(var(--i) * 46ms);
}
@keyframes letter-in {
  from { opacity: 0; transform: translateY(22px) rotate(-7deg) scale(0.86); }
  to   { opacity: 1; transform: none; }
}

/* Copy */
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(2.5rem, 7vh, 4rem);
}
.line, .intro { animation: rise 700ms var(--ease-out) 700ms backwards; }
.where { margin: 0; color: var(--ink-soft); font-size: 1.3125rem; }
.where span { display: block; }
.where .dot { display: none; }
@media (min-width: 640px) {
  .where span { display: inline; }
  .where .dot { display: inline; white-space: pre; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.line {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 6.3vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.line span { display: block; }

/* Waitlist button */
.button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-weight: 400;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.button:hover { background: var(--ink); color: var(--cream); }
.button:active { transform: translateY(1px); }

/* Links */
a { color: var(--ink); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--violet); text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 4px;
  border-radius: 4px;
}
.button:focus-visible { outline-offset: 4px; border-radius: 999px; }

.secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin: 1.5rem 0 0;
  font-size: 1rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  padding: 1.5rem 1.5rem 2rem;
  font-size: 0.9375rem;
}
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .logo path, .line, .intro { animation: none; }
  .button { transition: none; }
}
