@font-face {
  font-family: Inter;
  src: url("/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0b;
  --paper: #f5f5f3;
  --fog: #8d8d94;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

/* The ask and the field set display, which would otherwise keep a hidden control on the poster. */
[hidden] {
  display: none !important;
}

html {
  height: 100%;
  scrollbar-color: #3a3a40 var(--ink);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--paper);
}

::selection {
  background: var(--paper);
  color: var(--ink);
}

.print {
  box-sizing: border-box;
  width: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: center;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-left));
}

.stage,
.caption {
  grid-area: 1 / 1;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vh, 2.75rem);
  width: min(76rem, 100%);
}

.promise {
  margin: 0;
  max-width: 100%;
  text-align: center;
  text-wrap: balance;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-synthesis: none;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.caption {
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(32rem, 100%);
}

.slip {
  width: 100%;
  margin: 0;
}

.status {
  min-height: 1.3em;
  margin: 0 0 0.35rem;
  text-align: center;
  overflow-wrap: break-word;
  text-wrap: pretty;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.status:empty {
  min-height: 0;
  margin: 0;
}

.line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

button,
input {
  font-family: Inter, sans-serif;
  font-synthesis: none;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

button {
  width: fit-content;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  font-weight: 600;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.27;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: center;
  text-underline-offset: 0.14em;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  button:hover:not(:disabled) {
    text-decoration: underline;
  }
}

button:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}

button:disabled {
  cursor: default;
  color: var(--fog);
  text-decoration: none;
}

.field {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  cursor: text;
  touch-action: manipulation;
  font-family: Inter, sans-serif;
  font-synthesis: none;
}

/* The rule stays put. The extra box only enlarges the tap, into the bottom padding. */
.field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.75rem;
}

input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  appearance: none;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: 0;
  border-bottom: 1px solid var(--paper);
  padding: 0.15rem 0 0.4rem;
  caret-color: var(--paper);
  touch-action: manipulation;
}

input::placeholder {
  color: transparent;
}

input:focus {
  outline: none;
  border-bottom-width: 2px;
  padding-bottom: calc(0.4rem - 1px);
}

input:disabled,
input:read-only {
  opacity: 1;
  color: var(--paper);
  -webkit-text-fill-color: var(--paper);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:autofill {
  -webkit-text-fill-color: var(--paper);
  caret-color: var(--paper);
  border-radius: 0;
  box-shadow: 0 0 0 1000px var(--ink) inset;
  background-color: var(--ink);
  transition: background-color 9999s ease-out;
}

.slip[data-state="saving"] .field,
.slip[data-state="saving"] input {
  cursor: default;
}

.slip[data-state="joined"] .status {
  min-height: 2.75rem;
  margin: 0 0 0.35rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.slip[data-state="joined"]:has(.field[hidden]) .status {
  min-height: 0;
  margin: 0;
  display: block;
}

.caret {
  position: absolute;
  left: 0;
  bottom: 0.48rem;
  width: 1px;
  height: 1.05em;
  background: var(--paper);
  pointer-events: none;
}

.field:has(input:focus) .caret,
.field:not(:has(input:placeholder-shown)) .caret {
  visibility: hidden;
}

.mark {
  width: 100%;
}

.mark svg {
  display: block;
  width: 100%;
  height: auto;
  /* The viewBox carries more empty ink on the right than the left. */
  transform: translateX(-0.85%);
}

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

.dope-launch .dl-disc,
.dope-launch .dl-cro,
.dope-launch .dl-main,
.dope-launch .wl {
  transform-box: fill-box;
}

.dope-launch .dl-disc {
  transform-origin: 50% 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .dope-launch.play .dl-disc {
    animation: dl-in 2.4s both;
  }

  .dope-launch.play .dl-cro {
    animation: dl-cro 2.4s both;
  }

  .dope-launch.play .dl-main {
    animation: dl-main 2.4s both;
  }

  .dope-launch.play .wl {
    animation: dl-letter 2.4s both;
  }

  .dope-launch.play .wl2 {
    animation-delay: 0.06s;
  }

  .dope-launch.play .wl3 {
    animation-delay: 0.12s;
  }

  .dope-launch.play .wl4 {
    animation-delay: 0.18s;
  }
}

@keyframes dl-in {
  0% {
    opacity: 0;
    transform: scale(0.94);
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  22%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dl-cro {
  0%,
  22% {
    transform: translateX(0);
    animation-timing-function: cubic-bezier(0.7, 0, 0.2, 1);
  }

  46%,
  58% {
    transform: translateX(-9px);
    animation-timing-function: cubic-bezier(0.7, 0, 0.2, 1);
  }

  82%,
  100% {
    transform: translateX(0);
  }
}

@keyframes dl-main {
  0%,
  22% {
    transform: translateX(0);
    animation-timing-function: cubic-bezier(0.7, 0, 0.2, 1);
  }

  46%,
  58% {
    transform: translateX(3px);
    animation-timing-function: cubic-bezier(0.7, 0, 0.2, 1);
  }

  82%,
  100% {
    transform: translateX(0);
  }
}

@keyframes dl-letter {
  0%,
  36% {
    opacity: 0;
    transform: translateX(-14px);
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  64%,
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
