/* The waitlist page in Vaurella's colours: the wine of the logo on a warm
   ivory ground, with the wine-and-cream knit of the form's photograph carried
   softly into the page behind it. Set in Cormorant Garamond. */
:root {
  --ground: #f4ece1;
  --ground-deep: #ebdfcf;
  --card: #fbf7f1;
  --field: #fdfaf5;
  --wine: #7a1528;
  --wine-deep: #5c0f1e;
  --ink: #241a17;
  --muted: rgba(36, 26, 23, 0.66);
  --faint: rgba(36, 26, 23, 0.5);
  --rule: rgba(122, 21, 40, 0.24);
  --line: rgba(92, 15, 30, 0.22);
  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --gutter: 40px;
  --max: 1160px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ground);
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  /* Depth of colour in the ground: a light from above, warming to a deeper
     ivory at the foot of the page, with a faint wine blush at the corners. */
  background:
    radial-gradient(70% 520px at 50% 0%, rgba(255, 251, 245, 0.95), rgba(255, 251, 245, 0) 100%),
    radial-gradient(55% 60% at 100% 4%, rgba(122, 21, 40, 0.13), rgba(122, 21, 40, 0) 70%),
    radial-gradient(45% 40% at 0% 100%, rgba(122, 21, 40, 0.07), rgba(122, 21, 40, 0) 70%),
    linear-gradient(180deg, #f7f0e7 0%, var(--ground) 45%, var(--ground-deep) 100%);
}

/* The cream of the knit, softened, folding in at two corners of the page,
   with the warmth of the ground showing through it. */
body::before, body::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-image: url("/assets/img/knit-soft.webp");
  background-repeat: no-repeat;
}

body::before {
  top: 0;
  right: 0;
  width: min(760px, 52vw);
  height: 620px;
  background-size: 1500px auto;
  background-position: 100% 100%;
  opacity: 0.7;
  mix-blend-mode: multiply;
  transform: scaleY(-1);
  -webkit-mask-image: radial-gradient(100% 100% at 100% 100%, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 78%);
  mask-image: radial-gradient(100% 100% at 100% 100%, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 78%);
}

body::after {
  bottom: 0;
  left: 0;
  width: min(900px, 70vw);
  height: 760px;
  background-size: 1700px auto;
  background-position: 100% 100%;
  opacity: 0.8;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(100% 100% at 0% 100%, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 75%);
  mask-image: radial-gradient(100% 100% at 0% 100%, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 75%);
}

img { display: block; max-width: 100%; height: auto; }

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

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px var(--gutter) 40px;
}

/* ---- the hero: logo, headline and one line ------------------------------ */

.hero { text-align: center; }

.lockup {
  height: 84px;
  width: auto;
  margin: 0 auto;
}

h1, h2, h3 { font-weight: 500; margin: 0; }

h1 {
  max-width: 13.5em;
  margin: 40px auto 18px;
  font-size: clamp(40px, 5.4vw, 78px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--wine);
  text-wrap: balance;
}

.line {
  max-width: 31em;
  margin: 0 auto;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(36, 26, 23, 0.82);
  text-wrap: balance;
}

/* ---- the video: YouTube's own embedded player --------------------------- */

.video {
  max-width: 960px;
  margin: 44px auto 0;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #5c0f1e;
  box-shadow:
    0 30px 70px rgba(70, 14, 26, 0.24),
    0 8px 20px rgba(70, 14, 26, 0.12),
    0 0 0 1px rgba(92, 15, 30, 0.08);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- the signup card --------------------------------------------------- */

.join {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  max-width: 960px;
  margin: 64px auto 0;
  background: rgba(251, 247, 241, 0.94);
  border: 1px solid rgba(122, 21, 40, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(70, 14, 26, 0.12), 0 4px 12px rgba(70, 14, 26, 0.05);
  scroll-margin-top: 16px;
}

.join-image { position: relative; margin: 0; min-height: 100%; }
.join-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}

.join-body { padding: 40px 48px 40px 46px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--wine);
}
.eyebrow::after { content: ""; flex: 1; max-width: 260px; height: 1px; background: var(--rule); }

