:root {
  --pomegranate: #C0404A;
  --rose: #E8907A;
  --fig: #556B4A;
  --amber: #C9913A;
  --linen: #F0E8D8;
  --bg: #FAF0EB;
  --ink: #2A1E14;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.7;
  background: var(--bg);
}

h1, h2, .logo {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

/* Navigation */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 5%;
  z-index: 10;
}
.nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav .logo { font-size: 1.8rem; margin-left: 0; text-transform: none; }

/* Hero */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url("images/hero.jpg") center / cover no-repeat;
  background-color: #8a8a8a; /* shown if the image is missing */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}
.hero .small { text-transform: uppercase; letter-spacing: 3px; font-size: 0.9rem; }
.hero h1 { font-size: clamp(3rem, 10vw, 6rem); line-height: 1.1; margin: 10px 0; }
.hero .date { font-size: 1.2rem; margin-bottom: 10px; }
#countdown { font-size: 1.1rem; margin-bottom: 30px; }

.button {
  display: inline-block;
  padding: 12px 36px;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.2s;
}
.button:hover { background: var(--pomegranate); color: white; }

/* Intro */
.intro {
  max-width: 650px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}
.intro h2 { font-size: 2.4rem; margin-bottom: 15px; }

footer {
  text-align: center;
  padding: 30px 20px;
  background: var(--fig);
  color: var(--linen);
  font-size: 0.9rem;
}

footer a { color: var(--linen); }
/* Inner pages */
.nav.solid {
  position: static;
  background: var(--fig);
}

.page-header {
  text-align: center;
  padding: 60px 20px 20px;
}
.page-header h1 { font-size: 3rem; margin-bottom: 10px; }

.page-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}
#lookup { text-align: center; }
#lookup input {
  padding: 12px; width: 100%; max-width: 360px;
  border: 1px solid #bbb; font-size: 1rem; margin: 10px 0;
}
input:focus { outline: 2px solid var(--rose); }
#lookup button {
  padding: 12px 28px; background: var(--pomegranate); color: white;
  border: none; cursor: pointer; font-size: 1rem;
}
#message { margin-top: 12px; color:var(--pomegranate); }
#welcome { text-align: center; margin-bottom: 20px; }
/* Registry */
.registry-intro { text-align: center; margin-bottom: 40px; }
.registry-intro h2, .section-title { font-size: 2rem; margin-bottom: 12px; }
.section-title { text-align: center; margin-bottom: 24px; }

.method {
  border: 1px solid var(--amber);
  background: var(--linen);
  padding: 24px;
  margin-bottom: 20px;
}
.method h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.method p { margin-bottom: 14px; }

.method dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; }
.method dt { font-weight: 400; color:var(--ink); }
.method dd { word-break: break-word; }

.pay-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--pomegranate);
  color: white;
  text-decoration: none;
  letter-spacing: 1px;
}
.pay-btn:hover { background: var(--fig); }

.copy-btn {
  margin-left: 8px;
  padding: 4px 12px;
  border: 1px solid #999;
  background: white;
  cursor: pointer;
  font-size: 0.85rem;
}

.note { text-align: center; font-size: 0.95rem; margin-top: 30px; color: #666; }

/* Travel */
.travel-block { margin-bottom: 48px; }
.travel-block h2 { font-size: 2rem; margin-bottom: 12px; }
.travel-block p { margin-bottom: 12px; }
.travel-block ul { padding-left: 20px; }
.travel-block li { margin-bottom: 10px; }

.hotel {
  border: 1px solid var(--amber);
  background: var(--linen);
  padding: 24px;
  margin-top: 20px;
}
.hotel h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  margin-bottom: 2px;
}
.hotel-meta { color: var(--pomegranate); font-size: 1.0rem; margin-bottom: 10px; font-weight: bold;}

.map { margin-top: 14px; }

/* Schedule */
.day { margin-bottom: 48px; }
.day h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--amber);
}

.event {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.time {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 600;
}
.details h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  margin-bottom: 2px;
}
.details p { margin-bottom: 4px; }
.dress { color: var(--fig); font-style: italic; }

/* FAQ */
.faq-group {
  font-size: 2rem;
  margin: 40px 0 12px;
}
.faq-group:first-child { margin-top: 0; }

details {
  border-bottom: 1px solid var(--amber);
  padding: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 400;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--fig);
}
details[open] summary::after { content: "–"; }
details p { margin-top: 12px; color: #555; }

/* Photos */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 80px;
}
.photo-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.page-header.with-photo {
  background:
  linear-gradient(rgba(42,30,20,0.65), rgba(42,30,20,0.65)),
  var(--header-img) center / cover no-repeat;
  color: white;
  padding: 100px 20px;
}
.page-header.with-photo h1 { color: white; }

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

.page-header p {
  font-size: 1.2rem;
  letter-spacing: 1px;
  max-width: 600px;
  margin: 0 auto;
}

/* Registry: side-by-side methods */
.page-content.wide { max-width: 1000px; }
.page-content.wide .registry-intro { max-width: 700px; margin-left: auto; margin-right: auto; }

.methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.methods .method {
  margin-bottom: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.methods .method dl { grid-template-columns: 1fr; gap: 2px; }
.methods .method dd { margin-bottom: 10px; }
.methods .pay-btn { margin-top: auto; text-align: center; }

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

/* Photo under page header */
.header-photo {
  max-width: 1000px;
  margin: 30px auto 30px;
  padding: 0 20px;
}
.header-photo img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

@media (max-width: 700px) {
  .header-photo img { height: 220px; }
}

h1, h2, h3 { color: var(--ink); }
a { color: var(--pomegranate); }
.nav a, .hero h1, .hero a, .pay-btn, .page-header.with-photo h1 { color: white; }
.button:hover { background: white; color: var(--pomegranate); }
.pay-btn:hover, #lookup button:hover { background: var(--ink); }
.hero .small, .hero .date, #countdown, .hero h1 { color: white; }
summary::after { color: var(--amber); }