:root {
  --ivory: #f6f0e7;
  --paper: #fbf8f2;
  --beige: #d8c3aa;
  --taupe: #b59b80;
  --coffee: #533b2f;
  --ink: #34251f;
  --gold: #af8751;
  --white: #fffdf9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Josefin Sans", Arial, sans-serif;
  --script: "Pinyon Script", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--coffee);
  color: white;
  padding: .75rem 1rem;
}
.skip-link:focus { top: 1rem; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  color: var(--white);
  text-align: center;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("assets/dulce-ricardo.jpg") center 38% / cover no-repeat;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(24,15,12,.32), rgba(24,15,12,.10) 45%, rgba(24,15,12,.68)),
    linear-gradient(90deg, rgba(24,15,12,.18), transparent 45%);
}
.hero-frame {
  position: absolute;
  inset: clamp(18px, 4vw, 44px);
  z-index: -1;
  border: 1px solid rgba(255,255,255,.65);
}
.hero-content {
  width: min(92vw, 820px);
  padding: 4rem 1rem 7rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.eyebrow, .kicker {
  margin: 0 0 1rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
}
.hero h1 {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(4.5rem, 13vw, 9.5rem);
  font-weight: 400;
  line-height: .85;
}
.hero h1 span {
  display: inline-block;
  padding: 0 .06em;
  color: #ead7b9;
  font-size: .7em;
}
.date-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin: 2.2rem auto 1.6rem;
  font-size: .95rem;
  letter-spacing: .34em;
}
.date-lockup i { width: 40px; height: 1px; background: rgba(255,255,255,.72); }
.hero-quote {
  max-width: 520px;
  margin: 0 auto 2rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-style: italic;
}
.hero-link {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding: .45rem .1rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-decoration: none;
  text-transform: uppercase;
}
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 28px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 20px;
  transform: translateX(-50%);
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: white;
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%,0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,15px); }
}

.section { padding: clamp(5rem, 10vw, 9rem) max(6vw, 1.4rem); }
.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  font-weight: 400;
  line-height: 1.12;
}
.kicker { color: var(--gold); }
.fine-line { width: 72px; height: 1px; margin: 2rem auto; background: var(--gold); }
.story {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}
.story p:not(.kicker):not(.signature) { max-width: 680px; margin: 1.15rem auto; }
.signature { margin: 2.2rem 0 0; color: var(--coffee); font-family: var(--script); font-size: 2.8rem; }
.section-number {
  position: absolute;
  right: max(2vw, .5rem);
  top: 3.5rem;
  color: rgba(83,59,47,.08);
  font-family: var(--serif);
  font-size: clamp(6rem, 14vw, 11rem);
  line-height: 1;
}

