/* Layout: a golden-hour editorial. A full-screen vineyard sunset opens the page with the
   save-the-date card; below it large serif statements sit beside arched and rounded photographs,
   one wildflower stem winds down the margin, and the page closes at dusk among candles. */
:root {
  --paper: #fbf4e6;
  --paper-deep: #f4e8d2;
  --paper-edge: #e4d3b4;
  --photo-white: #fdfaf2;
  --ink: #3a2c22;
  --ink-soft: #6c5c4d;
  --olive: #6b7044;
  --olive-deep: #454a2b;
  --sage: #8d946b;
  --copper: #b85f38;
  --copper-deep: #984e2c;
  --apricot: #f6c79b;
  --rose: #dd9a80;
  --env: #efe2c8;
  --env-light: #f7eddb;
  --env-dark: #dccaa6;

  --font-script: "Italianno", "Apple Chancery", "Snell Roundhand", cursive;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Jost", "Avenir Next", "Segoe UI", sans-serif;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4  0 0 0 0 .28  0 0 0 0 .16  0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --gutter: clamp(18px, 5vw, 56px);
  --radius: clamp(18px, 2.4vw, 30px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* Nothing may widen the page: phones show any overflow as a blank strip on the right. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html.locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--copper-deep); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 780px; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 340; text-wrap: balance; }
h2 {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.005em;
  color: var(--olive-deep);
  font-variation-settings: "opsz" 144;
}
h2 em, .statement em { font-style: italic; color: var(--copper); }
h3 { font-size: 1.55rem; font-weight: 400; line-height: 1.2; color: var(--olive-deep); }
p { margin: 0; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--copper-deep);
  margin-bottom: 1.1rem;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); margin-top: 1.4rem; }
.names {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(4.4rem, 14.5vw, 7.2rem);
  line-height: 0.86;
  color: var(--copper);
}
.names span { font-size: 0.8em; color: var(--olive); padding-inline: 0.16em; }

