/* ── Design tokens ───────────────────────────────────────── */
:root {
  --sage: #7a8572;
  --sage-dark: #6a7462;
  --sage-light: #8f9988;
  --invite-sage: #7d8b78;
  --invite-accent: #c8d0bc;
  --ivory: #faf8f4;
  --ivory-dark: #f0ebe3;
  --gold: #c4a962;
  --gold-light: #d4bc82;
  --gold-dark: #a88f4a;
  --white: #ffffff;
  --text: #3a3a38;
  --text-muted: #6b6b66;
  --script: #a8b5a4;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", system-ui, sans-serif;
  --font-script: "Pinyon Script", cursive;

  --header-h: 4.5rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(58, 58, 56, 0.08);
}

/* ── Reset & base ────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--sage-dark);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--gold-dark);
}

em {
  font-style: italic;
}

/* ── Utilities ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--sage);
  color: var(--white);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.container--narrow {
  width: min(720px, 92vw);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section__label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--sage-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section__intro {
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--sage-dark);
  border-color: var(--sage-light);
}

.btn--outline:hover {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.btn--large {
  padding: 1.1rem 2.5rem;
  font-size: 0.8rem;
}

/* ── Header / Nav ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(109, 127, 106, 0.12);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.nav__brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--sage-dark);
  letter-spacing: 0.05em;
}

.nav__amp {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 0.15em;
}

.nav__menu {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav__link {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease), left 0.3s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--sage-dark);
}

.nav__link.is-active::after,
.nav__link:hover::after {
  width: 60%;
  left: 20%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--sage-dark);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Hero / Invite image ─────────────────────────────────── */
.section--hero {
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 0;
  background: var(--white);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 0;
}

.hero-invite {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0 0 2rem;
}

.hero-invite__image {
  display: block;
  width: min(400px, 88vw);
  height: auto;
}

.hero__below {
  text-align: center;
  padding: 0 1rem 3rem;
  width: 100%;
  max-width: 520px;
}

.hero__below .countdown {
  justify-content: center;
}

.hero__below .countdown__value {
  color: var(--sage-dark);
}

.hero__below .countdown__label {
  color: var(--text-muted);
}

.hero__below .countdown__caption {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.countdown {
  display: flex;
  gap: clamp(0.75rem, 3vw, 1.5rem);
  margin-bottom: 0.5rem;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.5rem;
}

.countdown__value {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  line-height: 1;
}

.countdown__label {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 0.35rem;
}

.countdown__caption {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 1.75rem;
}

/* Welcome */
.welcome {
  text-align: center;
  padding: 5rem 1.5rem 6rem;
  max-width: 640px;
  margin-inline: auto;
}

.welcome__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--sage-dark);
  margin-bottom: 1.25rem;
}

.welcome__text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ── Journey / Timeline ──────────────────────────────────── */
.section--journey {
  background: var(--ivory-dark);
}

.timeline {
  list-style: none;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold-light), var(--sage-light));
}

.timeline__item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-4px);
  box-shadow: 0 0 0 4px var(--ivory-dark);
}

.timeline__year {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
}

.timeline__heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--sage-dark);
  margin: 0.25rem 0 0.75rem;
}

.timeline__opener {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--sage);
  margin-bottom: 1rem;
}

.timeline__details {
  border-top: 1px solid rgba(109, 127, 106, 0.12);
  margin-top: 0.25rem;
}

.timeline__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
}

.timeline__summary::-webkit-details-marker {
  display: none;
}

.timeline__teaser {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 58ch;
}

.timeline__toggle {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  position: relative;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.timeline__toggle::before,
.timeline__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.55rem;
  height: 1px;
  background: var(--gold-dark);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease);
}

.timeline__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.timeline__details[open] .timeline__toggle {
  background: var(--gold);
  border-color: var(--gold);
}

.timeline__details[open] .timeline__toggle::before,
.timeline__details[open] .timeline__toggle::after {
  background: var(--white);
}

.timeline__details[open] .timeline__toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.timeline__summary:hover .timeline__teaser {
  color: var(--text);
}

.timeline__body {
  padding: 0 0 1.25rem;
}

.timeline__body p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.8;
  max-width: 62ch;
  margin-bottom: 1rem;
}

