/* ============================================================
   Bower — landing
   Palette: lantern-lit garden bower at dusk.
   Deep green-black night (env-tinted), lantern gold as the light.
   ============================================================ */

:root {
  /* color */
  --bg:        oklch(0.145 0.018 160);
  --surface:   oklch(0.185 0.022 160);
  --surface-2: oklch(0.225 0.026 158);
  --ink:       oklch(0.945 0.012 95);
  --muted:     oklch(0.720 0.020 110);
  --primary:   oklch(0.480 0.085 160);   /* bower green — structure, strokes */
  --primary-deep: oklch(0.300 0.055 160);
  --accent:    oklch(0.860 0.120 82);    /* lantern gold — the light */
  --accent-dim: oklch(0.740 0.115 78);
  --line:      oklch(0.320 0.030 158);

  /* type */
  --font-display: "Sentient", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  /* rhythm */
  --space-section: clamp(5rem, 12vw, 10rem);
  --radius: 12px;

  /* z scale */
  --z-fronds: 1;
  --z-content: 2;
  --z-header: 10;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

a { color: var(--accent); }

::selection { background: oklch(0.480 0.085 160 / 0.55); color: var(--ink); }

/* ---------------- header ---------------- */

.site-head {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem clamp(1.25rem, 4vw, 3rem);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.mark {
  width: 1.5em;
  height: auto;
}

.head-note {
  margin: 0 auto 0 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.head-cta {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}
.head-cta:hover { border-color: var(--accent-dim); background: oklch(0.860 0.120 82 / 0.08); }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(5rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vh, 4.5rem);
}

/* the lantern */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.glow-a {
  width: min(120vw, 1400px);
  aspect-ratio: 1;
  top: -20%;
  left: 50%;
  translate: -50% 0;
  background: radial-gradient(circle,
    oklch(0.860 0.120 82 / 0.16) 0%,
    oklch(0.740 0.115 78 / 0.07) 30%,
    transparent 62%);
  animation: breathe 9s ease-in-out infinite;
}
.glow-b {
  width: min(70vw, 760px);
  aspect-ratio: 1;
  top: -6%;
  left: 50%;
  translate: -50% 0;
  background: radial-gradient(circle,
    oklch(0.860 0.120 82 / 0.14) 0%,
    transparent 58%);
  animation: breathe 9s ease-in-out infinite 0.6s;
}
@keyframes breathe {
  0%, 100% { opacity: 0.9; scale: 1; }
  50%      { opacity: 1;   scale: 1.04; }
}

/* foliage silhouettes framing the bower */
.fronds {
  position: absolute;
  bottom: 0;
  height: min(72vh, 640px);
  width: auto;
  z-index: var(--z-fronds);
  fill: oklch(0.105 0.016 160);
  pointer-events: none;
}
.fronds path { opacity: 0.9; }
.fronds path:nth-child(2) { fill: oklch(0.125 0.02 160); }
.fronds path:nth-child(3) { fill: oklch(0.155 0.024 160); }
.fronds-left  { left: 0; }
.fronds-right { right: 0; }

/* drifting light motes */
.motes { position: absolute; inset: 0; pointer-events: none; }
.mote {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 2px oklch(0.860 0.120 82 / 0.5);
  opacity: 0;
  animation: drift var(--dur, 14s) linear infinite var(--delay, 0s);
}
@keyframes drift {
  0%   { transform: translate(0, 20px) scale(0.8); opacity: 0; }
  12%  { opacity: var(--peak, 0.7); }
  80%  { opacity: var(--peak, 0.7); }
  100% { transform: translate(var(--dx, 30px), -40vh) scale(1); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: var(--z-content);
  max-width: 46rem;
  text-align: center;
}

.hero-emblem {
  width: clamp(72px, 9vw, 104px);
  height: auto;

  margin: 0 auto 1rem;
  display: block;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  max-width: 38rem;
  margin: 0 auto 0.9rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.hero-vows {
  margin: 0 0 2.6rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

/* entrance choreography */
.hero-emblem, .hero h1, .hero-sub, .hero-vows, .waitlist {
  opacity: 0;
  translate: 0 14px;
  animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero h1   { animation-delay: 120ms; }
.hero-sub  { animation-delay: 240ms; }
.hero-vows { animation-delay: 340ms; }
.waitlist  { animation-delay: 460ms; }
@keyframes rise { to { opacity: 1; translate: 0 0; } }

/* ---------------- waitlist form ---------------- */

.waitlist {
  text-align: left;
  background: oklch(0.185 0.022 160 / 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  max-width: 40rem;
  margin: 0 auto;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: flex-end;
}
.field-row + .field-row { margin-top: 0.8rem; }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1 1 9rem;
}
.field-grow { flex: 2 1 14rem; }

.field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field select {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  min-height: 2.9rem;
  width: 100%;
}
.field input::placeholder { color: oklch(0.60 0.018 110); }
.field input:focus-visible,
.field select:focus-visible,
.join:focus-visible,
.head-cta:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.join {
  font: inherit;
  font-weight: 700;
  color: oklch(0.16 0.02 160);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.4rem;
  min-height: 2.9rem;
  cursor: pointer;
  flex: 1 1 auto;
  transition: background-color 160ms ease-out, translate 160ms ease-out;
}
.join:hover { background: oklch(0.895 0.115 84); translate: 0 -1px; }
.join:active { translate: 0 0; }

.form-note {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-status { margin: 0.5rem 0 0; font-size: 0.95rem; min-height: 1.4em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: oklch(0.78 0.13 25); }

.waitlist.done .field-row, .waitlist.done .form-note { display: none; }
.waitlist.done { text-align: center; }
.waitlist.done .form-status { font-size: 1.1rem; }

/* ---------------- story ---------------- */

.story { padding: var(--space-section) clamp(1.25rem, 4vw, 3rem); }

.story-inner { max-width: 62rem; margin: 0 auto; }


.story-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--accent);
  margin: 0 0 3rem;
  text-align: center;
}

.story-beats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.8rem, 4vw, 3.2rem);
}

.beat h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.55rem;
  margin: 0 0 0.7rem;
}
.beat p { margin: 0; color: var(--muted); }
.beat:nth-child(2) { translate: 0 clamp(0.5rem, 2vw, 1.75rem); }
.beat:nth-child(3) { translate: 0 clamp(1rem, 4vw, 3.5rem); }
.beat:nth-child(3) h3 { color: var(--accent); }

/* ---------------- rules ---------------- */

.rules {
  background: linear-gradient(180deg, var(--bg), oklch(0.12 0.016 160) 30%, oklch(0.12 0.016 160) 70%, var(--bg));
  padding: var(--space-section) clamp(1.25rem, 4vw, 3rem);
}

.rules-inner { max-width: 44rem; margin: 0 auto; }

.rules h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.015em;
  margin: 0 0 3.2rem;
}

.rule-list { margin: 0; }

.rule { padding: 1.9rem 0; }
.rule + .rule { border-top: 1px solid var(--line); }

.rule dt {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.55rem;
}
.rule dd { margin: 0; color: var(--muted); max-width: 65ch; }

/* ---------------- orlando ---------------- */

.orlando {
  padding: var(--space-section) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}
.orlando-inner { max-width: 42rem; margin: 0 auto; }

.orlando h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.015em;
  margin: 0 0 1.4rem;
}
.orlando h2 em { font-style: italic; color: var(--accent); }
.orlando p { color: var(--muted); margin: 0 0 2.2rem; }

.join-echo {
  display: inline-block;
  text-decoration: none;
  flex: none;
}

/* ---------------- footer ---------------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 2.6rem clamp(1.25rem, 4vw, 3rem) 3rem;
}
.foot-inner { max-width: 62rem; margin: 0 auto; }
.foot-mark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.35rem;
}
.foot-line { margin: 0 0 1.2rem; color: var(--muted); }
.foot-legal { margin: 0; font-size: 0.85rem; color: oklch(0.62 0.018 110); }

/* ---------------- small screens ---------------- */

@media (max-width: 640px) {
  .head-note { display: none; }
  .fronds { height: 44vh; opacity: 0.85; }
  .hero { padding-top: 5.5rem; }
  .beat:nth-child(2), .beat:nth-child(3) { translate: 0 0; }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow-a, .glow-b { animation: none; }
  .mote { animation: none; opacity: 0.5; }
  .hero h1, .hero-sub, .hero-vows, .waitlist {
    animation: none; opacity: 1; translate: 0 0;
  }
  .join, .head-cta { transition: none; }
}