/* ---------- Shared pieces ---------- */
.torn { position: relative; isolation: isolate; }
.torn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper) var(--grain);
  filter: url(#torn) drop-shadow(0 18px 30px rgba(96, 50, 24, 0.3));
}
.tile {
  margin: 0;
  padding: clamp(6px, 0.9vw, 10px);
  background: var(--photo-white);
  box-shadow: 0 18px 34px rgba(96, 50, 24, 0.26), 0 2px 4px rgba(96, 50, 24, 0.14);
  transform: translateY(var(--py, 0px)) rotate(var(--rot, 0deg));
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.frame {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -28px rgba(96, 50, 24, 0.5);
}
.frame img { width: 100%; height: 100%; object-fit: cover; scale: 1.14; transform: translateY(var(--py, 0px)); }
.frame.arch { border-radius: 999px 999px var(--radius) var(--radius); }
.branch { position: absolute; width: 110px; height: 110px; pointer-events: none; filter: drop-shadow(2px 4px 3px rgba(96, 50, 24, 0.22)); }
.flowers { position: absolute; pointer-events: none; overflow: visible; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  color: #fffaf0;
  background: var(--copper-deep);
  border: 1px solid var(--copper-deep);
  border-radius: 999px;
  padding: 1rem 1.9rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.btn:hover { background: #7c3f22; transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgba(96, 50, 24, 0.6); }
.btn span { transition: transform 0.3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-small { padding: 0.6rem 1.2rem; font-size: 0.74rem; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; translate: 0 40px; transition: opacity 1.2s ease, translate 1.3s var(--ease); }
.js [data-reveal].in { opacity: 1; translate: 0 0; }
.js .cards [data-reveal]:nth-child(2), .js .venue-pair [data-reveal]:nth-child(2) { transition-delay: 0.18s; }

/* ---------- Envelope intro ---------- */
.intro { display: none; }
.js .intro {
  display: grid;
  place-items: start center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Tall enough to reach behind a phone browser's toolbars, so no strip of page shows above or below. */
  height: 100vh;
  height: 100lvh;
  z-index: 100;
  overflow: hidden;
  background: #e0cfc3 url(../assets/img/neszmely-szolohegy.jpg) 35% 30% / cover no-repeat;
  transition: opacity 1.2s ease, transform 1.4s ease, visibility 0s linear 1.4s;
}
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 52%, rgba(255, 240, 212, 0.5) 0%, rgba(255, 226, 184, 0) 70%);
  pointer-events: none;
}
/* Phone browsers tint the status bar and toolbar areas from what touches the screen edges:
   these thin strips carry the photo's sky colour at the top and its ground colour at the bottom. */
.intro-edge { position: absolute; left: 0; right: 0; height: 6px; pointer-events: none; }
.intro-edge-top { top: 0; background-color: #e0cfc3; }
.intro-edge-bottom { bottom: 0; background-color: #593b16; }
.intro.leaving { opacity: 0; transform: scale(1.08); visibility: hidden; pointer-events: none; }
.intro-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 100vh;
  min-height: 100svh;
  gap: clamp(1.75rem, 5vh, 3rem);
  padding: var(--gutter);
}
.envelope-wrap { position: relative; width: min(82vw, 500px, 52vh); }
.envelope {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 7 / 5;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.7s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.envelope:hover { transform: translateY(-6px) rotate(-0.6deg); }
.envelope.open { transform: translateY(12%); cursor: default; }
.envelope > span { position: absolute; display: block; }
.env-shadow { inset: 8% 0 -6% 0; background: rgba(96, 50, 24, 0.55); filter: blur(24px); border-radius: 12px; }
.env-back { inset: 0; border-radius: 4px; background: var(--env-dark); }
.env-back::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(180deg, #e6d5b7 0%, #efe1c8 60%); box-shadow: inset 0 10px 18px rgba(96, 50, 24, 0.2); }
.env-card {
  inset: 6% 7% 6%;
  z-index: 2;
  display: grid !important;
  align-content: center;
  justify-items: center;
  gap: 0.35rem;
  padding-bottom: 12%;
  text-align: center;
  background: #fffaf0 var(--grain);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(96, 50, 24, 0.28);
  transition: transform 1.1s var(--ease) 0.9s;
}
.env-card-eyebrow { font-family: var(--font-body); font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; font-size: clamp(0.5rem, 2vw, 0.7rem); color: var(--copper-deep); }
.env-card-names { font-family: var(--font-script); font-size: clamp(2.3rem, 10.2vw, 3.9rem); line-height: 1; color: var(--copper); }
.env-card-names i { font-style: normal; font-size: 0.8em; color: var(--olive); padding-inline: 0.16em; }
.env-card-date { font-family: var(--font-body); font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; font-size: clamp(0.6rem, 2.4vw, 0.85rem); color: var(--olive-deep); }
.env-front {
  inset: 0;
  z-index: 3;
  border-radius: 4px;
  background: var(--grain), linear-gradient(100deg, var(--env) 0%, var(--env-light) 50%, var(--env) 100%);
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
}
.env-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain), linear-gradient(180deg, var(--env-light), #f9f1e2);
  clip-path: polygon(0 100%, 50% 44%, 100% 100%);
  filter: drop-shadow(0 -2px 3px rgba(120, 80, 40, 0.3));
}
.env-flap-shadow { inset: 0 0 auto 0; height: 60%; z-index: 3; filter: blur(5px); opacity: 0.32; transform: translateY(5px); transition: opacity 0.3s ease 0.2s; }
.env-flap-shadow span { position: absolute; inset: 0; background: #6b4424; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.env-flap {
  inset: 0 0 auto 0;
  height: 60%;
  z-index: 4;
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 0.95s cubic-bezier(0.45, 0, 0.3, 1) 0.25s, z-index 0s linear 0.7s;
}
.flap-out, .flap-in { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flap-in { transform: rotateX(180deg); }
.flap-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#flap-out { filter: drop-shadow(0 3px 3px rgba(96, 60, 24, 0.22)); }
.env-seal {
  left: 50%;
  top: 60%;
  z-index: 5;
  width: clamp(74px, 21vw, 108px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-6deg);
  transition: opacity 0.4s ease, transform 0.5s ease;
}
.env-seal svg { width: 100%; height: 100%; overflow: visible; }
.intro-title {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  text-align: center;
  text-shadow: 0 0 5px rgba(255, 246, 230, 0.95), 0 0 16px rgba(255, 246, 230, 0.9), 0 0 30px rgba(255, 246, 230, 0.7);
  transition: opacity 0.4s ease;
  position: relative;
  isolation: isolate;
}
.intro-title::before {
  content: "";
  position: absolute;
  inset: -45% -22%;
  z-index: -1;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 244, 226, 0.82) 0%, rgba(255, 244, 226, 0.5) 45%, rgba(255, 244, 226, 0) 100%);
  pointer-events: none;
}
.intro-title small { font-family: var(--font-body); font-size: clamp(0.72rem, 2.6vw, 0.9rem); font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--olive-deep); }
.intro-title em { font-family: var(--font-script); font-style: normal; font-size: clamp(3.2rem, 13.5vw, 5.4rem); line-height: 0.95; color: var(--copper-deep); }
.intro-title em i { font-style: normal; font-size: 0.8em; color: var(--olive-deep); padding-inline: 0.16em; }
.intro-inner:has(.envelope.open) .intro-title { opacity: 0; }
.intro-hint {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #fff8ea;
  text-shadow: 0 1px 2px rgba(60, 30, 10, 0.75), 0 0 18px rgba(60, 30, 10, 0.6);
  transition: opacity 0.3s ease;
  animation: hint 2.6s ease-in-out infinite;
}
.intro-inner:has(.envelope.open) .intro-hint { opacity: 0; animation: none; }
@keyframes hint { 50% { opacity: 0.45; } }
/* The photo is tucked into the envelope in front of the card and slides out after it. */
.env-photo {
  left: 71%;
  top: 37%;
  z-index: 2;
  width: 25%;
  padding: 1.5% 1.5% 4.5%;
  background: var(--photo-white);
  box-shadow: 0 6px 14px rgba(90, 40, 15, 0.32);
  transition: transform 1.2s var(--ease) 1.15s;
}
.env-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.envelope.open .env-seal { opacity: 0; transform: translate(-50%, -62%) rotate(-6deg) scale(1.12); }
.envelope.open .env-flap-shadow { opacity: 0; }
.envelope.open .env-flap { transform: perspective(1100px) rotateX(180deg); z-index: 1; }
.envelope.open .env-card { transform: translateY(-58%); }
.envelope.open .env-photo { transform: translate(5%, -218%) rotate(8deg); }
/* Olive branches hanging into the frame, drawn in code so they stay sharp at any size */
.canopy {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(540px, 80vw, 1040px);
  pointer-events: none;
  overflow: visible;
  transform-origin: 0 0;
  animation: sway 11s ease-in-out infinite;
}
@keyframes sway { 50% { transform: rotate(0.9deg); } }

/* ---------- Floating menu ---------- */
.topnav {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  max-width: calc(100% - 24px);
  padding: 0.45rem 0.5rem 0.45rem 1.4rem;
  background: rgba(252, 246, 235, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(228, 211, 180, 0.8);
  border-radius: 999px;
  box-shadow: 0 12px 30px -18px rgba(96, 50, 24, 0.6);
  transform: translate(-50%, -160%);
  transition: transform 0.6s var(--ease);
}
.topnav.show { transform: translate(-50%, 0); }
.mono { font-family: var(--font-script); font-size: 1.9rem; line-height: 1; color: var(--copper); text-decoration: none; white-space: nowrap; }
.mono i { font-style: normal; font-size: 0.8em; color: var(--olive); padding-inline: 2px; }
.links { display: flex; gap: clamp(1rem, 2.4vw, 1.9rem); }
.links a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--olive-deep);
  transition: color 0.2s ease;
}
.links a:hover { color: var(--copper); }

/* ---------- The flowing page ---------- */
main {
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
  background:
    radial-gradient(60% 560px at 96% 24%, rgba(246, 199, 155, 0.5), transparent 70%),
    radial-gradient(55% 560px at 0% 42%, rgba(236, 178, 160, 0.32), transparent 70%),
    radial-gradient(60% 560px at 96% 60%, rgba(246, 199, 155, 0.42), transparent 70%),
    linear-gradient(180deg, rgba(251, 244, 230, 0) 0%, rgba(251, 244, 230, 0) 78%, #f6cfa8 90%, var(--rose) 100%),
    var(--grain),
    var(--paper);
}
.vine { position: absolute; inset: 0 auto auto 0; width: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.vine .stem { fill: none; stroke: var(--sage); stroke-width: 1.6; stroke-linecap: round; opacity: 0.75; }
.sprig { transform: scale(0); transform-origin: 0 0; transition: transform 1s cubic-bezier(0.2, 0.9, 0.3, 1.15); }
.sprig.bloom { transform: scale(1); }
main > .hero, main > .section { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(4.5rem, 12vh, 7rem) var(--gutter) clamp(6rem, 16vh, 9rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -20% 0 0 0;
  background: url(../assets/img/neszmely-szolohegy.jpg) 35% 30% / cover no-repeat;
  transform: translateY(var(--py, 0px));
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(251, 244, 230, 0) 0%, rgba(251, 244, 230, 0.7) 60%, var(--paper) 100%);
  pointer-events: none;
}
.hero-card {
  z-index: 1;
  width: min(100%, 520px);
  padding: clamp(3rem, 8vw, 4.5rem) clamp(1.5rem, 6vw, 3.5rem) clamp(3.25rem, 8vw, 4.5rem);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.3rem;
  transition: opacity 1.3s ease 0.1s, translate 1.5s var(--ease) 0.1s;
}
.js:not(.opened) .hero-card { opacity: 0; translate: 0 50px; }
.hero-card .eyebrow { margin: 0; }
.hero-date, .hero-place {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--olive-deep);
  line-height: 1.4;
}
.hero-place small { display: block; font-size: 0.74em; letter-spacing: 0.3em; color: var(--olive); margin-top: 0.35rem; }
.rule { width: 42px; height: 1px; background: var(--copper); }
.invite-flowers { width: 190px; left: -84px; bottom: -40px; transform: rotate(-24deg); }
.badge { position: absolute; right: -44px; bottom: -48px; width: 124px; height: 124px; filter: drop-shadow(0 10px 14px rgba(96, 50, 24, 0.3)); }
.badge-disc { fill: var(--copper-deep); }
.badge-spin { transform-origin: 70px 70px; animation: spin 28s linear infinite; }
.badge text { font-family: var(--font-body); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; fill: #fbe9d2; }
.badge .badge-mono { font-family: var(--font-script); font-size: 38px; font-weight: 400; letter-spacing: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-cue {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--olive-deep);
}
.scroll-cue::after { content: ""; width: 1px; height: 38px; background: var(--olive-deep); transform-origin: top; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 10vw, 8rem); scroll-margin-top: 40px; }
.section.center { text-align: center; }
.section-head { max-width: 820px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
}
.media { position: relative; display: grid; justify-items: center; }
.media .frame { width: 100%; max-width: 440px; aspect-ratio: 4 / 5; }
.media .frame.tall { aspect-ratio: 3 / 4; max-width: 460px; }
.portrait .frame img { object-position: 50% 30%; }

/* Invitation */
.statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--olive-deep);
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.countdown { display: flex; gap: clamp(1.25rem, 3.5vw, 2.75rem); margin-top: clamp(2rem, 5vw, 3.25rem); padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--paper-edge); }
.countdown div { display: grid; gap: 0.35rem; }
.countdown b {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  line-height: 1;
  color: var(--copper);
  font-variant-numeric: lining-nums tabular-nums;
  font-variation-settings: "opsz" 144;
}
.countdown span { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }

