:root {
  color-scheme: dark light;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #000;
  font-family: Arial, Helvetica, sans-serif;
}

button {
  font: inherit;
}

.site-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
  color: #fff;
  transition: background-color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    color 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-shell.is-revealed {
  background: #000;
  color: #fff;
}

.reveal-stage {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100svh;
  padding: clamp(16px, 3vw, 40px);
  overflow: hidden;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 160ms ease;
}

.is-loading .reveal-stage {
  opacity: 0;
}

.reveal-stage:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -8px;
}

.portrait-frame {
  position: absolute;
  inset: clamp(18px, 3vh, 36px) 0 clamp(72px, 11vh, 112px);
}

.portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  user-select: none;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.portrait-goat {
  opacity: 1;
}

.portrait-north {
  opacity: 0;
  transform: translateY(0.8%) scale(1.1);
}

.portrait-friends {
  opacity: 0;
  object-position: 50% 50%;
  transition: opacity 700ms 160ms ease;
}

.portrait-goats-foreground,
.portrait-be-goat-foreground {
  z-index: 3;
  opacity: 0;
  object-position: 50% 50%;
  transition: opacity 700ms 160ms ease;
}

.is-revealed .portrait-goat {
  opacity: 0;
}

.is-revealed .portrait-north {
  opacity: 1;
  transform: translateY(0.8%) scale(1.1);
}

.is-alt-two .portrait-goat,
.is-alt-two .portrait-north,
.is-alt-two.is-revealed .portrait-north {
  transform: none;
}

.is-alt-two .portrait-friends,
.is-alt-two .portrait-goats-foreground,
.is-alt-two .portrait-be-goat-foreground {
  transform: translate(3%, 1%) scale(1.04);
}

.is-alt.is-friends .portrait-north {
  opacity: 0;
}

.is-alt.is-friends .portrait-friends {
  opacity: 1;
}

.is-alt-two.is-friends .portrait-goats-foreground,
.is-alt-two.is-friends .portrait-be-goat-foreground {
  opacity: 1;
}

.is-alt-two.is-friends.is-be-goat-behind .portrait-be-goat-foreground {
  opacity: 0;
}

.prompt,
.question {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 4vh, 42px);
  width: calc(100% - 36px);
  transform: translateX(-50%);
  text-align: center;
  text-transform: lowercase;
}

.prompt {
  opacity: 1;
  transition: opacity 180ms ease;
}

