:root {
  color-scheme: dark;
  --aubergine: #5d2a2c;
  --cream: #f4e4ca;
  --shadow: #210c0d;
  --control-radius: .375rem;
  background: var(--aubergine);
  color: var(--cream);
  font: 400 1.125rem / 1.5 Baskervville, Georgia, serif;
}

*, *::before { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p { margin: 0; }

.teaser {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(2rem, 5vw, 5rem) clamp(1.25rem, 5vw, 5rem) max(2.25rem, 6vh, env(safe-area-inset-bottom));
  text-align: center;
}

.hero-photo, .teaser::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-photo {
  z-index: -2;
  object-fit: cover;
  object-position: 50% 53%;
}

.teaser::before {
  content: "";
  z-index: -1;
  background:
    linear-gradient(to bottom, rgb(45 0 0 / 38%), rgb(93 42 44 / 30%) 32%, rgb(45 0 0 / 68%) 68%, var(--shadow)),
    linear-gradient(90deg, rgb(45 0 0 / 28%), transparent 42% 58%, rgb(45 0 0 / 28%));
}

.wordmark {
  flex: 1;
  min-height: 16rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 1rem 2rem;
  font-size: clamp(1.25rem, 2.25vw, 1.9rem);
  font-weight: 400;
  line-height: 1.2;
  text-shadow: 0 2px 12px var(--shadow);
}

.wordmark img {
  display: block;
  width: min(100%, clamp(13rem, 38vw, 29rem));
  height: auto;
  margin-bottom: .25rem;
  filter: drop-shadow(0 2px 10px var(--shadow));
}

.teaser-copy {
  display: grid;
  width: min(100%, 48rem);
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 4rem);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  text-shadow: 0 1px 10px var(--shadow);
  text-wrap: pretty;
}
.teaser-copy h2 { font: inherit; }
.teaser-copy[hidden] { display: none; }
.invitation { margin-top: .35rem; }

.early-access-result:not([hidden]) {
  display: grid;
  justify-items: center;
  width: min(100%, 31rem);
  gap: .65rem;
  padding-bottom: clamp(.75rem, 4vh, 2.5rem);
  text-shadow: 0 1px 10px var(--shadow);
  text-wrap: pretty;
}
.early-access-result h2 {
  font-size: clamp(1.85rem, 4vw, 3.3rem);
  font-weight: 400;
  line-height: 1.06;
  text-wrap: balance;
}
.early-access-result a {
  display: inline-grid;
  min-height: 44px;
  align-items: center;
  padding-inline: .25rem;
  color: inherit;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.early-access-result a:hover { text-decoration-thickness: 2px; }
.early-access-result a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.early-access { margin: .35rem auto 0; max-width: 22rem; }
.early-access input,
.early-access button {
  min-height: 44px;
  border: 1px solid currentColor;
  border-radius: var(--control-radius);
  corner-shape: squircle;
  padding: .5rem .75rem;
  font: inherit;
}
.early-access summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .55rem;
  padding-inline: .25rem;
  list-style: none;
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.early-access summary::-webkit-details-marker { display: none; }
.early-access summary::after {
  content: "";
  flex: none;
  width: .45em;
  height: .45em;
  margin-inline-end: .15em;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: translateY(-.1em) rotate(45deg);
}
.early-access[open] summary::after { transform: translateY(.1em) rotate(225deg); }
.early-access summary:hover { text-decoration-thickness: 2px; }
.early-access > p { margin: .7rem 0; text-align: start; }
.early-access fieldset { display: grid; min-width: 0; margin: 0; padding: 0; border: 0; gap: .6rem; }
.early-access label { display: block; margin-bottom: .25rem; text-align: start; }
.early-access input { width: 100%; min-width: 0; background: var(--shadow); color: var(--cream); }
.early-access input[type="submit"] { background: var(--cream); color: var(--shadow); cursor: pointer; }
.early-access input[type="submit"]:hover:not(:disabled) { background: var(--shadow); color: var(--cream); }
.early-access input[type="submit"]:disabled { opacity: .65; cursor: default; }
#early-access-feedback { text-align: start; }
.early-access :focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

@media (max-width: 600px) {
  .teaser-copy { max-width: 27rem; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .hero-photo { object-position: 52% 54%; }
  .teaser::before {
    background: linear-gradient(to bottom, rgb(45 0 0 / 27%), rgb(93 42 44 / 23%) 28%, rgb(45 0 0 / 72%) 62%, var(--shadow));
  }
}
