:root {
  --bg: #f6f0e9;
  --bg-soft: #e8d9c6;
  --surface: rgba(255, 250, 245, 0.78);
  --surface-strong: rgba(255, 253, 249, 0.9);
  --ink: #23415b;
  --ink-soft: #4d657b;
  --accent: #c29c67;
  --accent-strong: #8f6c45;
  --line: rgba(35, 65, 91, 0.2);
  --success: #2e6b4c;
  --danger: #8a2f2f;
  --shadow: 0 20px 60px rgba(62, 89, 108, 0.12);
  --radius: 24px;
  --radius-small: 14px;
  --content-max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(248, 243, 236, 0.68), rgba(248, 243, 236, 0.72)),
    url("../assets/photos/Website_Background.png") center center / cover no-repeat fixed;
  min-height: 100vh;
}

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  pointer-events: none;
  z-index: -1;
  filter: blur(4px);
}

.ambient-top {
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(200, 143, 108, 0.35), transparent 70%);
}

.ambient-bottom {
  bottom: -140px;
  left: -140px;
  background: radial-gradient(circle, rgba(140, 174, 130, 0.3), transparent 70%);
}

main {
  width: min(var(--content-max), 92vw);
  margin: 0 auto 5rem;
}

.site-header {
  width: min(var(--content-max), 92vw);
  margin: 1.25rem auto 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0.75rem;
  z-index: 20;
}

.site-kicker {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent-strong);
}

.site-header nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.site-header a:hover,
.site-header a:focus-visible {
  background: rgba(148, 101, 74, 0.12);
  color: var(--accent-strong);
  outline: none;
}

.section {
  margin-top: 1.1rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.4vw, 2rem);
  box-shadow: var(--shadow);
}

.accent-panel {
  background: linear-gradient(120deg, rgba(255, 250, 244, 0.9), rgba(242, 232, 218, 0.92));
}

.hero {
  display: grid;
  gap: 0.95rem;
  position: relative;
  overflow: hidden;
  background: rgba(255, 250, 244, 0.54);
  backdrop-filter: blur(1px);
}

.coupleTitle > * {
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -65px -100px auto;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(164, 197, 149, 0.26), transparent 68%);
}

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

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 0;
  line-height: 1.06;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.8rem, 5.4vw, 5rem);
  max-width: 18ch;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
  text-transform: uppercase;
}

#coupleTitle {
  margin-inline: auto;
  text-align: center;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  color: var(--accent-strong);
}

h3 {
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  color: var(--accent-strong);
}

.hero-copy {
  margin: 0 auto;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
}

.hero-meta {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
}

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

.card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-strong);
  display: grid;
  gap: 0.4rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

.text-link {
  color: var(--accent-strong);
  font-weight: 600;
  text-underline-offset: 3px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 0.95rem;
  background: var(--surface-strong);
}

.timeline-time {
  font-weight: 700;
  color: var(--accent-strong);
  min-width: 90px;
}

.timeline-copy {
  display: grid;
  gap: 0.2rem;
}

.timeline-copy p {
  margin: 0;
  color: var(--ink-soft);
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 0.95rem;
  background: var(--surface-strong);
}

.faq-item h3 {
  margin-bottom: 0.35rem;
}

.faq-item p {
  margin: 0;
  color: var(--ink-soft);
}

.form-grid {
  display: grid;
  gap: 0.55rem;
}

label {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

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

input,
select,
textarea {
  width: 100%;
  border-radius: 11px;
  border: 1px solid var(--line);
  padding: 0.72rem 0.78rem;
  background: #fffdf8;
  color: var(--ink);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(148, 101, 74, 0.35);
  outline-offset: 1px;
}

.button-primary {
  margin-top: 0.55rem;
  border: none;
  border-radius: 11px;
  padding: 0.8rem 1rem;
  background: linear-gradient(115deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(110, 66, 42, 0.24);
}

.button-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.status-chip {
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid var(--line);
  background: rgba(255, 251, 246, 0.85);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.inline-status {
  min-height: 1.2rem;
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
}

.status-success {
  color: var(--success);
}

.status-error {
  color: var(--danger);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.65rem;
}

.album-card {
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  overflow: hidden;
  background: var(--surface-strong);
  cursor: pointer;
  text-align: left;
  padding: 0;
  position: relative;
}

.album-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.album-card figcaption {
  padding: 0.62rem 0.74rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.album-missing {
  width: 100%;
  height: 230px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f0e5d8, #f8f2ea);
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.hotel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 0.95rem;
  background: var(--surface-strong);
  display: grid;
  gap: 0.35rem;
}

.hotel-card p {
  margin: 0;
  color: var(--ink-soft);
}

.hotel-card a {
  color: var(--accent-strong);
  font-weight: 600;
  text-underline-offset: 3px;
}

.lightbox {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  width: min(700px, 92vw);
  background: rgba(255, 251, 246, 0.97);
  color: var(--ink);
}

.lightbox::backdrop {
  background: rgba(36, 24, 18, 0.6);
  backdrop-filter: blur(2px);
}

#lightboxImage {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  margin-top: 0.6rem;
}

#lightboxCaption {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.lightbox-nav {
  margin-top: 0.75rem;
  margin-right: 0.4rem;
}

.hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal-up 650ms ease forwards;
}

.reveal:nth-of-type(2) { animation-delay: 80ms; }
.reveal:nth-of-type(3) { animation-delay: 130ms; }
.reveal:nth-of-type(4) { animation-delay: 180ms; }
.reveal:nth-of-type(5) { animation-delay: 230ms; }
.reveal:nth-of-type(6) { animation-delay: 280ms; }
.reveal:nth-of-type(7) { animation-delay: 330ms; }
.reveal:nth-of-type(8) { animation-delay: 380ms; }
.reveal:nth-of-type(9) { animation-delay: 430ms; }

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .split-grid,
  .hotel-grid {
    grid-template-columns: 1fr;
  }

  .album-card {
    grid-column: span 6;
  }

  .site-header {
    border-radius: var(--radius-small);
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .album-card {
    grid-column: span 12;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  main {
    width: min(var(--content-max), 94vw);
  }

  body {
    /* fixed attachment is unreliable on mobile browsers */
    background-attachment: scroll;
  }

  .site-header nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .site-header a {
    flex: none;
    font-size: 0.82rem;
    padding: 0.3rem 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .button-primary,
  .site-header a {
    animation: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
