:root {
  --bg: #ede0c8;          /* vintage parchment; text stays dark brown for easy reading */
  --bg-alt: #e3d2b5;
  --bg-sage: #e8d9be;     /* (name kept) third warm tone for culture/region sections */
  --ink: #2b1d14;
  --muted: #55402f;
  --accent: #8b5e3c;      /* caramel brown */
  --accent-dark: #5e3b22;
  --line: #b89a74;
  --card: #f5ecdc;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: var(--serif); /* one typeface across the whole site */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
h3 { font-size: 1.6rem; }
em { font-style: italic; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.center { text-align: center; }
.muted { color: var(--muted); }

.eyebrow {
  font-size: .8rem; font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 .8em;
}

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(237, 224, 200, .96); backdrop-filter: blur(6px);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.nav-links a:hover { color: var(--accent-dark); }
.nav-cta { border: 1px solid var(--ink); padding: 6px 16px; }
.nav-links { margin-left: auto; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .3s; }

/* HERO — photo on the right half (desktop), full-bleed behind the names (phone) */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1fr 1fr;
  text-align: center;
}
.hero-photo { margin: 0; order: 2; position: relative; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% 50%; } /* keeps the couple centered in the wide City Hall photo */
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px 40px 60px;
  background:
    radial-gradient(ellipse at top, rgba(139, 94, 60, .12), transparent 60%),
    var(--bg);
}
.hero .names { font-size: clamp(2.2rem, 4vw, 4rem); white-space: nowrap; } /* Trinique & Juan Pablo on one line */
.names { font-size: clamp(3rem, 11vw, 6.5rem); margin: .1em 0 .3em; }
.names em { color: var(--accent); }
.names.small { font-size: 2rem; margin: 0 0 .2em; }
.hero-date { font-family: var(--serif); font-size: 1.6rem; margin: 0; }
.hero-place { color: var(--muted); letter-spacing: .1em; margin: .2em 0 2em; }

