@font-face {
  font-family: "Editor's Note";
  src: url("/assets/fonts/EditorsNote-Light.otf") format("opentype"),
       local("Editor's Note Light"),
       local("Editors Note Light");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Editor's Note";
  src: url("/assets/fonts/EditorsNote-ExtralightItalic.otf") format("opentype"),
       local("Editor's Note ExtraLight Italic"),
       local("Editors Note ExtraLight Italic"),
       local("Editor's Note Extralight Italic"),
       local("Editors Note Extralight Italic");
  font-style: italic;
  font-weight: 200;
  font-display: swap;
}

:root {
  --burgundy: #680007;
  --white: #fff;
  --serif: "Editor's Note", "Playfair Display", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  background: var(--burgundy);
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1rem, 2vw, 2rem);
}

.hero__media,
.hero__media img,
.hero__media video,
.hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media { z-index: -3; background: var(--burgundy); }
.hero__media img, .hero__media video { object-fit: cover; }
.hero__media video { z-index: 1; }
.hero__veil {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(27,0,3,.28), transparent 34%),
    linear-gradient(0deg, rgba(27,0,3,.3), transparent 55%);
}

.language {
  position: absolute;
  top: clamp(1rem, 2vw, 2rem);
  right: clamp(1rem, 2vw, 2rem);
  z-index: 3;
  display: block;
  animation: enter .9s .35s both;
}

.language__toggle {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 999px;
  color: var(--white);
  background: rgba(104,0,7,.3);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.language__globe { width: 1.25rem; height: 1.25rem; display: block; }
.language__globe svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; }

.language__menu {
  min-width: 9rem;
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  padding: .35rem;
  border-radius: .8rem;
  background: var(--white);
  box-shadow: 0 1rem 3rem rgba(35,0,4,.18);
}

.language__menu:not([hidden]) { display: grid; }

.language__menu button {
  width: 100%;
  border: 0;
  border-radius: .55rem;
  padding: .7rem .8rem;
  color: var(--burgundy);
  background: transparent;
  cursor: pointer;
  font-size: .75rem;
  letter-spacing: .04em;
  text-align: left;
  transition: color .25s ease, background .25s ease;
}

.language__menu button[aria-pressed="true"] { background: rgba(104,0,7,.08); }

.hero__brand {
  --brand-x: -50%;
  --brand-gap: clamp(.65rem, 1.25vw, 1.25rem);
  position: absolute;
  top: var(--brand-gap);
  left: 50%;
  width: 100%;
  transform: translateX(var(--brand-x));
  animation: wordmark 1.25s .08s cubic-bezier(.22,1,.36,1) both;
}

.hero__wordmark {
  width: 100%;
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(7rem, 26.5vw, 29rem);
  font-style: normal;
  font-weight: 300;
  line-height: .72;
  letter-spacing: -.075em;
  text-align: center;
  white-space: nowrap;
}

.hero__tagline {
  box-sizing: border-box;
  width: 100%;
  margin: 80px auto 0;
  padding: 0 var(--brand-gap);
  color: var(--white);
  font-size: clamp(.78rem, 1.15vw, 1rem);
  line-height: 1.45;
  text-align: center;
  text-wrap: wrap;
}

.hero__tagline span { display: block; }

.waitlist {
  --waitlist-x: -50%;
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 2vw, 2rem);
  width: min(42rem, calc(100% - clamp(2rem, 4vw, 4rem)));
  padding: clamp(1.1rem, 1.7vw, 1.55rem);
  display: block;
  color: var(--burgundy);
  background: rgba(255,255,255,.97);
  transform: translateX(var(--waitlist-x));
  animation: waitlistEnter 1s .55s cubic-bezier(.22,1,.36,1) both;
}

.waitlist__copy { text-align: center; }

.waitlist__eyebrow {
  margin: 0 0 .35rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.waitlist h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  font-style: italic;
  font-weight: 200;
  line-height: .95;
  letter-spacing: -.045em;
}