.ransom-message {
  z-index: 2;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  font-size: clamp(38px, 5.5vw, 86px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-align: left;
  text-transform: uppercase;
  pointer-events: none;
  transform: none;
}

.ransom-word {
  position: absolute;
  display: block;
  padding: 0.16em 0.24em 0.12em;
  background: #f3ead8;
  color: #111;
  box-shadow: 0 3px 0 rgb(255 255 255 / 16%);
  clip-path: polygon(2% 5%, 98% 0, 100% 91%, 4% 100%, 0 18%);
  white-space: nowrap;
}

.ransom-word:nth-child(1) {
  top: 5%;
  left: clamp(20px, 4vw, 64px);
  background: #f7f7f2;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: lowercase;
  transform: rotate(-3deg);
}

.ransom-word:nth-child(2) {
  top: 12%;
  left: clamp(58px, 15vw, 236px);
  background: #63c9bc;
  color: #111;
  font-family: Georgia, serif;
  text-transform: lowercase;
  transform: rotate(2deg);
}

.ransom-word:nth-child(3) {
  top: 31%;
  left: clamp(28px, 6vw, 96px);
  background: #f4e8c7;
  font-family: Georgia, serif;
  transform: rotate(-2deg);
}

.ransom-word:nth-child(4) {
  top: 44%;
  left: clamp(58px, 15vw, 236px);
  background: #ef493f;
  color: #fff;
  font-family: Impact, Haettenschweiler, sans-serif;
  transform: rotate(-14deg);
}

.ransom-word:nth-child(5) {
  top: 56%;
  left: clamp(70px, 17vw, 268px);
  background: #f2d34f;
  font-family: "Courier New", monospace;
  transform: rotate(1.5deg);
}

.ransom-word:nth-child(6) {
  top: 57%;
  right: clamp(86px, 17vw, 268px);
  background: #f7f7f2;
  font-family: Arial Black, Arial, sans-serif;
  transform: rotate(2deg);
}

.ransom-word:nth-child(7) {
  top: 71%;
  right: clamp(42px, 10vw, 158px);
  background: #63c9bc;
  font-size: 1.2em;
  font-family: Georgia, serif;
  font-style: italic;
  transform: rotate(-4deg);
}

.is-alt-two .ransom-word {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  clip-path: none;
}

/* Keep the rotated greeting cards separate, including in short windows. */
.is-alt-three .ransom-word:nth-child(2) {
  top: max(12%, calc(5% + 1.55em));
}

.is-alt-two .ransom-letter {
  display: inline-grid;
  min-width: 0.76em;
  min-height: 1.04em;
  place-items: center;
  padding: 0.08em 0.1em 0.02em;
  background: #f4e8c7;
  color: #111;
  font-family: Arial Black, Arial, sans-serif;
  clip-path: polygon(4% 3%, 97% 0, 100% 92%, 3% 100%, 0 13%);
  transform: rotate(-2deg) translateY(0.03em);
}

.is-alt-two .ransom-letter + .ransom-letter {
  margin-left: -0.07em;
}

.is-alt-two .ransom-letter:nth-child(2n) {
  background: #ef493f;
  color: #fff;
  font-family: Georgia, serif;
  transform: rotate(3deg) translateY(-0.04em);
}

.is-alt-two .ransom-letter:nth-child(3n) {
  background: #f2d34f;
  color: #111;
  font-family: "Courier New", monospace;
  transform: rotate(-4deg) translateY(0.05em);
}

.is-alt-two .ransom-letter:nth-child(4n) {
  background: #63c9bc;
  color: #111;
  font-family: Impact, Haettenschweiler, sans-serif;
  transform: rotate(2deg) translateY(-0.02em);
}

.is-alt-two .ransom-word:nth-child(2n) .ransom-letter:nth-child(odd) {
  background: #121212;
  color: #fff;
  font-family: Georgia, serif;
  transform: rotate(-3deg) translateY(0.02em);
}

.is-alt-two .ransom-word:nth-child(n + 3) {
  opacity: 0;
  filter: blur(3px);
  transition: opacity 220ms ease, filter 300ms ease;
}

.is-alt-two.is-prompt-ready .ransom-word:nth-child(n + 3) {
  opacity: 1;
  filter: none;
}

.is-alt-two.is-prompt-ready .ransom-word:nth-child(4) {
  transition-delay: 160ms;
}

.is-alt-two.is-prompt-ready .ransom-word:nth-child(5) {
  transition-delay: 320ms;
}

.is-alt-two.is-prompt-ready .ransom-word:nth-child(6) {
  transition-delay: 480ms;
}

.is-alt-two.is-prompt-ready .ransom-word:nth-child(7) {
  transition-delay: 640ms;
}

.question {
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 260ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.collage-question {
  z-index: 2;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  font-size: clamp(34px, 5.2vw, 82px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  pointer-events: none;
  opacity: 1;
  transform: translateY(14px);
  transition: none;
}

.collage-word {
  --word-tilt: 0deg;
  position: absolute;
  display: inline-flex;
  align-items: center;
  opacity: 0;
  filter: drop-shadow(0 4px 0 rgb(0 0 0 / 12%));
  transform: translateY(14px) rotate(var(--word-tilt)) scale(0.96);
  transition: opacity 240ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.collage-word:nth-child(1) {
  --word-tilt: -2deg;
  top: 9%;
  left: clamp(14px, 4vw, 72px);
}

.collage-word:nth-child(2) {
  --word-tilt: 2deg;
  top: 27.5%;
  left: clamp(80px, 14vw, 220px);
}

.collage-word:nth-child(3) {
  --word-tilt: -3deg;
  top: 52%;
  left: clamp(80px, 14vw, 220px);
}

.collage-word:nth-child(4) {
  --word-tilt: 2.5deg;
  top: 21%;
  right: clamp(92px, 16vw, 252px);
}

.collage-word:nth-child(5) {
  --word-tilt: -1.5deg;
  top: 38%;
  right: clamp(48px, 8vw, 126px);
}

.collage-word:nth-child(6) {
  --word-tilt: 3deg;
  top: 61%;
  right: clamp(42px, 7vw, 110px);
}

.collage-letter {
  display: inline-grid;
  min-width: 0.78em;
  min-height: 1.08em;
  place-items: center;
  padding: 0.08em 0.12em 0.02em;
  background: #121212;
  color: #fff;
  font-family: Arial Black, Arial, sans-serif;
  text-transform: uppercase;
  clip-path: polygon(5% 2%, 97% 5%, 100% 91%, 3% 100%, 0 12%);
}

.collage-letter:nth-child(2n) {
  background: #ef493f;
  color: #fff;
  font-family: Georgia, serif;
  transform: rotate(3deg) translateY(-0.05em);
}

.collage-letter:nth-child(3n) {
  background: #f2d34f;
  color: #111;
  font-family: "Courier New", monospace;
  transform: rotate(-3deg) translateY(0.06em);
}

.collage-word:nth-child(2n) .collage-letter:nth-child(odd) {
  background: #63c9bc;
  color: #111;
  transform: rotate(2deg);
}

.collage-word:nth-child(5) .collage-letter:nth-child(odd) {
  background: #f4e8c7;
  color: #111;
  font-family: Georgia, serif;
  font-style: italic;
  transform: rotate(-2deg);
}

.is-alt-two .ransom-letter,
.is-alt-two .collage-letter {
  border: 1px solid rgb(255 250 232 / 18%);
  background-image:
    linear-gradient(118deg, rgb(255 255 255 / 18%), transparent 43%, rgb(0 0 0 / 9%)),
    repeating-linear-gradient(0deg, rgb(255 255 255 / 3%) 0 1px, transparent 1px 3px);
  background-blend-mode: soft-light, normal;
  filter:
    drop-shadow(0.025em 0.04em 0 rgb(255 247 222 / 58%))
    drop-shadow(0.09em 0.12em 0.025em rgb(0 0 0 / 62%));
  text-shadow:
    0.012em 0.018em 0 rgb(0 0 0 / 22%),
    0 0 0.018em currentColor;
}

.is-alt-two .ransom-letter:nth-child(2n),
.is-alt-two .collage-letter:nth-child(2n) {
  filter:
    drop-shadow(-0.018em 0.045em 0 rgb(255 247 222 / 52%))
    drop-shadow(0.075em 0.115em 0.025em rgb(0 0 0 / 64%));
}

.is-alt-two .ransom-letter:nth-child(3n),
.is-alt-two .collage-letter:nth-child(3n) {
  background-image:
    linear-gradient(72deg, rgb(255 255 255 / 15%), transparent 46%, rgb(0 0 0 / 8%)),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 3%) 0 1px, transparent 1px 4px);
}

.is-alt-two .ransom-word:nth-child(7) .ransom-letter:last-child {
  min-height: 1.12em;
  padding-top: 0.14em;
  padding-bottom: 0.05em;
  font-family: Arial Black, Arial, sans-serif;
  line-height: 1;
  clip-path: polygon(2% 0, 100% 1%, 98% 94%, 3% 100%, 0 10%);
  transform: rotate(1deg) translateY(0.01em);
}

.is-revealed .prompt {
  opacity: 0;
}

.is-revealed .question {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 650ms;
}

.is-revealed .collage-question {
  transform: translateY(0);
}

.is-revealed .collage-word {
  opacity: 1;
  transform: translateY(0) rotate(var(--word-tilt)) scale(1);
}

.is-revealed .collage-word:nth-child(1) {
  transition-delay: 650ms;
}

.is-revealed .collage-word:nth-child(2) {
  transition-delay: 820ms;
}

.is-revealed .collage-word:nth-child(3) {
  transition-delay: 990ms;
}

.is-revealed .collage-word:nth-child(4) {
  transition-delay: calc(3160ms - var(--question-pause-reduction, 0ms));
}

.is-revealed .collage-word:nth-child(5) {
  transition-delay: calc(3330ms - var(--question-pause-reduction, 0ms));
}

.is-revealed .collage-word:nth-child(6) {
  transition-delay: calc(3500ms - var(--question-pause-reduction, 0ms));
}

.response-form {
  position: absolute;
  z-index: 6;
  bottom: clamp(10px, 2.5vh, 24px);
  left: 50%;
  width: min(92vw, 520px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px) rotate(-1deg) scale(0.97);
  transition:
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 420ms;
}

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

.is-alt-three.is-friends .response-form {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) rotate(-1deg) scale(1);
  transition-delay: 720ms, 720ms, 0s;
}

.response-card {
  min-width: 0;
  margin: 0;
  padding: 15px 16px 10px;
  border: 1px solid rgb(255 255 255 / 45%);
  background:
    linear-gradient(116deg, rgb(255 255 255 / 26%), transparent 45%, rgb(0 0 0 / 8%)),
    #f4e8c7;
  color: #111;
  color-scheme: light;
  box-shadow:
    0 3px 0 #d9cba9,
    8px 10px 0 rgb(0 0 0 / 40%);
  clip-path: polygon(1% 3%, 98% 0, 100% 91%, 3% 100%, 0 17%);
}

.response-instruction {
  margin: 0 0 8px;
  color: #111;
  -webkit-text-fill-color: #111;
  text-align: center;
  font: 900 clamp(12px, 1.6vw, 14px) / 1.15 "Courier New", monospace;
  letter-spacing: 0.06em;
}

.response-choices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 28px);
}

