/* ============================================================
   Cseri & Samsi – ceruza és vízfesték
   Letisztult, sok fehér papír, meleg földszínek.
   ============================================================ */

/* ---------- Betűtípusok (helyben tárolva) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/cormorant-garamond-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/cormorant-garamond-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url(../fonts/cormorant-garamond-latin-300-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url(../fonts/cormorant-garamond-latin-ext-300-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/jost-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/jost-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/jost-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/jost-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/jost-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/jost-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* ---------- Színek, alapok ---------- */
:root {
  --paper: #f8f6f2;
  --ink: #26201c;
  --ink-soft: #6b605a;
  --ink-faint: #a69b93;
  --sienna: #a2624e;
  --rose: #c99a88;
  --taupe: #9a8d84;
  --stone: #cbc1b8;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --nav-h: 68px;
  --pencil-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 6' preserveAspectRatio='none'%3E%3Cpath d='M1 3.4 C 70 2.2, 150 4.2, 230 3 S 340 2.4, 399 3.6' fill='none' stroke='%2326201c' stroke-opacity='.75' stroke-width='.9' stroke-linecap='round'/%3E%3Cpath d='M12 4.2 C 90 3.4, 180 4.6, 260 3.8' fill='none' stroke='%2326201c' stroke-opacity='.25' stroke-width='.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, .96rem + .2vw, 1.1rem);
  line-height: 1.75;
  letter-spacing: .01em;
  background-color: var(--paper);
  /* akvarellpapír: halvány, egyenetlen szemcse */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .26  0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23p)'/%3E%3C/svg%3E");
  overflow-x: hidden;
}
html.loading body { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: .5px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.08; margin: 0 0 .4em; letter-spacing: .005em; }
em { font-style: italic; }
p { margin: 0 0 1em; }
b { font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid var(--sienna); outline-offset: 5px; }
::selection { background: rgba(201, 154, 136, .35); }

/* ritkított nagybetűs címke – mint az aláírás a referencián */
.label, .signature {
  font-family: var(--sans); font-weight: 400; font-size: .7rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 1.1rem;
}
.signature { letter-spacing: .4em; font-size: .66rem; color: var(--ink); }

/* ---------- Rajzrétegek ---------- */
[data-sketch] { position: relative; isolation: isolate; }
.sk-svg { position: absolute; pointer-events: none; overflow: visible; z-index: -1; left: 0; top: 0; }
.doodle { display: inline-block; width: 64px; height: 64px; vertical-align: middle; }
.doodle svg { width: 100%; height: 100%; overflow: visible; display: block; }

/* festmények: előbb ceruzavázlat, aztán festék */
.painting { display: block; aspect-ratio: 880 / 1210; position: relative; }
.painting[data-w] { aspect-ratio: auto; }
.painting svg { width: 100%; height: 100%; display: block; overflow: visible; }
.painting .pt-lines { transition: opacity 1.2s ease; }
.painting.done .pt-lines { opacity: 0; }

/* „kézzel írás” – balról jobbra előtűnő szöveg */
html.js .write { clip-path: inset(-25% 100% -25% -3%); }
html.js .write.is-written { animation: write-in var(--write-dur, 1.3s) cubic-bezier(.5, .1, .3, 1) forwards; }
html.js .write.written { clip-path: none; animation: none; }
@keyframes write-in { to { clip-path: inset(-25% -3% -25% -3%); } }

