@font-face {
  font-family: "Stylebender";
  src: url("assets/fonts/Stylebender-ContrastItalic.otf") format("opentype");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Grit Thick";
  src: url("assets/fonts/TEXTUREFONTS-GRITTHICK.otf") format("opentype");
  font-display: swap;
}

:root {
  --ink: #000;
  --paper: #fff;
  --yellow: #e1d452;
  --blue: #6da2c7;
  --orange: #c54908;

  /* 1 design px on the 1512 × 982 Figma frame */
  --u: calc(100vw / 1512);
  /* 1 design px inside the 418 × 696 poster */
  --p: 1px;
  /* Horizontal measures squeeze with the window (--u); heights, vertical
     spacing and text stay at the designed size (--v = 1px) */
  --v: 1px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: "Grit Thick", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* The footer sits at the bottom of the window even on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

body > main { flex: 1 0 auto; outline: none; }

p { margin: 0; }

/* Circle cursor: black by default, white over black backgrounds */
:root {
  --cursor-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='12' fill='black'/%3E%3C/svg%3E") 12 12, auto;
  --cursor-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='12' fill='white'/%3E%3C/svg%3E") 12 12, auto;
}

html,
html * {
  cursor: var(--cursor-dark);
}

.t-city,
.t-city *,
.t-rows a:hover,
.t-rows a:hover * {
  cursor: var(--cursor-light);
}

/* ---------- Desktop: mirrors the Figma frame ---------- */

/* Figma positions assume the page starts at y=0. The header bar now sits
   above, so pull the stage up 33 design px (content lands ~40px below the
   bar) and end it 73px below the poster, mirroring the top margin. */
.stage {
  position: relative;
  width: 100%;
  margin-top: calc(-33 * var(--v));
  height: calc(842 * var(--v));
  /* Poster keeps its right edge on x=756 (Figma) until it reaches the margin;
     the date column sits at x=810 or just clear of the poster, whichever is later */
  --poster-left: max(16px, calc(756 * var(--u) - 418px));
  --date-left: max(calc(810 * var(--u)), calc(var(--poster-left) + 418px + 32px));
  overflow: hidden;
}

/* ---------- Header bar (museum-style) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(16px, calc(49 * var(--u)));
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wordmark-name,
.wordmark-meta { white-space: nowrap; }

.wordmark-name {
  font-family: "Grit Thick", "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}

.wordmark-meta,
.site-nav {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

/* Narrow laptop windows: tighter gaps so the whole menu fits on one line */
@media (min-width: 761px) and (max-width: 960px) {
  .site-header { gap: 16px; }
  .site-nav { gap: 20px; }
  .nav-links { gap: 18px; }
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  border-bottom-color: currentColor;
  outline: none;
}

.site-header .nav-cta {
  padding: 9px 16px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.site-header .nav-cta:hover,
.site-header .nav-cta:focus-visible {
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.menu-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}

.poster,
.tagline,
.date {
  position: absolute;
}

.tagline {
  left: var(--date-left);
  /* Figma: 442 — raised with .date so the gap between them is kept */
  top: calc(422.5 * var(--v));
  width: calc(174.505 * var(--v));
  font-size: calc(20.733 * var(--v));
  line-height: 1.08;
  text-transform: uppercase;
}

.tagline span { display: block; }

.date {
  left: var(--date-left);
  /* Figma: 527 — raised so the baseline of "2027" sits on the poster's bottom edge */
  top: calc(507.5 * var(--v));
  font-size: calc(87.357 * var(--v));
  line-height: 1.08;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ---------- Poster ---------- */

.poster {
  left: var(--poster-left);
  top: calc(73 * var(--v));
  width: calc(418 * var(--p));
  height: calc(696 * var(--p));
  margin: 0;
  overflow: hidden;
  background: var(--yellow);
  isolation: isolate;
}

.poster > * { position: absolute; }

.letter { display: block; }
.letter-m  { left: calc(16.9 * var(--p));   top: calc(184.03 * var(--p)); width: calc(59.144 * var(--p)); height: calc(92.941 * var(--p)); }
.letter-a  { left: calc(84.49 * var(--p));  top: calc(161.5 * var(--p));  width: calc(33.797 * var(--p)); height: calc(87.309 * var(--p)); }
.letter-r1 { left: calc(118.29 * var(--p)); top: calc(174.17 * var(--p)); width: calc(45.063 * var(--p)); height: calc(90.125 * var(--p)); }
.letter-r2 { left: calc(162.65 * var(--p)); top: calc(147.41 * var(--p)); width: calc(45.063 * var(--p)); height: calc(90.125 * var(--p)); }
.letter-i  { left: calc(216.86 * var(--p)); top: calc(147.41 * var(--p)); width: calc(21.827 * var(--p)); height: calc(106.319 * var(--p)); }
.letter-a2 { left: calc(242.91 * var(--p)); top: calc(174.17 * var(--p)); width: calc(33.797 * var(--p)); height: calc(87.309 * var(--p)); }
.letter-g  { left: calc(225.31 * var(--p)); top: calc(160.09 * var(--p)); width: calc(112.655 * var(--p)); height: calc(142.228 * var(--p)); }
.letter-e  { left: calc(349.94 * var(--p)); top: calc(156.57 * var(--p)); width: calc(52.807 * var(--p)); height: calc(105.615 * var(--p)); }

/* Blue line drawing: a flat blue fill cut out by the drawing's alpha mask */
.drawing {
  left: calc(-45.06 * var(--p));
  top: calc(-11.71 * var(--p));
  width: calc(522.441 * var(--p));
  height: calc(984.33 * var(--p));
  background: var(--blue);
  -webkit-mask: url("assets/img/drawing-mask.png") no-repeat;
          mask: url("assets/img/drawing-mask.png") no-repeat alpha;
  -webkit-mask-position: calc(-92.941 * var(--p)) calc(-49.287 * var(--p));
          mask-position: calc(-92.941 * var(--p)) calc(-49.287 * var(--p));
  -webkit-mask-size: calc(977.289 * var(--p)) calc(1399.14 * var(--p));
          mask-size: calc(977.289 * var(--p)) calc(1399.14 * var(--p));
}

/* Yellow knock-out behind the couple, same silhouette mask as the photo */
.photo-bg {
  left: calc(-166.13 * var(--p));
  top: calc(343.55 * var(--p));
  width: calc(781.421 * var(--p));
  height: calc(639.941 * var(--p));
  background: var(--yellow);
  -webkit-mask: url("assets/img/photo-mask.png") no-repeat;
          mask: url("assets/img/photo-mask.png") no-repeat alpha;
  -webkit-mask-position: calc(16.865 * var(--p)) calc(-38.415 * var(--p));
          mask-position: calc(16.865 * var(--p)) calc(-38.415 * var(--p));
  -webkit-mask-size: calc(952.1 * var(--p)) calc(631.24 * var(--p));
          mask-size: calc(952.1 * var(--p)) calc(631.24 * var(--p));
}

.photo {
  left: calc(-152.09 * var(--p));
  top: calc(304.09 * var(--p));
  width: calc(960.216 * var(--p));
  height: calc(636.621 * var(--p));
  -webkit-mask: url("assets/img/photo-mask.png") no-repeat;
          mask: url("assets/img/photo-mask.png") no-repeat alpha;
  -webkit-mask-position: calc(2.816 * var(--p)) calc(1.04 * var(--p));
          mask-position: calc(2.816 * var(--p)) calc(1.04 * var(--p));
  -webkit-mask-size: calc(952.1 * var(--p)) calc(631.24 * var(--p));
          mask-size: calc(952.1 * var(--p)) calc(631.24 * var(--p));
  /* Blend on the masked layer itself: a mask isolates its children,
     so blending the <img> would only see an empty backdrop. */
  mix-blend-mode: darken;
}

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

/* ---------- Poster cycle: Marriage ⇄ Save the Date ---------- */
/* site.js toggles .is-alt every few seconds, and immediately on hover, tap, or
   Enter/Space. Without JavaScript the poster shows the Save the Date on hover. */

.poster-alt {
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.poster.is-alt .poster-alt,
.poster:not(.is-cycling):hover .poster-alt {
  opacity: 1;
}

.poster:focus { outline: none; }
.poster:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .poster-alt { transition: none; }
}

/* ---------- About page ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.people {
  position: absolute;
  left: calc(168 * var(--u));
  top: calc(70 * var(--v));
  display: flex;
  gap: calc(14 * var(--u));
}

.person { margin: 0; }
/* The childhood photos keep their full size and framing at every desktop width */
.person--coop  { width: calc(291 * var(--v)); --bg: var(--yellow); }
.person--ciera { width: calc(267 * var(--v)); --bg: var(--blue); }

.person-photo {
  height: calc(388 * var(--v));
  background: var(--bg);
  overflow: hidden;
}

.person-photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.person--coop  .person-photo img { object-fit: cover; }
.person--ciera .person-photo img { object-fit: cover; object-position: bottom; }

.person figcaption {
  margin-top: calc(14 * var(--v));
  text-align: center;
  font-size: calc(17.278 * var(--v));
  line-height: 1.2;
  text-transform: uppercase;
}

/* About page flows instead of using the fixed-height stage, so the story can be
   any length: photos from x=168, the story on the site's right axis (x=810.36),
   both starting at the photos' Figma top (70). */
.stage--about {
  display: grid;
  /* Photos (291 + 14 gap + 267, fixed) | story. The column gap puts the story on
     x=810.36 at full width and never lets it get closer than 40px to the photos. */
  grid-template-columns: calc(572px + 14 * var(--u)) minmax(0, calc(480 * var(--u)));
  column-gap: max(40px, calc(642.36 * var(--u) - 572px - 14 * var(--u)));
  align-items: start;
  height: auto;
  overflow: visible;
  padding: calc(70 * var(--v)) max(16px, calc(49 * var(--u))) calc(96 * var(--v)) calc(168 * var(--u));
}

/* Not enough room beside the full-size photos: the story moves underneath */
@media (min-width: 761px) and (max-width: 1040px) {
  .stage--about {
    grid-template-columns: auto;
    row-gap: calc(48 * var(--v));
  }

  .about-text { max-width: 572px; }
}

.stage--about .people { position: static; }

.about-text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: calc(15 * var(--v));
  line-height: 1.5;
}

.about-text p { margin: 0; }
.about-text p + p { margin-top: 1em; }

.about-intro {
  font-family: "Grit Thick", "Helvetica Neue", Arial, sans-serif;
  font-size: calc(22 * var(--v));
  line-height: 1.1;
  text-transform: uppercase;
}
.about-text .about-intro + p { margin-top: 1.4em; }

/* ---------- About page photo gallery ---------- */
/* A full-width strip below the story that keeps scrolling. Photos are black and
   white; the one under the cursor turns to colour. Without JavaScript (or with
   reduced motion) it's a strip you scroll by hand; site.js duplicates the photos
   and adds .is-looping for the seamless auto-scroll. */

.gallery {
  --gallery-h: calc(360 * var(--v));
  --gallery-gap: calc(14 * var(--u));
  margin: 0 0 calc(96 * var(--v));
  overflow-x: auto;
  scrollbar-width: none;
  outline: none;
}
.gallery::-webkit-scrollbar { display: none; }

.gallery-track {
  display: flex;
  width: max-content;
}

.gallery-list {
  display: flex;
  gap: var(--gallery-gap);
  margin: 0;
  padding: 0 var(--gallery-gap) 0 0;
  list-style: none;
}

.gallery-list img {
  display: block;
  width: auto;
  height: var(--gallery-h);
  filter: grayscale(1);
  transition: filter 0.4s ease;
}

.gallery-list img:hover,
.gallery-list img.is-active {
  filter: none;
}

.gallery.is-looping { overflow: hidden; }

.gallery.is-looping .gallery-track {
  animation: gallery-loop var(--gallery-duration, 120s) linear infinite;
}

/* Keyboard users can still stop it: focusing the strip pauses the motion */
.gallery.is-looping:focus-visible .gallery-track {
  animation-play-state: paused;
}

.gallery:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }

/* The track holds two identical lists, so moving by half its width loops seamlessly */
@keyframes gallery-loop {
  to { transform: translateX(-50%); }
}

/* ---------- Scroll hint (added by site.js on every page) ---------- */
/* Black box, thin white down arrow, bottom right on the page margin. Fades in
   while there's more below and the visitor is at the top; fades out on scroll. */

.scroll-hint {
  position: fixed;
  right: max(16px, calc(49 * var(--u)));
  bottom: 24px;
  z-index: 20;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  cursor: var(--cursor-light);
}

.scroll-hint.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Arrow drawn as a mask, like the ↗ on links, so it matches on every device */
.scroll-hint::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v13M2.5 8.5 8 14l5.5-5.5' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v13M2.5 8.5 8 14l5.5-5.5' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: scroll-hint-nudge 2.4s ease-in-out infinite;
}

