:root {
  --ivory: #F7F3EA;
  --espresso: #24201D;
  --taupe: #B8AA98;
  --copper: #A76A49;
  --copper-text: #8A5236;   /* darker copper for small text on ivory: ~5.7:1 (AA) */
  --copper-light: #D9A47E;  /* copper for small text on espresso: ~7.4:1 (AA) */
  --ivory-muted: #D3C8B9;   /* secondary text on espresso: ~11:1 */
  --muted: #5B524B;         /* secondary text on ivory: ~7:1 */
  --error: #9B2C1F;
  --success: #2F5D3A;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--copper-text); text-underline-offset: 3px; }
a:hover { color: var(--espresso); }

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

/* =========================================================
   STAGE — the cup standing in front of oversized type
   ========================================================= */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ivory);
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, #3a2a21 0%, rgba(58, 42, 33, 0) 70%),
    var(--espresso);
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end; /* logo on the right */
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 0;
}

.brand {
  display: inline-block;
  line-height: 0;
}
.brand img {
  display: block;
  width: clamp(112px, 26vw, 140px);
  height: auto;
}
.brand:focus-visible { outline-color: var(--copper-light); }

.stage-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.25rem 2rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--copper-light);
}

/* The art: headline and cup share one grid cell, with clear space between each word and the cup. */
.stage-art {
  /* Cup size drives everything; width follows the cut-out's 573:802 ratio */
  --cup-h: clamp(210px, 33svh, 320px);
  --cup-w: calc(var(--cup-h) * 0.714);
  --cup-space: clamp(1.125rem, 2.5vw, 2.5rem); /* breathing room between the words and the cup */
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0.75rem 0 1.25rem;
}

/* Warm copper glow behind the cup (absolutely positioned so it never affects layout size) */
.stage-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--cup-w) * 2.6);
  aspect-ratio: 1;
  border-radius: 50%;
  /* Slightly stronger glow so the black lid separates from the dark background */
  background: radial-gradient(circle, rgba(185, 120, 82, 0.6) 0%, rgba(167, 106, 73, 0.2) 40%, rgba(167, 106, 73, 0) 68%);
  z-index: 0;
  pointer-events: none;
}

.headline {
  grid-area: 1 / 1;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Narrow screens: "Coming" above the cup, "Soon." below, with space on both sides */
  gap: calc(var(--cup-h) + var(--cup-space) * 2);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.5rem, 18vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.015em;
  color: var(--ivory);
  white-space: nowrap;
}

.cup {
  grid-area: 1 / 1;
  z-index: 2;
  position: relative;
  margin: 0;
  line-height: 0;
}

/* Soft contact shadow under the cup */
.cup::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -3%;
  height: 6%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 70%);
}

.hero-img {
  display: block;
  height: var(--cup-h);
  width: auto;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.45));
}
.hero-img.is-missing { visibility: hidden; }

.lede {
  margin: 0;
  max-width: 30rem;
  font-size: 1.0625rem;
  color: var(--ivory-muted);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin-top: 1.25rem;
  padding: 0.5rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  border-bottom: 1px solid rgba(247, 243, 234, 0.35);
  transition: color .2s ease, border-color .2s ease;
}
.scroll-cue:hover { color: var(--copper-light); border-color: var(--copper-light); }
.scroll-cue:focus-visible { outline-color: var(--copper-light); }

/* Wide screens: "Coming"  [cup]  "Soon." on one line, with space either side of the cup */
@media (min-width: 1024px) {
  .stage-art {
    --cup-h: clamp(260px, min(46vh, 38vw), 520px);
    margin: 1rem 0 1.25rem;
  }
  /* Three equal-sided columns keep the cup exactly centred even though
     "Coming" is wider than "Soon." */
  .headline {
    display: grid;
    grid-template-columns: 1fr calc(var(--cup-w) + var(--cup-space) * 2) 1fr;
    align-items: center;
    width: 100%;
    gap: 0;
    font-size: clamp(4.5rem, 9.5vw, 10.5rem);
  }
  .hl-1 { grid-column: 1; justify-self: end; }
  .hl-2 { grid-column: 3; justify-self: start; }
  .stage-body { padding: 0.5rem 2rem 2.5rem; }
}

/* =========================================================
   JOIN — signup form
   ========================================================= */
.join {
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem 2rem;
}

.signup {
  max-width: 44rem;
  margin: 0 auto;
}

.form-heading {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  line-height: 1.15;
}

.form-description {
  margin: 0.5rem auto 2rem;
  max-width: 32rem;
  text-align: center;
  color: var(--muted);
}

.form-notice {
  margin: 0 0 1.5rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  background: #EFE7DA;
  border-left: 3px solid var(--copper);
  border-radius: var(--radius);
}

.field-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field { margin-bottom: 1.125rem; }

.field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.875rem;
  font: inherit;
  font-size: 1rem; /* 16px prevents iOS zoom on focus */
  color: var(--espresso);
  background: #fffdf8;
  border: 1px solid #8f8273;
  border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #81766B; }
.field input:hover { border-color: var(--espresso); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field input:focus-visible {
  outline: none;
  border-color: var(--espresso);
  box-shadow: 0 0 0 3px rgba(167, 106, 73, 0.45);
}

.field-hint {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.field-error {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--error);
}
.field-error:empty { display: none; }

.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  align-items: start;
  margin-top: 0.5rem;
}
.field-check input {
  width: 22px;
  height: 22px;
  margin: 0.125rem 0 0;
  accent-color: var(--espresso);
  cursor: pointer;
}
.field-check label {
  margin: 0;
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.field-check .field-error { grid-column: 2; }

.privacy-link { margin: 0 0 1rem; font-size: 0.875rem; }

.turnstile { margin: 0.25rem 0 0.75rem; min-height: 65px; display: flex; justify-content: center; }
.turnstile[hidden] { display: none; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 0.75rem auto 0;
  padding: 0.875rem 2rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--espresso);
  border: 1px solid var(--espresso);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
@media (min-width: 640px) {
  .btn { width: auto; min-width: 18rem; }
}
.btn:hover:not(:disabled) { background: var(--copper-text); border-color: var(--copper-text); }
.btn:disabled { cursor: not-allowed; opacity: 0.55; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.8; }

.form-status { margin-top: 1rem; text-align: center; font-size: 0.9375rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }

.signup.is-complete form .field-row,
.signup.is-complete form .field,
.signup.is-complete form .btn,
.signup.is-complete form .turnstile,
.signup.is-complete form .privacy-link { display: none; }
.signup.is-complete .form-status {
  margin-top: 0;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  max-width: 44rem;
  margin: clamp(3rem, 7vw, 4.5rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--taupe);
  text-align: center;
}
.site-footer p { margin: 0; }
.footer-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 0.5rem !important;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* =========================================================
   PRIVACY POLICY PAGE
   ========================================================= */
.legal-bar {
  display: flex;
  justify-content: flex-end;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  background: var(--espresso);
}
.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) 1.25rem 0;
}
.legal h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  line-height: 1.1;
}
.legal h2 {
  margin: 2.25rem 0 0.5rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.625rem;
  line-height: 1.2;
}
.legal p, .legal li { color: var(--espresso); }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 0.4rem; }
.legal-date { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted) !important; }
.legal-back { margin-top: 2.5rem; }
.legal-footer { margin-bottom: 2.5rem; }