/* ---------- Betöltő ---------- */
#loader { display: none; }
html.js #loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background-color: var(--paper);
  transition: opacity .9s ease, visibility .9s;
}
#loader.leave { opacity: 0; visibility: hidden; }
#loader.gone { display: none !important; }
.loader-inner { text-align: center; padding: 16px; }
#loader-art { width: min(58vw, 250px); margin: 0 auto; }
.loader-text { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink-soft); margin: 1.4rem 0 .6rem; min-height: 2rem; }
.loader-inner .signature { margin: 0; }
.dots i { font-style: normal; animation: dot 1.4s infinite; opacity: 0; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
#loader.done .dots { visibility: hidden; }
@keyframes dot { 30%, 70% { opacity: 1; } }

/* ---------- Navigáció ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 clamp(16px, 5vw, 64px);
  background: rgba(248, 246, 242, .93);
  backdrop-filter: blur(6px);
}
.nav::after { content: ""; position: absolute; left: clamp(16px, 5vw, 64px); right: clamp(16px, 5vw, 64px); bottom: 0; height: 6px; background: var(--pencil-line) center / 100% 100% no-repeat; opacity: .6; }
.nav-logo { font-family: var(--serif); font-weight: 300; font-size: 1.7rem; text-decoration: none; letter-spacing: .06em; }
.nav-logo em { color: var(--sienna); }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.9rem, 2vw, 2rem); }
.nav-links a {
  font-family: var(--sans); font-weight: 400; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft); padding: .3rem 0; position: relative; transition: color .3s;
}
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 5px; background: var(--pencil-line) left center / 100% 100% no-repeat; clip-path: inset(0 100% 0 0); transition: clip-path .6s cubic-bezier(.5, .1, .3, 1); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { clip-path: inset(0 0 0 0); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; }
  .burger { display: grid; gap: 7px; }
  .burger i { display: block; width: 26px; height: 1px; background: var(--ink); transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(4px) rotate(35deg); }
  .nav-toggle[aria-expanded="true"] .burger i:nth-child(2) { transform: translateY(-4px) rotate(-35deg); }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 1rem clamp(16px, 5vw, 64px) 1.6rem;
    background: var(--paper); box-shadow: 0 14px 30px -24px rgba(38, 32, 28, .5);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .3s, transform .3s, visibility .3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { display: block; padding: .8rem 0; font-size: .76rem; }
}

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--sans); font-weight: 400; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; line-height: 1;
  color: var(--ink); text-decoration: none; cursor: pointer;
  padding: 1.05rem 1.9rem; background: none; border: 0;
  transition: letter-spacing .4s ease, color .3s;
}
.btn:hover { letter-spacing: .36em; }
.btn-ghost { padding: .8rem .2rem; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: .2rem 0 2rem; }
.btn[disabled] { cursor: progress; }

/* ---------- Nyitókép ---------- */
.hero {
  position: relative; min-height: calc(100svh - var(--nav-h));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(1rem, 4vw, 4rem);
  max-width: 1240px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) clamp(16px, 5vw, 64px) 4rem;
}
.hero-text { position: relative; z-index: 1; }
.hero-title { font-size: clamp(3.6rem, 9vw, 7.6rem); font-weight: 300; margin: 0 0 1.2rem; line-height: .95; --write-dur: 1.8s; }
.hero-title em { color: var(--sienna); font-weight: 300; padding: 0 .04em; }
.hero-names { font-family: var(--sans); font-size: .76rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 2rem; }
.hero-names span { margin: 0 .5em; }
.hero-date { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 2.2rem; }
.hero-date > span:first-child { padding: 0 .25em; }
.weekday { font-family: var(--sans); font-style: normal; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); margin-left: .6rem; vertical-align: middle; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.8rem; margin-top: 2.4rem; }
.hero-figure { margin: 0; position: relative; justify-self: center; width: min(100%, 640px); aspect-ratio: 1.02 / 1; }
.hero-figure .p-cseri { position: absolute; left: 0; bottom: 0; width: 62%; z-index: 2; }
.hero-figure .p-samsi { position: absolute; right: 0; top: 0; width: 56%; z-index: 1; }
.hero-figure .signature { position: absolute; right: 2%; bottom: 1%; margin: 0; z-index: 3; }
.scroll-hint { position: absolute; left: 50%; bottom: .6rem; transform: translateX(-50%); opacity: .7; animation: bob 2.6s ease-in-out infinite; }
.scroll-hint .doodle { width: 46px; height: 46px; }
@keyframes bob { 50% { transform: translate(-50%, 7px); } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 1rem; }
  .hero-figure { order: -1; width: min(92vw, 460px); }
  .hero-cta, .countdown { justify-content: center; }
  .scroll-hint { display: none; }
}