/* Not over the phone menu sheet */
.site-header.is-open ~ .scroll-hint { display: none; }

.scroll-hint:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* A gentle downward nudge to catch the eye */
@keyframes scroll-hint-nudge {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint::after { animation: none; }
}

/* ---------- Home footer: scrolling lyrics + sound toggle ---------- */
/* Mirrors the header bar: same padding and a 1px black rule (on top here). */

.site-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px max(16px, calc(49 * var(--u)));
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

.footer-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  /* Soft fade at both ends */
  -webkit-mask: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
          mask: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

.marquee-text,
.marquee-track span {
  margin: 0;
  font-family: "Stylebender", "Helvetica Neue", Arial, sans-serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.2;
  white-space: nowrap;
}

/* site.js wraps the text in a track of two identical halves and slides it by half */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
  /* Still until the song plays (site.js adds .is-playing to the footer) */
  animation-play-state: paused;
}
.site-footer.is-playing .marquee-track { animation-play-state: running; }
.marquee-track span { padding-right: 3em; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

.sound-toggle {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: var(--ink);
  cursor: var(--cursor-light);
}
.sound-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 2.5v11l9-5.5z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 2.5v11l9-5.5z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sound-toggle[aria-pressed="true"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 2.5h3v11h-3zM9.5 2.5h3v11h-3z' fill='black'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 2.5h3v11h-3zM9.5 2.5h3v11h-3z' fill='black'/%3E%3C/svg%3E");
}
.sound-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Button at the left end of the footer, its note just after it, then the lyrics */
.sound-toggle { order: -2; }
.sound-note { order: -1; }

/* Brief note beside the button (e.g. before the song file is added) */
.sound-note {
  flex: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  opacity: 0.7;
}
.sound-note:empty { display: none; }

/* ---------- Mobile: stack the same pieces ---------- */

@media (max-width: 760px) {
  :root {
    /* poster spans the viewport minus 16px gutters */
    --p: calc((100vw - 32px) / 418);
  }

  .stage {
    margin-top: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 24px 16px 48px;
  }

  /* Header: wordmark · Menu · RSVP; links open as a full-screen sheet */
  .site-header {
    height: 64px;
    padding: 0 16px;
    gap: 12px;
  }

  .wordmark-name { font-size: 18px; }
  .wordmark-meta { font-size: 10px; }

  .site-nav { gap: 16px; }

  .menu-toggle {
    display: block;
    padding-bottom: 3px;
    border-bottom: 1px solid currentColor;
  }

  .site-header .nav-cta {
    padding: 7px 12px;
  }

  .site-footer {
    gap: 12px;
    padding: 14px 16px;
  }
  .marquee-text,
  .marquee-track span { font-size: 20px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 64px 0 0 0;
    flex-direction: column;
    gap: 20px;
    padding: 32px 16px;
    background: var(--paper);
    font-size: 32px;
    letter-spacing: 0.02em;
  }

  .site-header.is-open .nav-links { display: flex; }

  .nav-links a { border-bottom-width: 2px; }

  .poster,
  .tagline,
  .date {
    position: relative;
    left: auto;
    top: auto;
  }

  .poster { order: 3; flex: none; }

  /* Date first, then the tagline as its subheader, both above the poster */
  .tagline {
    order: 2;
    width: 180px;
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 28px;
  }

  .date {
    order: 1;
    font-size: clamp(56px, 20vw, 88px);
    margin-top: 0;
  }

  /* About: keep the two photos side by side, sized to the screen */
  .people {
    position: relative;
    left: auto;
    top: auto;
    order: 1;
    gap: 10px;
  }

  .person--coop  { width: auto; flex: 291 1 0; }
  .person--ciera { width: auto; flex: 267 1 0; }

  .person-photo { height: auto; }
  .person--coop  .person-photo { aspect-ratio: 291 / 388; }
  .person--ciera .person-photo { aspect-ratio: 267 / 388; }

  .person figcaption {
    margin-top: 10px;
    font-size: 15px;
  }

  .about-text {
    order: 2;
    margin-top: 32px;
    font-size: 15px;
  }
  .about-intro { font-size: 20px; }

  .gallery {
    --gallery-h: 260px;
    --gallery-gap: 8px;
    margin-bottom: 48px;
  }
}

/* ---------- Mexico City illustration + title (used in the Travel page band) ---------- */

/* Desktop: drawing on top, "Mexico City" beneath it */
.cdmx-art-col {
  display: flex;
  flex-direction: column-reverse;
  gap: calc(22 * var(--v));
}

/* The illustration keeps its full size at every desktop width */
/* Square artwork, as tall as the previous illustration (383px) */
.cdmx-art {
  display: block;
  width: calc(382.67 * var(--v));
  height: calc(382.67 * var(--v));
}

/* One line, as wide as the drawing */
.cdmx-title {
  font-size: calc(56 * var(--v));
  white-space: nowrap;
}

.cdmx-break { display: none; }

/* Mobile: title above the drawing (297px Figma frame; --m set by the band) */
@media (max-width: 760px) {
  .cdmx-art-col {
    flex-direction: column;
    align-items: center;
    gap: calc(18.1 * var(--m));
  }

  .cdmx-title {
    font-size: calc(22.028 * var(--m));
  }

  .cdmx-art {
    width: calc(178 * var(--m));
    height: calc(178 * var(--m));
  }
}

/* ---------- Events page ---------- */
/* Each event is a gallery wall (title card + three photos, the printed strip
   turned sideways), then a wall label on the same four columns: the name lines
   up with the card's venue text, the details span the last two squares. */

.ev {
  margin: 0 calc(49 * var(--u));
  padding-top: calc(56 * var(--v));
}

.ev + .ev { border-top: 1px solid var(--ink); }

.ev :where(h2, p, dl, dd) {
  margin: 0;
  font-weight: normal;
  line-height: normal;
}

.ev-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

/* Squares are fractional pixels wide, which leaves hairline seams. Each one
   overlaps the next by 1px; the wall clips the last. */
.ev-wall > .ev-card,
.ev-photos > .ev-photo {
  width: calc(100% + 1px);
}

.ev-photos { display: contents; }

.ev-photo {
  display: block;
  width: 100%;
  height: calc(353.5 * var(--v));
  object-fit: cover;
}

/* Title card: proportions from the 153px Figma card, scaled with the card (cqw) */
.ev-card {
  position: relative;
  height: calc(353.5 * var(--v));
  overflow: hidden;
  container-type: inline-size;
  --inset: 5cqw;
  color: var(--paper);
}
.ev--welcome .ev-card { background: var(--orange); }
.ev--wedding .ev-card { background: var(--blue); }

/* Corner text (event name, day/date/time): phones only */
.ev-card-kicker,
.ev-card-when { display: none; }

.ev-card-venue {
  position: absolute;
  left: var(--inset);
  bottom: 4cqw;
  font-family: "Grit Thick", "Helvetica Neue", Arial, sans-serif;
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
}
.ev--welcome .ev-card-venue { font-size: 16cqw; }
.ev--wedding .ev-card-venue { font-size: 11cqw; }

/* Wall label: same four columns as the wall. The name is inset like the card's
   venue text (5% of a square); the details' rules start at the third square. */
.ev-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: calc(40 * var(--v)) 0 calc(80 * var(--v));
}

