/* J&E Collectibles: temporary "coming soon" site
   Palette is sampled from the J&E banner artwork. */

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Great Vibes";
  src: url("/assets/fonts/great-vibes-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #1e1c48;
  --night-2: #2b2959;
  --blob: #c47c88;
  --blob-deep: #a9606f;
  --moon: #6fb6c8;
  --moon-deep: #3f8cc4;
  --sun: #f4c51c;
  --ember: #ee9f3a;
  --ink: #2a2120;
  --cream: #f4eedd;
  --cream-dim: #c9c3d8;

  /* the banner's pin-stripes run at ~65.7deg */
  --stripes: repeating-linear-gradient(65.7deg, transparent 0 22px, rgb(255 255 255 / 0.07) 22px 24px);

  --font-body: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Great Vibes", "Segoe Script", cursive;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-3: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--night);
  background-image: var(--stripes);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--sun);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
  border-radius: 6px;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  --sx: 0;
  --sy: 0;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(5rem, 13vh, 8rem) var(--gutter) clamp(2.5rem, 6vh, 4rem);
  text-align: center;
  overflow: hidden;
}

/* decorative sky, parallaxed a touch with the pointer */
.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.sky > * {
  position: absolute;
  transform: translate3d(calc(var(--sx) * var(--depth, 10) * -1px), calc(var(--sy) * var(--depth, 10) * -1px), 0);
  transition: transform 0.6s var(--ease-out);
}

.blob {
  border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%;
  background-image: var(--stripes);
}

.blob--pink {
  --depth: 14;
  width: clamp(240px, 34vw, 540px);
  aspect-ratio: 1.5 / 1;
  right: 2%;
  top: 40%;
  background-color: var(--blob);
  border-radius: 46% 54% 40% 60% / 60% 46% 54% 40%;
}

.blob--teal {
  --depth: 26;
  width: clamp(220px, 30vw, 460px);
  aspect-ratio: 1.6 / 1;
  left: 9%;
  top: 7%;
  background-color: var(--moon);
  border-radius: 60% 40% 48% 52% / 64% 60% 40% 36%;
}

.blob--sun {
  --depth: 30;
  width: clamp(120px, 15vw, 230px);
  aspect-ratio: 1;
  left: 5%;
  top: 52%;
  background-color: var(--sun);
  border-radius: 50%;
}

.moon {
  --depth: 40;
  width: clamp(54px, 7vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  left: 6%;
  top: 14%;
}

.moon--small {
  --depth: 22;
  width: clamp(22px, 2.4vw, 36px);
  left: 2.5%;
  top: 36%;
  background: var(--cream);
}

.moon--ember {
  --depth: 34;
  width: clamp(18px, 2vw, 30px);
  right: 16%;
  top: 12%;
  background: var(--ember);
}

.dotgrid {
  --depth: 18;
  width: 132px;
  height: 132px;
  right: 7%;
  top: 22%;
  background-image: radial-gradient(circle, var(--cream) 0 5px, transparent 6px);
  background-size: 33px 33px;
  opacity: 0.85;
}

.dotgrid--left {
  --depth: 12;
  left: 3%;
  right: auto;
  top: auto;
  bottom: 14%;
  width: 99px;
  height: 165px;
}

.star {
  --depth: 30;
  width: clamp(22px, 2.6vw, 38px);
  height: auto;
  aspect-ratio: 1;
  color: var(--ember);
}

.star--1 { left: 4%; top: 6%; }
.star--2 { left: 11%; top: 45%; --depth: 20; width: clamp(16px, 1.8vw, 26px); }
.star--3 { right: 22%; top: 6%; --depth: 44; color: var(--ink); }
.star--4 { right: 4%; bottom: 30%; --depth: 24; }

.squares {
  --depth: 16;
  width: clamp(46px, 5vw, 72px);
  aspect-ratio: 1;
  right: 3%;
  top: 4%;
  color: var(--ember);
}

.squares--low {
  --depth: 28;
  right: auto;
  top: auto;
  left: 20%;
  bottom: 9%;
  color: var(--ink);
  transform: rotate(45deg) translate3d(calc(var(--sx) * var(--depth) * -1px), calc(var(--sy) * var(--depth) * -1px), 0);
}

/* ---- the card ----------------------------------------------------- */

.stage {
  position: relative;
  width: min(100%, 1080px, calc((100svh - 340px) * 1.767));
  min-width: min(100%, 320px);
  perspective: 1400px;
}

.tilt {
  --rx: 0deg;
  --ry: 0deg;
  --px: 50%;
  --py: 50%;
  --hover: 0;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.7s var(--ease-out);
  animation: arrive 1.1s var(--ease-out) backwards;
}

.tilt.is-active {
  transition: transform 0.12s linear;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translate3d(0, 6vh, 0) scale(0.82);
  }
  to {
    opacity: 1;
    transform: rotateX(var(--rx)) rotateY(var(--ry));
  }
}

