:root {
  --cream: #f7efe5;
  --cream-2: #efe1d3;
  --burgundy: #5a1028;
  --burgundy-dark: #3d0b1c;
  --brown: #2a1c1d;
  --ink: #191416;
  --muted: #735f60;
  --line: #c9a995;
  --white: #fffaf5;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --script: "Italianno", cursive;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.cover-screen {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 8, 8, 0.16), rgba(12, 4, 7, 0.82)),
    url("../assets/images/pict_1.png") center / cover no-repeat;
  color: white;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 20%, rgba(255, 202, 151, 0.18), transparent 25%), linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 50%, rgba(0, 0, 0, 0.35)), linear-gradient(0deg, rgba(30, 4, 12, 0.85), transparent 50%);
}

.cover-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 2rem;
  position: relative;
}

.eyebrow,
.volume,
.date-label,
.scroll-label {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.volume {
  border-left: 1px solid rgba(255, 255, 255, 0.65);
  padding-left: 1rem;
  text-align: right;
  line-height: 1.8;
}

.cover-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem clamp(2rem, 8vw, 7rem) 2rem;
}

.cover-copy h1 {
  font-family: var(--serif);
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 0.75;
  font-weight: 600;
  margin: 1.3rem 0 2.2rem;
}

.cover-copy h1 span {
  font-size: 0.48em;
  line-height: 1;
}

.cover-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 600;
}

.cover-action {
  width: min(100%, 625px);
  margin-top: auto;
  align-self: center;
  text-align: center;
}

.btn-open {
  width: 100%;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(90, 16, 40, 0.78);
  border-radius: 0.25rem;
  padding: 1.15rem 1rem;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.btn-open:hover {
  color: white;
  background: var(--burgundy);
}

.scroll-label {
  margin: 1.1rem 0 0;
  opacity: 0.8;
}

.site-header {
  background: var(--cream);
  padding: 0.8rem 0 1rem;
  text-align: center;
}

.brand-mark {
  border: 1px solid #a16d50;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--burgundy);
}

.section-nav {
  background: rgba(247, 239, 229, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(90, 16, 40, 0.08);
  z-index: 20;
}

.nav-scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.75rem 0;
  scrollbar-width: none;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-scroll a {
  flex: 0 0 auto;
  padding: 0.72rem 1.35rem;
  border: 1px solid #dfcfc4;
  border-radius: 999px;
  color: var(--burgundy);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  background: rgba(255, 255, 255, 0.65);
}

.nav-scroll a:hover,
.nav-scroll a.active {
  color: white;
  background: var(--burgundy);
  border-color: var(--burgundy);
}

.editorial-section {
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.purpose-section {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.accent {
  color: #a05b43;
}

.script-title {
  font-family: var(--script);
  color: var(--burgundy);
  font-size: clamp(4.3rem, 10vw, 7rem);
  line-height: 0.72;
  margin: 1rem 0 2rem;
}

.lead-copy {
  max-width: 650px;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: #594a4a;
}

.couple-name-block {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  color: var(--burgundy);
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 0.95;
  margin-top: 2rem;
}

.date-label.dark {
  color: var(--burgundy);
  margin-top: 1.5rem;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #a16d50;
  margin-top: 2rem;
}

.ornament span {
  display: block;
  width: 60px;
  height: 1px;
  background: #bca08e;
}

.hero-photo {
  position: relative;
  background: var(--brown);
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  min-height: 420px;
  max-height: 720px;
  object-fit: cover;
  opacity: 0.9;
}

.hero-photo figcaption {
  position: absolute;
  right: 4%;
  bottom: 2rem;
  color: white;
  font-family: var(--script);
  font-size: 2rem;
  transform: rotate(-5deg);
}

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

.section-heading h2 {
  font-family: var(--serif);
  color: var(--burgundy);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 500;
  margin: 0.5rem 0 0;
}

.section-heading h2 span {
  font-family: var(--script);
  font-size: 0.75em;
}

.couple-card figure {
  margin: 0 auto 1.5rem;
  max-width: 430px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream-2);
}

.couple-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.couple-card h3 {
  font-family: var(--serif);
  color: var(--burgundy);
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.couple-card p {
  font-family: var(--serif);
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

.event-section {
  background: var(--burgundy);
  color: white;
}

.light-title,
.light-copy {
  color: white !important;
}

.light {
  color: #e8bda7;
}

.event-card {
  height: 100%;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.event-index {
  font-family: var(--serif);
  color: #e8bda7;
  font-size: 1.2rem;
}

.event-card h3 {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 500;
}

.event-time {
  font-family: var(--serif);
  font-size: 2rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 5vw, 4rem);
  margin-top: 5rem;
  text-align: center;
}

.countdown strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
}

.countdown span {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  opacity: 0.75;
}

.venue-address {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #5c4d4d;
  line-height: 1.6;
}

.map-placeholder {
  max-width: 1000px;
  min-height: 380px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--burgundy);
  background: linear-gradient(rgba(90, 16, 40, 0.04), rgba(90, 16, 40, 0.04)), repeating-linear-gradient(45deg, #eadfd5 0, #eadfd5 10px, #e5d7cb 10px, #e5d7cb 11px);
  border: 1px solid #d4bdae;
}

.map-placeholder i {
  font-size: 3rem;
}

.map-placeholder span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.btn-burgundy {
  color: white;
  background: var(--burgundy);
  border: 1px solid var(--burgundy);
  border-radius: 0.2rem;
  padding: 0.9rem 1.5rem;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.btn-burgundy:hover {
  color: white;
  background: var(--burgundy-dark);
}

.gallery-section {
  background: #efe3d7;
}

.gallery-image {
  width: 100%;
  height: min(70vh, 680px);
  object-fit: cover;
  background: var(--brown);
}

.carousel-control-prev,
.carousel-control-next {
  width: 12%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.story-section {
  background: var(--cream);
}

.timeline {
  list-style: none;
  max-width: 850px;
  margin: auto;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #cbb1a0;
  transform: translateX(-50%);
}

.timeline li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  position: relative;
  margin-bottom: 4rem;
}

.timeline li:nth-child(even) {
  direction: rtl;
}

.timeline time {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--burgundy);
  text-align: right;
  direction: ltr;
}

.timeline li:nth-child(even) time {
  text-align: left;
}

.timeline article {
  direction: ltr;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid #e1d2c6;
}

.timeline article h3 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--burgundy);
}

.wish-form {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #dfcfc4;
}

.form-label {
  font-family: var(--serif);
  color: var(--burgundy);
  font-size: 1.1rem;
}

.form-control,
.form-select {
  border-radius: 0.2rem;
  border-color: #d7c2b5;
  background: rgba(255, 255, 255, 0.75);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 0.2rem rgba(90, 16, 40, 0.1);
}

.wish-list {
  display: grid;
  gap: 1rem;
}

.wish-item {
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid #d9c7bb;
}

.wish-item h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--burgundy);
  margin-bottom: 0.25rem;
}