.ev-title {
  grid-column: 1 / 3;
  padding-left: calc(0.05 * 353.5 * var(--u));
  padding-right: 24px;
}

.ev-title {
  font-family: "Grit Thick", "Helvetica Neue", Arial, sans-serif;
  font-size: calc(40.409 * var(--v));
  text-transform: uppercase;
}

.ev-details { grid-column: 3 / 5; }

.ev-details > div {
  display: grid;
  grid-template-columns: max(150px, calc(179.78 * var(--u))) 1fr;
  column-gap: 12px;
  align-items: baseline;
  padding: calc(7.34 * var(--v)) calc(1.83 * var(--u));
  border-bottom: 1px solid var(--ink);
  font-size: calc(15 * var(--v));
}

.ev-details dt {
  font-family: "Grit Thick", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
}

.ev-details dd { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }

.ev-details a {
  color: inherit;
  text-decoration: none;
}
.ev-details a .row-arrow {
  margin-left: 6px;
  opacity: 1;
}
.ev-details a:hover,
.ev-details a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 760px) {
  .ev {
    margin: 0 16px;
    padding-top: 24px;
  }

  .ev-wall {
    display: block;
    overflow: visible;
  }

  /* Wide rather than square on phones, so the details come sooner */
  .ev-wall > .ev-card {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .ev-card-kicker,
  .ev-card-when {
    display: block;
    position: absolute;
    top: 8.86cqw;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 4.26cqw;
    line-height: 1.12;
  }
  .ev-card-kicker { left: 8.86cqw; }
  .ev-card-when   { right: 8.86cqw; text-align: right; }

  /* Three photos shown together, as wide as the card: two squares on top,
     the third spanning underneath at the same height */
  .ev-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .ev-photos > .ev-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .ev-photos > .ev-photo:nth-child(3) {
    grid-column: 1 / -1;
    aspect-ratio: auto;
    height: calc((100vw - 32px - 8px) / 2);
  }

  .ev-info {
    display: block;
    padding: 24px 0 40px;
  }

  .ev-title {
    margin-bottom: 16px;
    padding-left: 0;
    font-size: 28px;
  }

  .ev-details > div {
    grid-template-columns: 38% 1fr;
    column-gap: 12px;
    padding: 9px 2px;
    font-size: 14px;
  }
}

/* ---------- FAQ page: image where the home poster sits (x=338), questions on
   the right axis (x=810.36) ---------- */

.faq-page {
  display: grid;
  grid-template-columns: calc(472.36 * var(--u)) calc(652.64 * var(--u));
  align-items: start;
  padding: calc(56 * var(--v)) 0 calc(96 * var(--v)) calc(338 * var(--u));
}

.faq-page-title {
  margin: 0;
  font-size: calc(40.409 * var(--v));
  font-weight: normal;
  line-height: normal;
  text-transform: uppercase;
}

.faq-page .t-qas { margin-top: 0; }

/* The heading is an image (collage with "FAQ" in a speech bubble). It stays in
   view while the questions scroll beside it. */
.faq-page-title img {
  display: block;
  /* Same size and shape as the home page poster (418 × 696); the image is a touch
     taller, so a sliver is trimmed from the bottom */
  width: calc(418 * var(--u));
  height: calc(696 * var(--v));
  object-fit: cover;
  object-position: top;
}

.faq-page-title {
  position: sticky;
  top: calc(79px + 24px);
}

.faq-page .t-q,
.faq-page .t-a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.faq-page .t-q {
  font-family: "Grit Thick", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
}
.faq-page .t-a {
  width: auto;
  max-width: 34em;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .faq-page {
    display: block;
    padding: 32px 16px 48px;
  }

  .faq-page-title {
    position: static;
    margin-bottom: 24px;
  }

  /* Full width on phones, like the home poster */
  .faq-page-title img {
    width: 100%;
    height: auto;
    aspect-ratio: 418 / 696;
  }

  .faq-page .t-qa summary { padding: 14px 0; }
  .faq-page .t-q { font-size: 16px; }
  .faq-page .t-a { font-size: 14px; padding-bottom: 16px; }
}

/* ---------- Dress code overlay (Events page) ---------- */
/* From the Figma card, at 2/3 scale (1335px → 890px wide): "Dress Code" +
   event name, a full-width rule, then image on the left and text on the right. */

.ev-dc-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.ev-dc-btn:hover,
.ev-dc-btn:focus-visible { text-decoration-thickness: 2px; outline: none; }

html:has(dialog[open]) { overflow: hidden; }

.dc {
  width: min(890px, calc(100vw - 2 * max(16px, calc(49 * var(--u)))));
  max-width: none;
  max-height: calc(100vh - 64px);
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}

.dc::backdrop { background: rgba(0, 0, 0, 0.6); }

/* White circle cursor over the dark backdrop, black over the card */
.dc::backdrop { cursor: var(--cursor-light); }

.dc :where(h2, p, ol, ul) { margin: 0; font-weight: normal; }

.dc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 33px 19px;
  border-bottom: 1px solid var(--ink);
}