.timeline__body p:last-child {
  margin-bottom: 0;
}

.timeline__subheading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--sage-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.journey__quote {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(109, 127, 106, 0.15);
}

.journey__quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  color: var(--sage-dark);
  max-width: 32ch;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* ── Details ─────────────────────────────────────────────── */
.section--details {
  background: var(--white);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.detail-card {
  padding: 2rem;
  background: var(--ivory);
  border: 1px solid rgba(109, 127, 106, 0.1);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.detail-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.detail-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--sage-dark);
  margin-bottom: 0.75rem;
}

.detail-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.detail-card__script {
  font-family: var(--font-script) !important;
  font-size: 1.4rem !important;
  color: var(--gold-dark) !important;
  margin-bottom: 0.5rem !important;
}

.map-block {
  text-align: center;
}

.map-block__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--sage-dark);
  margin-bottom: 0.5rem;
}

.map-block__address {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.map-block__embed {
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(109, 127, 106, 0.15);
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
}

.map-block__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-block__link {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Schedule ────────────────────────────────────────────── */
.section--schedule {
  background: var(--sage);
  color: var(--white);
}

.section--schedule .section__label {
  color: var(--gold-light);
}

.section--schedule .section__title {
  color: var(--white);
}

.schedule-list {
  list-style: none;
}

.schedule-list__item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.schedule-list__item:last-child {
  border-bottom: none;
}

.schedule-list__item time {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gold-light);
  white-space: nowrap;
}

.schedule-list__item h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.schedule-list__item p {
  font-size: 0.92rem;
  opacity: 0.85;
  line-height: 1.6;
}

/* ── RSVP ────────────────────────────────────────────────── */
.section--rsvp {
  background: var(--ivory);
}

.rsvp__deadline {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.rsvp__actions {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(109, 127, 106, 0.12);
}

.rsvp__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.rsvp-form__intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(109, 127, 106, 0.25);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.25s var(--ease);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--sage-dark);
  min-height: 1.5em;
}

.form-status.is-success {
  color: var(--sage-dark);
}

.form-status.is-error {
  color: #8a3a3a;
}

/* ── FAQs ────────────────────────────────────────────────── */
.section--faqs {
  background: var(--white);
}

.faq {
  border-bottom: 1px solid rgba(109, 127, 106, 0.12);
}

.faq summary {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--sage-dark);
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.faq[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  color: var(--text-muted);
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
  max-width: 60ch;
}

/* ── Accommodation ───────────────────────────────────────── */
.section--accommodation {
  background: var(--ivory-dark);
}

.stay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stay-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid rgba(109, 127, 106, 0.1);
}

.stay-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--sage-dark);
  margin-bottom: 0.75rem;
}

.stay-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.stay-note {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Gallery ─────────────────────────────────────────────── */
.section--gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-placeholder {
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, var(--ivory-dark), var(--ivory));
  border: 1px solid rgba(109, 127, 106, 0.1);
  position: relative;
}

.gallery-placeholder::after {
  content: "Coming soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--sage-light);
  font-size: 1rem;
}

/* ── Registry ────────────────────────────────────────────── */
.section--registry {
  background: var(--sage);
  color: var(--white);
  text-align: center;
}

.section--registry .section__label {
  color: var(--gold-light);
}

.section--registry .section__title {
  color: var(--white);
}

.section--registry .section__intro {
  color: rgba(255, 255, 255, 0.85);
  margin-inline: auto;
}

.section--registry .btn--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.section--registry .btn--outline:hover {
  background: var(--white);
  color: var(--sage-dark);
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--sage-dark);
  color: var(--white);
}

.footer__names {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.footer__and {
  font-family: var(--font-script);
  color: var(--gold-light);
}

.footer__date {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 1rem;
}

.footer__credit {
  font-family: var(--font-script);
  font-size: 1.25rem;
  color: var(--gold-light);
}

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(250, 248, 244, 0.98);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem 2rem;
    gap: 0;
    border-bottom: 1px solid rgba(109, 127, 106, 0.12);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    display: block;
    padding: 0.85rem 0;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(109, 127, 106, 0.08);
  }


  .schedule-list__item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3.5rem 0;
  }

  .countdown {
    gap: 0.5rem;
  }

  .countdown__item {
    min-width: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