.countdown { display: flex; justify-content: center; gap: 28px; margin-bottom: 2.4em; }
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.countdown span { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.countdown small { font-weight: 600; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* BUTTONS */
.btn {
  display: inline-block; cursor: pointer;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
  font: 600 .9rem var(--sans); letter-spacing: .2em; text-transform: uppercase;
  padding: 15px 34px; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.full { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 1.6em; }

/* SECTIONS */
.section { padding: 110px 0; }
.section + .section { border-top: 4px double var(--line); } /* vintage double rule between sections */
.section.alt { background: var(--bg-alt); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 2.5em; }
.card { background: var(--card); border: 1px solid var(--line); padding: 34px 30px; text-align: center; }
.link { color: var(--accent-dark); text-decoration: none; font-size: .9rem; letter-spacing: .05em; border-bottom: 1px solid currentColor; }

/* TIMELINE */
.section-date { font-style: italic; font-size: 1.3rem; color: var(--muted); margin: -.2em 0 0; }
.timeline { list-style: none; padding: 0; margin: 3em 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 2.4em 44px; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 8px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent);
}
.tl-day { font-variant-numeric: lining-nums; font-weight: 600; font-size: .85rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-dark); margin: 0; }
.timeline h3 { margin: .1em 0 .2em; }
.timeline p { margin: 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { margin-top: 2em; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--serif); font-size: 1.35rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin: .7em 0 0; color: var(--muted); }

/* RSVP FORM */
.form { margin-top: 2.4em; background: var(--card); border: 1px solid var(--line); padding: 40px 34px; }
.field { margin: 0 0 22px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.field input[type=text], .field input[type=email], .field select, .field textarea {
  width: 100%; font: 500 1.05rem var(--sans); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); padding: 12px 14px; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field .invalid { border-color: #b4574a; }
.choice-row { display: flex; gap: 12px; flex-wrap: wrap; }
.choice {
  flex: 1 1 200px; display: flex; align-items: center; gap: 10px;
  text-transform: none !important; letter-spacing: 0 !important; font-size: 1rem !important;
  border: 1px solid var(--line); padding: 12px 14px; cursor: pointer; background: var(--bg);
}
.choice:has(input:checked) { border-color: var(--accent); background: rgba(139, 94, 60, .1); }
.choice input { accent-color: var(--accent-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 16px 0 0; text-align: center; min-height: 1.5em; }
.form-status.ok { color: var(--accent-dark); font-family: var(--serif); font-size: 1.35rem; }
.form-status.err { color: #b4574a; }

/* FOOTER */
.footer { text-align: center; padding: 70px 20px; border-top: 4px double var(--line); }
.footer p { margin: 0; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* MOBILE */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .nav { padding: 12px 16px; }
  .nav-toggle { display: block; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0; background: var(--bg);
    flex-direction: column; justify-content: center; gap: 30px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav-links a { font-size: 1rem; }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .nav.open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .hero { display: block; }
  .hero-photo { height: 100svh; height: 100vh; height: 100svh; }
  .hero-photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(30, 26, 20, .72) 0%, rgba(30, 26, 20, .45) 30%, transparent 52%);
  }
  .hero-text { padding: 0; background: var(--bg); }
  .hero-head { position: absolute; top: 0; left: 0; right: 0; z-index: 1; padding: 108px 16px 0; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
  .hero-head .eyebrow { color: rgba(255, 255, 255, .9); font-size: .7rem; letter-spacing: .16em; }
  .hero-head .names em { color: #f0dcc0; }
  .hero-head .hero-place { color: rgba(255, 255, 255, .85); margin-bottom: 0; }
  .hero .names { font-size: clamp(1.9rem, 9.5vw, 3rem); }
  .hero-foot { padding: 48px 16px 56px; }
  .countdown { gap: 18px; }
  .countdown span { font-size: 2.1rem; }
  .form { padding: 28px 20px; }
  .wrap { padding: 0 16px; }
}

/* CULTURES */
.culture { background: var(--bg-sage); }
.culture h2 em { color: var(--accent); }
.culture-intro { max-width: 640px; margin: 0 auto; }
.menu {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: start;
  max-width: 860px; margin: 3em auto 0; padding: 40px 36px;
  background: var(--card); border: 1px solid var(--line);
}
.menu-col { text-align: center; }
.menu-origin { font-family: var(--serif); font-style: italic; color: var(--accent-dark); font-size: 1.15rem; margin: 0; }
.menu ul { list-style: none; padding: 0; margin: 1em 0 0; }
.menu li { padding: 12px 0; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.25rem; }
.menu li span { display: block; font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.menu-divider { align-self: stretch; display: flex; align-items: center; justify-content: center; position: relative; }
.menu-divider::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.menu-divider span { position: relative; background: var(--card); padding: 8px 0; font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--accent); }
@media (max-width: 820px) {
  .menu { grid-template-columns: 1fr; gap: 8px; padding: 28px 20px; }
  .menu-divider { padding: 8px 0; }
  .menu-divider::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .menu-divider span { padding: 0 14px; }
}

/* LANGUAGE SWITCHER */
.lang { display: flex; gap: 2px; margin-left: 22px; }
.lang button {
  background: none; border: 0; cursor: pointer; padding: 6px 7px;
  font: 600 .8rem var(--sans); letter-spacing: .14em; color: var(--muted);
}
.lang button[aria-pressed="true"] { color: var(--ink); border-bottom: 1px solid var(--accent); }
.lang button:hover { color: var(--accent-dark); }
@media (max-width: 820px) {
  .lang { margin-left: auto; margin-right: 6px; z-index: 2; order: 2; }
  .nav-toggle { order: 3; }
  .nav-links { margin-left: 0; }
}
@media (min-width: 821px) and (max-width: 1180px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: .74rem; letter-spacing: .1em; }
}

/* STORY TIMELINE — one line down the left, a small round photo for each chapter */
.story-intro { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--muted); margin: 0 auto; }
.storyline { list-style: none; max-width: 760px; margin: 3.2em auto 0; padding: 0; position: relative; }
.storyline::before { content: ""; position: absolute; left: 44px; top: 30px; bottom: 30px; width: 1px; background: var(--line); }
.storyline li { display: grid; grid-template-columns: 88px 1fr; gap: 28px; align-items: start; padding-bottom: 44px; }
.storyline li:last-child { padding-bottom: 0; }
.sl-photo { position: relative; z-index: 1; width: 88px; height: 88px; }
.sl-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--accent);
}
.sl-photo img:first-child:not(:only-child) { object-position: 50% 30%; } /* family photo: keep faces in frame */
.sl-photo img + img { position: absolute; width: 46%; height: 46%; right: -10px; bottom: -6px; } /* Amie */
.sl-dot { display: grid; place-items: center; }
.sl-dot::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--accent); }
.sl-text { padding-top: 10px; }
.sl-text .chapter-place { margin: 0 0 .3em; }
.sl-text h3 { font-size: 1.7rem; margin: 0 0 .25em; }
.sl-text p:last-child { margin: 0; }
.chapter-place { font-weight: 600; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 .6em; }
@media (max-width: 600px) {
  .storyline { margin-top: 2.4em; }
  .storyline::before { left: 32px; }
  .storyline li { grid-template-columns: 64px 1fr; gap: 18px; padding-bottom: 36px; }
  .sl-photo { width: 64px; height: 64px; }
  .sl-text { padding-top: 4px; }
  .sl-text h3 { font-size: 1.5rem; }
}

/* PHOTO CREDITS */
.credits { border: 0; padding: 0; margin: 28px auto 0; max-width: 680px; font-size: .78rem; color: var(--muted); }
.credits summary { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; justify-content: center; }
.credits summary::after { content: none; }
.credits p { font-size: .78rem; line-height: 1.6; }
.credits a { color: inherit; }

