/* Filip & Olivier — 60 + 50
   Winter noir: midnight ground, gold foil, Bodoni display over Jost. */

:root {
  --ink: #0B1020;
  --ink-2: #101830;
  --gold: #C9A227;
  --gold-lt: #E8CE86;
  --gold-dim: rgba(232, 206, 134, .26);
  --ivory: #F4EFE6;
  --muted: #98A0B6;
  --warn: #E4A2A2;
  --yes: #34C77B;
  --no: #F2555A;
  --serif: "Bodoni Moda", Didot, "Times New Roman", serif;
  --sans: "Jost", Futura, "Helvetica Neue", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4rem, 10vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.06rem, 1rem + .32vw, 1.2rem);
  line-height: 1.65;
  color: var(--ivory);
  background:
    radial-gradient(115% 75% at 50% -12%, rgba(201, 162, 39, .13), transparent 62%),
    radial-gradient(90% 55% at 50% 112%, rgba(201, 162, 39, .07), transparent 60%),
    var(--ink);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#lights { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero, main, .footer, .langbar { position: relative; z-index: 1; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 3px; border-radius: 3px; }

/* --- language switcher ------------------------------------------------- */
.langbar { position: fixed; top: 0; right: 0; display: flex; gap: .1rem; padding: .5rem clamp(.5rem, 3vw, 1rem); z-index: 5; }
.lang {
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font-family: var(--sans); font-size: .72rem; font-weight: 400; letter-spacing: .18em;
  padding: .5rem; min-height: 2.75rem; min-width: 2.5rem; transition: color .2s;
}
.lang:hover { color: var(--ivory); }
.lang.is-on { color: var(--gold); }

/* --- shared ------------------------------------------------------------ */
main > section { max-width: 70rem; margin: 0 auto; padding: var(--section) var(--gutter); }

.section__title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 5.4vw, 3.2rem);
  line-height: 1.1; margin: 0; text-align: center; letter-spacing: .005em;
}
.section__intro { max-width: 34rem; margin: 1.1rem auto 0; text-align: center; color: var(--muted); }

.rule {
  height: 1px; width: min(20rem, 55vw); margin: clamp(1.4rem, 4vw, 2.2rem) auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative; overflow: hidden;
}
.rule--short { width: min(9rem, 40vw); }
.rule::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
  transform: translateX(-130%); animation: sweep 7s ease-in-out 1.5s infinite;
}
@keyframes sweep { 0% { transform: translateX(-130%); } 45%, 100% { transform: translateX(360%); } }

.label { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 .6rem; }

.link {
  display: inline-block; background: none; border: 0; border-bottom: 1px solid var(--gold-dim);
  padding: 0 0 .22rem; cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-size: .79rem; font-weight: 400; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-lt); transition: color .2s, border-color .2s;
}
.link:hover { color: var(--gold); border-bottom-color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .8rem 2rem; border: 1px solid transparent; border-radius: 999px;
  font-family: var(--sans); font-size: .84rem; font-weight: 400; letter-spacing: .22em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn--gold {
  color: #1B1406; background: linear-gradient(180deg, var(--gold-lt), var(--gold));
  box-shadow: 0 14px 34px -16px rgba(201, 162, 39, .95);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -18px rgba(232, 206, 134, .95); }
.btn--ghost { color: var(--gold-lt); border-color: var(--gold-dim); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); background: rgba(201, 162, 39, .08); }
.btn--wide { width: 100%; margin-top: 1.9rem; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* --- hero -------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 5rem var(--gutter) 3rem;
}
.hero__eyebrow {
  margin: 0; font-size: clamp(.72rem, 2.8vw, .88rem); font-weight: 400;
  letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; color: var(--gold-lt);
}
.hero__names {
  font-family: var(--serif); font-weight: 400; font-size: clamp(3.1rem, 12.5vw, 7.25rem);
  line-height: .98; margin: clamp(.9rem, 3vw, 1.5rem) 0 0; letter-spacing: -.005em;
}
.amp { font-style: italic; color: var(--gold); font-size: .78em; padding: 0 .06em; }
.hero__meta {
  margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .75rem;
  font-size: clamp(.95rem, 2.8vw, 1.12rem); letter-spacing: .1em; color: var(--muted);
}
.hero__meta .dot { color: var(--gold); }
.hero__index {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem clamp(1rem, 3vw, 2rem);
  margin-top: clamp(2rem, 5vw, 2.8rem);
}
.hero__index a {
  position: relative; color: var(--muted); text-decoration: none;
  font-size: clamp(.7rem, 2.3vw, .8rem); font-weight: 400; letter-spacing: .2em;
  text-transform: uppercase; padding: .45rem 0; transition: color .2s;
}
.hero__index a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: .2rem; height: 1px;
  background: var(--gold); transition: right .3s ease;
}
.hero__index a:hover { color: var(--gold-lt); }
.hero__index a:hover::after { right: 0; }
.hero__cta { margin-top: clamp(1.6rem, 4vw, 2.2rem); }