.join-body h2 {
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.08;
  margin-bottom: 22px;
  color: var(--ink);
}

.fields { display: grid; gap: 12px; }

.field { min-width: 0; }

input[type="text"], input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: 18px; /* above 16px, so iOS does not zoom on focus */
  font-weight: 500;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 16px;
  min-height: 48px;
}
input::placeholder { color: rgba(36, 26, 23, 0.62); opacity: 1; }
input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(122, 21, 40, 0.14); background: #fff; }

.error { margin: 4px 0 0; font-size: 15px; font-style: italic; color: var(--wine); }
.invalid input { border-color: var(--wine); }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button {
  display: block;
  width: 100%;
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  background: var(--wine);
  border: 0;
  border-radius: 8px;
  padding: 11px 24px 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(92, 15, 30, 0.2);
  transition: background 0.15s ease;
}
button:hover { background: var(--wine-deep); }
button:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
button[disabled] { opacity: 0.65; cursor: default; }

.status { margin: 10px 0 0; font-style: italic; color: var(--muted); font-size: 16px; }
.status:empty { display: none; }
.status.err { color: var(--wine); }

.done { padding: 8px 0 4px; }
.done:focus { outline: none; }
.done p { margin: 0; font-size: 28px; line-height: 1.25; color: var(--wine); }

/* ---- the points and the privacy note ----------------------------------- */

.points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1000px;
  margin: 44px auto 0;
  padding: 0;
}
.points li { padding: 4px 28px; text-align: center; }
.points li + li { border-left: 1px solid var(--rule); }
.points .icon { display: block; width: 46px; height: 46px; margin: 0 auto 8px; color: var(--wine); }
.points h3 { font-size: 23px; color: var(--ink); margin-bottom: 4px; }
.points p { text-wrap: balance; margin: 0; font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--muted); }

.privacy {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: center;
}
.privacy p { text-wrap: balance; margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.5; color: var(--faint); }

/* ---- narrower screens -------------------------------------------------- */

@media (max-width: 960px) {
  :root { --gutter: 28px; }
  .join-body { padding: 36px 36px 34px; }
  .points li { padding: 4px 18px; }
}

/* A phone: one column, in the order logo, headline, line, video, form, so
   that the form is reached with little scrolling. */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  body::before { width: 100vw; height: 380px; background-size: 760px auto; opacity: 0.32; }
  body::after { width: 100vw; height: 520px; background-size: 1100px auto; opacity: 0.55; }
  .page { padding-top: 26px; padding-bottom: 32px; }
  .lockup { height: 54px; }
  h1 { margin: 22px auto 12px; font-size: 38px; line-height: 1.04; }
  .line { font-size: 19px; line-height: 1.38; max-width: 22em; }
  .video { margin-top: 22px; }
  .video-frame { border-radius: 12px; }
  .play { width: 64px; height: 64px; }
  .play svg { width: 26px; height: 26px; margin-left: 3px; }
  .join { grid-template-columns: minmax(0, 1fr); margin-top: 22px; border-radius: 14px; }
  .join-image { height: 80px; min-height: 0; }
  .join-body { padding: 20px 18px 20px; }
  .eyebrow { font-size: 11.5px; letter-spacing: 0.22em; margin-bottom: 6px; }
  .join-body h2 { font-size: 30px; margin-bottom: 14px; }
  .fields { gap: 10px; }
  input[type="text"], input[type="email"] { min-height: 46px; }
  button { margin-top: 14px; }
  .points { grid-template-columns: minmax(0, 1fr); row-gap: 22px; margin-top: 34px; }
  .points li { padding: 0 8px; }
  .points li + li { border-left: 0; }
  .points h3 { font-size: 22px; }
  .privacy { margin-top: 34px; }
}
