@font-face {
  font-family: Sacramento;
  src: url("/fonts/sacramento.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url("/fonts/geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #080809;
  --ink: #faf8f5;
  --edge: clamp(1.35rem, 6vw, 7.5rem);
  font-family: Geist, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.landing {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 92% 80%, #151419 0, transparent 57%), var(--paper);
}

.silk {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.landing-header {
  padding: clamp(1.4rem, 4.3vh, 3rem) var(--edge);
}

.wordmark {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: 1;
}

.landing-main {
  display: grid;
  align-items: center;
  width: min(100% - 2 * var(--edge), 71rem);
  margin-inline: auto;
  padding-block: clamp(1.5rem, 4vh, 4rem) clamp(5rem, 14vh, 9rem);
}

.hero {
  min-width: 0;
  animation: hero-arrive 1.1s cubic-bezier(.18,.78,.23,1) both;
}

.hero h1 {
  margin: 0;
  font-family: Sacramento, "Segoe Script", cursive;
  font-weight: 400;
}

.hero-prefix {
  display: block;
  font-size: clamp(4.5rem, 11.8vw, 11rem);
  line-height: .9;
}

.word-stage {
  --gradient-position: 38%;
  position: relative;
  display: block;
  height: 1.24em;
  margin: .18em -.12em .02em clamp(.35rem, 4.2vw, 4rem);
  padding-inline-end: .12em;
  overflow: clip;
  font-size: clamp(3rem, 11.8vw, 11.25rem);
  line-height: 1.12;
}

.hero-word {
  position: absolute;
  inset: 0 auto auto 0;
  white-space: nowrap;
  transform-origin: left center;
}

@supports (background-clip: text) {
  .hero-word {
    padding-inline-end: .1em;
    background-image: linear-gradient(116deg, #8cc3fc, #9fc4f9 14%, #b7c3fa 32%, #cfc2fb 43%, #dfc1fb 54%, #cfc2fb 66%, #b7c3fa 80%, #8cc3fc);
    background-size: 245% 100%;
    background-position: var(--gradient-position) center;
    background-clip: text;
    color: transparent;
  }
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.7rem;
  min-height: 3.2rem;
  margin-top: .55rem;
  padding: .75rem 1.15rem .75rem 1.3rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: color .28s ease, background-color .28s ease;
}

.hero-link svg { transition: transform .35s cubic-bezier(.22,.8,.29,1); }
.hero-link:hover { background: transparent; color: var(--ink); }
.hero-link:hover svg { transform: translateX(.15rem); }

.landing a:focus-visible, .motion-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.motion-toggle {
  position: absolute;
  inset: auto var(--edge) clamp(1.6rem, 4.3vh, 3.5rem) auto;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid #faf8f548;
  border-radius: 50%;
  color: var(--ink);
  background: #0d0d11dd;
  cursor: pointer;
}

.motion-toggle:hover { border-color: var(--ink); }
.motion-toggle span { width: .56rem; height: .65rem; border-inline: 1.5px solid currentColor; }
.motion-toggle[data-paused="true"] span {
  width: 0;
  height: 0;
  margin-inline-start: .12rem;
  border: .31rem solid transparent;
  border-left: .47rem solid currentColor;
  border-right: 0;
}

@keyframes hero-arrive {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .hero-prefix { font-size: clamp(3.65rem, 15.1vw, 5.25rem); }
  .word-stage { font-size: clamp(2.65rem, 12vw, 4.3rem); }
  .landing-main { padding-bottom: clamp(5rem, 16vh, 8rem); }
}

@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
  .hero-link, .hero-link svg { transition: none; }
  .hero-link:hover svg { transform: none; }
}
