@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Manrope:wght@300;400;500;600&display=swap");

:root {
  color-scheme: light;
  --background: #f7f2ea;
  --ink: #2b2520;
  --muted: #6a5c52;
  --accent: #c28c5f;
  --accent-dark: #9a6a46;
  --card: #fffaf2;
  --shadow: 0 24px 60px rgba(41, 31, 23, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Helvetica Neue", sans-serif;
  background: radial-gradient(circle at 20% 20%, #fff6e6, transparent 55%),
    radial-gradient(circle at 80% 0%, #fde6d0, transparent 45%),
    radial-gradient(circle at 10% 90%, #f2e3cf, transparent 50%),
    var(--background);
  color: var(--ink);
  min-height: 100vh;
}

body.access-only .page,
body.access-only .grain {
  display: none;
}

body.access-only #access-modal {
  opacity: 1;
  pointer-events: auto;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  padding: 48px 6vw 96px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  margin: 12px 0 8px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.7rem;
  color: var(--muted);
}

.date,
.venue {
  margin: 6px 0;
  font-size: 1rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.primary,
.ghost {
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(154, 106, 70, 0.25);
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(154, 106, 70, 0.3);
}

.ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid rgba(154, 106, 70, 0.4);
}

.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(194, 140, 95, 0.2);
}

.card-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--muted);
}

.card-hosts {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.9rem;
  margin: 6px 0 0;
}

.host-button {
  background: transparent;
  border: 1px solid rgba(154, 106, 70, 0.35);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: default;
  color: inherit;
}

.card-divider {
  height: 1px;
  background: rgba(154, 106, 70, 0.2);
  margin: 20px 0;
}

.card-title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 8px;
}

.card-copy {
  margin: 0 0 12px;
  color: var(--muted);
}

.card-deadline {
  font-weight: 600;
}

.rsvp {
  margin-top: 80px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(154, 106, 70, 0.15);
}

.rsvp-header h2 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 8px;
}

.rsvp-form {
  margin-top: 24px;
  display: grid;
  gap: 20px;
}

.field-group {
  display: grid;
  gap: 10px;
}

.label {
  font-weight: 600;
  color: var(--muted);
}

.options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(154, 106, 70, 0.2);
  background: #fff;
}

input[type="number"],
textarea,
input[type="text"] {
  border-radius: 14px;
  border: 1px solid rgba(154, 106, 70, 0.25);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

.helper,
.status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(41, 31, 23, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10;
}

#access-modal {
  background: rgba(255, 250, 242, 0.58);
  backdrop-filter: blur(16px);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
}

.modal-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--muted);
}

.access-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
  }

  .page {
    padding: 32px 6vw 80px;
  }

  .rsvp {
    padding: 28px;
  }
}

@media (max-width: 700px) {
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .primary,
  .ghost {
    width: 100%;
    justify-content: center;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 7vw, 3.2rem);
  }

  .hero-card {
    padding: 22px;
  }

  .rsvp {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 24px 5vw 64px;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .card-hosts {
    font-size: 1.6rem;
  }

  .modal-card {
    padding: 24px;
  }

  .options {
    flex-direction: column;
    align-items: stretch;
  }

  .option {
    width: 100%;
    justify-content: space-between;
  }
}
