/* ---------- Fonts ---------- */
@font-face {
  font-family: "Ysabeau";
  src: url("fonts/YsabeauOffice-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ernie";
  src: url("fonts/AdobeHandwriting-Ernie.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Optima";
  src: url("fonts/Optima.ttc") format("truetype-collection");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --cream: #f4ead6;
  --cream-soft: #e8dcc0;
  --cream-faint: rgba(244, 234, 214, 0.55);
  --rule: rgba(244, 234, 214, 0.4);

  --brown-deep: #2a1610;
  --brown-mid: #3d2419;

  --serif: "Optima", "Ysabeau", "Cormorant Garamond", Georgia, serif;
  --script: "Ernie", "Petit Formal Script", "Snell Roundhand", cursive;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  color: var(--cream);
  background: var(--brown-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { display: block; }

/* ---------- Hero (yoga photo) ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  background: #1a1a1a;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url("assets/yoga-portrait.jpg");
  background-size: cover;
  background-position: center 70%;   /* shows her full pose, not just the leg */
  background-repeat: no-repeat;
  transform: scale(1.035);
  transform-origin: center center;
}

/* On portrait viewports (mobile) the photo's natural aspect already fits, so
   center it normally — we don't need to push down to find her body. */
@media (max-aspect-ratio: 1/1) {
  .hero-photo {
    background-position: center center;
    transform: scale(1.055);
  }
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(26% 18% at 5% 100%, rgba(0,0,0,0.62), transparent 72%),
    radial-gradient(34% 18% at 50% 100%, rgba(0,0,0,0.48), transparent 74%),
    radial-gradient(70% 60% at 50% 50%, transparent 50%, rgba(0,0,0,0.35)),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 30%, transparent 68%, rgba(0,0,0,0.58) 100%);
  pointer-events: none;
}
.hero-logo {
  position: absolute;
  left: 50%;
  top: 6vh;
  transform: translateX(-50%);
  width: clamp(176px, 20vw, 300px);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.45));
  user-select: none;
  pointer-events: none;
  animation: naraReveal 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s both;
}

@keyframes naraReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.94);
    filter: blur(10px) drop-shadow(0 4px 24px rgba(0,0,0,0.45));
  }
  60% {
    filter: blur(2px) drop-shadow(0 4px 24px rgba(0,0,0,0.45));
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    filter: blur(0) drop-shadow(0 4px 24px rgba(0,0,0,0.45));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  letter-spacing: 0.18em;
  font-size: 11px;
  text-transform: lowercase;
  opacity: 0.75;
  animation: float 2.4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.55; }
  50%      { transform: translate(-50%, 6px); opacity: 0.95; }
}

/* ---------- Invite section (brown panel) ---------- */
.invite {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10vh 7vw;
  position: relative;
  background:
    linear-gradient(180deg, rgba(20,10,6,0.20), rgba(20,10,6,0.20)),
    url("assets/panel-brown.jpg") center/cover no-repeat,
    var(--brown-deep);
}
.invite-inner {
  position: relative;
  width: 100%;
  max-width: 760px;
  text-align: left;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s ease, transform 1s ease;
}
.invite-inner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typography */
.tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--cream);
  margin: 0 0 40px;
  text-wrap: balance;
}
.tagline em {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.05em;
  letter-spacing: 0;
  vertical-align: -0.05em;
  padding-left: 0.04em;
}

.meta {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--cream);
  opacity: 0.92;
  margin: 0 0 64px;
}

/* ---------- Form ---------- */
.signup { margin: 0; max-width: 100%; }
.signup-prompt {
  font-family: var(--serif);
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--cream);
  letter-spacing: 0.02em;
  opacity: 0.95;
  margin: 0 0 22px;
}

.fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
  gap: 20px;
  align-items: end;
}

.field { position: relative; display: block; text-align: left; }
.field-label {
  position: absolute;
  left: 2px;
  bottom: 10px;
  font-size: 15px;
  color: var(--cream-faint);
  letter-spacing: 0.02em;
  pointer-events: none;
  transition: transform 0.22s ease, font-size 0.22s ease, color 0.22s ease;
  transform-origin: left bottom;
}
.field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--cream);
  padding: 24px 0 8px;
  outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus { border-bottom-color: var(--cream); }
.field input:focus + .field-label,
.field input:not(:placeholder-shown) + .field-label {
  transform: translateY(-22px) scale(0.78);
  color: var(--cream-soft);
}
.field input::placeholder { color: transparent; }

.submit {
  appearance: none;
  border: 1px solid var(--cream);
  background: transparent;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  padding: 12px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
.submit:hover { background: var(--cream); color: var(--brown-deep); }
.submit:active { transform: translateY(1px); }

.form-message {
  min-height: 1.5em;
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--cream-soft);
  letter-spacing: 0.04em;
}
.form-message.is-error { color: #f0b9a8; }
.form-message.is-success { color: #cfe2b6; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero-logo {
    top: 2vh;
    width: clamp(164px, 38vw, 210px);
  }
  .invite { padding: 64px 24px 80px; }
  .fields {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .submit { justify-self: start; padding: 13px 36px; }
}