/* visszaszámláló */
.countdown { display: flex; gap: 0; flex-wrap: wrap; }
.cd-box { min-width: 5.2rem; padding: 0 1.2rem; text-align: center; position: relative; }
.cd-box:first-child { padding-left: 0; }
.cd-box + .cd-box::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 22%; width: 1px; background: var(--ink-faint); opacity: .6; transform: rotate(4deg); }
.cd-box b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 5vw, 3.3rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.cd-box small { font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); }
.cd-box b.tick { animation: tick .6s ease; }
@keyframes tick { 30% { opacity: .35; transform: translateY(-3px); } }
@media (max-width: 860px) { .cd-box:first-child { padding-left: 1.2rem; } }
@media (max-width: 420px) { .cd-box { min-width: 4.2rem; padding: 0 .7rem; } .cd-box:first-child { padding-left: .7rem; } }
.countdown-done { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--sienna); }

/* ---------- Szekciók ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: clamp(4.5rem, 11vw, 8rem) clamp(16px, 5vw, 64px) clamp(1rem, 3vw, 2rem); text-align: center; }
.section-title { font-size: clamp(2.5rem, 6.4vw, 4.4rem); margin-bottom: .7em; }
.section-title em { padding: 0 .12em; }
.section-lead { max-width: 36rem; margin: -1.2rem auto 3rem; color: var(--ink-soft); font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.5; }
.hl { display: inline-block; }
.big { font-family: var(--serif); font-weight: 400; font-size: 1.65rem; line-height: 1.2; margin-bottom: .7rem; }
.big small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); margin-top: .45rem; }

/* kártyák – keret nélkül, csak rajz és szöveg */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3.5rem); margin-top: 1rem; }
.card { padding: 0 .5rem; }
.card h3 { font-family: var(--sans); font-weight: 400; font-size: .7rem; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-soft); margin: .4rem 0 .9rem; }
.card-icon { width: 170px; height: 170px; margin-bottom: .2rem; }
.card p:not(.big) { color: var(--ink-soft); max-width: 22rem; margin-left: auto; margin-right: auto; }

/* program */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; position: relative; text-align: left; }
.timeline::before {
  content: ""; position: absolute; left: 47px; top: 30px; bottom: 30px; width: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 400' preserveAspectRatio='none'%3E%3Cpath d='M3 1 C 2 80, 4 160, 2.6 240 S 3.6 340, 3 399' fill='none' stroke='%2326201c' stroke-opacity='.45' stroke-width='.8'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.tl-item { display: grid; grid-template-columns: 100px 1fr; gap: 1.4rem; align-items: center; margin-bottom: 1.8rem; position: relative; }
.tl-icon { width: 96px; height: 96px; background: radial-gradient(circle, var(--paper) 58%, rgba(248, 246, 242, 0) 72%); }
.painting.tl-icon { padding: 6px; }
.tl-item h3 { font-size: 1.75rem; margin: .1rem 0 .15rem; }
.tl-item p { margin: 0; color: var(--ink-soft); }
.tl-time { font-family: var(--sans); font-weight: 400; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--sienna); }
html.js .tl-item { opacity: 0; transform: translateY(12px); transition: opacity .9s ease, transform .9s ease; }
html.js .tl-item.in { opacity: 1; transform: none; }

/* rólunk */
.duo { display: flex; align-items: flex-end; justify-content: center; gap: clamp(2rem, 8vw, 7rem); flex-wrap: wrap; margin: 1rem 0 4rem; }
.person { margin: 0; text-align: center; }
.person-art { width: 230px; }
.person figcaption b { display: block; font-family: var(--serif); font-weight: 300; font-size: 2.6rem; line-height: 1.1; }
.person figcaption span { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 560px) { .person-art { width: 40vw; } .duo { gap: 1.2rem; } }

.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 3rem clamp(2rem, 4vw, 3.5rem); text-align: left; }
.note h3 { font-size: 1.8rem; margin: .8rem 0 .5rem; }
.note p { margin: 0; color: var(--ink-soft); }
.note-num { font-family: var(--serif); font-style: italic; font-size: 1.9rem; display: inline-block; padding: 0 .5rem; line-height: 1.2; }

/* helyszín */
.place { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; text-align: left; }
@media (max-width: 860px) { .place { grid-template-columns: 1fr; } }
.map-wrap { aspect-ratio: 4 / 3.2; padding: 0; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) sepia(.32) contrast(.92) brightness(1.04); opacity: 0; transition: opacity 1.2s ease; }
.map-wrap.loaded iframe { opacity: .92; }
.map-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); z-index: 1; transition: opacity .6s; }
.map-loading svg { width: 150px; height: 150px; overflow: visible; }
.map-wrap.loaded .map-loading { opacity: 0; pointer-events: none; }
.place-text h3 { font-size: 1.9rem; display: flex; align-items: center; gap: .7rem; margin-top: .4rem; }
.inline-icon { width: 64px; height: 64px; flex: none; }
.place-text p { color: var(--ink-soft); }
.tip { padding: 1.4rem 1.6rem; margin: 1.6rem 0; color: var(--ink) !important; }

