/* ─── Tokenek ─────────────────────────────────────────────
   A paletta a helyszínből jön: washi papír és homok, fenyőzöld,
   az A-házak palaszürkéje, a fürdőtó jádezöldje, cédrusfa,
   és a terasz fényfüzéreinek meleg sárgája. */
:root {
  --washi: #F2EEE4;
  --washi-2: #E9E3D5;
  --sand: #D9CFBB;
  --sand-line: #CBBFA6;
  --ink: #1D2420;
  --ink-2: #4A524C;
  --pine: #22302A;
  --pine-2: #2D3D35;
  --jade: #5E8F86;
  --slate: #3A3F44;
  --cedar: #9C6F45;
  --lantern: #F0C27A;

  --serif: 'Hina Mincho', 'Hiragino Mincho ProN', Georgia, serif;
  --sans: 'Murecho', 'Hiragino Sans', system-ui, sans-serif;
  --script: 'WindSong', 'Snell Roundhand', cursive;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* --vh / --svh: telefonon betöltéskor pixelben rögzítjük (lásd index.html fejléce), hogy a billentyűzet
   és a címsor ne méretezze át az oldalt; számítógépen a valódi vh/svh egység marad. */
/* A html elemre NEM teszünk overflow-t: iPhone-on (Safari és Chrome) attól a mezőbe koppintva túlgörget az oldal.
   A vízszintes kilógást a forrásánál vágjuk le (.car). */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--washi);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(16px, 1.05vw + 10px, 18px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
figure { margin: 0; }
::selection { background: var(--jade); color: var(--washi); }

.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: multiply;
}
.veil {
  position: fixed; inset: 0; z-index: 90; background: var(--washi);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.veil.is-on { opacity: 1; pointer-events: auto; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Kis felirat a címek fölött: kisbetűs, ahogy írnánk */
.eyebrow {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(17px, 1.2vw + 8px, 20px); letter-spacing: .01em;
  color: var(--cedar); margin: 0 0 14px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 5.6vw, 84px); line-height: 1.04; letter-spacing: -.015em;
  margin: 0 0 24px; text-wrap: balance;
}
.lede { font-size: clamp(17px, 1.3vw + 8px, 21px); line-height: 1.65; color: var(--ink-2); max-width: 34em; margin: 0; }

.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--b); color: var(--washi); border: 1px solid var(--b);
  font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--washi); }
.link {
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color .3s;
}
.link:hover { text-decoration-color: currentColor; }

/* ─── Kézírás: a nevek vonalai kirajzolódnak ─────────────
   A betűk a WindSong font körvonalai SVG-ben (a JS rajzolja ki őket),
   így az & is ugyanabból a kézírásból van, és a szavak nem lógnak egymásba. */
.sig {
  --s: 1;
  display: block; flex: none; overflow: visible;
  width: calc(var(--w) * var(--s) * var(--u)); height: calc(var(--h) * var(--s) * var(--u));
  /* alapvonalra igazítás: a legmélyebb alapvonalú szóhoz */
  margin-top: calc((var(--mb) - var(--b) * var(--s)) * var(--u));
  fill: currentColor; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
.sig path { vector-effect: non-scaling-stroke; }
.sig--amp { --s: .62; margin-inline: calc(14 * var(--u)) calc(30 * var(--u)); }

/* ─── 1. Nyitány ────────────────────────────────────────── */
.hero { position: relative; height: calc(100 * var(--svh, 1svh)); min-height: 560px; overflow: hidden; background: #3C4A55; color: var(--washi); }
.hero__bg { position: absolute; inset: -4% 0 0; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 42% at 50% 46%, rgba(10,14,20,.62), rgba(10,14,20,.2) 70%, transparent 90%),
    linear-gradient(180deg, rgba(24,30,36,.35) 0%, transparent 30%, transparent 62%, rgba(24,30,36,.55) 100%);
}
.hero__copy {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--gutter);
}
.hero__eyebrow { margin: 0 0 calc(3.5 * var(--vh, 1vh)); font-family: var(--serif); font-size: clamp(18px, 1.5vw, 24px); opacity: .9; }
.hero__names {
  --u: clamp(.3px, .05vw, .9px); --mb: 123.4;
  margin: 0; font-weight: 400; display: flex; align-items: flex-start; justify-content: center;
  filter: drop-shadow(0 2px 30px rgba(10,14,18,.3));
}
.hero__date { margin: calc(2.4 * var(--vh, 1vh)) 0 0; font-family: var(--serif); font-size: clamp(22px, 2.1vw, 32px); letter-spacing: .02em; }
.hero__lead { margin: 10px 0 0; font-size: clamp(15px, 1.1vw + 8px, 19px); opacity: .85; max-width: 30em; }
.hero__hint {
  position: absolute; z-index: 3; bottom: 24px; left: 50%; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 15px; color: var(--washi); opacity: .85;
}
.hero__hint i { width: 1px; height: 40px; background: currentColor; transform-origin: top; animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1 } 60% { transform: scaleY(1); opacity: 1 } 100% { transform: scaleY(1); opacity: 0 } }

