/* ===========================================================================
   Elena & Collette — Wedding Site
   Editable design tokens live in :root. Change those to re-skin the site.
   =========================================================================== */

:root {
  /* Colors */
  --color-bg: #EAE6E1;
  --color-accent: #A74D4A;
  --color-accent-soft: rgba(167, 77, 74, 0.35);
  --color-text: #A74D4A;
  --color-rule: #A74D4A;
  --color-light: #F5F5F5;

  /* Typography */
  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  /* Sizing */
  --page-padding: 4vw;
  --max-width: 1800px;
  --header-height: 70px;
  --rule-thickness: 1px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Base ---------- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-accent);
  margin: 0;
  line-height: 1.05;
}

p { margin: 0 0 1em; }

a:hover { opacity: 0.75; }

/* ---------- Layout helpers ---------- */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.rule {
  border: none;
  border-top: var(--rule-thickness) solid var(--color-rule);
  margin: 0;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: var(--rule-thickness) solid var(--color-rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3vw var(--page-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--color-accent);
}

.site-nav a.is-active { text-decoration: underline; text-underline-offset: 6px; }

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--color-accent);
  padding: 0.85em 1.4em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-accent);
  transition: background-color 0.2s, color 0.2s;
}
.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  opacity: 1;
}

.btn-outline--lg { padding: 1.5em 3em; font-size: 0.85rem; }

/* ---------- Hero (home) ---------- */
.hero {
  padding: 5vw 0 0;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 75vh;
}

.hero__side {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.6;
}

.hero__side--left { text-align: center; }
.hero__side--right { text-align: center; }

.hero__title {
  font-size: clamp(4rem, 12vw, 12rem);
  text-align: center;
  line-height: 0.95;
}
.hero__title span {
  display: block;
}
.hero__title .amp {
  font-style: italic;
  font-weight: 400;
  font-size: 0.95em;
}

/* ---------- Wavy marquee ---------- */
.wave-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1vw 0;
}

.wave-marquee svg {
  display: block;
  width: 200%;
  height: auto;
  animation: wave-scroll 30s linear infinite;
}

.wave-marquee--rsvp svg {
  animation-duration: 35s;
}

@keyframes wave-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.wave-marquee text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 38px;
  fill: var(--color-accent);
  letter-spacing: 0.02em;
}

.wave-marquee--rsvp text {
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.wave-marquee .heart {
  fill: var(--color-accent);
}

/* ---------- Generic two-column section ---------- */
.section {
  padding: 6vw 0;
  position: relative;
}

.section + .section { border-top: var(--rule-thickness) solid var(--color-rule); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: start;
}

.two-col__display {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
}

.two-col__body {
  font-size: 1.25rem;
  line-height: 1.55;
  max-width: 38ch;
}

.two-col__body strong { font-weight: 600; }

.two-col__cta { margin-top: 2.5rem; }

/* ---------- Centered intro paragraph ---------- */
.intro {
  text-align: center;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.4;
  max-width: 22ch;
  margin: 0 auto;
  padding: 8vw 0 6vw;
}

.intro--wide { max-width: 30ch; }

/* ---------- Schedule (home + travel) ---------- */
.schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: start;
}

.schedule__heading {
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.95;
}

.schedule__list { font-size: 1.15rem; }

.schedule__day {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 2rem;
}

.schedule__event { margin: 0 0 2.5rem; }

.schedule__event strong { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 6vw 0 4vw;
}

.site-footer__wave { padding-bottom: 4vw; }

.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-padding);
  max-width: var(--max-width);
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

/* ---------- Things to Do — activity grid ---------- */
.activity-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 1fr 1fr;
  gap: 4vw;
  align-items: start;
}

.activity-grid__heading {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
}

.activity-grid__col h3 {
  font-size: 1.5rem;
  margin: 0 0 1.2rem;
}

.activity-grid__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-grid__col li { margin-bottom: 0.4rem; }

/* ---------- Travel & Stay specific ---------- */
.hotel-list { font-size: 1.1rem; }
.hotel-list a { text-decoration: underline; font-weight: 600; }

/* ---------- Registry ---------- */
.registry-cta {
  text-align: center;
  padding: 12vw 0;
}

.registry-cta__copy {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.4;
  max-width: 28ch;
  margin: 0 auto 3rem;
}

/* ---------- RSVP form ---------- */
.rsvp-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 6vw var(--page-padding);
}

.rsvp-wrap h1 {
  text-align: center;
  font-size: clamp(4rem, 8vw, 6rem);
  margin-bottom: 1rem;
}

.rsvp-wrap__deadline {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 4rem;
}

.field { margin-bottom: 2rem; }

.field__label {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.field__hint {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-left: 0.4em;
}

.field__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.85em 1em;
  border: 1px solid var(--color-accent-soft);
  background: #fff;
  font: inherit;
  color: var(--color-text);
  border-radius: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.field textarea { min-height: 120px; resize: vertical; }

.field__sublabel { display: block; font-size: 0.85rem; margin-bottom: 0.4rem; }

.choices { display: flex; flex-direction: column; gap: 0.6rem; }

.choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

.choice input { accent-color: var(--color-accent); width: 18px; height: 18px; }

.rsvp-wrap form button[type="submit"] {
  background: transparent;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  padding: 1em 2.5em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 1rem;
  transition: background-color 0.2s, color 0.2s;
}
.rsvp-wrap form button[type="submit"]:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.rsvp-thanks {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2rem;
  padding: 2rem 0;
  display: none;
}

.rsvp-thanks.is-visible { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root {
    --page-padding: 6vw;
  }
  .site-header__inner { padding: 4vw var(--page-padding); }
  .site-nav { gap: 1.2rem; }
  .site-nav a { font-size: 0.95rem; }
  .btn-outline { padding: 0.7em 1.1em; font-size: 0.7rem; }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
    padding-bottom: 4vw;
  }
  .hero__side { font-size: 0.85rem; }

  .two-col,
  .schedule,
  .activity-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .activity-grid { gap: 3rem; }

  .field__row { grid-template-columns: 1fr; }

  .wave-marquee text { font-size: 30px; }
}

@media (max-width: 600px) {
  .site-nav { gap: 0.8rem; }
  .site-nav a { font-size: 0.85rem; }
  .site-logo { font-size: 1.2rem; }
  .btn-outline { padding: 0.55em 0.9em; font-size: 0.65rem; letter-spacing: 0.1em; }
}
