:root {
  color-scheme: light;
  --ink: #171612;
  --muted: #69645b;
  --soft: #eee7d8;
  --paper: #f8f3e7;
  --line: #d8d0c0;
  --green: #264d3d;
  --green-dark: #172c24;
  --coral: #9f5d48;
  --charcoal: #11110f;
  --white: #fffdf7;
  --danger: #9f2d24;
  --shadow: 0 28px 90px rgba(23, 22, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.84), rgba(248, 243, 231, 0) 42%),
    linear-gradient(180deg, #faf6ed 0%, var(--paper) 54%, #efe7d8 100%);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.5;
}

img {
  display: block;
}

a {
  color: inherit;
}

.teaser {
  display: grid;
  min-height: 100vh;
  padding: clamp(20px, 4vw, 56px);
}

.teaser-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: min(100%, 1120px);
  min-height: calc(100vh - clamp(40px, 8vw, 112px));
  margin: 0 auto;
  padding: clamp(22px, 4.5vw, 56px);
  overflow: hidden;
  border: 1px solid rgba(216, 208, 192, 0.82);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.5);
  box-shadow: var(--shadow);
}

.teaser-shell::before {
  content: "";
  position: absolute;
  right: clamp(22px, 5vw, 70px);
  bottom: clamp(96px, 12vw, 150px);
  width: min(34vw, 320px);
  aspect-ratio: 1;
  border: 1px solid rgba(23, 22, 18, 0.08);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.52), rgba(238, 231, 216, 0.46)),
    var(--soft);
  opacity: 0.64;
}

.teaser-shell::after {
  content: "";
  position: absolute;
  right: calc(clamp(22px, 5vw, 70px) + min(13vw, 124px));
  bottom: calc(clamp(96px, 12vw, 150px) + min(8vw, 76px));
  width: min(8vw, 74px);
  height: min(14vw, 132px);
  border-radius: 999px 999px 8px 8px;
  background: rgba(23, 22, 18, 0.76);
  box-shadow: 0 42px 0 rgba(23, 22, 18, 0.76);
  opacity: 0.08;
}

.brand,
.site-footer,
.form-row {
  display: flex;
  align-items: center;
}

.brand {
  position: relative;
  z-index: 1;
  gap: 10px;
  width: fit-content;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
}

.brand-mark img {
  width: 38px;
  height: 38px;
}

.teaser-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 800px;
  padding: clamp(28px, 5vh, 72px) 0 clamp(22px, 4vh, 52px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--coral);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(3.45rem, 8vw, 7.5rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
}

.waitlist-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  padding-top: 4px;
}

.newsletter-form.is-hidden {
  display: none;
}

.form-row {
  gap: 10px;
  align-items: stretch;
}

.newsletter-input,
.newsletter-submit,
.back-button {
  min-height: 50px;
  border-radius: 8px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
}

.newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(216, 208, 192, 0.94);
  background: rgba(255, 253, 247, 0.7);
  color: var(--ink);
  outline: none;
  padding: 0 16px;
  box-shadow: 0 1px 2px rgba(23, 22, 18, 0.04);
}

.newsletter-input:focus {
  border-color: rgba(38, 77, 61, 0.72);
  box-shadow: 0 0 0 4px rgba(38, 77, 61, 0.12);
}

.newsletter-input::placeholder {
  color: rgba(105, 100, 91, 0.72);
}

.newsletter-submit,
.back-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.newsletter-submit {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 0 20px;
  background: var(--charcoal);
  color: var(--white);
  box-shadow: 0 18px 34px rgba(23, 22, 18, 0.18);
}

.newsletter-submit:hover {
  background: #2b2923;
}

.newsletter-submit:disabled {
  cursor: progress;
  opacity: 0.72;
}

.form-note,
.newsletter-message {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.newsletter-message {
  min-height: 1.4em;
  font-weight: 700;
}

.newsletter-message:empty {
  display: none;
}

.newsletter-message.is-success {
  color: var(--green-dark);
}

.newsletter-message.is-error {
  color: var(--danger);
}

.back-button {
  margin-top: 14px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.back-button:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.site-footer {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(28px, 5vh, 56px);
  padding-top: clamp(18px, 3vh, 24px);
  border-top: 1px solid rgba(216, 208, 192, 0.82);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green);
}

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

@media (max-width: 760px) {
  .teaser {
    padding: 0;
  }

  .teaser-shell {
    min-height: 100vh;
    border-width: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .teaser-shell::before {
    right: -80px;
    bottom: 130px;
    width: 260px;
  }

  .teaser-shell::after {
    right: 28px;
    bottom: 214px;
    width: 42px;
    height: 78px;
  }

  h1 {
    font-size: clamp(2.65rem, 10.5vw, 4.4rem);
  }

  .form-row,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .newsletter-submit {
    width: 100%;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .teaser {
    padding: clamp(14px, 3vh, 24px);
  }

  .teaser-shell {
    min-height: calc(100vh - clamp(28px, 6vh, 48px));
    padding: clamp(20px, 4vh, 32px) clamp(24px, 4vw, 46px);
  }

  .teaser-copy {
    padding: clamp(18px, 3vh, 30px) 0 clamp(16px, 2.8vh, 26px);
  }

  h1 {
    font-size: clamp(3.1rem, 10vh, 4.6rem);
  }

  .lede {
    margin-top: 20px;
  }

  .site-footer {
    margin-top: 22px;
    padding-top: 16px;
  }
}

@media (max-width: 420px) {
  .teaser-shell {
    padding: 20px;
  }

  h1 {
    font-size: 2.65rem;
  }
}