.response-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 900 clamp(20px, 4vw, 34px) / 1 Arial Black, Arial, sans-serif;
  cursor: pointer;
  user-select: none;
  min-height: 44px;
  color: #111;
}

.response-option > span:not(.response-checkbox),
.response-status {
  color: #111;
  -webkit-text-fill-color: #111;
}

.site-shell.is-alt-three {
  isolation: isolate;
  /* "be" finishes at 1350ms; "my" starts at 2350ms: a one-second pause. */
  --question-pause-reduction: 810ms;
}

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

.response-option:nth-child(2) {
  font-family: Georgia, serif;
  transform: rotate(2deg);
}

.response-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.response-checkbox {
  position: relative;
  display: inline-grid;
  width: clamp(26px, 5vw, 38px);
  aspect-ratio: 1;
  place-items: center;
  border: 3px solid #111;
  background: #fffdf5;
  box-shadow: 3px 3px 0 rgb(0 0 0 / 18%);
  clip-path: polygon(2% 3%, 97% 0, 100% 94%, 4% 100%, 0 13%);
}

.response-option input:focus-visible + .response-checkbox {
  outline: 3px solid #ef493f;
  outline-offset: 3px;
}

.response-option input:checked + .response-checkbox::after {
  content: "✓";
  position: absolute;
  top: 43%;
  left: 54%;
  color: #ef493f;
  font: 900 1.45em / 1 Arial Black, Arial, sans-serif;
  transform: translate(-50%, -50%) rotate(-9deg);
}

