/* Standalone invitation. Does not use the homepage stylesheet. */

:root {
  --paper: #f7f4ef;
  --ink: #1c1916;
  --muted: #5c564e;
  --blue: #1e5f9a;
  --gold: #9a7340;
  --line: rgba(154, 115, 64, .28);
  --white: #fffcf8;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 Inter, ui-sans-serif, system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, p { margin-top: 0; }
h1, h2 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 520;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

.t-es { display: none !important; }
html[data-lang="es"] .t-en { display: none !important; }
html[data-lang="es"] .t-es { display: inline !important; }
html[data-lang="pending"] body { overflow: hidden; }
.lang-modal { display: none; }
html[data-lang="pending"] .lang-modal { display: flex; }

.skip {
  position: fixed;
  z-index: 50;
  left: 1rem;
  top: 1rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  padding: .6rem .9rem;
  border-radius: 8px;
}
.skip:focus { transform: none; }

.lang-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  align-items: flex-end;
  justify-content: center;
  padding:
    max(.75rem, env(safe-area-inset-top))
    max(.75rem, env(safe-area-inset-right))
    max(.75rem, env(safe-area-inset-bottom))
    max(.75rem, env(safe-area-inset-left));
  background: rgba(28, 25, 22, .46);
}
.lang-dialog {
  width: min(28rem, 100%);
  max-height: calc(100dvh - 1.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: auto;
  border-radius: 22px 22px 16px 16px;
  background: var(--white);
  padding: 1.2rem 1.1rem 1.1rem;
}
.lang-logo {
  width: min(210px, 68%);
  max-height: 58px;
  margin: 0 auto .9rem;
  object-fit: contain;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .38);
}
.lang-dialog h2 {
  margin: 0 0 .55rem;
  text-align: center;
  font-size: 1.85rem;
}
.lang-copy { margin: 0; text-align: center; color: var(--muted); }
.lang-copy + .lang-copy { margin-top: .2rem; }
.lang-actions {
  display: grid;
  gap: .65rem;
  margin-top: 1.1rem;
}
.lang-choice {
  min-height: 60px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}
.lang-choice strong { display: block; font-size: 1.05rem; }
.lang-choice span { display: block; color: var(--muted); font-size: .84rem; font-weight: 600; }
.lang-choice:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 68px;
  padding: .45rem max(.9rem, env(safe-area-inset-right)) .45rem max(.9rem, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 239, .92);
  backdrop-filter: blur(14px);
}
.bar-logo {
  width: min(168px, 46vw);
  height: auto;
  max-height: 46px;
  object-fit: contain;
  object-position: left center;
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .38);
}
.bar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .15rem;
  background: var(--white);
}
.lang-switch button {
  min-width: 42px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
}
.lang-switch button.active { background: var(--ink); color: white; }
.bar-donate {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  padding: 0 .9rem;
  font-size: .92rem;
  font-weight: 750;
  text-decoration: none;
}

.hero, .letter, .close, .photos {
  width: min(42rem, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}
.hero { padding: 2.2rem 0 0; text-align: center; }
.kicker {
  margin: 0 0 .8rem;
  color: var(--gold);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 auto .7rem;
  max-width: 11em;
  background: transparent;
  font-size: clamp(2.35rem, 9vw, 4.15rem);
}
.hero h1::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 1px;
  margin: .65rem auto 0;
  background: var(--gold);
}
#gala-title .t {
  background-image: linear-gradient(
    105deg,
    var(--blue) 0%,
    var(--gold) 18%,
    #1a3352 34%,
    var(--blue) 50%,
    var(--gold) 68%,
    #1a3352 84%,
    var(--blue) 100%
  );
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gala-title-shift 12s linear infinite;
}
@keyframes gala-title-shift {
  to { background-position: 100% 50%; }
}
.lede {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.when {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 1.5rem 0 1.15rem;
  border-top: 1px solid var(--line);
  text-align: left;
}
.when div {
  padding: .85rem .35rem .8rem 0;
  border-bottom: 1px solid var(--line);
}
.when div:nth-child(odd) { padding-right: .8rem; }
.when span {
  display: block;
  color: var(--ink);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.when strong {
  display: block;
  margin-top: .15rem;
  color: var(--ink);
  font-family: Newsreader, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 560;
  line-height: 1.25;
}
.when strong span {
  display: inline;
  color: inherit;
  letter-spacing: 0;
  text-transform: none;
  font-size: inherit;
  font-weight: inherit;
}
.when .mark-place > span,
.when .mark-gift > span,
.when .mark-gift > strong { color: var(--gold); }
.actions {
  display: grid;
  gap: .6rem;
}
.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 1.25rem;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
}
.btn-primary { background: var(--blue); color: white; }
.btn-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(154, 115, 64, .55);
}
.btn-map {
  background: rgba(154, 115, 64, .1);
  color: var(--ink);
  border: 1px solid rgba(154, 115, 64, .62);
}
.btn:focus-visible, .bar-donate:focus-visible, .lang-switch button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.fine {
  margin: .85rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: .95rem;
}

