:root {
  --bg: #f7f2eb;
  --surface: #fcfaf7;
  --text: #2d241f;
  --muted: #6f6257;
  --accent: #8c6b45;
  --accent-soft: #efe0ca;
  --blue: #1f4f7a;
  --blue-soft: #dcebf4;
  --border: rgba(45, 36, 31, 0.14);
  --shadow: 0 24px 60px rgba(41, 30, 23, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9f4eb 0%, var(--bg) 100%);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gate-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(7, 26, 44, 0.96), rgba(61, 100, 139, 0.88));
  padding: 1.5rem;
  z-index: 20;
}

.gate-card {
  width: min(100%, 480px);
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  text-align: center;
  border-radius: 1.4rem;
  position: relative;
}

.gate-card::before {
  content: "Ο";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.4rem;
  color: var(--blue);
  opacity: 0.7;
}

.gate-card h1,
.hero h2,
.section h3 {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.02em;
}

.gate-card h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: 2.2rem;
}

.gate-copy,
.hero-copy p,
.section p,
.card li,
.card p,
.timeline-item p,
.details p,
.faq-list p {
  color: var(--muted);
}

.gate-card form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.85rem 1rem;
  background: var(--surface);
  color: var(--text);
}

textarea {
  border-radius: 1rem;
}

button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(140, 107, 69, 0.2);
  border-radius: 999px;
  padding: 0.82rem 1.2rem;
  background: linear-gradient(135deg, var(--accent), #a77d4e);
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 10px 24px rgba(140, 107, 69, 0.15);
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(140, 107, 69, 0.2);
}

.gate-message,
.form-message {
  min-height: 1.3rem;
  margin-top: 0.6rem;
  color: #a13f3f;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(247, 242, 235, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(45, 36, 31, 0.04);
}

.brand {
  font-family: "Cormorant Garamond", serif;
  color: var(--text);
  text-decoration: none;
  font-size: 1.18rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.mobile-nav-toggle {
  display: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(90deg, rgba(9, 35, 58, 0.82), rgba(29, 63, 89, 0.44)),
    url("pics/IMG_0084.JPG") center/cover;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at top left, rgba(255,255,255,0.16) 0 2px, transparent 3px),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.14) 0 2px, transparent 3px);
  background-size: 24px 24px, 28px 28px;
  opacity: 0.7;
  pointer-events: none;
}

.hero::after {
  content: "☼";
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  font-size: 2rem;
  color: rgba(255,255,255,0.7);
}

.hero-copy {
  max-width: 520px;
  color: #ffffff;
  padding: 1.6rem 1.8rem;
  border-radius: 1.2rem;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  margin-left: 0;
}

.hero-copy h2 {
  margin: 0.3rem 0 0.8rem;
  font-size: clamp(1.9rem, 3.9vw, 2.8rem);
  font-weight: 600;
  color: #ffffff;
}

.hero-copy p {
  color: #ffffff;
  font-size: 0.98rem;
}

.hero-copy .eyebrow {
  color: #ffffff;
  opacity: 0.95;
}

.hero-copy .motif {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.26);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
}

.section {
  padding: 5rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.motif {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(31, 79, 122, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-soft), rgba(255,255,255,0.78));
  color: var(--blue);
  font-size: 0.82rem;
  margin-top: 0.6rem;
  box-shadow: 0 6px 16px rgba(31, 79, 122, 0.08);
}

.section--split {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.card,
.timeline-item,
.rsvp-form,
.faq-list details {
  background: linear-gradient(135deg, var(--surface), #f4ebdf);
  border: 1px solid rgba(31, 79, 122, 0.14);
  border-radius: 1.2rem;
  padding: 1.3rem;
  box-shadow: var(--shadow);
  position: relative;
}

.card::before,
.timeline-item::before {
  content: "◊";
  position: absolute;
  top: 0.8rem;
  right: 0.95rem;
  color: var(--blue);
  opacity: 0.55;
  font-size: 1rem;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item h4,
.card h4 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.registry-list {
  padding-left: 1rem;
}

.registry-list a {
  color: var(--text);
}

.party-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.odyssey-block {
  margin-top: 2rem;
  background: linear-gradient(135deg, #fefcf8, #eaf3f9);
  border: 1px solid rgba(31, 79, 122, 0.16);
  border-radius: 1.3rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
}

.odyssey-block::before {
  content: "𐀀";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.4rem;
  color: var(--blue);
  opacity: 0.6;
}

.odyssey-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.odyssey-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 1rem;
}

.odyssey-caption {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

.rsvp-form {
  display: grid;
  gap: 0.9rem;
}

.rsvp-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.event-options {
  display: grid;
  gap: 0.7rem;
  padding: 0.7rem 0 0.2rem;
}

.event-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
}

.event-option__label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}

.event-option input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

details summary {
  cursor: pointer;
  font-weight: 600;
}

details[open] summary {
  margin-bottom: 0.45rem;
}

@media (max-width: 820px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .section--split,
  .party-grid,
  .gallery-grid,
  .odyssey-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .mobile-nav-toggle {
    display: inline-flex;
    align-self: flex-end;
    justify-content: center;
    align-items: center;
    min-width: 3rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(140, 107, 69, 0.24);
    background: var(--surface);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 18px rgba(45, 36, 31, 0.06);
  }

  .hero {
    padding: 3rem 1rem;
  }

  .section {
    padding: 4rem 1rem;
  }

  .topbar {
    padding: 1rem;
    gap: 0.8rem;
  }

  .topbar-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .nav {
    display: none;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    padding-top: 0.2rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(45, 36, 31, 0.08);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .event-option {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 1rem;
  }
}