.dc-title {
  font-family: "Grit Thick", "Helvetica Neue", Arial, sans-serif;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
}

.dc-sub {
  margin-top: 7px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
}

.dc-close {
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: inherit;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dc-body {
  display: grid;
  grid-template-columns: 575fr 589fr;
  gap: 37px;
  align-items: start;
  padding: 40px 36px 40px 41px;
}

/* Image column (Figma: 575 × 1032). A grey div stands in until a photo is added. */
.dc-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 575 / 1032;
  max-height: calc(100vh - 180px);
  background: #d9d9d9;
  object-fit: cover;
  position: sticky;
  top: 0;
}

.dc-text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(13px, 0.9vw, 15px);
  line-height: 1.45;
}

.dc-text > * + * { margin-top: 1.1em; }
.dc-text strong { font-weight: 700; }

/* Section headings sit directly on their paragraph */
.dc-h { font-size: inherit; font-weight: 700; margin-bottom: 0; }
.dc-text > :first-child { margin-top: 0; }
.dc-text > .dc-h + * { margin-top: 0; }
.dc-text > .dc-h--spaced { margin-top: 2.2em; }

/* Attire definitions: a black box with white text, as a visual break */
.dc-def {
  padding: 16px 20px;
  background: var(--ink);
  color: var(--paper);
  cursor: var(--cursor-light);
}
.dc-def * { cursor: var(--cursor-light); }