/* QUICK LINKS — numbered boxes under the welcome page */
.explore { padding: 72px 0 80px; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; max-width: 980px; margin: 1.6em auto 0; }
.tile {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); padding: 26px 26px 24px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  grid-column: span 2; /* three per row; boxes 07 and 08 take half a row each */
}
.tile:hover, .tile:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(60, 35, 15, .12); outline: none; }
.tile-num { font-style: italic; font-size: 1.6rem; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.tile-title { font-size: 1.6rem; line-height: 1.2; margin-top: 10px; color: var(--ink); }
.tile-sub { font-size: 1rem; color: var(--muted); }
.tile-half { grid-column: span 3; }
/* row of six photos under the boxes: one swipeable row (about 3.5 visible on computers, 2.4 on phones) */
.strip-carousel { max-width: 980px; margin: 18px auto 0; }
.photo-strip {
  display: flex; gap: 10px; padding: 2px 2px 6px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.photo-strip::-webkit-scrollbar { display: none; }
.photo-strip:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.photo-strip img { display: block; flex: 0 0 calc((100% - 30px) / 3.5); min-width: 0; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--line); scroll-snap-align: start; }
.strip-carousel .carousel-nav { margin-top: 16px; }
#attire { scroll-margin-top: 100px; }
.attire-lines p { margin: 0 0 .6em; }
.attire-lines p:last-child { margin: 1.2em 0 0; }
@media (max-width: 820px) {
  .explore { padding: 52px 0 60px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile, .tile-half { grid-column: span 1; padding: 18px 16px; }
  .tile-num { font-size: 1.3rem; }
  .tile-title { font-size: 1.3rem; margin-top: 6px; }
  .tile-sub { font-size: .92rem; line-height: 1.35; }
  .strip-carousel { margin-top: 12px; }
  .photo-strip { gap: 8px; }
  .photo-strip img { flex-basis: calc((100% - 16px) / 2.4); }
}

/* REGION — Antioquia highlights */
.region-intro { max-width: 660px; margin: 0 auto; }
/* Cards sit side by side and swipe left/right; arrows below for mouse users */
.region-grid {
  display: flex; gap: 24px; margin-top: 3em; padding: 2px 2px 6px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.region-grid::-webkit-scrollbar { display: none; }
.region-grid:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.region-card { background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; flex: 0 0 calc((100% - 24px) / 2.25); scroll-snap-align: start; }
.region-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.region-text { padding: 26px 28px 30px; }
.region-text h3 { font-size: 1.8rem; margin: 0 0 .35em; }
.region-text p:last-child { margin: 0; }
.carousel-nav { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font: 500 1.3rem var(--serif); line-height: 1; transition: background .2s, color .2s, opacity .2s;
}
.carousel-btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.carousel-btn:disabled { opacity: .3; cursor: default; }
@media (max-width: 820px) {
  .region-grid { gap: 14px; margin-top: 2.2em; }
  .region-card { flex-basis: 84%; }
  .region-text { padding: 22px 20px 24px; }
}

/* ENGAGEMENT PHOTOS — simple grid; empty slots show until photos are added */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; margin: 3em auto 0; }
.gallery figure { margin: 0; aspect-ratio: 4 / 5; border: 1px solid var(--line); background: var(--card); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slot { display: grid; place-items: center; color: var(--muted); font-style: italic; border-style: dashed !important; }
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 2.2em; }
  .photo-slot span { font-size: .9rem; text-align: center; padding: 0 8px; }
}

/* LANGUAGE SCREEN — only the three language buttons until a guest picks one */
.lang-gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: start center; padding: 6vh 16px 16px;
  /* hands-and-ring photo; the buttons sit on the plain water so the ring stays visible */
  background: var(--bg) url("images/hands.jpg") 46% 50% / cover no-repeat;
}
@media (min-width: 600px) and (orientation: landscape) {
  .lang-gate { place-items: start start; padding: 8vh 6vw; }
}
.lang-chosen .lang-gate { display: none; }
html:not(.lang-chosen) body { overflow: hidden; }
.lang-gate-frame {
  display: flex; flex-direction: column; gap: 12px;
  width: min(100%, 320px); padding: 26px 26px;
  border: 4px double var(--line);
  background: rgba(245, 236, 220, .9); /* parchment card keeps the buttons easy to read over the photo */
}
.lang-gate .btn { width: 100%; font-size: 1.05rem; letter-spacing: .16em; }
.lang-gate .btn:hover, .lang-gate .btn:focus-visible { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* PRIVATE TEA CEREMONY — password box */
.timeline p + .tea-form { margin-top: 14px; }
.tea-form { display: flex; gap: 10px; max-width: 400px; }
.tea-form input {
  flex: 1; min-width: 0; font: 500 1.05rem var(--sans); color: var(--ink);
  background: var(--card); border: 1px solid var(--line); padding: 10px 14px; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.tea-form input:focus { outline: none; border-color: var(--accent); }
.tea-form .btn { padding-left: 20px; padding-right: 20px; white-space: nowrap; }
#teaPrivate .form-status { text-align: left; margin-top: 8px; min-height: 0; }