/* kérdések */
.faq { max-width: 760px; margin: 0 auto; text-align: left; }
.faq-item { padding: .2rem 0; }
.faq details { padding: .2rem 0 .3rem; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.6rem; font-weight: 400; padding: 1rem 2.4rem 1rem 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: var(--sienna); transition: transform .4s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 1.3rem; color: var(--ink-soft); max-width: 40rem; }
.faq details[open] p { animation: fade-in .7s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Visszajelzés ---------- */
.rsvp { max-width: 640px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.2rem) clamp(1.2rem, 5vw, 3.2rem); text-align: left; }
.field { margin: 0 0 1.7rem; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-family: var(--sans); font-weight: 400; font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .3rem; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="number"], .field textarea {
  width: 100%; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); background: transparent; border: 0; border-radius: 0; padding: .35rem 0 .45rem;
  background-image: var(--pencil-line); background-repeat: no-repeat; background-position: left bottom; background-size: 100% 6px;
}
.field textarea { resize: vertical; min-height: 6rem; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; background-color: rgba(201, 154, 136, .1); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); font-style: italic; }
.field-row { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; }
.field-row label { margin: 0; }
.field-row input[type="number"] { width: 5rem; text-align: center; }
.field.invalid input, .field.invalid textarea { background-color: rgba(162, 98, 78, .1); }
.field .err { display: block; color: var(--sienna); font-size: 1rem; margin-top: .3rem; font-family: var(--serif); font-style: italic; }