.wish-item .status {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #93644e;
}

.wish-item p {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: #55494a;
  margin-top: 0.7rem;
}

.site-footer {
  text-align: center;
  padding: 4rem 1rem;
  background: var(--brown);
  color: white;
}

.site-footer p {
  font-family: var(--serif);
  font-size: 2rem;
}

.site-footer small {
  letter-spacing: 0.2em;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 767.98px) {
  .cover-screen {
    min-height: 100svh;
  }

  .cover-header {
    padding-top: 1.2rem;
  }

  .cover-content {
    padding: 2rem 1.7rem 1.5rem;
  }

  .cover-copy h1 {
    font-size: clamp(4.7rem, 22vw, 6.2rem);
    margin: 1rem 0 1.5rem;
  }

  .cover-quote {
    font-size: 1rem;
  }

  .eyebrow,
  .volume,
  .date-label,
  .scroll-label {
    font-size: 0.6rem;
  }

  .btn-open {
    padding: 1rem 0.7rem;
    font-size: 0.67rem;
  }

  .hero-photo img {
    min-height: 420px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::before {
    left: 12px;
    transform: none;
  }

  .timeline li,
  .timeline li:nth-child(even) {
    display: block;
    direction: ltr;
    padding-left: 2.2rem;
  }

  .timeline time,
  .timeline li:nth-child(even) time {
    text-align: left;
    display: block;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }

  .timeline article {
    padding: 1.1rem;
  }

  .countdown {
    gap: 1rem;
  }

  .countdown strong {
    font-size: 1.8rem;
  }
}

@media (min-width: 992px) {
  .section-nav {
    position: sticky;
  }

  .nav-scroll {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