.card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-radius: clamp(12px, 1.8vw, 24px);
  transform-style: preserve-3d;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.card-inner {
  position: relative;
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease-spring);
  animation: reveal 1.5s 0.15s var(--ease-out) backwards;
}

.card.is-flipped .card-inner {
  transform: rotateY(180deg);
}

@keyframes reveal {
  from {
    transform: rotateY(-180deg);
  }
  to {
    transform: rotateY(0deg);
  }
}

.face {
  grid-area: 1 / 1;
  position: relative;
  border-radius: clamp(12px, 1.8vw, 24px);
  padding: clamp(6px, 0.9vw, 12px);
  background: linear-gradient(135deg, var(--sun), var(--ember) 45%, var(--sun) 70%, var(--ember));
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.35) inset,
    0 40px 70px -30px rgb(0 0 0 / 0.75),
    0 18px 30px -18px rgb(0 0 0 / 0.6);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.face-art {
  display: block;
  position: relative;
  border-radius: clamp(7px, 1.1vw, 15px);
  overflow: hidden;
  aspect-ratio: 3765 / 2131;
  background: var(--night-2);
}

.face-art picture {
  display: block;
  width: 100%;
  height: 100%;
}

.face-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.face--back {
  transform: rotateY(180deg);
}

.face--back .face-art {
  container-type: inline-size;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.4cqi;
  background-color: var(--blob);
  background-image: var(--stripes);
}

.back-logo {
  width: 44cqi;
  height: auto;
}

.back-word {
  font-weight: 800;
  font-size: 8cqi;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.back-note {
  margin-top: 1.2cqi;
  font-size: max(0.7rem, 1.7cqi);
  color: var(--ink);
  font-weight: 600;
}

.back-corner {
  position: absolute;
  width: 6cqi;
  height: 6cqi;
  color: var(--ink);
  opacity: 0.85;
}

.back-corner--tl { left: 4%; top: 7%; }
.back-corner--br { right: 4%; bottom: 7%; }

/* holographic foil and glare that follow the pointer */
.foil,
.glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.foil {
  background-image:
    repeating-linear-gradient(115deg,
      hsl(330 90% 70%) 0%, hsl(45 95% 65%) 7%, hsl(170 80% 65%) 14%,
      hsl(220 90% 72%) 21%, hsl(290 85% 72%) 28%, hsl(330 90% 70%) 35%),
    repeating-linear-gradient(65.7deg, rgb(0 0 0 / 0.2) 0 2px, transparent 2px 6px);
  background-size: 400% 400%, 100% 100%;
  background-position: var(--px) var(--py), 0 0;
  background-blend-mode: overlay;
  mix-blend-mode: color-dodge;
  opacity: calc(var(--hover) * 0.3);
  filter: brightness(0.7) contrast(1.3) saturate(1.1);
  transition: opacity 0.4s ease;
}

.glare {
  background: radial-gradient(farthest-corner circle at var(--px) var(--py),
      rgb(255 255 255 / 0.55) 0%, rgb(255 255 255 / 0.12) 28%, rgb(0 0 0 / 0.25) 90%);
  mix-blend-mode: overlay;
  opacity: calc(var(--hover) * 0.9);
  transition: opacity 0.4s ease;
}

/* "Coming soon..." floats in front of the card, where it sat on the banner */
.soon {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  transform: translate3d(0, -52%, 90px);
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 1.6rem + 7vw, 8.5rem);
  line-height: 1;
  color: var(--sun);
  -webkit-text-stroke: 0.012em var(--sun);
  text-shadow:
    0 0.035em 0 var(--night),
    0 0.06em 0.18em rgb(20 18 50 / 0.55);
  pointer-events: none;
  white-space: nowrap;
  animation: write 1.3s 1.25s cubic-bezier(0.6, 0.05, 0.3, 1) backwards;
}

@keyframes write {
  from {
    clip-path: inset(-30% 100% -30% -10%);
  }
  to {
    clip-path: inset(-30% -10% -30% -10%);
  }
}

.soon .dots span {
  display: inline-block;
  animation: blink 1.8s 2.6s ease-in-out infinite both;
}
.soon .dots span:nth-child(2) { animation-delay: 2.85s; }
.soon .dots span:nth-child(3) { animation-delay: 3.1s; }

@keyframes blink {
  0%, 60%, 100% { opacity: 1; transform: none; }
  30% { opacity: 0.25; transform: translateY(-0.06em); }
}