/* A dress code's name as a heading in the Stylebender script, black on white */
.dc-text .dc-script {
  margin: 0;
  font-family: "Stylebender", "Helvetica Neue", Arial, sans-serif;
  font-style: italic;
  font-size: 30px;
  font-weight: normal;
  line-height: 1.1;
}
.dc-text .dc-script + p { margin-top: 1.1em; }

.dc-text > .dc-def { margin-top: 1.4em; }
.dc-text > .dc-def + * { margin-top: 1.4em; }
.dc-text > .dc-def:first-child { margin-top: 0; }

/* Palette swatches (Figma: 60px circles, 15px apart, at 2/3 scale) */
.dc-swatches {
  display: flex;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.dc-text > .dc-swatches { margin-top: 1.3em; }
.dc-swatches li {
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--swatch);
}

/* Designers: same ruled rows as the flight times (name · country · ↗) */
.dc .t-rows { padding: 0; }

.dc .t-rows--pairs a,
.t-row-static {
  display: grid;
  grid-template-columns: 58% 1fr auto;
  column-gap: 0;
}

/* Rows without a working link yet */
.t-row-static { padding: calc(7.34 * var(--v)) calc(1.83 * var(--u)); }

@media (max-width: 760px) {
  /* Full-screen sheet on phones; image above the text */
  .dc {
    width: 100vw;
    height: 100dvh;
    max-height: none;
  }

  .dc-head { padding: 20px 16px 16px; }
  .dc-title { font-size: 32px; }
  .dc-sub { font-size: 15px; margin-top: 6px; }

  .dc-body {
    display: block;
    padding: 20px 16px 40px;
  }

  .dc-image {
    position: static;
    max-height: none;
    margin-bottom: 24px;
  }

  .dc-text { font-size: 15px; line-height: 1.45; }

  .dc-def { padding: 14px 16px; }
}

/* ---------- Joy pop-up (RSVP, Registry), built by site.js ---------- */

.joy {
  display: none;
  width: min(1100px, calc(100vw - 2 * max(16px, calc(49 * var(--u)))));
  max-width: none;
  height: calc(100vh - 64px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.joy[open] {
  display: flex;
  flex-direction: column;
}
.joy::backdrop { background: rgba(0, 0, 0, 0.6); cursor: var(--cursor-light); }

.joy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--ink);
}

.joy-title {
  margin: 0;
  font-family: "Grit Thick", "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  font-weight: normal;
  line-height: 1;
  text-transform: uppercase;
}

.joy-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Guest password for Joy, in the header; tap to copy */
.joy-password {
  position: relative;
  margin-right: auto;
  margin-left: 24px;
  padding: 8px 14px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  cursor: var(--cursor-light);
}
.joy-password-label {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.joy-password-value { font-weight: 700; }
.joy-password.is-copied .joy-password-value::after {
  content: " — copied";
  font-weight: 400;
}

.joy-frames {
  position: relative;
  flex: 1;
  min-height: 0;
}

/* Shown until Joy's page has loaded */
.joy-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}
.joy-loading[hidden] { display: none; }
.joy-frame { position: relative; }

.joy-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.joy-frame[hidden] { display: none; }

@media (max-width: 760px) {
  .joy {
    width: 100vw;
    height: 100dvh;
  }
  .joy-head {
    flex-wrap: wrap;
    padding: 12px 16px;
    row-gap: 10px;
  }
  /* Password gets its own full-width row under the title on phones */
  .joy-password {
    order: 3;
    flex-basis: 100%;
    margin: 0;
    text-align: left;
  }
  .joy-title { font-size: 20px; }
  .joy-actions { gap: 14px; }
}

