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

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

[hidden] {
  display: none !important;
}

html {
  color: #000;
  background: #fff;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  color: #fff;
  background: #000;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

.stage {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: max(3rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) 2.5rem max(1.5rem, env(safe-area-inset-left));
  text-align: center;
}

.mark {
  display: block;
  margin: 0;
  font-size: clamp(3.25rem, 1.75rem + 8vw, 8.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

.mark::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) auto 0;
  background: currentColor;
}

.line {
  margin: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) 0 0;
  padding-left: 0.12em;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.375rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-wrap: balance;
}

.join {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  width: min(100%, 32rem);
  margin-top: clamp(2.5rem, 1.75rem + 3vw, 4rem);
  text-align: left;
}

.join label {
  grid-column: 1 / -1;
  margin-bottom: -0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.join input {
  width: 100%;
  min-width: 0;
  height: 3rem;
  margin: 0;
  padding: 0 1rem;
  border: 1px solid currentColor;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: 1.0625rem/1.25 Georgia, "Times New Roman", serif;
  appearance: none;
}

.join input:-webkit-autofill {
  -webkit-text-fill-color: #000;
  caret-color: #000;
  box-shadow: 0 0 0 3rem #fff inset;
}

.join button {
  min-width: 11.75rem;
  height: 3rem;
  margin: 0;
  padding: 0 1.25rem 0 calc(1.25rem + 0.18em);
  border: 1px solid #000;
  border-radius: 0;
  color: #fff;
  background: #000;
  font: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
}

.join button[aria-disabled="true"] {
  cursor: progress;
}

.extra {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.check {
  grid-column: 1 / -1;
}

.check:empty {
  display: none;
}

.status {
  grid-column: 1 / -1;
  min-height: 1.5em;
  margin: 0;
  font: 0.9375rem/1.5 Georgia, "Times New Roman", serif;
}

.done {
  margin: clamp(2.5rem, 1.75rem + 3vw, 4rem) 0 0;
  padding-left: 0.14em;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  letter-spacing: 0.14em;
  animation: appear 0.2s ease-out;
}

.done:focus {
  outline: none;
}

.note,
.back {
  margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0 0;
  font: 1rem/1.5 Georgia, "Times New Roman", serif;
}

.foot {
  padding: 1rem max(1.5rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.foot a {
  display: inline-block;
  padding: 0.5rem 0.25rem 0.5rem calc(0.25rem + 0.2em);
}

.top {
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) 0 max(1.5rem, env(safe-area-inset-left));
  text-align: center;
}

.brand {
  display: inline-block;
  padding: 0.5rem 0 0.5rem 0.2em;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

.text {
  flex: 1 0 auto;
  width: min(100%, 38rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) max(1.5rem, env(safe-area-inset-right)) max(3rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
}

.text h1 {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text p {
  margin: 0 0 1.25rem;
  font: 1.0625rem/1.65 Georgia, "Times New Roman", serif;
}

.text .updated {
  margin-top: 2.5rem;
  font-size: 0.875rem;
}

@keyframes appear {
  from {
    opacity: 0;
  }
}

@media (max-width: 30rem) {
  .join {
    grid-template-columns: minmax(0, 1fr);
  }

  .join button {
    width: 100%;
  }
}

@media (hover: hover) {
  .join button:hover {
    color: #000;
    background: #fff;
  }
}

@media (prefers-color-scheme: dark) {
  html {
    color: #fff;
    background: #000;
  }

  ::selection {
    color: #000;
    background: #fff;
  }

  :focus-visible {
    outline-color: #fff;
  }

  .join input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    box-shadow: 0 0 0 3rem #000 inset;
  }

  .join button {
    border-color: #fff;
    color: #000;
    background: #fff;
  }
}

@media (prefers-color-scheme: dark) and (hover: hover) {
  .join button:hover {
    color: #fff;
    background: #000;
  }
}

@media (scripting: none) {
  .join {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .done {
    animation: none;
  }
}
