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

:root {
  --paper: #fffdf9;
  --ink: #171717;
  --muted: #6d6a66;
  --line: #d8d1c8;
  --soft: #f5f0e8;
  --accent: #b99b7a;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.55;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 249, .95);
  border-bottom: 1px solid rgba(23, 23, 23, .12);
  backdrop-filter: blur(10px);
}

.nav {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .82rem;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--ink);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 56px 20px;
}

.hero-card {
  width: min(760px, 100%);
  text-align: center;
  position: relative;
  padding: 56px 44px 60px;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 1px;
  background: var(--ink);
  top: 50%;
}

.hero-card::before { left: -20px; }
.hero-card::after { right: -20px; }

.kicker {
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .78rem;
  margin: 0 0 22px;
}

.display {
  margin: 0;
  font-size: clamp(4.5rem, 13vw, 8.5rem);
  line-height: .8;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.script {
  display: block;
  font-family: "Allura", cursive;
  font-size: clamp(3.5rem, 9vw, 6.2rem);
  line-height: .8;
  font-weight: 400;
  margin: 18px 0 10px;
  text-transform: none;
  letter-spacing: 0;
}

.names {
  margin: 30px 0 6px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 400;
}

.date {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 1.2rem;
}

.scroll-note {
  margin-top: 40px;
  font-family: "Allura", cursive;
  font-size: 2rem;
}

.page-hero {
  padding: 110px 20px 70px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  line-height: 1;
}

.page-hero p {
  margin: 22px auto 0;
  max-width: 680px;
  color: var(--muted);
}

.section {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
  padding: 80px 0;
}

.section.narrow {
  width: min(760px, calc(100% - 36px));
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .78rem;
}

.section-title {
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 400;
}

.lead {
  font-size: 1.28rem;
  color: var(--muted);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 42px;
}

.detail-card,
.hotel-card {
  border: 1px solid var(--line);
  padding: 30px;
  background: rgba(255,255,255,.35);
}

.detail-card h2,
.hotel-card h2 {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: 1.65rem;
}

.detail-card p,
.hotel-card p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-time {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .9rem;
}

.map-link,
.button {
  display: inline-block;
  margin-top: 24px;
  border: 1px solid var(--ink);
  padding: 11px 20px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  transition: .2s ease;
}

.map-link:hover,
.button:hover {
  background: var(--ink);
  color: var(--paper);
}

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.hotel-meta {
  margin-top: 18px !important;
  font-size: .95rem;
}

.notice {
  margin-top: 40px;
  padding: 22px 24px;
  background: var(--soft);
  border-left: 2px solid var(--accent);
}

.faq-list {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 24px 0;
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.faq-answer {
  display: none;
  padding: 0 0 24px;
  color: var(--muted);
}

.faq-item.open .faq-answer { display: block; }
.faq-icon { transition: transform .2s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 20px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.footer-script {
  font-family: "Allura", cursive;
  font-size: 2rem;
}

.password-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--paper);
  padding: 20px;
}

.password-card {
  width: min(480px, 100%);
  text-align: center;
  border: 1px solid var(--line);
  padding: 44px 34px;
}

.password-card h1 {
  margin: 0 0 8px;
  font-size: 2.4rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.password-card p {
  margin: 0 0 26px;
  color: var(--muted);
}

.password-form {
  display: grid;
  gap: 12px;
}

.password-form input {
  width: 100%;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem;
}

.password-form button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 13px 14px;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: .15em;
  cursor: pointer;
}

.password-error {
  min-height: 1.5em;
  color: #8c2f2f !important;
  margin: 8px 0 0 !important;
}

.hidden { display: none !important; }

@media (max-width: 820px) {
  .menu-button { display: block; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; }
  .details-grid,
  .hotel-grid { grid-template-columns: 1fr; }
  .hero-card::before,
  .hero-card::after { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 18px; }
  .hero-card { padding: 34px 8px; }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}


.rsvp-form {
  border-top: 1px solid var(--line);
  padding-top: 38px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 22px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label,
.form-field legend {
  font-size: 1.08rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255,255,255,.45);
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.form-field textarea {
  resize: vertical;
}

.form-field fieldset,
fieldset.form-field {
  border: 0;
  padding: 0;
  margin: 0;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  cursor: pointer;
}

.radio-option input {
  width: auto;
  accent-color: var(--ink);
}

.optional {
  color: var(--muted);
  font-size: .9rem;
}

.submit-button {
  margin-top: 32px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 24px;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  cursor: pointer;
}

.submit-button:hover {
  background: transparent;
  color: var(--ink);
}

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

  .form-field {
    grid-column: 1 / -1;
  }
}


.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 32px;
}

.gallery-intro {
  max-width: 430px;
  color: var(--muted);
}

.photo-grid {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
}

.photo-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 20px;
    break-inside: avoid;
}

.photo-card img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
}

@media (max-width: 900px) {
    .photo-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .photo-grid {
        column-count: 1;
    }
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.travel-card {
  border: 1px solid var(--line);
  padding: 30px;
}

.travel-card h2 {
  margin: 0 0 10px;
  font-size: 1.65rem;
  font-weight: 500;
}

.travel-card p {
  color: var(--muted);
}

.gift-placeholder {
  margin-top: 42px;
  padding: 34px;
  border: 1px solid var(--line);
  text-align: center;
  background: var(--soft);
}

.gift-placeholder h3 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 400;
}

@media (max-width: 760px) {
  .section-heading-row {
    display: block;
  }

  .photo-grid,
  .travel-grid {
    grid-template-columns: 1fr;
  }
}