/* Registry page: button to open the registry */
.registry-open {
  margin: calc(24 * var(--v)) 0 0 calc(376.49 * var(--u));
}
@media (max-width: 760px) {
  .registry-open { margin: 20px 16px 0; }
}

/* ---------- Simple pages (Registry): one heading on the left axis ---------- */

.page-title {
  margin: calc(56 * var(--v)) 0 0 calc(376.49 * var(--u));
  font-size: calc(40.409 * var(--v));
  font-weight: normal;
  line-height: normal;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .page-title {
    margin: 32px 16px 0;
    font-size: 28px;
  }
}

/* Very narrow phones (iPhone SE and smaller): tighten the header so it stays on one line */
@media (max-width: 359px) {
  .site-header { gap: 8px; }
  .wordmark-name { font-size: 16px; }
  .wordmark-meta { font-size: 9px; letter-spacing: 0.03em; }
  .site-nav { gap: 12px; }
  .site-header .nav-cta { padding: 6px 10px; }
}

/* ---------- Travel page ---------- */
/* Two vertical axes run down the page, taken from the FAQ frame:
   x=376.49 (illustration / section titles) and x=810.36 (text / content). */

.t-city {
  display: flex;
  align-items: flex-start;
  /* Keeps the text on x=810.36 at full width, never closer than 40px to the art */
  gap: max(40px, calc(433.87 * var(--u) - 382.67px));
  padding: calc(56 * var(--v)) 0 calc(56 * var(--v)) calc(376.49 * var(--u));
  background: var(--ink);
  color: var(--paper);
}

/* Column is as wide as the drawing; "Mexico City" is allowed to run past it, as in Figma */
.t-city .cdmx-art-col {
  flex: none;
  width: calc(382.67 * var(--v));
}
.t-city :where(h2, h3, p) { margin: 0; font-weight: normal; line-height: normal; }

.t-city-text {
  width: calc(361.39 * var(--u));
  margin-top: calc(36.24 * var(--v));
}

/* Type roles: Grit Thick for headings, Helvetica Neue for reading text */
.t-city .cdmx-title,
.t-q,
.t-title,
.t-label {
  font-family: "Grit Thick", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
}

.t-city-intro,
.t-a,
.t-body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: calc(15 * var(--v));
}

.t-city-intro,
.t-a,
.t-soon,
.t-text {
  line-height: 1.45;
}

/* Intro reads as a statement: larger, spanning the full text column */
/* Intro in Grit Thick, the site's display face, set as a statement */
.t-city .t-city-intro {
  font-family: "Grit Thick", "Helvetica Neue", Arial, sans-serif;
  font-size: calc(22 * var(--v));
  line-height: 1.1;
  text-transform: uppercase;
}

/* Collapsible questions: ruled rows, + / − on the right. Rules take the text
   colour, so the same rows work in the black band and on white pages. */
.t-qas {
  margin-top: calc(44 * var(--v));
  border-top: 1px solid currentColor;
}

.t-qa { border-bottom: 1px solid currentColor; }

.t-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(14 * var(--v)) 0;
  list-style: none;
}
.t-qa summary::-webkit-details-marker { display: none; }

.t-qa summary:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.t-q { font-size: calc(18.345 * var(--v)); }

.t-qa-icon {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
}
.t-qa-icon::before,
.t-qa-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.t-qa-icon::before { left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); }
.t-qa-icon::after  { top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); }
.t-qa[open] .t-qa-icon::after { display: none; }

.t-qa :where(h2, h3, p, ul) { margin: 0; font-weight: normal; }

.t-a {
  width: calc(304.52 * var(--u));
  padding-bottom: calc(18 * var(--v));
}

/* Answers with several paragraphs or a list */
.t-a > * + * { margin-top: 0.7em; }
.t-a strong { font-weight: 700; }
.t-a a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.t-a a:hover { text-decoration-thickness: 2px; }

.faq-list {
  padding-left: 1.1em;
}
.faq-list li + li { margin-top: 0.3em; }

/* White sections: collapsible rows. The heading (title + / −) floats in the
   left column; when open, the content sits beside it on the right axis.
   flow-root on the section contains the float when the row is collapsed. */
.t-section {
  display: flow-root;
  margin: 0 calc(49 * var(--u));
  padding-left: calc(327.49 * var(--u));
}

.t-section + .t-section { border-top: 1px solid var(--ink); }

/* Breathing room between the black Mexico City band and the first section (web) */
@media (min-width: 761px) {
  .t-city + .t-section { margin-top: calc(32 * var(--v)); }
}

/* Linked sections (travel.html#hotels) land below the sticky header */
.t-section { scroll-margin-top: 96px; }

/* Close the list of rows */
.t-section:last-child {
  border-bottom: 1px solid var(--ink);
  margin-bottom: calc(96 * var(--v));
}

.t-fold-head {
  float: left;
  width: calc(433.87 * var(--u));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(40 * var(--v)) calc(43.6 * var(--u)) calc(40 * var(--v)) 0;
  list-style: none;
}
.t-fold-head::-webkit-details-marker { display: none; }

.t-fold-head:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.t-fold[open] .t-fold-head .t-qa-icon::after { display: none; }

.t-fold > .t-body {
  display: flow-root;
  padding: calc(40 * var(--v)) 0 calc(80 * var(--v));
}
.t-fold > .t-grid { display: grid; }

.t-section :where(h2, h3, p, ul, dl, dd) {
  margin: 0;
  padding: 0;
  font-weight: normal;
  line-height: normal;
}

.t-title { font-size: calc(40.409 * var(--v)); }


.t-grid {
  display: grid;
  grid-template-columns: repeat(2, calc(304.52 * var(--u)));
  gap: calc(56 * var(--v)) calc(43.6 * var(--u));
  align-items: start;
}

/* Single column: Airport above Flight Times, Uber above Shuttles */
.t-grid--stack { grid-template-columns: calc(304.52 * var(--u)); }