.response-status {
  min-height: 1em;
  margin: 7px 0 0;
  text-align: center;
  font: 900 clamp(11px, 1.8vw, 14px) / 1 "Courier New", monospace;
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .portrait-frame {
    inset: 16px -8vw 88px;
  }

  .question {
    font-size: clamp(19px, 6.2vw, 30px);
  }

  .collage-question {
    top: 0;
    bottom: auto;
    font-size: clamp(25px, 7.2vw, 36px);
  }

  .collage-word:nth-child(1) {
    top: 7%;
    left: 4px;
  }

  .collage-word:nth-child(2) {
    top: 36%;
    left: 2px;
  }

  .collage-word:nth-child(3) {
    top: 66%;
    left: 5px;
  }

  .collage-word:nth-child(4) {
    top: 10%;
    right: 4px;
  }

  .collage-word:nth-child(5) {
    top: 40%;
    right: 2px;
  }

  .collage-word:nth-child(6) {
    top: 70%;
    right: 5px;
  }

  .ransom-message {
    top: 0;
    bottom: auto;
    padding: 0;
    font-size: clamp(24px, 8vw, 36px);
  }

  .ransom-word:nth-child(1) {
    top: 4%;
    left: 6px;
  }

  .ransom-word:nth-child(2) {
    top: 12%;
    left: 18%;
  }

  .is-alt-three .ransom-word:nth-child(2) {
    top: max(12%, calc(4% + 1.55em));
  }

  .ransom-word:nth-child(3) {
    top: 29%;
    left: 6px;
  }

  .ransom-word:nth-child(4) {
    top: 42%;
    right: auto;
    left: 16%;
  }

  .ransom-word:nth-child(5) {
    top: 55%;
    right: auto;
    left: 6px;
  }

  .ransom-word:nth-child(6) {
    top: 60%;
    right: 6px;
  }

  .ransom-word:nth-child(7) {
    top: 76%;
    right: 6px;
  }

  .is-alt-two .ransom-letter {
    min-width: 0.7em;
    padding-right: 0.08em;
    padding-left: 0.08em;
  }

  .response-form {
    bottom: 8px;
    width: calc(100vw - 16px);
  }

  .response-card {
    padding: 10px 11px 8px;
  }

  .response-choices {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-shell,
  .reveal-stage,
  .portrait,
  .prompt,
  .question,
  .collage-word,
  .response-form {
    transition-duration: 0.01ms;
  }

  .is-revealed .collage-word {
    transition-delay: 0ms;
  }

  .is-alt-two.is-prompt-ready .ransom-word:nth-child(n + 3) {
    transition-delay: 0ms;
  }
}