.waitlist__copy > p:last-child {
  max-width: none;
  margin: .6rem 0 1rem;
  color: rgba(104,0,7,.72);
  font-size: clamp(.7rem, .95vw, .85rem);
  line-height: 1.35;
}

.waitlist__promise span { display: block; white-space: nowrap; }

.waitlist__form { width: min(100%, 34rem); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) auto; border: 1px solid rgba(104,0,7,.25); }
.waitlist__form input { min-width: 0; border: 0; padding: 0 1rem; color: var(--burgundy); outline: 0; background: transparent; }
.waitlist__form input::placeholder { color: rgba(104,0,7,.55); }
.waitlist__form button {
  min-height: 3.75rem;
  border: 0;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  color: var(--white);
  background: var(--burgundy);
  cursor: pointer;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.waitlist__success { margin: 1rem 0 0; font-family: var(--serif); font-size: 1.25rem; font-style: italic; font-weight: 200; }
.input--hidden,
.brevo-response { width: 1px !important; height: 1px !important; position: absolute !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; opacity: 0 !important; pointer-events: none !important; }
.sr-only { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes wordmark {
  from { opacity: 0; transform: translateX(var(--brand-x)) translateY(3rem); filter: blur(12px); }
  to { opacity: 1; transform: translateX(var(--brand-x)) translateY(0); filter: blur(0); }
}

@keyframes enter {
  from { opacity: 0; transform: translateY(1.5rem); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes waitlistEnter {
  from { opacity: 0; transform: translateX(var(--waitlist-x)) translateY(1.5rem); filter: blur(10px); }
  to { opacity: 1; transform: translateX(var(--waitlist-x)) translateY(0); filter: blur(0); }
}

@media (min-width: 768px) {
  .hero__brand { --brand-gap: 40px; }
  .hero__tagline { margin-top: 40px; }
  .language { top: auto; right: auto; bottom: 40px; left: 40px; }
  .language__menu { top: auto; right: auto; bottom: calc(100% + .5rem); left: 0; }
  .waitlist { --waitlist-x: -50%; right: auto; bottom: 40px; left: 50%; transform: translateX(var(--waitlist-x)); }
}

@media (max-width: 767px) {
  .hero { padding: 1rem; }
  .hero__brand { --brand-x: 0%; --brand-gap: .8rem; top: var(--brand-gap); left: 0; width: 100%; }
  .hero__wordmark { width: calc(100% - 2rem); max-width: calc(100vw - 2rem); margin-left: 1rem; font-size: 34vw; letter-spacing: -6px; text-align: left; }
  .hero__tagline { width: 100%; margin: 1.6rem 0 0; padding: 0 1rem; font-size: .68rem; line-height: 1.3; letter-spacing: 0; text-align: left; white-space: normal; }
  .hero__tagline span { display: inline; }
  .language { top: auto; right: 1rem; bottom: 1rem; }
  .language__menu { top: auto; bottom: calc(100% + .5rem); }
  .waitlist { --waitlist-x: 0%; left: 1rem; right: 5.5rem; bottom: 1rem; width: auto; padding: .85rem; display: block; }
  .waitlist__copy { text-align: left; }
  .waitlist__eyebrow { margin-bottom: .25rem; font-size: .55rem; }
  .waitlist h2 { font-size: clamp(1.25rem, 5.7vw, 1.7rem); white-space: nowrap; }
  .waitlist__copy > p:last-child { margin: .4rem 0 .65rem; font-size: .68rem; line-height: 1.3; }
  .waitlist__promise span { white-space: normal; }
  .waitlist__form { grid-template-columns: minmax(0, 1fr) auto; }
  .waitlist__form input { min-height: 2.75rem; padding: 0 .65rem; font-size: .7rem; }
  .waitlist__form button { min-height: 2.75rem; padding: 0 .7rem; justify-content: center; font-size: .58rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; }
}