.t-label {
  margin-bottom: calc(14 * var(--v));
  font-size: calc(18.345 * var(--v));
}

.t-soon,
.t-text { padding-top: calc(4 * var(--v)); }

/* Hotel gallery: one photo at a time with the next peeking in, captions beneath,
   ← → buttons (site.js) plus swipe / sideways scroll. */
.hotel-gallery {
  position: relative;
  min-width: 0;
}

.hg-track {
  display: flex;
  gap: calc(14 * var(--u));
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  outline: none;
}
.hg-track::-webkit-scrollbar { display: none; }
.hg-track:focus-visible { box-shadow: 0 0 0 2px var(--ink); }

.hg-slide {
  flex: none;
  scroll-snap-align: start;
}
.hg-slide figure { margin: 0; }

.hg-slide img {
  display: block;
  width: auto;
  height: calc(180 * var(--v));
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Desktop: captions and the ← → buttons share one row under the photos */
.hg-slide figcaption {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin-top: 6px;
  font-size: max(12px, calc(13 * var(--v)));
}

.hg-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 6px;
  padding-left: 12px;
  background: var(--paper);
}

.hg-btn {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: var(--ink);
  cursor: var(--cursor-light);
  transition: opacity 0.2s ease;
}
.hg-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  background: var(--paper);
}
.hg-prev::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M14 8H2M7.5 2.5 2 8l5.5 5.5' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M14 8H2M7.5 2.5 2 8l5.5 5.5' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.hg-next::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h12M8.5 2.5 14 8l-5.5 5.5' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h12M8.5 2.5 14 8l-5.5 5.5' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.hg-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Hotels: one block per hotel (gallery, details | rate, booking button), a rule
   between them, then the cost-friendly note */
.hotel + .hotel,
.hotel-alt {
  margin-top: calc(56 * var(--v));
  padding-top: calc(56 * var(--v));
  border-top: 1px solid var(--ink);
}

.hotel-info { margin-top: calc(20 * var(--v)); }

.hotel-book {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: calc(32 * var(--v)) 0 0;
}

.book-btn {
  display: inline-block;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: var(--cursor-light);
}
a.book-btn:hover,
a.book-btn:focus-visible {
  background: var(--paper);
  color: var(--ink);
  cursor: var(--cursor-dark);
  outline: none;
}
/* Until the hotel sends the link */
.book-btn[aria-disabled="true"] { opacity: 0.35; cursor: var(--cursor-dark); }

.book-soon {
  font-size: max(12px, calc(13 * var(--v)));
  opacity: 0.7;
}

.hotel-alt .t-text { max-width: 34em; }
.hotel-alt a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Hotels: lead line, detail rows (label · value), and a small note under the rates */
.t-text--lead { margin-bottom: calc(14 * var(--v)); }

.t-section .t-rows--hotel .t-row-static {
  display: grid;
  grid-template-columns: max(110px, calc(130 * var(--u))) 1fr;
  column-gap: 12px;
}
.t-section .t-rows--hotel a {
  grid-template-columns: max(110px, calc(130 * var(--u))) 1fr auto;
  column-gap: 12px;
}

.t-note {
  margin-top: calc(14 * var(--v));
  font-size: max(12px, calc(13 * var(--v)));
  line-height: 1.45;
  opacity: 0.7;
}

/* Rows with hairline rules, like the flight table */
.t-rows { list-style: none; }

.t-rows > li {
  border-bottom: 1px solid var(--ink);
}

.t-rows a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: calc(7.34 * var(--v)) calc(1.83 * var(--u));
  color: inherit;
  text-decoration: none;
}

/* Flight rows: city · time · arrow */
.t-rows--pairs a { display: grid; grid-template-columns: max(120px, calc(179.78 * var(--u))) 1fr auto; column-gap: 0; }

/* The ↗ is drawn as a thin vector arrow (a mask filled with the text colour), so
   it looks the same everywhere. The character stays in the HTML as a fallback but
   is hidden: phones were rendering it in another font or as an emoji. */
.row-arrow {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  align-self: center;
  overflow: hidden;
  text-indent: 2em;
  white-space: nowrap;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 10.5 10.5 1.5M3.5 1.5h7v7' fill='none' stroke='black' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 10.5 10.5 1.5M3.5 1.5h7v7' fill='none' stroke='black' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.t-rows a:hover,
.t-rows a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: none;
}

.t-rows a:hover .row-arrow,
.t-rows a:focus-visible .row-arrow { opacity: 1; }

@media (hover: none) {
  .row-arrow { opacity: 1; }
}

@media (max-width: 760px) {
  .t-city {
    --m: calc(100vw / 297);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: calc(39 * var(--m)) 0 calc(28 * var(--m));
  }

  .t-city .cdmx-art-col {
    width: auto;
    flex-direction: column;
    align-items: center;
    gap: calc(18.1 * var(--m));
  }

  .t-city-text {
    width: calc(100vw - 64px);
    margin-top: calc(15 * var(--m));
  }

  .t-city-intro,
  .t-a,
  .t-body { font-size: 14px; }

  .t-city-intro,
  .t-a { width: auto; }

  .t-city .t-city-intro { font-size: 14px; }

  .t-qas { margin-top: 28px; }
  .t-qa summary { padding: 14px 0; }
  .t-q { font-size: 16px; }
  .t-a { padding-bottom: 16px; }

  .t-section {
    margin: 0 16px;
    padding-left: 0;
  }

  .t-section:last-child { margin-bottom: 48px; }

  .t-fold-head {
    float: none;
    width: auto;
    padding: 20px 0;
  }

  .t-fold > .t-body { padding: 4px 0 36px; }

  .t-title { font-size: 28px; }


  .t-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Hotel gallery on phones: 80% wide photos so the next one peeks in, captions
     beneath, the ← → buttons on their own row */
  .hg-track { gap: 8px; }
  .hg-slide { width: 80%; }
  .hg-slide img { width: 100%; height: auto; }
  .hg-slide figcaption { display: block; min-height: 0; margin-top: 8px; }
  .hg-controls {
    position: static;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    padding-left: 0;
  }
  .hg-btn { width: 40px; height: 40px; }
  .hotel-info { margin-top: 32px; }

  .t-label {
    margin-bottom: 10px;
    font-size: 15px;
  }

  .t-rows a,
  .t-row-static { padding: 9px 2px; }

  .t-rows--pairs a { grid-template-columns: 50% 1fr auto; }
}