.choice { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.choice legend { width: 100%; margin-bottom: .6rem; }
.pick { display: inline-flex; align-items: center; cursor: pointer; padding: .7rem 1.2rem; font-family: var(--serif); font-size: 1.25rem; user-select: none; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick:has(input:focus-visible) { outline: 1px solid var(--sienna); outline-offset: 2px; }
.if-yes { overflow: hidden; transition: max-height .6s ease, opacity .5s ease; max-height: 900px; }
.if-yes.hide { max-height: 0; opacity: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-foot { display: flex; align-items: center; gap: 1rem 1.6rem; flex-wrap: wrap; margin-top: 2.2rem; }
.form-msg { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.form-msg.bad { color: var(--sienna); }
.btn .btn-sketching { display: none; width: 34px; height: 34px; overflow: visible; }
.btn.sending .btn-sketching { display: block; }
.btn.sending .btn-label::after { content: "…"; }

.rsvp-thanks { max-width: 560px; margin: 0 auto; text-align: center; padding: 1rem; }
.rsvp-thanks h3 { font-size: 2.8rem; }
.rsvp-thanks p { color: var(--ink-soft); }
.thanks-art { width: 230px; height: 225px; margin: 0 auto .4rem; }
.confetti { position: fixed; top: 0; pointer-events: none; z-index: 90; border-radius: 80% 10% 70% 20% / 70% 20% 80% 30%; opacity: .85; filter: url(#wc); }

/* ---------- Fotók ---------- */
.gallery-empty { max-width: 32rem; margin: 0 auto; }
.gallery-empty p:not(.big) { color: var(--ink-soft); }
.empty-art { width: 200px; height: 200px; margin-bottom: .6rem; }
.gallery { columns: 3 260px; column-gap: 2rem; text-align: left; }
.polaroid { break-inside: avoid; margin: 0 0 2.2rem; padding: 0; background: none; cursor: zoom-in; display: block; width: 100%; border: 0; font: inherit; color: inherit; text-align: left; }
.ph-frame { position: relative; display: block; aspect-ratio: var(--ar, 4 / 3); overflow: hidden; background: rgba(203, 193, 184, .18); }
.ph-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: grayscale(1) sepia(.4) contrast(1.15) brightness(1.08);
  transition: opacity .9s ease, filter 1.8s ease .3s, transform 1.2s ease;
}
.polaroid.loaded .ph-frame img { opacity: 1; filter: none; }
.polaroid:hover .ph-frame img { transform: scale(1.025); }
.ph-sketch { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .8s ease .4s; }
.ph-sketch svg { width: 56%; height: 56%; overflow: visible; }
.polaroid.loaded .ph-sketch { opacity: 0; }
.polaroid figcaption { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); padding-top: .6rem; display: block; }

.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: auto 1fr auto; align-items: center; background: rgba(248, 246, 242, .98); padding: 16px; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: grid; place-items: center; height: calc(100vh - 32px); height: calc(100svh - 32px); position: relative; }
.lb-figure img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .5s; }
.lb-figure img.loading { opacity: 0; }
.lb-loading { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.lb-loading svg { width: 150px; height: 150px; overflow: visible; }
.lb-btn { font-family: var(--serif); font-weight: 300; font-size: 2.6rem; background: none; border: 0; cursor: pointer; color: var(--ink); width: 56px; height: 56px; line-height: 1; }
.lb-close { position: absolute; top: 10px; right: 14px; font-size: 1.6rem; z-index: 2; font-family: var(--sans); }
@media (max-width: 600px) { .lightbox { grid-template-columns: 1fr; } .lb-prev, .lb-next { position: absolute; bottom: 12px; z-index: 2; } .lb-prev { left: 20px; } .lb-next { right: 20px; } }

/* ---------- Lábléc ---------- */
.footer { text-align: center; padding: 6rem 16px 3.5rem; }
.footer-art { width: 170px; height: 122px; margin: 0 auto; }
.footer-names { font-family: var(--serif); font-weight: 300; font-size: 2.6rem; margin: .4rem 0 .6rem; }
.footer-names em { color: var(--sienna); }
.footer .label { margin-bottom: .4rem; }

/* ---------- Kevesebb mozgás ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html.js .write { clip-path: none; }
  html.js .tl-item { opacity: 1; transform: none; }
}
.person .painting { margin: 0 auto .6rem; }

/* ---------- Elválasztó virágfüzérek ---------- */
.divider { max-width: 980px; margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; padding: 0 clamp(16px, 5vw, 64px); }
.painting.fuzer { width: 100%; aspect-ratio: 1400 / 330; }
.painting svg, .doodle svg { pointer-events: none; }

/* ---------- Gumikacsa-vadászat ---------- */
.kacsa-host { position: relative; isolation: isolate; }
.doodle.kacsa-host { display: inline-block; }
.kacsa {
  position: absolute; z-index: -1; padding: 0; border: 0; background: none; cursor: pointer;
  opacity: 0; transition: transform .55s cubic-bezier(.3, 1.6, .5, 1), opacity .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.kacsa-in { display: block; width: 100%; height: 100%; }
.kacsa-in img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; user-select: none; }
.k-left { transform: translateX(55%) rotate(18deg); }
.k-right { transform: translateX(-55%) rotate(-18deg); }
.k-top { transform: translateY(60%); }
.kacsa.kint { opacity: 1; transform: none; animation: kacsa-ring 1.4s ease-in-out .5s infinite; }
.kacsa.elkapva { opacity: 0; transform: scale(1.5) rotate(25deg); transition: transform .45s ease, opacity .45s ease; animation: none; }
.kacsa-arany .kacsa-in img { filter: sepia(1) saturate(4) hue-rotate(-12deg) brightness(1.05) drop-shadow(0 0 7px rgba(246, 201, 67, .9)); }
.kacsa:focus-visible { outline: 2px dashed var(--sienna); }
@keyframes kacsa-ring { 50% { rotate: 8deg; } }
.kacsa-pont {
  position: fixed; z-index: 95; pointer-events: none; transform: translate(-50%, -100%);
  font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--sienna); white-space: nowrap;
  animation: kacsa-fel 1.6s ease-out forwards;
}
@keyframes kacsa-fel { to { transform: translate(-50%, -260%); opacity: 0; } }

.kacsa-szamlalo {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .9rem .3rem .4rem; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(248, 246, 242, .94); box-shadow: 0 4px 18px -8px rgba(38, 32, 28, .45);
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink);
}
.kacsa-szamlalo[hidden] { display: none; }
.kacsa-ikon { width: 44px; height: 38px; display: block; }
.kacsa-ikon img { width: 100%; height: 100%; object-fit: contain; display: block; }

#kacsak .kacsa-art { width: 210px; height: auto; margin: -.5rem auto 1rem; }
.kacsa-top { list-style: none; padding: 0; margin: 0 auto 1.6rem; max-width: 520px; display: grid; gap: .2rem; }
.kacsa-hely { display: grid; grid-template-columns: 3rem 1fr auto; align-items: baseline; gap: .8rem; padding: .8rem .4rem; text-align: left;
  background: var(--pencil-line) left bottom / 100% 6px no-repeat; }
.kacsa-helyezes { font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: var(--sienna); }
.kacsa-hely.h1 .kacsa-helyezes { color: #c99a14; }
.kacsa-nev { font-family: var(--serif); font-size: 1.5rem; }
.kacsa-nev.ures { color: var(--ink-faint); font-style: italic; }
.kacsa-pontok { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }
.kacsa-en { font-family: var(--serif); font-size: 1.25rem; margin-bottom: .3rem; }
.kacsa-megjegyzes { color: var(--ink-soft); font-size: .95rem; }

.kacsa-dlg { border: 0; padding: 0; background: transparent; max-width: min(92vw, 440px); }
.kacsa-dlg::backdrop { background: rgba(248, 246, 242, .82); backdrop-filter: blur(3px); }
.kacsa-dlg form { background: var(--paper); padding: 2rem 1.8rem 1.6rem; box-shadow: 0 20px 50px -24px rgba(38, 32, 28, .55); text-align: center; }
.kacsa-dlg h3 { font-size: 2rem; }
.kacsa-dlg p:not(.label) { color: var(--ink-soft); }
.kacsa-dlg input { width: 100%; font-family: var(--serif); font-size: 1.4rem; text-align: center; border: 0; padding: .4rem 0; background: var(--pencil-line) left bottom / 100% 6px no-repeat; color: var(--ink); }
.kacsa-dlg input:focus { outline: none; background-color: rgba(246, 201, 67, .15); }
.kacsa-dlg-gombok { display: flex; justify-content: center; gap: .6rem 1.4rem; margin-top: 1.4rem; flex-wrap: wrap; }

/* ---------- Színes illusztrációk elhelyezése ---------- */
.painting.card-icon { height: 170px; width: auto; margin: 0 auto .2rem; }
.painting.tl-icon[style] { aspect-ratio: 1 / 1 !important; }
.painting.rsvp-art { width: min(60vw, 230px); height: auto; margin: -1.4rem auto 1.6rem; }
.painting.faq-art { float: right; width: 130px; height: auto; margin: 0 0 .6rem 1rem; }
.faq details::after { content: ""; display: block; clear: both; }
.painting.empty-art { width: min(64vw, 240px); height: auto; margin: 0 auto .6rem; }
.painting.holloko-art { width: min(100%, 360px); height: auto; margin: 2.2rem auto 0; }
.painting.note-art { width: min(100%, 210px); height: auto; margin: 0 0 .6rem -6px; }
.place > .map-wrap { grid-column: 1; grid-row: 1; }
.place > .place-text { grid-column: 2; grid-row: 1 / span 2; }
.place > .holloko-art { grid-column: 1; grid-row: 2; margin-top: 0; }
@media (max-width: 860px) {
  .place > .map-wrap, .place > .place-text, .place > .holloko-art { grid-column: 1; grid-row: auto; }
  .place > .holloko-art { margin-top: 1rem; }
}
.painting.note-art { height: 190px; width: auto; max-width: 100%; }
.note:not(:has(.note-art))::before { content: ""; display: block; height: 196px; }
.painting.map-art { width: 170px; height: auto; margin-bottom: .6rem; }
.painting.inline-icon { width: 64px; height: 64px; }

/* a lap szélén kilógó festékfoltok ne okozzanak vízszintes görgetést (a ragadós menü marad) */
main, .footer { overflow-x: clip; }
@supports not (overflow: clip) { main, .footer { overflow-x: hidden; } }

/* nagyobb képernyőn a program festményei is nagyobbak */
@media (min-width: 861px) {
  .timeline { max-width: 700px; }
  .timeline::before { left: 62px; }
  .tl-item { grid-template-columns: 128px 1fr; }
  .tl-icon { width: 124px; height: 124px; }
}