@media (max-width: 760px) {
  .hero__bg img { object-position: 22% 50%; }
  .hero__names { --u: min(.128vw, .62px); flex-direction: column; align-items: center; }
  .hero__names .sig { margin-top: 0; }
  .sig--amp { margin: calc(-6 * var(--u)) 0 calc(4 * var(--u)); }
}

/* ─── 2. Dátum ──────────────────────────────────────────── */
.date { position: relative; z-index: 3; padding: clamp(100px, calc(16 * var(--vh, 1vh)), 180px) 0; background: var(--washi); }
.date__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
/* Az időpont: írásszerű sor, alatta a három tény és a naptárgombok */
.date__weekday { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(20px, 1.4vw + 10px, 28px); color: var(--cedar); }
.date__long { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 92px); line-height: 1.02; letter-spacing: -.02em; }
.date__facts {
  margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid var(--sand-line);
  display: grid; grid-template-columns: auto auto 1fr; gap: 14px clamp(24px, 4vw, 56px);
}
.date__facts dt { font-size: 14px; color: var(--ink-2); margin: 0 0 2px; }
.date__facts dd { margin: 0; font-family: var(--serif); font-size: clamp(20px, 1.2vw + 10px, 26px); line-height: 1.3; }
.count { margin: 30px 0 0; font-family: var(--serif); font-size: clamp(18px, 1.1vw + 9px, 23px); line-height: 1.5; color: var(--ink-2); }
.count b { font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; display: inline-block; min-width: 1.3em; text-align: center; }

.date__actions { position: relative; z-index: 5; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
/* Safari: a lenyíló menü a következő szekció (Helyszín) fölött maradjon akkor is, ha az animált szülő külön rétegen van */
/* Naptár: egy gomb, alatta kis menü a naptár kiválasztásához */
.cal { position: relative; z-index: 30; }
.cal__ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cal__menu {
  position: absolute; z-index: 20; left: 0; top: calc(100% + 8px); min-width: 100%;
  display: grid; padding: 6px; border-radius: 12px; background: #fff;
  box-shadow: 0 24px 50px -18px rgba(29,36,32,.4), 0 0 0 1px rgba(29,36,32,.08);
  transform-origin: top left; animation: cal-in .22s var(--ease);
  -webkit-transform: translateZ(0);
}
.cal__menu[hidden] { display: none; }
@keyframes cal-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.cal__item {
  display: block; padding: 11px 14px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  text-align: left; text-decoration: none; white-space: nowrap; color: var(--ink); font: 400 15px var(--sans);
}
.cal__item:hover, .cal__item:focus-visible { background: var(--washi-2); outline: none; }
.date__photo { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; background: var(--sand); }
.date__photo img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
@media (max-width: 860px) {
  .date__grid { grid-template-columns: 1fr; }
  .date__photo { order: -1; width: min(72vw, 360px); margin: 0 auto 8px; }
  .date__text { text-align: center; }
  .date__facts { grid-template-columns: 1fr 1fr; text-align: left; }
  .date__place { grid-column: 1 / -1; }
  .date__actions { justify-content: center; }
  .cal__menu { left: 50%; translate: -50% 0; transform-origin: top center; }
  .cal__item { text-align: center; }
}

/* ─── 3. Helyszín: carousel ─────────────────────────────── */
.venue { position: relative; background: var(--washi-2); padding: clamp(100px, calc(15 * var(--vh, 1vh)), 170px) 0 clamp(80px, calc(12 * var(--vh, 1vh)), 140px); }
.venue__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, calc(5 * var(--vh, 1vh)), 56px); }
.venue__head .h2 { margin: 0; }
.venue__head .lede { font-size: clamp(16px, 1vw + 9px, 19px); }
@media (max-width: 860px) { .venue__head { grid-template-columns: 1fr; } }

