:root {
  --bg: #0c120e;
  --bg-deep: #070a08;
  --ink: #e8f0ea;
  --muted: #9bb0a0;
  --accent: #95d5b2;
  --accent-deep: #2d6a4f;
  --accent-mid: #40916c;
  --line: rgba(149, 213, 178, 0.22);
  --danger: #e76f51;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg-deep);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 8, 0.35) 0%, rgba(7, 10, 8, 0.15) 35%, rgba(7, 10, 8, 0.82) 72%, var(--bg-deep) 100%),
    linear-gradient(90deg, rgba(7, 10, 8, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 8vh, 5rem);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--accent);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}

.headline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.6vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  max-width: 18ch;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #0c120e;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 0 0 rgba(149, 213, 178, 0);
}

.cta:hover {
  background: #b6e6cb;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(45, 106, 79, 0.35);
}

.cta:active {
  transform: translateY(0);
}

.cta-ghost {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.85;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  padding: 0.35rem 0;
}

.cta-ghost:hover {
  opacity: 1;
  border-color: var(--accent);
}

/* —— Invite —— */
.invite {
  padding: clamp(3.5rem, 10vh, 6.5rem) clamp(1.25rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(45, 106, 79, 0.28), transparent 55%),
    var(--bg);
}

.invite-inner {
  width: min(440px, 100%);
  margin: 0 auto;
  animation: rise 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.invite h2,
.about h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.invite-copy {
  margin: 0 0 1.75rem;
  color: var(--muted);
}

.invite-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.field em {
  font-style: normal;
  opacity: 0.7;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 14, 0.65);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: rgba(12, 18, 14, 0.9);
}

.field textarea {
  resize: vertical;
  min-height: 88px;
}

.submit {
  margin-top: 0.35rem;
  width: 100%;
}

.submit[disabled] {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.form-status {
  min-height: 1.4em;
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-status.ok {
  color: var(--accent);
}

.form-status.err {
  color: var(--danger);
}

/* —— About —— */
.about {
  padding: clamp(3rem, 8vh, 5rem) clamp(1.25rem, 5vw, 4rem) clamp(4rem, 10vh, 6rem);
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 5vw, 4rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.brand-sm {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: 1.1rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-media img,
  .hero-content,
  .invite-inner {
    animation: none;
  }
}

@media (max-width: 640px) {
  .headline {
    max-width: none;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-ghost {
    text-align: center;
  }
}
