:root {
  --sage: #91ae96;
  --juniper: #3e554a;
  --deep-green: #4e665a;
  --cream: #f7f5ec;
  --card: #fffdf7;
  --peach: #f3c2ab;
  --ink: #2c352f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 400; }

.navbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  color: #fff;
}

.navbar .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.15em;
}

.navbar ul { display: flex; gap: 1.75rem; list-style: none; }

.navbar a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.navbar a:hover { color: var(--peach); }

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(44, 53, 47, 0.45), rgba(44, 53, 47, 0.6)),
    url('/media/wedding-3013.jpg') center 35% / cover no-repeat;
  padding: 6rem 1.5rem 4rem;
}

.hero.hero-compact {
  min-height: 46vh;
  background:
    linear-gradient(rgba(44, 53, 47, 0.55), rgba(44, 53, 47, 0.7)),
    url('/media/wedding-2999.jpg') center 30% / cover no-repeat;
}

.hero h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); }

.hero .tagline {
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  margin-top: 0.5rem;
  color: var(--peach);
}

.hero .subtitle {
  margin-top: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero .days {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.intro {
  max-width: 620px;
  margin: 3.5rem auto 0;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 1.05rem;
}

.timeline {
  position: relative;
  max-width: 760px;
  margin: 3.5rem auto 5rem;
  padding: 0 1.5rem 0 3.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--sage);
}

.entry { position: relative; margin-bottom: 2.75rem; }

.entry-marker {
  position: absolute;
  left: -2.05rem;
  top: 1.6rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--peach);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--sage);
}

.entry-card {
  background: var(--card);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 14px rgba(62, 85, 74, 0.1);
}

.entry-date {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-green);
  margin-bottom: 0.35rem;
}

.entry-card h3 { font-size: 1.6rem; margin-bottom: 0.25rem; }

.entry-location {
  font-style: italic;
  color: var(--deep-green);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.entry-card p + p { margin-top: 0.6rem; }

.badge {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.badge-private { background: var(--juniper); color: var(--cream); }
.badge-draft { background: var(--peach); color: var(--juniper); }

.entry-photos {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.entry-photos.count-1 { grid-template-columns: 1fr; }

.entry-photos img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.entry-video {
  width: 100%;
  margin-top: 1rem;
  border-radius: 6px;
  display: block;
  background: #000;
}

.entry-link { margin-top: 1rem; }

.rooms { max-width: 760px; margin: 3rem auto -1rem; padding: 0 1.5rem; }

.rooms-inner { display: grid; gap: 0.75rem; }

.room-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--juniper);
  color: var(--cream);
  text-decoration: none;
  border-radius: 10px;
  padding: 1.1rem 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  box-shadow: 0 2px 14px rgba(62, 85, 74, 0.18);
}

.room-card:hover { background: var(--deep-green); }

.room-card .room-arrow { color: var(--peach); }

.navbar-solid { position: sticky; top: 0; background: var(--juniper); }

.gallery-head {
  text-align: center;
  padding: 4rem 1.5rem 1rem;
}

.gallery-head h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--juniper); }

.gallery-head p { margin-top: 0.4rem; }

.gallery-credit {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-green);
}

.gallery {
  max-width: 1200px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
  columns: 3 300px;
  column-gap: 0.75rem;
}

.gallery .ph { display: block; margin-bottom: 0.75rem; break-inside: avoid; }

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  background: #dde3d8;
}

#lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
}

#lightbox::backdrop { background: rgba(20, 26, 22, 0.93); }

#lightbox img {
  max-width: min(94vw, 1600px);
  max-height: 92vh;
  display: block;
  border-radius: 4px;
}

#lightbox button {
  position: fixed;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 0;
  border-radius: 999px;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.5rem;
  cursor: pointer;
}

#lightbox .lb-close { top: 1rem; right: 1rem; }
#lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
#lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.entry-link a, footer a { color: var(--deep-green); }

footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--juniper);
  color: var(--cream);
  font-size: 0.9rem;
}

footer a { color: var(--peach); text-decoration: none; }

@media (max-width: 640px) {
  .navbar { padding: 1rem; }
  .navbar ul { gap: 1rem; }
  .timeline { padding-left: 2.5rem; }
  .timeline::before { left: 1.25rem; }
  .entry-marker { left: -1.85rem; }
  .entry-photos { grid-template-columns: 1fr; }
}