.countdown-section {
  background: var(--coffee);
  color: var(--white);
  text-align: center;
}
.countdown-section .kicker { color: #d6b888; }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 900px);
  margin: 3.4rem auto 1.5rem;
}
.countdown div { padding: 0 1rem; border-right: 1px solid rgba(255,255,255,.18); }
.countdown div:last-child { border-right: 0; }
.countdown strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
}
.countdown span {
  display: block;
  margin-top: 1rem;
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.countdown-date { margin-top: 2.5rem; color: #d9cab7; font-size: .8rem; letter-spacing: .1em; }

.places { background: var(--paper); }
.places-intro { margin: 0 auto 3rem; max-width: 1100px; }
.place-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1100px;
  margin: 0 auto;
}
.place-card {
  min-height: 580px;
  padding: clamp(2.2rem, 5vw, 4.5rem);
  border: 1px solid #d7c8b7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.place-card-dark { background: var(--coffee); color: var(--white); border-color: var(--coffee); }
.place-index { margin: 0 0 auto; font-family: var(--serif); font-size: 3.6rem; color: var(--gold); }
.place-type { margin: 2rem 0 .5rem; color: var(--gold); font-size: .68rem; font-weight: 600; letter-spacing: .18em; }
.place-card time { font-family: var(--serif); font-size: 1.5rem; }
.place-card h3 { margin: 1.4rem 0 .8rem; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.2; }
.place-card address { min-height: 5.5rem; margin-bottom: 2rem; font-style: normal; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: .9rem 1.4rem;
  border: 1px solid var(--coffee);
  background: var(--coffee);
  color: white;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s, background .2s, color .2s;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-light { border-color: var(--white); background: var(--white); color: var(--coffee); }
.button-outline { background: transparent; color: var(--coffee); }
.button-outline:hover { background: var(--coffee); color: white; }

.timeline-section { max-width: 900px; margin: 0 auto; }
.timeline-section > .kicker, .timeline-section > h2 { text-align: center; }
.timeline { margin: 4rem auto 0; max-width: 700px; }
.timeline-item {
  display: grid;
  grid-template-columns: 75px 20px 1fr;
  column-gap: 1.3rem;
  min-height: 90px;
}
.timeline-item time { padding-top: .1rem; color: var(--coffee); font-family: var(--serif); font-size: 1.25rem; }
.timeline-item span { position: relative; border-left: 1px solid var(--taupe); }
.timeline-item span::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -5px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  background: var(--ivory);
  transform: rotate(45deg);
}
.timeline-item:last-child span { border-color: transparent; }
.timeline-item p { margin: 0; font-size: 1.05rem; }

.details { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.detail-block {
  min-height: 580px;
  padding: clamp(4rem, 8vw, 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #dfcdb8;
}
.detail-block h2 span { color: var(--gold); }
.detail-block > p:last-child { max-width: 520px; }
.adults { background: #ece5dc; }
.reserved-colors { display: flex; gap: .65rem; margin: 2.4rem 0; }
.reserved-colors i {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(83,59,47,.18);
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 4px 12px rgba(70,45,34,.08);
}

.lodging {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}
.lodging > div > p:last-child { max-width: 500px; }
.hotel-card { padding: clamp(2.2rem, 5vw, 4rem); border: 1px solid var(--beige); background: var(--paper); }
.hotel-card > span { color: var(--gold); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hotel-card h3 { margin: 1rem 0; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.hotel-card a:not(.button) { text-decoration-color: var(--gold); text-underline-offset: 4px; }
.hotel-card .button { margin-top: 1.4rem; }

.gift { max-width: 820px; margin: 0 auto; text-align: center; }
.gift p:not(.kicker) { max-width: 690px; margin-left: auto; margin-right: auto; }

.rsvp {
  position: relative;
  overflow: hidden;
  background: var(--coffee);
  color: var(--white);
  text-align: center;
}
.rsvp::before, .rsvp::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(175,135,81,.35);
  transform: rotate(45deg);
}
.rsvp::before { left: -185px; top: -120px; }
.rsvp::after { right: -185px; bottom: -120px; }
.rsvp-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.rsvp-content > p:not(.kicker) { max-width: 560px; margin: 1.4rem auto 2.4rem; color: #e5d9ca; }
.rsvp-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.closing {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  color: white;
  text-align: center;
}
.closing-photo { position: absolute; inset: 0; z-index: -2; background: url("assets/manos.jpg") center / cover no-repeat; }
.closing-shade { position: absolute; inset: 0; z-index: -1; background: rgba(28,20,17,.48); }
.closing-content { padding: 4rem 1.5rem 7rem; text-shadow: 0 2px 18px rgba(0,0,0,.38); }
.closing-content > p:first-child { margin: 0; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.closing h2 { margin: .25rem 0 2rem; font-family: var(--serif); font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 400; }
.closing-names { margin: 0; color: #ead8bb; font-family: var(--script); font-size: clamp(3.4rem, 9vw, 6.5rem); line-height: 1; }
.closing-date { margin: 1rem 0 2.5rem; letter-spacing: .3em; }
.closing-content span { font-family: var(--serif); font-style: italic; }

.music-player {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 50;
  border: 1px solid rgba(175,135,81,.45);
  background: rgba(246,240,231,.94);
  box-shadow: 0 10px 35px rgba(42,29,23,.18);
  backdrop-filter: blur(10px);
}
.music-player button {
  min-height: 58px;
  border: 0;
  background: transparent;
  color: var(--coffee);
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .6rem 1rem;
  cursor: pointer;
}
.music-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--coffee);
  color: white;
  font-size: .7rem;
  padding-left: 2px;
}
.music-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.music-copy small { font-size: .5rem; letter-spacing: .15em; }
.music-copy strong { font-size: .72rem; font-weight: 500; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .hero-content { padding-bottom: 8rem; }
  .hero h1 span { display: block; margin: .1em 0 -.05em; }
  .hero-photo { background-position: 54% center; }
  .hero-quote { padding: 0 1rem; }
  .countdown div { padding: 0 .25rem; }
  .countdown strong { font-size: clamp(2rem, 11vw, 3.3rem); }
  .countdown span { font-size: .55rem; letter-spacing: .08em; }
  .place-grid, .details, .lodging { grid-template-columns: 1fr; }
  .place-card { min-height: 520px; }
  .detail-block { min-height: auto; }
  .lodging { gap: 2.3rem; }
  .rsvp-buttons { flex-direction: column; align-items: stretch; }
  .music-player { right: .75rem; bottom: .75rem; }
  .music-copy small { display: none; }
  .music-player button { min-height: 50px; padding: .45rem .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