/* LEGO guess */
.guess { display: inline-flex; align-items: center; gap: clamp(1rem, 4vw, 2rem); margin-top: clamp(2rem, 5vw, 3rem); }
.guess input {
  width: 3.2ch;
  box-sizing: content-box;
  padding: 0 0.2em 0.1em;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.4rem, 10vw, 5.5rem);
  line-height: 1;
  text-align: center;
  color: var(--copper);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--copper);
  border-radius: 0;
  font-variant-numeric: lining-nums tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.guess input::-webkit-outer-spin-button, .guess input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.guess input::placeholder { color: var(--paper-edge); }
.guess input:focus-visible { outline: none; border-bottom-width: 2px; }
.guess button {
  width: 3rem;
  height: 3rem;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--copper-deep);
  background: rgba(255, 252, 245, 0.7);
  border: 1px solid var(--paper-edge);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}
.guess button:hover { background: var(--copper-deep); color: #fffaf0; transform: scale(1.06); }
.guess-note { margin-top: 1.25rem; font-size: 0.95rem; color: var(--ink-soft); }

/* Program */
.schedule { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; }
.schedule li {
  display: grid;
  grid-template-columns: clamp(4.6rem, 10vw, 6.5rem) 30px minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.4rem);
  padding-block: 1.05rem;
  border-top: 1px solid var(--paper-edge);
}
.s-icon { width: 30px; height: 30px; fill: none; stroke: var(--olive); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.schedule-note { margin-top: 1.25rem; font-size: 0.95rem; color: var(--ink-soft); }
.schedule li:last-child { border-bottom: 1px solid var(--paper-edge); }
.time {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  line-height: 1;
  color: var(--copper);
  font-variant-numeric: lining-nums tabular-nums;
  font-variation-settings: "opsz" 144;
}
.time.soft { font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.45rem); color: var(--sage); }
.schedule p { color: var(--ink-soft); margin-top: 0.3rem; }

