/* for you */

:root {
  --bg: #0e0c09;
  --bg-lift: #19150f;
  --ink: #f4ede0;
  --ink-soft: rgba(244, 237, 224, .6);
  --ink-faint: rgba(244, 237, 224, .36);
  --yellow: #ffd24d;
  --serif: "Cormorant Garamond", "Cormorant", "EB Garamond", Garamond, "Times New Roman", serif;
  --body: clamp(21px, 1.05vw + 11px, 27px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* a little warmth in the middle of the dark */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(110% 80% at 50% 45%, var(--bg-lift) 0%, var(--bg) 62%);
}

::selection { background: rgba(255, 210, 77, .28); color: var(--ink); }

#ink {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: 1;
  pointer-events: none;
}

#world {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}
#world > * { position: absolute; margin: 0; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .045;
  background-size: 160px 160px;
}

#spacer { width: 1px; }

/* ── words ─────────────────────────────────────────── */

/* Every word is its own little fade. */
.w {
  display: inline-block;
  opacity: 0;
  filter: blur(7px);
  transform: translateY(.28em);
  transition:
    opacity .7s ease,
    filter .7s ease,
    transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i) * 12ms);
}
.in .w {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition-duration: 1.4s, 1.4s, 1.8s;
  transition-delay: calc(var(--i) * 48ms + 80ms);
}

.hero { text-align: center; }
.hero .label {
  margin: 0 0 1.4em;
  padding-left: .44em;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .44em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero .title {
  margin: 0;
  font-size: clamp(44px, 6.2vw, 84px);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.005em;
}

.hint {
  font-size: 16px;
  font-style: italic;
  letter-spacing: .1em;
  color: var(--ink-faint);
  text-align: center;
  white-space: nowrap;
}

.beat {
  font-size: var(--body);
  line-height: 1.58;
  letter-spacing: .004em;
  text-wrap: pretty;
}
.beat em { font-style: italic; }
.beat .y { color: var(--yellow); }
.beat .aside {
  display: block;
  margin-top: .8em;
  font-style: italic;
  color: var(--ink-soft);
}

/* ── the end ───────────────────────────────────────── */

.finale {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.reveal {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(12px);
  transition: opacity .6s ease, filter .6s ease, transform .6s ease;
}
.show .reveal {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition: opacity 1.6s ease, filter 1.6s ease, transform 1.8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}

.app-name {
  margin: 0;
  font-size: clamp(40px, 3.9vw, 58px);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
}
.app-sub {
  margin: .55em 0 1.7em;
  font-size: 19px;
  font-style: italic;
  color: var(--ink-soft);
}

.download {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .72em 1.9em .78em 1.6em;
  border: 1px solid rgba(255, 210, 77, .7);
  border-radius: 999px;
  color: var(--yellow);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}
.download svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.show .download {
  pointer-events: auto;
  transition:
    opacity 1.6s ease var(--d), filter 1.6s ease var(--d), transform 1.8s cubic-bezier(.2, .7, .2, 1) var(--d),
    background-color .45s ease, color .45s ease, box-shadow .6s ease, border-color .45s ease;
}
.show .download:hover,
.show .download:focus-visible {
  background-color: var(--yellow);
  border-color: var(--yellow);
  color: #1b1509;
  box-shadow: 0 0 44px rgba(255, 210, 77, .32);
  outline: none;
}
.show .download:hover svg { transform: translateY(2px); }

/* pressed: the button hands itself over to the string (see "the send-off") */
.show .download.launched {
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.meta {
  margin: 1.5em 0 0;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--ink-faint);
}
.meta.note {
  max-width: 30em;
  margin-top: .45em;
  font-size: 14px;
  font-style: italic;
  letter-spacing: .02em;
  line-height: 1.45;
}

.signoff {
  margin: 3.2em 0 0;
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
}
.signoff .sig {
  display: block;
  margin-top: .5em;
  font-size: 25px;
  color: var(--ink);
}

.toast {
  left: 50%;
  width: max-content;
  max-width: min(86vw, 340px);
  margin: 0;
  padding: .6em 1.3em .65em;
  border: 1px solid rgba(255, 210, 77, .4);
  border-radius: 999px;
  background: rgba(18, 15, 10, .88);
  box-shadow: 0 0 40px rgba(255, 204, 72, .14);
  color: var(--ink);
  font-size: 18px;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  filter: blur(6px);
  transform: translate(-50%, -50%) scale(.96);
  pointer-events: none;
  transition: opacity .6s ease, filter .6s ease, transform .6s ease;
}
.finale .toast { position: absolute; }
.toast.in {
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, -50%);
  transition: opacity .8s ease, filter .8s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}

.pet {
  font-size: 17px;
  font-style: italic;
  color: var(--ink-faint);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.pet.in { opacity: 1; }

.fallback {
  position: relative;
  z-index: 5;
  padding: 30vh 24px;
  text-align: center;
  font-size: 22px;
}
.fallback a { color: var(--yellow); }

@media (prefers-reduced-motion: reduce) {
  .w, .in .w, .reveal, .show .reveal {
    filter: none;
    transform: none;
    transition-property: opacity;
    transition-duration: .6s;
    transition-delay: 0s;
  }
}