/* ---------- Photo viewer (tap a photo or a look), built by site.js ---------- */
.lb {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px max(16px, calc(49 * var(--u)));
  border: 0;
  background: rgba(0, 0, 0, 0.96);
  color: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.lb[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}
.lb::backdrop { background: transparent; }
.lb,
.lb * { cursor: var(--cursor-light); }

.lb-close {
  justify-self: end;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 0;
  margin: 0;
}

.lb-img {
  display: block;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lb-caption { font-size: 14px; }

.lb-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-count {
  margin-right: auto;
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* White buttons with black arrows on the dark viewer */
.lb .hg-btn { width: 44px; height: 44px; background: var(--paper); }

/* A single photo (the dress code collages): no arrows or counter */
.lb.is-single .hg-btn,
.lb.is-single .lb-count { display: none; }
.lb .hg-btn::after { background: var(--ink); }

/* ---------- Dress code pop-ups: the looks across the top, details below ---------- */
/* Every look stands side by side on the event's colour, edge to edge across the
   pop-up; swipe or use ← → to move along, tap a look to see it large. The
   dress code text sits underneath. (The old collage image stays in the page,
   hidden, in case it's wanted again.) */
.dc-body {
  display: block;
  padding: 0 0 40px;
}

.dc-image { display: none; }

.dc-lineup {
  --lineup-h: 380px;
  position: relative;
  display: block;
  margin: 0 0 28px;
}

.dc-outfits {
  display: flex;
  gap: 8px;
  height: var(--lineup-h);
  margin: 0;
  padding: 16px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
  outline: none;
}
.dc-outfits::-webkit-scrollbar { display: none; }
#dress-welcome .dc-outfits { background: var(--orange); }
#dress-wedding .dc-outfits { background: var(--blue); }

.dc-outfits li {
  flex: none;
  height: 100%;
  scroll-snap-align: start;
}
.dc-outfits img {
  display: block;
  height: 100%;
  width: auto;
  cursor: zoom-in;
}

/* ← → over the lineup's edges: → while there are more looks to the right,
   ← once you've moved along */
.dc-lineup .dc-swipe {
  position: absolute;
  top: calc(var(--lineup-h) / 2 - 20px);
  z-index: 1;
  width: 40px;
  height: 40px;
  transition: opacity 0.2s ease;
}
.dc-lineup .dc-swipe--prev { left: 12px; }
.dc-lineup .dc-swipe--next { right: 12px; }
.dc-lineup .dc-swipe.is-off { opacity: 0; pointer-events: none; }

.dc-lineup-hint {
  margin-top: 8px;
  padding: 0 41px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
}

.dc-text {
  max-width: 720px;
  padding: 0 41px;
}

@media (max-width: 760px) {
  .dc-body { padding: 0 0 40px; }
  .dc-lineup {
    --lineup-h: min(46svh, 320px);
    margin-bottom: 24px;
  }
  .dc-lineup .dc-swipe--prev { left: 8px; }
  .dc-lineup .dc-swipe--next { right: 8px; }
  .dc-lineup-hint,
  .dc-text { padding: 0 16px; }
}

/* Dress code designers, grouped by country: a small caps label over each list */
.dc-text .dc-country {
  margin: 20px 0 0;
  padding-bottom: 6px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dc-text .dc-h + .dc-country { margin-top: 8px; }
.dc-text .dc-country + .dc-designers {
  margin-top: 0;
  border-top: 1px solid var(--ink);
}

/* ---------- Travel: the Mexico City questions further down the page ---------- */
/* Phones: the band shows a "View Mexico City FAQ" button and the questions get
   their own section after Getting There. Desktop keeps them in the band. */
@media (max-width: 760px) {
  .t-city .t-qas { display: none; }

  /* A narrower column, centred under the title and illustration; the text
     itself stays left-aligned */
  .t-city .t-city-intro {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .t-faq-link {
    display: table;
    margin: 24px auto 0;
    padding: 13px 18px;
    border: 1px solid var(--paper);
    color: var(--paper);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .t-faq-link:active { background: var(--paper); color: var(--ink); }

  /* Same breathing room below the button as the playground: 40px of black */
  .t-city { padding-bottom: 40px; }

  /* More white space between the band and "Where to Stay" */
  .t-city + .t-section { margin-top: 24px; }

  /* The rows sit straight under the section heading */
  .t-section--faq .t-qas { margin-top: 0; border-top: 0; }
  .t-section--faq .t-qa:last-child { border-bottom: 0; }
}

@media (min-width: 761px) {
  .t-faq-link,
  .t-section--faq { display: none; }
}

/* ---------- Schedule: a black band at the top (phones) ---------- */
/* "Schedule" and a one-line welcome, centred in white on black, like the
   Mexico City band on Travel. */
.ev-intro { display: none; }

@media (max-width: 760px) {
  .ev-intro {
    display: block;
    padding: 32px 16px;
    background: var(--ink);
    color: var(--paper);
    text-align: center;
  }
  .ev-intro,
  .ev-intro * { cursor: var(--cursor-light); }

  .ev-intro p { margin: 0; }

  .ev-intro-title {
    font-family: "Grit Thick", "Helvetica Neue", Arial, sans-serif;
    font-size: 26px;
    line-height: 1;
    text-transform: uppercase;
  }

  .ev-intro .ev-intro-text {
    margin-top: 10px;
    font-family: "Stylebender", "Helvetica Neue", Arial, sans-serif;
    font-style: italic;
    font-size: 22px;
    line-height: 1.2;
  }

  /* Jumps land just below the sticky header */
  .ev { scroll-margin-top: 72px; }
}