.car { --w: min(74vw, 1080px, calc(96 * var(--svh, 1svh))); position: relative; overflow-x: hidden; overflow-x: clip; } /* a beúszó lapozó ne lógjon ki a képernyőből */
.car__track {
  display: flex; gap: clamp(14px, 2vw, 28px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px calc((100% - var(--w)) / 2);
  outline: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.car__track::-webkit-scrollbar { display: none; }
.car__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.car__slide {
  flex: none; width: var(--w); aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px;
  scroll-snap-align: center; background: var(--sand);
  transform: scale(.9); opacity: .55; transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.car__slide.is-on { transform: none; opacity: 1; }
.car__slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.car__ui { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }
.car__count { margin: 0; font-family: var(--serif); font-size: 18px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.car__count b { font-weight: 400; color: var(--ink); font-size: 26px; }
.car__btns { display: flex; gap: 10px; }
.car__btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  background: transparent; cursor: pointer; display: grid; place-items: center;
  transition: background .3s, color .3s, border-color .3s;
}
.car__btn:hover { background: var(--ink); color: var(--washi); border-color: var(--ink); }
.car__btn[disabled] { opacity: .3; pointer-events: none; }
.car__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (max-width: 760px) {
  .car { --w: 84vw; }
  .car__slide { aspect-ratio: 4 / 5; transform: scale(.94); }
}

/* ─── 4. A nap ──────────────────────────────────────────── */
.day { --fg: #F2EEE4; --fg-dim: rgba(242,238,228,.3); --warm: 0; --night: 0; position: relative; color: var(--fg); }
.day__pin { position: relative; height: var(--pin-h, calc(100 * var(--svh, 1svh))); overflow: hidden; background: #1E2327; }
.day__sky { position: absolute; inset: 0; }
.day__ph { position: absolute; inset: 0; overflow: hidden; opacity: 0; will-change: opacity; }
.day__ph:first-child { opacity: 1; }
.day__ph img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
/* WebGL-es naplemente: a vászon tölti ki a hátteret, a fotók és a CSS-színezés ilyenkor nem kell */
.day__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s; }
.is-gl-ready > .day__gl { opacity: 1; }
.day--gl .day__ph, .day--gl .day__tint { display: none; }
/* Színezés a napszakhoz: aranyóra, aztán kékes este */
.day__tint {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(246,160,90,.55), rgba(220,110,70,.35));
  mix-blend-mode: soft-light; opacity: var(--warm);
}
.day__tint::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,18,40,.75), rgba(18,22,40,.45));
  mix-blend-mode: multiply; opacity: var(--night);
}
/* Olvashatóság: a szöveg mögött sötétebb a kép */
.day__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16,20,18,.66) 0%, rgba(16,20,18,.2) 38%, rgba(16,20,18,.42) 55%, rgba(16,20,18,.8) 100%),
    linear-gradient(0deg, rgba(16,20,18,.55), transparent 30%);
}
@media (max-width: 860px) {
  .day__scrim { background: linear-gradient(180deg, rgba(16,20,18,.72) 0%, rgba(16,20,18,.5) 55%, rgba(16,20,18,.3) 80%, rgba(16,20,18,.6) 100%); }
}