/* Venue */
.venue { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
/* The aerial photo is shown whole, at its own proportions. */
.venue .frame.whole img { height: auto; scale: 1; transform: none; }
.venue-card {
  display: grid;
  gap: 0.25rem;
  justify-items: start;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  font-style: normal;
  background: rgba(255, 252, 245, 0.78);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
}
.venue-card .eyebrow { margin-bottom: 0.4rem; }
.venue-card strong { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.15; color: var(--olive-deep); }
.venue-card span { color: var(--ink-soft); }
.venue-card .btn { margin-top: 1.25rem; color: #fffaf0; }
.venue-card .btn span { color: inherit; }
.venue-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(0.9rem, 2vw, 1.5rem); margin-top: clamp(0.9rem, 2vw, 1.5rem); }
.venue-pair .frame { aspect-ratio: 4 / 3; }
.venue-pair .frame img { scale: 1; transition: scale 1.2s var(--ease); }
.venue-pair .frame:hover img { scale: 1.05; }

/* Travel */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.9rem, 2vw, 1.5rem); }
.card {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: rgba(255, 252, 245, 0.72);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.card p { color: var(--ink-soft); margin-top: 0.6rem; }
.icon { width: 34px; height: 34px; margin-bottom: 1.4rem; fill: none; stroke: var(--copper); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* Questions: last on the page, where the background has turned to sunset rose */
#kerdesek { padding-top: 0; }
#kerdesek h2 em, #kerdesek .eyebrow { color: #7c3f22; }
#kerdesek .faq details { border-color: rgba(69, 74, 43, 0.28); }
#kerdesek .faq details p { color: var(--ink); }
#kerdesek .faq summary::after { color: var(--copper-deep); }
.faq details { border-top: 1px solid var(--paper-edge); }
.faq details:last-child { border-bottom: 1px solid var(--paper-edge); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  font-weight: 400;
  color: var(--olive-deep);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-body); font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--copper); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.5rem; max-width: 60ch; color: var(--ink-soft); }