/* --- intro & portrait --------------------------------------------------- */
.intro { padding-top: 0; text-align: center; }
.portal {
  position: relative; margin: 0 auto; max-width: 38rem; overflow: hidden;
  border: 1px solid var(--gold-dim); border-radius: 19rem 19rem .5rem .5rem;
  box-shadow: 0 50px 90px -50px #000;
}
.portal img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.07) brightness(.85); }
.portal::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(170deg, rgba(232, 206, 134, .62), rgba(11, 16, 32, .8));
  mix-blend-mode: color;
}
.portal::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 -70px 70px -45px var(--ink), inset 0 0 0 1px rgba(232, 206, 134, .12);
}
.intro__body {
  max-width: 34rem; margin: clamp(2rem, 5vw, 3rem) auto 0;
  font-size: clamp(1.18rem, 1.08rem + .5vw, 1.42rem); color: var(--ivory);
}

/* --- the evening -------------------------------------------------------- */
.timeline { --railcol: 5.25rem; --railgap: 1.5rem; list-style: none; max-width: 44rem; margin: clamp(2.5rem, 6vw, 3.5rem) auto 0; padding: 0; }
.moment { position: relative; display: grid; grid-template-columns: var(--railcol) 1fr; gap: 0 var(--railgap); padding-bottom: 2.6rem; }
.moment::before {
  content: ""; position: absolute; left: calc(var(--railcol) + var(--railgap) / 2);
  top: 1.15rem; bottom: -.15rem; width: 1px; background: var(--gold-dim); transform: translateX(-.5px);
}
.moment::after {
  content: ""; position: absolute; left: calc(var(--railcol) + var(--railgap) / 2);
  top: .55rem; width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  transform: translateX(-3.5px); box-shadow: 0 0 14px rgba(201, 162, 39, .9);
}
.moment--last { padding-bottom: 0; }
.moment--last::before { display: none; }
.moment__time {
  margin: 0; text-align: right; font-family: var(--serif); font-weight: 400;
  font-size: 1.18rem; letter-spacing: .04em; color: var(--gold-lt);
}
.moment__time--forever { font-size: 2.15rem; line-height: .78; }
.moment__text h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin: -.15rem 0 .3rem; }
.moment__text p { margin: 0; color: var(--muted); }

.venue {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: clamp(1rem, 4vw, 3rem);
  text-align: center; margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
}
.venue__text { grid-column: 2; }
.venue__photo { margin: 0; overflow: hidden; border-radius: 8rem 8rem .4rem .4rem; }
.venue__photo--left { justify-self: end; }
.venue__photo--right { justify-self: start; }
.venue__photo img {
  display: block; width: clamp(10.5rem, 23vw, 18.5rem); height: auto; opacity: .72;
  filter: saturate(.74) contrast(1.02) brightness(.9) sepia(.09);
  -webkit-mask-image: radial-gradient(115% 92% at 50% 42%, #000 42%, transparent 100%);
          mask-image: radial-gradient(115% 92% at 50% 42%, #000 42%, transparent 100%);
  transition: opacity .5s ease;
}
.venue:hover .venue__photo img { opacity: .88; }
.venue__name { font-family: var(--serif); font-size: 1.55rem; margin: 0; }
.venue__address { margin: .3rem 0 0; color: var(--muted); }
.venue__note { margin: .8rem 0 1.4rem; font-style: italic; color: var(--gold-lt); font-size: .92rem; }

/* --- rsvp --------------------------------------------------------------- */
.card {
  max-width: 40rem; margin: 0 auto; padding: clamp(1.6rem, 5vw, 2.9rem);
  border: 1px solid var(--gold-dim); border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(22, 32, 62, .9), rgba(11, 17, 36, .92));
  box-shadow: 0 60px 100px -60px #000, inset 0 1px 0 rgba(232, 206, 134, .12);
}
.card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 4.8vw, 2.5rem); line-height: 1.15; margin: 0; text-align: center; }
.card__intro { margin: .9rem auto 2rem; max-width: 26rem; text-align: center; color: var(--muted); font-size: 1.02rem; }