.day__head {
  position: absolute; z-index: 2; top: clamp(70px, calc(12 * var(--vh, 1vh)), 120px); left: var(--gutter); max-width: 460px;
}
.day__head .eyebrow { color: var(--fg); opacity: .7; }
.day__head .h2 { font-size: clamp(34px, 4.4vw, 66px); text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.day__note { margin: 0; font-size: 15px; font-weight: 500; opacity: .92; max-width: 26em; text-shadow: 0 1px 12px rgba(0,0,0,.5); }

.day__list {
  position: absolute; z-index: 2; list-style: none; margin: 0; padding: 0;
  right: var(--gutter); top: 50%; translate: 0 -50%; width: min(540px, 46vw);
  display: grid; gap: clamp(8px, calc(1.8 * var(--vh, 1vh)), 18px);
  padding: clamp(22px, calc(3 * var(--vh, 1vh)), 34px) clamp(22px, 2.4vw, 34px); border-radius: 12px;
  background: rgba(14, 18, 16, .58); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08);
}
.ev { display: grid; grid-template-columns: 4.6em 1fr; gap: 16px; align-items: baseline; opacity: .5; transition: opacity .5s var(--ease), transform .5s var(--ease); transform: translateX(14px); }
.ev.is-on { opacity: 1; transform: none; }
.ev.is-past { opacity: .7; transform: none; }
.ev.is-on time { color: var(--lantern); }
.ev time { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 32px); font-variant-numeric: tabular-nums; }
.ev h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 32px); margin: 0; line-height: 1.2; }
.ev p { margin: 4px 0 0; font-size: 15px; font-weight: 500; line-height: 1.55; opacity: .9; }
.day__progress { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 22px; height: 1px; background: var(--fg-dim); }
.day__progress i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }

@media (max-width: 860px) {
  .day__head { top: 70px; right: var(--gutter); }
  .day__head .h2 { margin-bottom: 8px; }
  .day__note { display: none; }
  .day__list { left: var(--gutter); right: var(--gutter); width: auto; top: 24%; translate: none; gap: 8px; padding: 18px 18px; }
  .ev { grid-template-columns: 3.6em 1fr; gap: 12px; }
  .ev p { display: none; }
  .ev.is-on p { display: block; }
  .ev time, .ev h3 { font-size: 20px; }
}

/* ─── 5. Rólunk ─────────────────────────────────────────── */
.story { padding: clamp(110px, calc(16 * var(--vh, 1vh)), 180px) 0; background: var(--washi); }
.story__head { text-align: center; margin-bottom: clamp(56px, calc(10 * var(--vh, 1vh)), 110px); }
.story__head .eyebrow { justify-content: center; }
.chapters { display: grid; gap: clamp(72px, calc(14 * var(--vh, 1vh)), 150px); }
.chapter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.chapter--flip .chapter__photo { order: 2; }
.chapter__photo { position: relative; }
.chapter p + p { margin-top: 14px; }

/* Kollázs: fölül a fő kép, alatta egy-két kisebb, papírkeretes fotó,
   ami csak a fő kép alsó szélére lóg rá, így arcot nem takar. */