.hero-copy {
  max-width: 34rem;
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
  animation: rise 0.8s 1.9s var(--ease-out) backwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.lede {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
}

.hint {
  margin: 0.5rem 0 0;
  color: var(--cream-dim);
  font-size: var(--step--1);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

.actions .button {
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin-top: 1.5rem;
  padding: 0.85em 1.6em;
  border: 0;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--ember), 0 14px 24px -12px rgb(0 0 0 / 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--ember), 0 18px 26px -12px rgb(0 0 0 / 0.6);
}

.button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ember), 0 6px 12px -8px rgb(0 0 0 / 0.6);
}

.button--quiet {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 2px var(--cream-dim);
}

.button--quiet:hover {
  box-shadow: inset 0 0 0 2px var(--cream);
}

.button--quiet:active {
  box-shadow: inset 0 0 0 2px var(--cream);
  transform: translateY(1px);
}

/* ------------------------------------------------------------------ */
/* Crew                                                                */
/* ------------------------------------------------------------------ */

.crew {
  position: relative;
  padding: clamp(4rem, 10vw, 7.5rem) var(--gutter) clamp(4rem, 9vw, 6rem);
}

.crew-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.crew-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.crew-head h2 {
  margin: 0;
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.crew-head p {
  margin: 0.6rem 0 0;
  max-width: 30rem;
  color: var(--cream-dim);
}

.tally {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.pips {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pips li {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--cream-dim);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.4s var(--ease-spring);
}

.pips li.is-found {
  background: var(--sun);
  box-shadow: inset 0 0 0 2px var(--sun);
  transform: scale(1.15);
}

.tally-text {
  margin: 0;
  font-weight: 600;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

.crates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.6vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.crate {
  --box: var(--blob);
  --lid: var(--blob-deep);
  --mark: var(--cream);
  --tip: 0deg;
  position: relative;
  aspect-ratio: 4 / 5;
}

.crate:nth-child(1) { --tip: -2deg; }
.crate:nth-child(2) { --box: var(--moon); --lid: var(--moon-deep); --tip: 1.5deg; }
.crate:nth-child(3) { --box: var(--sun); --lid: #d8a20e; --mark: var(--ink); --tip: -1deg; }
.crate:nth-child(4) { --box: var(--ember); --lid: #c97a1f; --mark: var(--ink); --tip: 2deg; }
.crate:nth-child(5) { --box: var(--moon); --lid: var(--moon-deep); --tip: 1deg; }
.crate:nth-child(6) { --box: var(--ember); --lid: #c97a1f; --mark: var(--ink); --tip: -2.5deg; }
.crate:nth-child(7) { --box: var(--sun); --lid: #d8a20e; --mark: var(--ink); --tip: 2deg; }
.crate:nth-child(8) { --tip: -1.5deg; }

.crate-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  transform: rotate(var(--tip));
  -webkit-tap-highlight-color: transparent;
}

.box {
  position: absolute;
  inset: 12% 4% 0;
  border-radius: 10px;
  background-color: var(--box);
  background-image: repeating-linear-gradient(65.7deg, transparent 0 14px, rgb(255 255 255 / 0.16) 14px 16px);
  box-shadow:
    inset 0 -14px 0 rgb(0 0 0 / 0.14),
    0 22px 30px -18px rgb(0 0 0 / 0.7);
  display: grid;
  place-items: center;
}

.lid {
  position: absolute;
  left: 0;
  right: 0;
  top: 2%;
  height: 20%;
  border-radius: 10px;
  background: var(--lid);
  box-shadow: inset 0 3px 0 rgb(255 255 255 / 0.18), 0 8px 0 -2px rgb(0 0 0 / 0.18);
}

.qmark {
  --gap: var(--box);
  width: 42%;
  height: auto;
  margin-top: -6%;
  color: var(--mark);
}

.q-gap {
  stroke: var(--gap);
}

@media (hover: hover) {
  .crate-btn:hover .box,
  .crate-btn:hover .lid {
    animation: rattle 0.5s ease-in-out;
  }
}

@keyframes rattle {
  0%, 100% { transform: none; }
  25% { transform: rotate(-3deg) translateY(-3px); }
  50% { transform: rotate(2.5deg); }
  75% { transform: rotate(-1.5deg) translateY(-1px); }
}

/* the revealed card */
.crew-card {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: clamp(5px, 0.7vw, 8px);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sun), var(--ember) 45%, var(--sun) 70%, var(--ember));
  box-shadow: 0 26px 34px -20px rgb(0 0 0 / 0.8);
  transform: rotate(calc(var(--tip) * -0.5));
  visibility: hidden;
  opacity: 0;
  outline-offset: 6px;
}

.crew-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}

.crew-card figcaption {
  position: absolute;
  left: clamp(5px, 0.7vw, 8px);
  right: clamp(5px, 0.7vw, 8px);
  bottom: clamp(5px, 0.7vw, 8px);
  padding: 0.7rem 0.8rem 0.75rem;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(to top, rgb(30 28 72 / 0.96) 55%, rgb(30 28 72 / 0));
  padding-top: 2.4rem;
  text-align: left;
}

.crew-card .name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.crew-card strong {
  font-size: clamp(1.05rem, 0.8rem + 1vw, 1.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.crew-card .no {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cream-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.crew-card .quip {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--cream-dim);
  text-wrap: pretty;
}

.rarity {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.12em 0.65em;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
}

.rarity--uncommon { background: var(--moon); }
.rarity--rare { background: var(--sun); }
.rarity--epic { background: var(--blob); color: var(--cream); }
.rarity--legendary {
  background: linear-gradient(100deg, hsl(330 90% 75%), hsl(45 95% 68%), hsl(170 80% 68%), hsl(260 90% 78%));
}

/* opened state */
.crate.is-open .crew-card {
  visibility: visible;
  opacity: 1;
  animation: pop-in 0.7s 0.18s var(--ease-spring) backwards;
}

.crate.is-open .crate-btn {
  pointer-events: none;
}

.crate.is-open .lid {
  animation: lid-off 0.55s var(--ease-out) forwards;
}

.crate.is-open .box {
  animation: box-drop 0.5s 0.08s ease-in forwards;
}

.crate.is-open.is-instant .crew-card,
.crate.is-open.is-instant .lid,
.crate.is-open.is-instant .box {
  animation-duration: 0s;
  animation-delay: 0s;
}

@keyframes lid-off {
  to {
    transform: translate(18%, -90%) rotate(24deg);
    opacity: 0;
  }
}

@keyframes box-drop {
  to {
    transform: translateY(14%) scale(0.92);
    opacity: 0;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(18%) scale(0.7) rotate(-6deg);
  }
}

/* without JavaScript, just show the whole crew */
.no-js .crate-btn { display: none; }
.no-js .crew-card { visibility: visible; opacity: 1; }
.no-js .tally { display: none; }

.complete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.complete[hidden] {
  display: none;
}

.complete p {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 600;
}

.complete .button {
  margin-top: 0;
}

.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-foot {
  padding: clamp(3rem, 8vw, 5rem) var(--gutter) 2.5rem;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 120%, rgb(196 124 136 / 0.35), transparent 60%);
}

.signoff {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 1.8rem + 4vw, 4.5rem);
  line-height: 1.1;
  color: var(--sun);
}

.contact-intro {
  margin: 0.75rem auto 0;
  max-width: 30rem;
  color: var(--cream-dim);
  text-wrap: balance;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.contact li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.contact-label {
  font-size: var(--step--1);
  color: var(--cream-dim);
}

.contact a {
  display: inline-block;
  padding: 0.6em 1.25em;
  border-radius: 999px;
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: inset 0 0 0 2px rgb(244 238 221 / 0.35);
  transition: box-shadow 0.2s ease, color 0.2s ease;
}

.contact a:hover {
  color: var(--sun);
  box-shadow: inset 0 0 0 2px var(--sun);
}

.legal {
  margin: 2.5rem 0 0;
  font-size: var(--step--1);
  color: var(--cream-dim);
}

/* ------------------------------------------------------------------ */
/* 404                                                                 */
/* ------------------------------------------------------------------ */

.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5rem;
  padding: 3rem var(--gutter);
  text-align: center;
}

.lost .crew-card {
  position: relative;
  inset: auto;
  width: min(230px, 60vw);
  aspect-ratio: 4 / 5;
  visibility: visible;
  opacity: 1;
  transform: rotate(-4deg);
  margin-bottom: 1.5rem;
}

.lost .oops {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  line-height: 1;
  color: var(--sun);
}

.lost h1 {
  margin: 0;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.lost p {
  margin: 0.25rem 0 0;
  max-width: 32rem;
  color: var(--cream-dim);
}

/* ------------------------------------------------------------------ */
/* Responsive + motion                                                 */
/* ------------------------------------------------------------------ */

@media (max-width: 860px) {
  .crates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tally {
    align-items: flex-start;
  }
  .crew-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .dotgrid,
  .star--3,
  .squares--low,
  .moon--small {
    display: none;
  }
  .stage {
    width: 100%;
  }
  .blob--teal {
    left: -10%;
    top: 14%;
  }
  .blob--pink {
    right: -30%;
    top: 16%;
  }
  .blob--sun {
    display: none;
  }
  .hero {
    min-height: 0;
    padding-top: 6.5rem;
    padding-bottom: 2rem;
  }
  .soon {
    font-size: clamp(3.4rem, 15vw, 4.5rem);
  }
  .crew-card .quip {
    display: none;
  }
  .crew-card figcaption {
    padding: 2rem 0.6rem 0.6rem;
  }
}

@media (max-height: 560px) and (min-width: 641px) {
  .stage {
    width: min(100%, 640px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  /* visibility must flip instantly so the revealed card can take focus */
  .crew-card {
    transition: none !important;
  }
}