.photos { width: min(52rem, calc(100% - 1.5rem)); padding-top: 2rem; }
.frame {
  position: relative;
  overflow: hidden;
  height: min(68vw, 420px);
  border-radius: 16px;
  background: #e6e0d8;
  touch-action: pan-y;
}
.track { display: flex; height: 100%; transition: transform .4s ease; }
.slide { flex: 0 0 100%; height: 100%; margin: 0; }
.slide picture, .slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.slide picture { display: block; }
.arrows {
  position: absolute;
  z-index: 2;
  left: .55rem;
  right: .55rem;
  top: 50%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.arrows button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 252, 248, .94);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}
.photo-meta {
  display: flex;
  justify-content: center;
  min-height: 8px;
  margin-top: .75rem;
}
.dots { display: flex; gap: .35rem; }
.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(154, 115, 64, .35);
}
.dot.is-active { width: 22px; background: var(--gold); }

.letter { padding-top: 2.4rem; }
.letter h2 { margin: 2rem 0 .55rem; font-size: clamp(1.7rem, 4vw, 2.25rem); }
.letter p { color: var(--muted); }
.letter strong { color: var(--ink); }
.criteria { list-style: none; margin: .4rem 0 0; padding: 0; }
.criteria li {
  padding: .8rem 0;
  border-top: 1px solid var(--line);
}
.criteria strong { display: block; margin-bottom: .15rem; color: var(--gold); font-weight: 700; }
.details { margin: .2rem 0 0; }
.details div {
  display: grid;
  gap: .1rem;
  padding: .7rem 0;
  border-top: 1px solid var(--line);
}
.details dt {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.details dd { margin: 0; color: var(--ink); font-weight: 650; }
.details a { color: var(--blue); }
.way {
  display: grid;
  justify-items: start;
  gap: .7rem;
  margin-top: 1.05rem;
}
.routes { width: min(100%, 36rem); }
.routes summary {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--gold);
  font-weight: 750;
  list-style: none;
}
.routes summary::-webkit-details-marker { display: none; }
.routes summary::after {
  content: "";
  width: .42rem;
  height: .42rem;
  margin-left: .5rem;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg) translateY(-.12rem);
}
.routes[open] summary::after { transform: rotate(-135deg) translateY(-.05rem); }
.routes summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.routes:not([open]) > ul,
.routes:not([open]) > .hall-phone { display: none; }
.routes ul { list-style: none; margin: .85rem 0 0; padding: 0; }
.routes li {
  padding: .7rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.routes strong { display: block; margin-bottom: .1rem; color: var(--ink); }
.routes .hall-phone { margin: .7rem 0 0; color: var(--muted); }
.routes .hall-phone a { color: var(--gold); }
.sign {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.sign p { margin-bottom: .2rem; color: var(--ink); }
.quote {
  margin-top: 1.1rem;
  padding-left: .85rem;
  border-left: 2px solid var(--gold);
  color: var(--ink);
  font-family: Newsreader, Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.35;
}
.contacts {
  display: grid;
  gap: .55rem;
  margin-top: .9rem;
}
.contacts a {
  display: block;
  padding: .75rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.contacts span {
  display: block;
  color: var(--gold);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contacts strong { color: var(--ink); }

.close {
  margin-top: 2.2rem;
  margin-bottom: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.close h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.close .actions { margin-top: 1rem; }
.paypal {
  width: min(20rem, 100%);
  margin: 1.15rem auto 0;
  padding: 1rem 1rem .85rem;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--line);
}
.paypal form { display: grid; justify-items: center; gap: .55rem; margin: 0; }
.paypal-title { margin: 0 0 .35rem; font-size: .95rem; }
.paypal-button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  background: #ffd140;
  color: #000;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.paypal-cards { width: 8.5rem; height: auto; }
.paypal-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin: 0;
  color: #4a5568;
  font-size: .75rem;
}
.paypal-note img { width: 4.2rem; height: auto; }

.foot {
  padding: 0 1rem 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
}
.foot a { color: var(--blue); }
.foot p { margin: .25rem 0; }

@media (min-width: 720px) {
  .lang-modal { align-items: center; }
  .lang-dialog { border-radius: 22px; padding: 1.5rem 1.4rem 1.3rem; }
  .lang-actions { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 3.4rem; }
  .when { grid-template-columns: repeat(4, 1fr); }
  .when div { padding-right: .8rem; }
  .actions { display: flex; justify-content: center; }
  .btn { min-width: 11rem; }
  .btn-map { min-width: 11rem; }
  .frame { height: 460px; }
  .details { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
  .contacts { grid-template-columns: 1fr 1fr 1fr; }
  .contacts a { border-top: 1px solid var(--line); }
}

@media (max-width: 380px) {
  .when { grid-template-columns: 1fr; }
  .bar-logo { width: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  .track { transition: none; }
  html { scroll-behavior: auto; }
  #gala-title .t {
    animation: none;
    background: none;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
  }
}