.collage { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; }
.shot { margin: 0; overflow: hidden; border-radius: 3px; background: var(--sand); aspect-ratio: var(--ar, 4/5); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); display: block; }
.shot--main { grid-column: 1 / 12; grid-row: 1; }
.shot--a, .shot--b {
  grid-row: 2; position: relative; z-index: 1; border: 7px solid var(--washi);
  box-shadow: 0 22px 44px -22px rgba(28, 30, 24, .45);
}
.shot--a { grid-column: 7 / 13; margin-top: -9%; }
.shot--b { grid-column: 2 / 7; margin-top: 4%; margin-right: 6%; }
.shot--tall.shot--a { grid-column: 8 / 12; }
.shot--tall.shot--b { grid-column: 3 / 6; margin-right: 0; }
.chapter--flip .shot--main { grid-column: 2 / 13; }
.chapter--flip .shot--a { grid-column: 1 / 7; }
.chapter--flip .shot--b { grid-column: 7 / 12; margin-right: 0; margin-left: 6%; }
.chapter--flip .shot--tall.shot--a { grid-column: 2 / 6; }
.chapter--flip .shot--tall.shot--b { grid-column: 7 / 11; margin-left: 8%; }
.chapter__num { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1; color: var(--cedar); display: block; margin-bottom: 18px; }
.chapter__year { font-family: var(--serif); font-size: 18px; color: var(--ink-2); margin: 0 0 8px; }
.chapter h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; margin: 0 0 16px; }
.chapter p { margin: 0; max-width: 30em; color: var(--ink-2); }
@media (max-width: 760px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter--flip .chapter__photo { order: 0; }
  .chapter__num { font-size: 44px; }
  .shot--a, .shot--b { border-width: 5px; }
}

/* ─── 6–8. Odajutás, szállás, öltözet ───────────────────── */
.sec { padding: clamp(100px, calc(15 * var(--vh, 1vh)), 170px) 0; }
.sec--travel { background: var(--washi-2); }
.sec--stay { background: var(--washi-2); }
.sec--dress { background: var(--pine); color: var(--washi); }
.sec--dress .eyebrow { color: var(--lantern); }
.sec__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.sec__grid--flip { grid-template-columns: 6fr 5fr; }
.sec__body { max-width: 32em; }
.sec__body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.6vw + 8px, 28px); margin: 28px 0 6px; }
.sec__body h3:first-child { margin-top: 0; }
.sec__body p { margin: 0 0 12px; color: var(--ink-2); }
.sec--dress .sec__body p { color: color-mix(in srgb, var(--washi) 78%, transparent); }
.sec__addr { margin-top: 28px !important; color: var(--ink) !important; font-family: var(--serif); font-size: 20px; line-height: 1.5; }
.sec__body .btn { margin-top: 10px; }
.sec__photo { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; background: var(--sand); }
.sec__photo img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.map {
  position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden;
  background: var(--sand); box-shadow: 0 30px 60px -30px rgba(29,36,32,.35);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.85) sepia(.18) contrast(.95) brightness(1.02); }
@media (max-width: 860px) {
  .sec__grid, .sec__grid--flip { grid-template-columns: 1fr; }
  .sec__grid--flip .sec__photo { order: 2; }
  .map { aspect-ratio: 1; }
  .sec__photo { aspect-ratio: 4 / 3; }
}

/* ─── 9. Visszajelzés ───────────────────────────────────── */
.rsvp { background: var(--slate); color: var(--washi); padding: clamp(110px, calc(16 * var(--vh, 1vh)), 180px) 0; }
.rsvp .eyebrow { color: var(--lantern); }
.rsvp .lede { color: color-mix(in srgb, var(--washi) 78%, transparent); }
.rsvp__inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.rsvp__head { position: sticky; top: 80px; }
@media (max-width: 900px) { .rsvp__inner { grid-template-columns: 1fr; } .rsvp__head { position: static; } }

.form { display: grid; gap: 22px; }
.form[hidden], .form__yes[hidden], [data-many-only][hidden] { display: none; }
.form__yes { display: grid; gap: 22px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field--row label, .field legend, .field .lbl {
  display: block; font-family: var(--serif); font-size: 16px; font-weight: 400; letter-spacing: 0;
  color: color-mix(in srgb, var(--washi) 82%, transparent); margin-bottom: 6px; padding: 0;
}
.field input:not([type=radio]):not([type=checkbox]), .field textarea {
  width: 100%; background: transparent; color: var(--washi);
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--washi) 30%, transparent);
  padding: 6px 0 9px; font-family: var(--serif); font-size: clamp(18px, 1.2vw + 4px, 21px); line-height: 1.4;
  border-radius: 0; outline: none; transition: border-color .3s;
  resize: none; -webkit-appearance: none; appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--washi) 38%, transparent); font-family: var(--sans); font-size: 15px; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--lantern); }