.names { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.field input {
  appearance: none; background: transparent; border: 0; border-bottom: 1px solid var(--gold-dim);
  color: var(--ivory); font: 300 1.15rem/1.5 var(--sans); padding: .55rem .1rem; min-height: 2.75rem;
  transition: border-color .2s;
}
.field input:focus { border-bottom-color: var(--gold); }
.field__err { visibility: hidden; font-size: .78rem; color: var(--warn); min-height: 1.15rem; }
.field.is-bad .field__err { visibility: visible; }
.field.is-bad input { border-bottom-color: var(--warn); }

.choices { border: 0; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.choices .field__err { grid-column: 1 / -1; text-align: center; }
.choices.is-bad .field__err { visibility: visible; }
.choice {
  position: relative; display: flex; align-items: center; min-height: 4.5rem;
  padding: .9rem 1.15rem; border: 1px solid var(--gold-dim); border-radius: .9rem; cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.choice:hover { border-color: rgba(232, 206, 134, .55); background: rgba(201, 162, 39, .05); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__mark {
  flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-right: 1rem;
  border: 1px solid var(--gold-dim); border-radius: 50%; color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.choice__mark svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.choice--yes .choice__mark { color: var(--yes); }
.choice--no .choice__mark { color: var(--no); }
.choice--yes.is-picked .choice__mark { border-color: var(--yes); background: rgba(52, 199, 123, .16); }
.choice--no.is-picked .choice__mark { border-color: var(--no); background: rgba(242, 85, 90, .16); }
.choice__body { display: flex; flex-direction: column; }
.choice__title { font-family: var(--serif); font-size: 1.32rem; line-height: 1.25; }
.choice__sub { font-size: .89rem; color: var(--muted); }
.choice.is-picked { border-color: var(--gold); background: rgba(201, 162, 39, .1); box-shadow: inset 0 0 0 1px var(--gold), 0 18px 40px -26px var(--gold); }
.choice.is-focused { outline: 2px solid var(--gold-lt); outline-offset: 3px; }

.plusone { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .35s ease, opacity .3s ease, margin-top .35s ease; }
.plusone.is-open { max-height: 9rem; opacity: 1; margin-top: 1.6rem; }
.plusone__q {
  margin: 0 0 .7rem; font-size: .74rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.plusone:not(.is-open) input { visibility: hidden; }
.switch { display: inline-flex; align-items: center; gap: .9rem; cursor: pointer; min-height: 2.75rem; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  flex: none; position: relative; width: 3rem; height: 1.6rem; border-radius: 999px;
  border: 1px solid var(--gold-dim); background: rgba(255, 255, 255, .04); transition: background .25s, border-color .25s;
}
.switch__knob {
  position: absolute; top: 50%; left: .2rem; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--muted); transform: translateY(-50%); transition: transform .25s, background .25s;
}
.switch__label { font-size: 1.04rem; }
.switch.is-on .switch__track { background: rgba(201, 162, 39, .3); border-color: var(--gold); }
.switch.is-on .switch__knob { background: var(--gold-lt); transform: translate(1.35rem, -50%); }

.field--note { margin-top: 1.6rem; }
.field textarea {
  appearance: none; border: 1px solid var(--gold-dim); border-radius: .75rem;
  background: rgba(255, 255, 255, .02); color: var(--ivory);
  font: 300 1.08rem/1.55 var(--sans); padding: .8rem .95rem; min-height: 5.5rem; resize: vertical;
  transition: border-color .2s, background .2s;
}
.field textarea:focus { border-color: var(--gold); background: rgba(255, 255, 255, .045); }
.field textarea::placeholder { color: rgba(152, 160, 182, .75); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status { min-height: 1.4rem; margin: 1rem 0 0; text-align: center; font-size: .88rem; color: var(--warn); }

.done { display: flex; flex-direction: column; align-items: center; text-align: center; }
.seal {
  display: grid; place-items: center; width: 5.5rem; height: 5.5rem; margin-bottom: 1.4rem;
  border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-lt);
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: .04em;
  box-shadow: 0 0 0 7px rgba(201, 162, 39, .07), 0 24px 50px -28px var(--gold);
  animation: seal .75s cubic-bezier(.2, .9, .25, 1.08) both;
}
.seal i { font-style: italic; color: var(--gold); }
@keyframes seal { from { transform: scale(.55) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
.done__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 4.8vw, 2.35rem); margin: 0; }
.done__body { margin: .5rem 0 0; color: var(--muted); }
.done__extra { margin: .35rem 0 0; color: var(--gold-lt); font-size: .92rem; }
.done__cal { margin-top: 1.8rem; }
.done__again { margin-top: 1.1rem; }

/* --- hotels & market ---------------------------------------------------- */
.hotel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.1rem; margin-top: clamp(2.2rem, 5vw, 3rem); }
.hotel {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem 1.4rem;
  border: 1px solid rgba(232, 206, 134, .14); border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent);
  transition: border-color .25s, transform .25s;
}
.hotel { text-decoration: none; color: inherit; }
.hotel .card-photo { margin: -1.5rem -1.4rem 1.05rem; border-radius: .95rem .95rem 0 0; }
.hotel:hover { border-color: rgba(232, 206, 134, .4); transform: translateY(-3px); }
.hotel:hover .hotel__link { color: var(--gold); border-bottom-color: var(--gold); }
.card-photo {
  display: block; margin: 0 0 1.05rem; overflow: hidden; border-radius: .7rem;
  aspect-ratio: 3 / 2; background: var(--ink-2);
}
.card-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  /* warmed and calmed so the photographs sit inside the palette; full colour on hover */
  filter: saturate(.62) contrast(1.04) brightness(.82) sepia(.14);
  transition: filter .45s ease, transform .6s ease;
}
.hotel:hover .card-photo img,
.stop:hover .card-photo img { filter: saturate(1) contrast(1) brightness(1) sepia(0); transform: scale(1.04); }

.hotel__note { margin: 0; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.hotel h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; }
.hotel__body { margin: 0; flex: 1; color: var(--muted); font-size: 1.02rem; }
.hotel .link { align-self: flex-start; margin-top: .6rem; }

.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: clamp(1.5rem, 4vw, 2.4rem); margin-top: clamp(2.2rem, 5vw, 3rem); }
.stop { border-top: 1px solid var(--gold-dim); padding-top: 1.1rem; }
.stop h3 { margin: 0 0 .4rem; font-family: var(--serif); font-weight: 400; font-size: 1.32rem; }
.stop p { margin: 0; color: var(--muted); font-size: 1.02rem; }

/* --- footer ------------------------------------------------------------- */
.footer { text-align: center; padding: 0 var(--gutter) clamp(3rem, 8vw, 5rem); }
.footer__note { margin: 0; color: var(--muted); }
.footer__credit {
  max-width: 34rem; margin: 2.4rem auto 0; color: rgba(152, 160, 182, .34);
  font-size: .6rem; letter-spacing: .04em; line-height: 1.55;
}
.footer__sig { margin: .9rem 0 0; font-family: var(--serif); font-size: 1rem; letter-spacing: .12em; color: var(--gold-lt); }

/* --- motion ------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .85s ease, transform .85s cubic-bezier(.2, .7, .3, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 58rem) {
  .venue { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .venue__text { grid-column: 1 / -1; grid-row: 1; margin-bottom: 1.6rem; }
  .venue__photo--left { grid-column: 1; grid-row: 2; justify-self: stretch; }
  .venue__photo--right { grid-column: 2; grid-row: 2; justify-self: stretch; }
  .venue__photo { border-radius: 5rem 5rem .4rem .4rem; }
  .venue__photo img { width: 100%; opacity: .62; }
}

@media (max-width: 34rem) {
  .names, .choices { grid-template-columns: 1fr; }
  .timeline { --railcol: 3.9rem; --railgap: 1.1rem; }
  .moment__time { font-size: .95rem; }
  .moment__time--forever { font-size: 1.6rem; }
}

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