:root{
  /* Base */
  --bg: rgb(255,255,255);
  --text: rgb(18,18,20);

  /* Wedding palette */
  --blush: rgb(221,181,156);
  --champagne: rgb(235,229,215);
  --champagne-soft: rgba(235,229,215,0.55);
  --sage: rgb(140,160,120);
  --lilac: rgb(193,175,224);
  --linen: rgb(191,169,144);
  --forest: rgb(66,94,38);

  /* Derived */
  --muted: rgba(18,18,20,0.60);
  --border: rgba(191,169,144,0.45);

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 18px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
}

/* Base reset */
*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

/* Layout */
.container{
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto;
}

.section{
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.section--alt{
  background: var(--champagne);
}

/* Hero */
.hero{
  border-top: none;
  padding: 180px 0 160px;
  position: relative;
  background: url("./images/1.jpeg") center/cover no-repeat;
  display: flex;
  align-items: center;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.hero__content {
  position: relative;
  z-index: 2;
}

.kicker{
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero h1{
  font-size: clamp(40px, 5vw, 64px);
  margin: 10px 0 8px;
  color: white;
}

.sub{
  margin: 0 0 18px;
  color: rgba(255,255,255,0.85);
  font-size: 18px;
}

.hero__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.chip{
  border: 1px solid var(--border);
  background: var(--champagne-soft);
  padding: 10px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Headings */
h2{
  margin: 0;
  color: var(--forest);
}

h2::after{
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  background: var(--lilac);
  border-radius: 999px;
  margin-top: 10px;
}

/* Grid & Cards */
.grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

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

.stack{
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.card{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-md);
}

.card h3{
  margin: 0 0 8px;
  color: var(--forest);
}

.muted{ color: var(--muted); }

.row{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: start;
}

.time{
  font-weight: 700;
  color: var(--sage);
}

/* Buttons */
.btn{
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--lilac), var(--blush));
  color: white;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.btn:hover{ filter: brightness(0.98); }

.btn--ghost{
  background: var(--champagne-soft);
  color: var(--forest);
  border-color: var(--border);
  box-shadow: none;
}

.btn--small{
  padding: 10px 12px;
  border-radius: 12px;
}

/* FAQ */
.faq{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--bg);
  margin-top: 12px;
}

.faq summary{
  cursor: pointer;
  font-weight: 700;
  color: var(--forest);
}

/* Form */
.form{
  display: grid;
  gap: 12px;
  margin: 18px auto 0;   /* <-- centers it */
  max-width: 520px;
  width: 100%;
}

label{
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--forest);
}

input, select, textarea{
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: rgba(255,255,255,0.95);
}

input:focus, select:focus, textarea:focus{
  outline: 2px solid rgba(193,175,224,0.35);
  border-color: rgba(193,175,224,0.65);
}

/* RSVP Image */
.rsvp-photo {
  margin-top: 50px;
}

.rsvp-photo img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

/* Map */
.mapEmbed {
  margin-top: 30px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mapEmbed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

/* Footer */
.footer{
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: rgba(66,94,38,0.75);
  background: rgba(235,229,215,0.45);
}

/* Navigation */
.nav{
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1040px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

.nav__brand{
  text-decoration: none;
  color: var(--forest);
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav__links{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav__link{
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--forest);
  font-weight: 700;
}

.nav__link:hover{
  border-color: var(--border);
  background: var(--champagne-soft);
}

.nav__link.is-active{
  background: rgba(193,175,224,0.28);
  border-color: rgba(193,175,224,0.45);
}

.nav__link--cta{
  background: linear-gradient(135deg, var(--lilac), var(--blush));
  color: white;
  border-color: transparent;
}

/* Responsive */
@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}

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

  .nav{
    top: auto;
    bottom: 14px;
    border-radius: 22px;
    padding: 10px;
  }

  .nav__brand{ display: none; }

  .nav__links{
    width: 100%;
    justify-content: space-between;
  }

  .nav__link{
    padding: 10px;
    font-size: 13px;
  }
}

.faq img {
  width: 100%;
  max-width: 400px;
  margin-top: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.story-photo {
  padding: 0;
}

.story-photo img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}