.field input[type=search]::-webkit-search-cancel-button { display: none; }
.field__hint { margin: 8px 0 0; font-size: 14px; color: color-mix(in srgb, var(--washi) 58%, transparent); }
.field__err { margin: 8px 0 0; font-size: 14px; color: #F3A98C; }
.field__err:empty { display: none; }
.stay-nudge { flex-basis: 100%; margin: 12px 0 0; font-size: 15px; color: var(--washi); animation: nudge-in .5s cubic-bezier(.2,.8,.2,1.2) both; }
.stay-nudge[hidden] { display: none; }
@keyframes nudge-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .stay-nudge { animation: none; } }
.field.has-err input, .field.has-err textarea { border-bottom-color: #F3A98C; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { width: 100%; }
.field .pill { position: relative; cursor: pointer; display: inline-block; margin: 0; font-size: 15px; color: var(--washi); }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span {
  display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 14px;
  border: 1px solid color-mix(in srgb, var(--washi) 30%, transparent);
  transition: background .25s, color .25s, border-color .25s;
}
.pill:hover span { border-color: var(--washi); }
.pill input:checked + span { background: var(--washi); color: var(--slate); border-color: var(--washi); }
.pill input:focus-visible + span { outline: 2px solid var(--lantern); outline-offset: 3px; }

.stepper { display: flex; align-items: center; border-bottom: 1px solid color-mix(in srgb, var(--washi) 30%, transparent); }
.stepper button { width: 44px; height: 48px; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--washi); }
.stepper input { text-align: center; border: 0 !important; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Lenyíló lista az allergiákhoz */

/* Számkérés Spotifyról */
.songs__search { position: relative; }
.songs__results {
  position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: var(--washi); color: var(--ink); border-radius: 6px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.45);
  max-height: 360px; overflow-y: auto; overscroll-behavior: contain;
}
.songs__results[hidden] { display: none; }
.songs__results li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 4px; cursor: pointer; }
.songs__results li:hover, .songs__results li[aria-selected=true] { background: var(--washi-2); }
.songs__results li.is-msg { cursor: default; color: var(--ink-2); font-size: 14px; padding: 12px; }
.songs__results li.is-msg:hover { background: none; }
.song__art { flex: none; width: 44px; height: 44px; border-radius: 3px; object-fit: cover; background: var(--sand); }
.song__txt { min-width: 0; flex: 1; line-height: 1.3; }
.song__txt b { display: block; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song__txt span { display: block; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song__add { flex: none; font-size: 22px; line-height: 1; color: var(--jade); }

/* Vendégkártyák */
.names { display: grid; gap: 10px; margin: 6px 0 14px; }
.name-row { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 16px; }
.name-row .field__err { grid-column: 1 / -1; }
.name-row:first-child [data-name-rm] { visibility: hidden; }
[data-allergy-note][hidden] { display: none; }
.guest__rm { background: none; border: 0; padding: 4px 0 12px; cursor: pointer; font-size: 14px; color: color-mix(in srgb, var(--washi) 60%, transparent); text-decoration: underline; text-underline-offset: 3px; }
.guest__rm:hover { color: var(--washi); }
.addguest {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; cursor: pointer; font-size: 15px; color: var(--washi);
  background: none; border: 1px dashed color-mix(in srgb, var(--washi) 45%, transparent);
  transition: border-color .25s, background .25s;
}
.addguest span { font-size: 20px; line-height: 1; }
.addguest:hover { border-color: var(--washi); background: color-mix(in srgb, var(--washi) 6%, transparent); }
.addguest[hidden] { display: none; }
.addguest[disabled] { opacity: .4; pointer-events: none; }

/* ─── Zene ──────────────────────────────────────────────── */
.music { background: var(--washi); padding: clamp(100px, calc(15 * var(--vh, 1vh)), 170px) 0; }
.music__inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.music__box { display: grid; gap: 26px; }
@media (max-width: 900px) { .music__inner { grid-template-columns: 1fr; } }
.music .field > label { color: var(--ink-2); }
.music .field input:not([type=radio]):not([type=checkbox]) { color: var(--ink); border-bottom-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.music .field input::placeholder { color: color-mix(in srgb, var(--ink) 40%, transparent); }
.music .field input:focus { border-bottom-color: var(--cedar); }
.music .field__hint { color: var(--ink-2); }
.music .songs__results { background: #fff; box-shadow: 0 24px 50px -16px rgba(29,36,32,.35); }
/* Egy szám, egy mentés */
.songs__form { display: grid; gap: 22px; justify-items: start; }
.songs__form .field { width: 100%; }
.songs__form .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.song { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 6px; background: var(--washi-2); }
.song .song__art { width: 56px; height: 56px; }
.song .song__txt b { font-size: 17px; }
.song .song__txt span { font-size: 14px; color: var(--ink-2); }
.songs__choice { display: grid; gap: 10px; justify-items: start; margin-top: 4px; }
.songs__choice[hidden], .songs__search[hidden], .songs__thanks[hidden], .songs__form[hidden] { display: none; }
.songs__choice .song { width: 100%; }
.songs__change { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 15px; color: var(--cedar); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.songs__thanks { display: grid; gap: 16px; outline: none; }
.songs__thanks-title { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); margin: 0; color: var(--ink); }
.songs__thanks-note { margin: 0; color: var(--ink-2); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn--big { --b: var(--washi); color: var(--slate); min-height: 54px; font-size: 15px; justify-self: start; padding: 0 34px; }
.btn--big[disabled] { opacity: .6; cursor: progress; }
.btn--big.is-loading span::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: '' } 25% { content: '.' } 50% { content: '..' } 75% { content: '...' } }
.form__status { margin: 0; font-size: 15px; color: color-mix(in srgb, var(--washi) 80%, transparent); }
.form__status:empty { display: none; }
.form__status.is-err { color: #F3A98C; }

.thanks { text-align: center; padding: 20px 0 40px; outline: none; }
.thanks[hidden] { display: none; }
.thanks__script { font-family: var(--script); font-size: clamp(56px, 9vw, 120px); line-height: 1.1; color: var(--lantern); margin: 0 0 8px; }
.thanks h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); margin: 0 0 12px; }
.thanks p { margin: 0 auto 24px; max-width: 28em; color: color-mix(in srgb, var(--washi) 80%, transparent); }

/* ─── Lábléc ────────────────────────────────────────────── */
.foot { background: #1E2327; color: var(--washi); text-align: center; padding: 96px var(--gutter) 64px; }
.foot__names { font-family: var(--script); white-space: nowrap; font-size: clamp(44px, 8vw, 110px); line-height: 1.1; margin: 0; color: var(--lantern); }
.foot__meta { margin: 4px 0 0; font-family: var(--serif); font-size: 18px; opacity: .75; }
.foot__contact { margin-top: 48px; font-size: 15px; color: color-mix(in srgb, var(--washi) 70%, transparent); }
.foot__contact p { margin: 0 0 6px; }
.foot__contact a { color: var(--washi); }

/* ─── Kevesebb mozgás ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.no-motion .day__pin { height: auto; min-height: calc(100 * var(--svh, 1svh)); padding: 120px 0 80px; }
.no-motion .day__head, .no-motion .day__list { position: relative; inset: auto; translate: none; margin: 0 var(--gutter); width: auto; }
.no-motion .day__list { margin-top: 32px; }
.no-motion .ev { opacity: 1; transform: none; }
.no-motion .ev p { display: block; }
.no-motion .day__progress { display: none; }
.no-motion .day__pin { background: #2A3330; }

/* ─── Nyelvválasztó: kicsi, a sarokban, minden háttéren olvasható ─── */
.lang {
  position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 80;
  display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(242, 238, 228, .86); box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(29, 36, 32, .08);
  font: 500 12px/1 var(--sans); letter-spacing: .06em;
}
.lang button { border: 0; background: none; padding: 7px 10px; border-radius: 999px; color: var(--ink-2); cursor: pointer; font: inherit; letter-spacing: inherit; transition: background .25s, color .25s; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed=true] { background: var(--ink); color: var(--washi); }
.lang button:focus-visible { outline: 2px solid var(--cedar); outline-offset: 2px; }
body.is-locked .lang { display: none; }

/* ─── Menü ─────────────────────────────────────────────── */
.menu { background: var(--washi); padding: clamp(100px, calc(15 * var(--vh, 1vh)), 170px) 0; }
.menu__inner { display: grid; justify-items: center; gap: clamp(40px, calc(7 * var(--vh, 1vh)), 72px); }
.menu__inner .h2 { text-align: center; }
.menu__card {
  width: min(100%, 980px); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(36px, calc(5 * var(--vh, 1vh)), 52px) clamp(40px, 6vw, 96px);
  padding: clamp(40px, 6vw, 72px); background: var(--washi-2); border-radius: 6px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
}
.menu__course { text-align: center; }
.menu__course:last-child { grid-column: 1 / -1; padding-top: clamp(28px, calc(4 * var(--vh, 1vh)), 40px); border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.menu__course h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.6vw + 10px, 28px); color: var(--cedar); margin: 0 0 14px; }
.menu__course ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.menu__course li { font-size: 17px; line-height: 1.45; color: var(--ink); }
@media (max-width: 760px) {
  .menu__card { grid-template-columns: 1fr; padding: 36px 22px; }
}

/* ─── Nászajándék ──────────────────────────────────────── */
.gift { background: var(--washi-2); padding: clamp(100px, calc(15 * var(--vh, 1vh)), 170px) 0; }
.gift__inner { display: grid; justify-items: center; text-align: center; gap: 28px; }
.gift__pig { width: 96px; height: auto; color: var(--cedar); }
.gift__poem { margin: 0; font-family: var(--serif); font-size: clamp(20px, 1.4vw + 12px, 28px); line-height: 1.6; color: var(--ink); }
.gift__poem span { display: block; }

/* ─── Telefon: a drága GPU-effektek helyett egyszerűbb, de hasonló hatású megoldások ─── */
@media (hover: none), (max-width: 860px) {
  /* A teljes képernyős, keverési módú szemcse minden képkockánál újraszámolódna. */
  .grain { display: none; }
  /* Keverési módok helyett sima, áttetsző színrétegek. */
  .day__tint { mix-blend-mode: normal; background: linear-gradient(180deg, rgba(240,150,80,.22), rgba(210,110,70,.14)); }
  .day__tint::after { mix-blend-mode: normal; background: linear-gradient(180deg, rgba(10,16,34,.6), rgba(16,20,36,.38)); }
  /* Az elmosott üveg helyett sötétebb, sima háttér: ugyanúgy olvasható. */
  .day__list { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(14, 18, 16, .8); }
  /* Csak az áttűnő fotók kapjanak saját réteget. */
  .date__photo img, .sec__photo img { will-change: auto; }
}

/* Külső link: a szöveg kattintható, mellette kifelé mutató nyíl */
.ext { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color .2s; }
.ext:hover, .ext:focus-visible { text-decoration-color: currentColor; }
.ext__ico { display: inline-block; width: .72em; height: .72em; margin-left: .3em; vertical-align: .02em; opacity: .7; transition: transform .2s, opacity .2s; }
.ext:hover .ext__ico, .ext:focus-visible .ext__ico { opacity: 1; transform: translate(1px, -1px); }

/* A két űrlap egymásra mutat: így többen töltik ki mindkettőt ugyanabból a böngészőből */
.thanks__next, .songs__thanks-next { margin: 18px 0 0; }
.songs__thanks-next[hidden], .thanks__next[hidden] { display: none; }
