:root {
  --bg: #fffaf6;
  --paper: #ffffff;
  --text: #332824;
  --muted: #6e625d;
  --line: #eadfd7;
  --soft: #f7efe8;
  --accent: #d53b32;
  --accent-2: #f0c53d;
  --shadow: 0 18px 40px rgba(51, 40, 36, 0.08);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { width: 100%; display: block; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 88px 0; }
.soft-bg { background: linear-gradient(180deg, #fff 0%, #fbf3ec 100%); }
.accent-bg { background: linear-gradient(135deg, #fff5d6 0%, #fff 55%, #fff4f4 100%); }
.center { text-align: center; }
.muted { color: var(--muted); }
.script {
  margin: 0 0 6px;
  font-family: 'Style Script', cursive;
  color: #5d4d48;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}
.script.red { color: var(--accent); }
h1, h2, h3 {
  margin: 0 0 14px;
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.05;
}
h1 { font-size: clamp(3.2rem, 8vw, 7rem); letter-spacing: 0.03em; }
h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 16px; }
.hero {
  position: relative;
  min-height: 100svh;
  color: white;
  background: url('assets/section_1.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.26) 40%, rgba(0,0,0,.44));
}
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
}
.nav-links { display: flex; gap: 20px; font-size: 0.96rem; }
.hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 70px);
  display: grid;
  place-content: center start;
  text-align: left;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.subtitle {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  max-width: 700px;
  font-family: 'Cormorant Garamond', serif;
}
.hero-actions, .pill-row, .icon-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: white; color: var(--text); }
.btn-ghost { border: 1px solid rgba(255,255,255,.5); color: white; }
.btn-accent { background: var(--accent-2); color: #2b2200; }
.two-col, .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.align-center { align-items: center; }
.align-start { align-items: start; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.framed { overflow: hidden; padding: 10px; }
.framed img { border-radius: 22px; }
.white-card { background: rgba(255,255,255,.72); backdrop-filter: blur(5px); }
.intro { align-items: center; }
.names-card { padding: 30px; }
.names-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}
.names-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  columns: 1;
}
.names-card li { margin-bottom: 6px; }
.detail-list { display: grid; gap: 14px; margin: 24px 0; }
.detail-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.detail-item span { color: var(--muted); }
.pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: white;
  border: 1px solid #f0dd9c;
  font-weight: 600;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}
.gallery-card {
  overflow: hidden;
  border-radius: 24px;
  min-height: 260px;
  box-shadow: var(--shadow);
  background: white;
}
.gallery-card.large { grid-row: span 2; min-height: 540px; }
.gallery-card img { height: 100%; object-fit: cover; }
.reminder-card, .rsvp-card { padding: 34px; }
.icon-row span {
  width: 68px; height: 68px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  font-size: 1.8rem;
}
.tiny { font-size: 0.88rem; color: var(--muted); }
.countdown-wrap { padding-top: 0; }
.countdown-card {
  background: linear-gradient(180deg, #fff 0%, #fff8ef 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 42px 26px;
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.time-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 14px;
  text-align: center;
}
.time-box strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: 'Cormorant Garamond', serif;
}
.time-box span { color: var(--muted); }
.footer {
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-inner {
  padding: 24px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
code {
  background: #fff4e9;
  padding: 2px 7px;
  border-radius: 8px;
}
@media (max-width: 900px) {
  .two-col, .grid-2, .names-grid, .gallery-grid, .countdown-grid { grid-template-columns: 1fr; }
  .gallery-card.large { grid-row: auto; min-height: 300px; }
  .detail-item { flex-direction: column; }
  .nav { flex-direction: column; gap: 12px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .hero-content { text-align: center; place-content: center; }
  .hero-actions { justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
