/* ====== Minimal Wedding Theme ====== */
:root{
  --ink:#4b4a47;
  --muted:#8b8884;
  --bg:#fffefc;
  --accent:#6b635a;
  --line:#e9e7e4;
  --shadow:0 6px 18px rgba(0,0,0,.06);
  --maxw:920px;
}

/* Reset & base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font:17px/1.75 "Source Sans 3",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
}

/* Limit transitions to interactive elements only */
a, button, input, select, textarea {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* Typography */
/* ===== Headings ===== */
h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  color: var(--ink);
  margin: 0 0 .6rem;
}

/* Big page titles: Registry, Dress Code, RSVP, etc. */
h1 {
  font-size: clamp(2.1rem, 3vw + 1rem, 3rem);
  font-weight: 500;
  letter-spacing: .08em;
  text-align: center;
}

/* Section titles: Wedding Day, Locations, etc. */
h2 {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 1.9rem);
  font-weight: 500;
  letter-spacing: .12em;
  text-align: center;
}

/* Small headings / labels */
h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .1em;
}


/* Layout */
.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 1rem;
}
/* Wider container just for the itinerary page */
.itinerary-container {
  max-width: 1290px; /* wider than your default 920px */
}

section{ padding:2rem 0 }

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:var(--shadow);
  padding:1.5rem;
}

/* ===== Countdown ===== */
.countdown-card {
  text-align: center;
  padding: 1.75rem 1.5rem;
}

.countdown-label {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}

.countdown {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: .14em;
  color: var(--ink);
}


/* ===== Hero ===== */
header.hero{
  text-align:center;
  padding:4.5rem 1rem 2.25rem;
}

.hero .kicker{
  font-family: "Monsieur La Doulaise", cursive;
  font-style: normal;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: none;
  font-size: 2.4rem;
}

.hero .names{
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.meta{
  font-family: "Cormorant Garamond", serif;
  margin:.35rem 0 0;
  color:var(--muted);
  letter-spacing:.24em;
  text-transform:none;
  font-size:1rem;
}


/* Hero photo */
.hero-photo{
  width:100%;
  max-width:820px;
  aspect-ratio:3 / 2;
  object-fit:cover;
  object-position:center 10%;
  border-radius:8px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  display:block;
  margin:1.2rem auto 0;
}

/* ===== Navigation ===== */
nav.top{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:#fff;
  position:sticky;
  top:0;
  z-index:40;
}

.nav-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:.6rem 1rem;
  display:flex;
  gap:1.2rem;
  justify-content:center;
  flex-wrap:wrap;
}

.nav-inner a{
  text-decoration:none;
  color:var(--muted);
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:.82rem;
  padding:.35rem .25rem;
  border-bottom:2px solid transparent;
}

.nav-inner a:hover{ color:var(--ink) }
.nav-inner a.active{
  color:var(--accent);
  border-color:var(--accent);
}

/* ===== Two-column date/location ===== */
.grid-two{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:1.25rem;
  align-items:center;
  justify-items:center;
  max-width:720px;
  margin:1.6rem auto 0;
  padding:0 1rem;
}

.grid-two .cell{
  font-family: "Cormorant Garamond", serif;
  text-align:center;
  letter-spacing:.22em;
  text-transform:none;
  font-weight: 500;
}


.divider-vert{
  height:40px;
  width:1px;
  background:var(--line);
}

/* ===== Buttons ===== */
.btn{
  display:inline-block;
  padding:.7rem 1.2rem;
  border-radius:4px;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.8rem;
}

.btn:hover{ filter:brightness(.95) }

/* ===== RSVP Form ===== */
#rsvp-form{
  display:flex;
  flex-direction:column;
  gap:1rem;
  max-width:480px;
  margin:0 auto;
}

#rsvp-form label{
  display:flex;
  flex-direction:column;
  font-weight:500;
  color:var(--ink);
}

#rsvp-form input[type="text"],
#rsvp-form input[type="email"],
#rsvp-form select,
#rsvp-form textarea{
  width:100%;
  margin-top:.35rem;
  padding:.6rem .75rem;
  border:1px solid var(--line);
  border-radius:6px;
  font:inherit;
}

#rsvp-form button{
  align-self:center;
  background:var(--accent);
  color:#fff;
  padding:.75rem 1.5rem;
  border:none;
  border-radius:6px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  cursor:pointer;
}

#rsvp-form button:hover{ filter:brightness(.9) }

/* ===== Page Photos ===== */
.page-photo{
  display:block;
  width:100%;
  max-width:820px;
  margin:2.5rem auto 0;
  border-radius:8px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  object-fit:cover;
  aspect-ratio:16 / 9;
}

/* Per-page focus control */
.page-photo-dress{ object-position:center 20% }
.page-photo-registry{ object-position:center 80% }
.page-photo-faq{ object-position:center 33% }
.page-photo-rsvp{ object-position:center 20% }

/* ===== Itinerary Layout ===== */
.itinerary-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
  align-items:center;
}

.itinerary-photo{
  width:100%;
  border-radius:8px;
  object-fit:cover;
  object-position:center 70%;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  max-width: 600px;
}

.itinerary-text ul{
  list-style:none;
  padding:0;
  margin:0;
}
.itinerary-text ul.sub {
  margin: .55rem 0 .75rem 1.25rem; /* controls indent */
  padding-left: 0;
  list-style: circle; /* or circle, or none */
  color: var(--muted);
  font-size: .95rem;
}

.itinerary-text li{ margin:.5rem 0 }

/* Mobile fallback */
@media (max-width:720px){
  .itinerary-grid{ grid-template-columns:1fr }
  .itinerary-photo{ aspect-ratio:16 / 9 }
}

@media (max-width:720px){
  .itinerary-photo {
    object-position: center top; /* show the top of the image */
    aspect-ratio: 3 / 2;         /* optional: keeps it neat on phones */
    max-width: 100%;
  }
}

/* Footer */
footer{
  text-align:center;
  color:var(--muted);
  padding:2.5rem 1rem 3rem;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem; /* space between photos */
  max-width: 820px; /* matches your theme’s photo width */
  margin: 2rem auto;
}

.about-photos img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.hero-photo,
.page-photo,
.itinerary-photo,
.about-photos img {
  border-radius: 0;
}