@font-face {
  font-family: "Figtree";
  src: url("/assets/figtree-regular-v1.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/assets/figtree-semibold-v1.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f6f4ee;
  --ink: #1a1a1a;
  --muted: #625f58;
  --line: rgba(26, 26, 26, 0.14);
  --coral: #d97860;
  --sky: #7aa4b8;
  --gold: #d7ad4f;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--canvas);
}

body {
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Figtree", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  width: min(100%, 100rem);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1.25rem, 5vw, 5rem);
  display: grid;
  grid-template-rows: auto minmax(28rem, 1fr) auto;
}

.brand {
  position: relative;
  z-index: 2;
  animation: arrive 700ms 80ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.brand img {
  display: block;
  width: clamp(7.5rem, 11vw, 9.5rem);
  height: auto;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.message {
  position: relative;
  z-index: 1;
  width: min(100%, 54rem);
  text-align: center;
  animation: arrive 850ms 170ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.message h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 600;
  letter-spacing: -0.072em;
  line-height: 0.9;
}

.message p {
  max-width: 34ch;
  margin: clamp(1.75rem, 4vw, 2.75rem) auto 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  line-height: 1.48;
}

.gathering {
  position: absolute;
  z-index: 0;
  width: min(88vw, 72rem);
  height: min(54vw, 31rem);
  min-height: 20rem;
  pointer-events: none;
}

.orbit {
  position: absolute;
  inset: 8% 2%;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit-one {
  transform: rotate(-8deg);
  animation: breathe-one 20s ease-in-out infinite alternate;
}

.orbit-two {
  inset: 20% 13%;
  border-color: rgba(26, 26, 26, 0.1);
  transform: rotate(7deg);
  animation: breathe-two 24s ease-in-out infinite alternate;
}

.guest {
  position: absolute;
  display: block;
  width: clamp(0.75rem, 1.4vw, 1.1rem);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 clamp(0.35rem, 0.7vw, 0.65rem) var(--canvas);
}

.guest-one {
  top: 15%;
  left: 20%;
  background: var(--coral);
  animation: float-one 8s ease-in-out infinite alternate;
}

.guest-two {
  top: 71%;
  left: 73%;
  background: var(--sky);
  animation: float-two 10s ease-in-out infinite alternate;
}

.guest-three {
  top: 26%;
  right: 7%;
  width: clamp(0.55rem, 1vw, 0.8rem);
  background: var(--gold);
  animation: float-two 12s 1s ease-in-out infinite alternate-reverse;
}

.page-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  animation: arrive 700ms 260ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.page-footer p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.5;
}

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

@keyframes breathe-one {
  from { transform: rotate(-8deg) scale(0.99); }
  to { transform: rotate(-5deg) scale(1.015); }
}

@keyframes breathe-two {
  from { transform: rotate(7deg) scale(1.01); }
  to { transform: rotate(4deg) scale(0.985); }
}

@keyframes float-one {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0.45rem, -0.65rem, 0); }
}

@keyframes float-two {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-0.55rem, 0.5rem, 0); }
}

@media (max-width: 40rem) {
  .page-shell {
    grid-template-rows: auto minmax(24rem, 1fr) auto;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .brand {
    display: flex;
    justify-content: center;
  }

  .message h1 {
    font-size: clamp(3.65rem, 19vw, 5.2rem);
    letter-spacing: -0.065em;
  }

  .message p {
    max-width: 25ch;
    margin-top: 1.5rem;
  }

  .gathering {
    width: 38rem;
    height: 22rem;
  }

  .page-footer {
    justify-content: center;
    text-align: center;
  }
}

@media (max-height: 38rem) and (orientation: landscape) {
  .page-shell {
    grid-template-rows: auto minmax(16rem, 1fr) auto;
  }

  .message h1 {
    font-size: clamp(3.5rem, 13vh, 6rem);
  }

  .message p {
    margin-top: 1rem;
  }

  .gathering {
    height: 15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .message,
  .orbit,
  .guest,
  .page-footer {
    animation: none;
  }
}
