@font-face {
  font-family: "Aleo";
  src: url("/fonts/Aleo[wght].ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nata Sans";
  src: url("/fonts/NataSans[wght].ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --lavender: #c4c0ee;
  --ink: #231f20;
  --cream: #fff9f1;
  --cherry: #d96073;
  --grass: #d6dc82;
  --font-serif: "Aleo", Georgia, serif;
  --font-sans: "Nata Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  min-height: 100dvh;
  margin: 0;
  background: var(--lavender);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

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

.artboard {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.wave {
  position: absolute;
  left: -2%;
  width: 104%;
  overflow: visible;
}

.wave path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.wave-top {
  top: 6.5vh;
  height: clamp(8rem, 18vh, 11rem);
}

.wave-bottom {
  bottom: 3vh;
  height: clamp(8rem, 18vh, 11rem);
}

.motif,
.hero-star {
  position: absolute;
  opacity: 0;
  will-change: transform;
  transition: opacity 0.75s ease;
}

.ready .motif,
.ready .hero-star {
  opacity: 1;
}

.motif img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.motif-flower {
  top: clamp(2rem, 7vh, 5rem);
  left: clamp(2rem, 6vw, 6.5rem);
  z-index: 2;
  width: clamp(10rem, 15vw, 14rem);
  aspect-ratio: 1;
}

.flower-wordmark {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 48%;
  aspect-ratio: 200 / 75;
  background: var(--ink);
  transform: translate(-50%, -50%) rotate(-4deg);
  -webkit-mask: url("/wordmark.svg") center / contain no-repeat;
  mask: url("/wordmark.svg") center / contain no-repeat;
}

.motif-quotes-top {
  top: clamp(6.5rem, 14vh, 9rem);
  right: clamp(5rem, 15vw, 14rem);
  width: clamp(4.5rem, 6vw, 6rem);
  aspect-ratio: 57 / 53;
}

.motif-quotes-top img {
  transform: rotate(180deg);
}

.motif-outline-star {
  top: clamp(8.5rem, 19vh, 12rem);
  left: 39%;
  width: clamp(3.25rem, 4.2vw, 4.5rem);
  aspect-ratio: 52 / 55;
}

.motif-clover {
  top: 43%;
  right: clamp(-6rem, -4vw, -3rem);
  width: clamp(11rem, 16vw, 16rem);
  aspect-ratio: 163 / 166;
}

.motif-letter {
  right: clamp(3rem, 9vw, 8rem);
  bottom: clamp(3.2rem, 8vh, 6rem);
  width: clamp(4.5rem, 6vw, 6.5rem);
  aspect-ratio: 74 / 70;
}

.motif-quotes-bottom {
  left: clamp(3rem, 11vw, 10rem);
  bottom: clamp(4rem, 9vh, 7rem);
  width: clamp(3.8rem, 5vw, 5.5rem);
  aspect-ratio: 57 / 53;
}

.hero-star {
  top: 45%;
  left: calc(50% + clamp(13rem, 22vw, 23rem));
  width: clamp(10rem, 16vw, 16rem);
  aspect-ratio: 212 / 207;
}

.hero-star img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand {
  position: fixed;
  top: max(1.6rem, env(safe-area-inset-top));
  left: max(1.8rem, env(safe-area-inset-left));
  z-index: 5;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark {
  width: 1.15rem;
  aspect-ratio: 1;
  background: var(--ink);
  -webkit-mask: url("/mark.svg") center / contain no-repeat;
  mask: url("/mark.svg") center / contain no-repeat;
}

.brand-name {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.social {
  position: fixed;
  top: max(1.7rem, env(safe-area-inset-top));
  right: max(2rem, env(safe-area-inset-right));
  z-index: 5;
  display: flex;
  gap: 1.2rem;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.7s 0.8s ease, transform 0.7s 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ready .social {
  opacity: 1;
  transform: translateY(0);
}

.social a {
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  text-underline-offset: 0.28rem;
  transition: text-decoration-color 180ms ease;
}

.social a:hover,
.social a:focus-visible {
  text-decoration-color: currentColor;
}

.hero {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 11rem 2rem 8rem;
}

.headline {
  width: min(92vw, 42rem);
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(3.45rem, 6vw, 6.25rem);
  font-weight: 430;
  line-height: 0.79;
  letter-spacing: -0.055em;
  text-align: center;
}

.headline-line {
  display: block;
  opacity: 0;
  transform: translateY(1.1rem) rotate(0.4deg);
  transition: opacity 0.5s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.headline-line:nth-child(1) {
  transition-delay: 0.06s;
}

.headline-line:nth-child(2) {
  transition-delay: 0.14s;
}

.headline-line:nth-child(3) {
  transition-delay: 0.22s;
}

.ready .headline-line {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.headline strong {
  font-family: var(--font-sans);
  font-weight: 850;
  font-style: normal;
  letter-spacing: -0.075em;
}

.headline em,
.headline-light {
  font-style: italic;
}

.headline em {
  font-weight: 370;
}

.notify {
  width: min(88vw, 27rem);
  margin-top: clamp(2.25rem, 4.5vh, 3.2rem);
  opacity: 0;
  transform: translateY(0.7rem);
  transition: opacity 0.5s 0.34s ease, transform 0.65s 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.ready .notify {
  opacity: 1;
  transform: translateY(0);
}

.notify-control {
  height: 3.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 0.35rem 0 1.25rem;
  border: 1.35px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.96);
  box-shadow: 0 0.28rem 0 rgba(35, 31, 32, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.notify-control:focus-within {
  transform: translateY(-0.12rem);
  box-shadow: 0 0.4rem 0 rgba(35, 31, 32, 0.16);
}

.notify input[type="email"] {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 470 0.91rem/1 var(--font-sans);
}

.notify input[type="email"]::placeholder {
  color: rgba(35, 31, 32, 0.55);
  opacity: 1;
}

.notify input[type="email"]:-webkit-autofill,
.notify input[type="email"]:-webkit-autofill:hover,
.notify input[type="email"]:-webkit-autofill:focus,
.notify input[type="email"]:autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--cream) inset;
  box-shadow: 0 0 0 1000px var(--cream) inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}

.notify input[type="email"]::selection {
  background: var(--lavender);
  color: var(--ink);
}

.notify button {
  min-width: max-content;
  height: 2.65rem;
  padding: 0 0.9rem 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font: 650 0.78rem/1 var(--font-sans);
  cursor: pointer;
}

.notify button svg {
  width: 1rem;
  height: 1rem;
  transition: transform 220ms ease;
}

.notify button:hover svg,
.notify button:focus-visible svg {
  transform: translateX(0.2rem);
}

.notify button:focus-visible,
.social a:focus-visible {
  outline: 2px solid var(--cherry);
  outline-offset: 3px;
}

.notify button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.notify-status {
  min-height: 1.1rem;
  margin: 0.7rem 1.2rem 0;
  font-size: 0.7rem;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 800px) {
  .wave-top {
    top: 7vh;
  }

  .wave-bottom {
    bottom: 2vh;
  }

  .motif-flower {
    top: clamp(3.5rem, 9vh, 5rem);
    left: -1.4rem;
    width: clamp(9.5rem, 38vw, 12rem);
  }

  .motif-quotes-top {
    top: clamp(8rem, 17vh, 10rem);
    right: 8vw;
    width: 4.25rem;
  }

  .motif-outline-star {
    top: 20%;
    left: 48%;
    width: 3.35rem;
  }

  .motif-clover {
    top: 54%;
    right: -5.5rem;
    width: 12rem;
  }

  .motif-letter {
    right: 7vw;
    bottom: 7vh;
    width: 4.8rem;
  }

  .motif-quotes-bottom {
    left: 7vw;
    bottom: 8vh;
    width: 4rem;
  }

  .hero-star {
    top: 51%;
    left: 50%;
    width: clamp(8.5rem, 34vw, 11rem);
    transform: translateX(-50%);
  }

  .hero {
    justify-content: flex-start;
    padding: 30vh 1.5rem 6.5rem;
  }

  .headline {
    width: 100%;
    font-size: clamp(2.75rem, 12.5vw, 4.2rem);
  }

  .notify {
    position: absolute;
    bottom: clamp(5.8rem, 12vh, 7.2rem);
  }

  .social {
    top: auto;
    right: auto;
    bottom: max(1.35rem, env(safe-area-inset-bottom));
    left: max(1.5rem, env(safe-area-inset-left));
    gap: 1rem;
    font-size: 0.6rem;
    transform: translateY(0.45rem);
  }
}

@media (max-width: 430px) {
  .motif-flower {
    top: 4.2rem;
    left: -1.4rem;
    width: 10rem;
  }

  .motif-quotes-top {
    top: 9rem;
    right: 4vw;
    width: 3.9rem;
  }

  .motif-outline-star {
    top: 20.5%;
    left: 46%;
    width: 3rem;
  }

  .motif-clover {
    top: 55%;
    right: -5rem;
    width: 10rem;
  }

  .hero {
    padding-top: 30vh;
  }

  .headline {
    font-size: clamp(2.65rem, 13.2vw, 3.5rem);
    line-height: 0.82;
  }

  .notify {
    width: calc(100% - 2.5rem);
  }

  .notify button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .notify button {
    width: 2.65rem;
    min-width: 2.65rem;
    padding: 0;
    justify-content: center;
  }
}

@media (max-height: 690px) {
  .motif-outline-star {
    display: none;
  }

  .motif-flower {
    top: 2.5rem;
    left: -1rem;
    width: 8.5rem;
  }

  .motif-quotes-top {
    top: 6.8rem;
  }

  .hero {
    padding-top: 24vh;
  }

  .hero-star {
    top: 48%;
    width: 7.5rem;
  }

  .notify {
    bottom: 4.7rem;
  }

  .wave-bottom {
    bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }

  [data-motion] {
    transform: none !important;
  }

  .hero-star {
    transform: translateX(-50%) !important;
  }
}