/* Gift */
.gift-icon { width: 56px; color: var(--copper); margin-bottom: 1.5rem; }

/* RSVP */
#visszajelzes { padding-inline: var(--gutter); overflow-x: hidden; overflow-x: clip; padding-bottom: clamp(4rem, 9vw, 6rem); }
.sheet { width: 100%; max-width: 660px; margin-inline: auto; padding: clamp(2.75rem, 7vw, 4.25rem) clamp(1.25rem, 5vw, 3.5rem); }
.sheet h2 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); }
.sheet-flowers { width: 170px; right: -70px; top: -70px; transform: rotate(28deg); }
.rsvp { margin-top: 2.5rem; text-align: left; display: grid; gap: 1.75rem; }
#rsvp-details { display: grid; gap: 1.75rem; }
.field { display: grid; gap: 0.55rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive-deep); padding: 0; }
.field legend { margin-bottom: 0.55rem; }
.field em { font-style: normal; letter-spacing: 0.08em; color: var(--ink-soft); }
.field .hint { font-size: 0.95rem; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="number"], .field textarea, .field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fffcf5;
  border: 1px solid var(--paper-edge);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; }
.field select, .field input[type="number"] { max-width: 8rem; }
.field ::placeholder { color: #a39480; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; border-color: var(--copper); box-shadow: 0 0 0 4px rgba(184, 95, 56, 0.18); }
.choices { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.75rem 1.4rem;
  border: 1px solid #cdb891;
  border-radius: 999px;
  background: #fffcf5;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.choice input:checked + span { background: var(--olive); border-color: var(--olive); color: #fffcf5; }
.choice input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }
.rsvp .btn { justify-self: start; }
.found { display: grid; gap: 0.35rem; justify-items: center; text-align: center; padding-bottom: 0.5rem; }
.found-name { font-family: var(--font-display); font-weight: 300; font-size: 2rem; font-style: italic; color: var(--copper); line-height: 1.15; }
.found-seats { font-size: 0.86rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive-deep); }
.link { font: inherit; font-size: 0.9rem; color: var(--ink-soft); background: none; border: 0; padding: 0.3rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--copper-deep); }
.form-status { min-height: 1.7em; font-weight: 500; }
.form-status.ok { color: var(--olive-deep); }
.form-status.err { color: #9a2c22; }

/* ---------- Footer: dusk and candlelight ---------- */
.footer {
  position: relative;
  margin-top: -1px;
  overflow: hidden;
  text-align: center;
  padding-top: clamp(3.5rem, 10vw, 6.5rem);
  background: linear-gradient(180deg, var(--rose) 0%, #b9706a 22%, #7a4257 50%, #46273f 78%, #2c1a2d 100%);
}
.footer-text { position: relative; z-index: 1; display: grid; gap: 0.6rem; justify-items: center; padding-inline: var(--gutter); }
.footer-line { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-style: italic; color: #fff3e0; }
.names-small { font-size: clamp(4rem, 14vw, 7.6rem); color: #ffe2bd; }
.names-small span { color: #f6cfa8; }
.footer-meta { font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; font-size: 0.74rem; color: #f6d9bf; margin-top: 0.8rem; }
.dusk-scene { position: relative; height: clamp(300px, 46vw, 380px); margin-top: 1rem; }
.candles {
  position: absolute;
  inset: auto 0 34px 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(14px, 4.5vw, 54px);
  padding-inline: var(--gutter);
}
.candle {
  position: relative;
  flex: none;
  width: 30px;
  height: var(--h);
  border-radius: 7px 7px 2px 2px / 9px 9px 2px 2px;
  background: linear-gradient(90deg, #d8c4a2 0%, #fff6e2 38%, #f3e4c8 62%, #c9b28d 100%);
  box-shadow: 0 0 34px 6px rgba(255, 190, 110, 0.16);
}
.candle.taper { width: 11px; border-radius: 5px 5px 1px 1px / 12px 12px 1px 1px; }
.candle.wide { width: 46px; }
.candle::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 7px; margin-left: -1px; background: #4a3528; }
.candle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  width: 11px;
  height: 24px;
  margin-left: -5.5px;
  border-radius: 50% 50% 50% 50% / 68% 68% 32% 32%;
  background: radial-gradient(ellipse at 50% 78%, #fffbe0 0%, #ffe08a 32%, #ffb347 62%, #f08a2b 100%);
  box-shadow: 0 0 16px 6px rgba(255, 196, 110, 0.6), 0 -6px 70px 34px rgba(255, 170, 80, 0.22);
  transform-origin: 50% 100%;
  animation: flicker 3.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-1.5deg); opacity: 1; }
  25% { transform: scale(1.04, 0.94) rotate(2deg); opacity: 0.94; }
  50% { transform: scale(0.96, 1.07) rotate(-2.5deg); opacity: 1; }
  75% { transform: scale(1.03, 0.97) rotate(1.5deg); opacity: 0.9; }
}
.meadow { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

/* ---------- Narrow screens ---------- */
@media (max-width: 820px) {
  .links { display: none; }
  .topnav { padding-left: 1.2rem; gap: 1.2rem; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo .copy { order: 1; }
  .duo .media { order: 2; }
  #meghivo .media { order: 0; }
  .media .frame, .media .frame.tall { max-width: 360px; }
  .branch { width: 84px; height: 84px; }
  .invite-flowers { width: 116px; left: -44px; bottom: -44px; }
  .badge { width: 96px; height: 96px; right: -10px; bottom: -44px; }
  .sheet-flowers { width: 110px; right: -6px; top: -62px; }
  .venue { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .rsvp .btn { justify-self: stretch; justify-content: center; }
  .candle:nth-child(n+8) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro-hint, .canopy, .candle::after, .badge-spin, .scroll-cue::after { animation: none; }
  .envelope, .env-card, .env-flap, .env-seal, .env-photo, .env-flap-shadow, .intro-title, .sprig, .hero-card, .topnav { transition: none; }
  .js [data-reveal] { opacity: 1; translate: 0 0; transition: none; }
  .js .intro { transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
  .intro.leaving { transform: none; }
}
