/* ═══════════════════════════════════════════════════
   Řekni jo — www.reknijo.cz
   Vanilla CSS3, žádný preprocessor, žádný framework
   ═══════════════════════════════════════════════════ */

/* ---------- Tokeny ---------- */
:root {
  --ink:        #3E2A2A;   /* tmavá slivka — text, 12.6:1 */
  --ink-soft:   #6E514C;   /* stlmený text, 6.7:1 */
  --paper:      #FCF7F4;   /* krém s nádychom ruže */
  --paper-alt:  #F6ECE7;   /* teplejší podklad striedavých sekcií */
  --rose:       #E3B7B7;   /* ozdoby — nikdy text (1.7:1) */
  --gold:       #C9A227;   /* vlásočnice — tiež nie text (2.3:1) */
  --terra:      #A03A50;   /* vínová — tlačidlá, zvýraznenie */
  --terra-deep: #7A2536;   /* tmavá vínová — hover */
  --accent-text:#8C2F42;   /* burgundy — akcent na text, 7.6:1 */
  --line:       rgba(62, 42, 42, 0.13);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-quote:   "Cormorant Garamond", "Crimson Text", Georgia, serif;

  --measure: 38rem;         /* šířka textového sloupce */
  --pad-x: clamp(1.25rem, 5vw, 4rem);
}

.theme-dark {
  --ink:        #F3E9E6;
  --ink-soft:   #C9AFAB;
  --paper:      #1E1416;
  --paper-alt:  #271A1D;
  --rose:       #E8B9BE;
  --gold:       #D9BC63;
  --terra:      #EDA9B4;
  --terra-deep: #E8B9BE;
  --accent-text:#EDA9B4;
  --line:       rgba(243, 233, 230, 0.16);
}

/* ---------- Reset a základ ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-text); }
a:hover { color: var(--terra-deep); }

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

/* ---------- Reveal animace (vanilla JS + IntersectionObserver) ---------- */
/* Skrytie pred animáciou platí LEN keď beží JavaScript (html.js).
   Bez toho by pri akejkoľvek chybe skriptu zostala celá stránka
   priehľadná — presne to bolo vidieť na screenshotoch. */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Přepínač tmavého režimu ---------- */
.theme-toggle {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 50;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  transition: background-color 0.4s ease, transform 0.2s ease;
}
.theme-toggle:hover { transform: scale(1.08); }
.theme-toggle__icon {
  display: block;
  width: 1rem;
  height: 1rem;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--terra);
  box-shadow: inset -3px -2px 0 0 var(--paper);
  transition: box-shadow 0.4s ease;
}
.theme-dark .theme-toggle__icon { box-shadow: inset 0 0 0 0 var(--paper); }

/* ---------- 1. Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem var(--pad-x);
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(212, 165, 165, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(198, 124, 108, 0.16), transparent 70%),
    var(--paper);
}

.hero__eyebrow {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 7.5vw, 5.5rem);
  line-height: 1.12;
  max-width: 16ch;
  letter-spacing: -0.01em;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-text);
}

.hero__dedication {
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--ink-soft);
}

.hero__scroll {
  margin-top: 4rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}
.hero__scroll-line {
  width: 1px;
  height: 3.5rem;
  background: var(--rose);
  animation: scroll-hint 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-hint {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

/* ---------- Kapitoly ---------- */
.chapter {
  padding: clamp(4rem, 10vw, 8rem) var(--pad-x);
}
.chapter--alt { background: var(--paper-alt); }

.chapter__head { margin-bottom: 3rem; }

.chapter__number {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent-text);
  margin-bottom: 0.5rem;
}

.chapter__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  line-height: 1.15;
}

.chapter__intro {
  max-width: var(--measure);
  font-size: 1.15rem;
  margin-bottom: 4rem;
}

/* ---------- Timeline s linkou příběhu (signature prvek) ---------- */
.timeline {
  list-style: none;
  position: relative;
  max-width: 46rem;
  padding-left: 2.25rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--rose), var(--terra));
}

.timeline__item {
  position: relative;
  padding-bottom: 3.5rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.25rem;
  top: 0.55rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--terra);
  transform: translateX(0.05rem);
}
.chapter--alt .timeline__item::before { background: var(--paper-alt); }

.timeline__date {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.timeline__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.timeline__item p:not(.timeline__date) { max-width: var(--measure); }

.timeline__item--photo::before { display: none; }

/* ---------- Fotografie (parallax) ---------- */
.photo {
  max-width: 30rem;
  will-change: transform;
}

.photo__frame {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 18px 40px -18px rgba(74, 58, 52, 0.35);
}

/* Zástupné gradienty — nahradí se skutečnými fotkami klienta */
.photo__frame--a { background: linear-gradient(135deg, #E3B7B7 0%, #A03A50 100%); }
.photo__frame--b { background: linear-gradient(135deg, #3E2A2A 0%, #7A2536 100%); }
.photo__frame--c { background: linear-gradient(135deg, #A03A50 0%, #F0CFC6 100%); }
.photo__frame--d { background: linear-gradient(135deg, #7A2536 0%, #E3B7B7 100%); }

.photo__placeholder {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 1rem;
}

.photo figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Fotky v timeline uhýbají doprava — asymetrie dle briefu */
.timeline__item--photo .photo { margin-left: auto; }

/* ---------- Kapitola 2: sny a citáty ---------- */
.dreams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  align-items: start;
  max-width: 64rem;
}

.dreams__quotes { display: flex; flex-direction: column; gap: 2.5rem; }

.dreams__photo--second { margin-top: 2rem; }

.quote {
  border-left: 2px solid var(--rose);
  padding-left: 1.4rem;
}
.quote p {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.5;
}
.quote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Kapitola 3: co se změní ---------- */
.change {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 64rem;
  margin-bottom: 4rem;
}

.change__heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--accent-text);
}

.vow {
  max-width: var(--measure);
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}
.vow__lead {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.vow__text {
  font-family: var(--font-quote);
  font-size: 1.25rem;
  line-height: 1.65;
}

/* ---------- 5. Otázka ---------- */
.question {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem var(--pad-x);
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(212, 165, 165, 0.22), transparent 75%),
    var(--paper);
}

.question__number { margin-bottom: 1.5rem; }

/* Čistá CSS animace textu — bez JS, dle briefu */
.question__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: question-in 1.6s ease 0.3s forwards;
}
@keyframes question-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.question__buttons {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Tlačítka ---------- */
.btn {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: 1.5px solid var(--terra);
  background: transparent;
  color: var(--accent-text);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
.btn:hover { background: rgba(198, 124, 108, 0.12); transform: translateY(-2px); }

.btn--primary {
  background: var(--terra);
  color: #FFF;
}
.btn--primary:hover { background: var(--terra-deep); color: #FFF; }

/* ---------- Uhýbající tlačítko Ne ---------- */
.btn--ne {
  border-color: var(--ink-soft);
  color: var(--ink-soft);
  position: relative;
  transition: transform 0.16s ease-out, border-color 0.25s ease;
  touch-action: none;          /* mobil: žádný tap, žádný scroll přes tlačítko */
  user-select: none;
  -webkit-user-select: none;
}
.btn--ne:hover { background: transparent; }

/* ---------- 6. Potvrzení + formulář ---------- */
.confirm {
  padding: clamp(4rem, 8vw, 6rem) var(--pad-x);
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}

.confirm__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.confirm__note { color: var(--ink-soft); margin-bottom: 2.2rem; }
.confirm__note strong { color: var(--accent-text); }

.form { display: flex; flex-direction: column; gap: 0.9rem; text-align: left; }

.form__label { font-weight: 600; font-size: 0.95rem; }

.form__input {
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.25s ease;
}
.form__input:focus { border-color: var(--accent-text); outline: none; }

/* Honeypot — schovaný lidem, viditelný botům */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit { margin-top: 0.6rem; }

.form__status { min-height: 1.4rem; font-size: 0.95rem; color: var(--terra-deep); }

/* ---------- 7. Oslava ---------- */
.celebrate {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem var(--pad-x);
  background: var(--paper-alt);
}

.celebrate__inner { animation: celebrate-in 0.9s ease forwards; }
@keyframes celebrate-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.celebrate__mark {
  font-size: 2.4rem;
  color: var(--accent-text);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%       { transform: scale(1.15); opacity: 1; }
}

.celebrate__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  margin: 0.8rem 0 1rem;
}

.celebrate__text {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* ---------- Patička ---------- */
.footer {
  padding: 2.5rem var(--pad-x);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Responzivita ---------- */
@media (max-width: 720px) {
  .dreams,
  .change { grid-template-columns: 1fr; }

  .dreams__photo--second { margin-top: 0; }

  .timeline { padding-left: 1.8rem; }
  .timeline__item::before { left: -1.8rem; }

  .timeline__item--photo .photo { margin-left: 0; }
}

/* ---------- Omezený pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll-line,
  .celebrate__mark { animation: none; }

  .question__text { animation-duration: 0.01s; animation-delay: 0s; }

  [data-parallax] { transform: none !important; }
}

/* ---------- Referenční lišta (zveřejněné příběhy) ---------- */
.refbar {
  background: var(--terra);
  color: #FFF;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
  padding: 0.55rem var(--pad-x);
}
.refbar a { color: #FFF; text-decoration: underline; white-space: nowrap; }
.refbar strong { font-weight: 600; }

/* ---------- Svatební sekce (reference) ---------- */
.wedding {
  padding: clamp(4rem, 8vw, 6rem) var(--pad-x);
  text-align: center;
  border-top: 1px solid var(--line);
}
.wedding__number {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent-text);
  margin-bottom: 0.5rem;
}
.wedding__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
}
.wedding__meta {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.1rem;
}
.wedding .btn { margin-top: 1.8rem; }

/* ---------- Lightbox / carousel ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(30, 22, 19, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox__stage {
  position: relative;
  width: min(52rem, 92vw);
}
.lightbox__slide {
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}
.lightbox__slide.is-active { display: flex; }
.lightbox__slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.lightbox__slide-label {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
}

.lightbox__caption {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
}
.lightbox__count { color: rgba(255,255,255,0.55); font-family: var(--font-body); font-size: 0.85rem; margin-left: 0.6rem; }

.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.25);
  color: #FFF;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lightbox__btn:hover { background: rgba(0, 0, 0, 0.5); }
.lightbox__btn--prev { left: -1.2rem; }
.lightbox__btn--next { right: -1.2rem; }

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  border: none;
  background: none;
  color: #FFF;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.lightbox__close:hover { opacity: 1; }

/* Zástupné svatební gradienty */
.wg--1 { background: linear-gradient(150deg, #D4A5A5, #A03A50); }
.wg--2 { background: linear-gradient(150deg, #F0CFC6, #8C2F42); }
.wg--3 { background: linear-gradient(150deg, #5E3340, #E3B7B7); }
.wg--4 { background: linear-gradient(150deg, #A03A50, #3E2A2A); }
.wg--5 { background: linear-gradient(150deg, #D2A39B, #7E2F3E); }
.wg--6 { background: linear-gradient(150deg, #B5707F, #E7C3BA); }

@media (max-width: 640px) {
  .lightbox__btn--prev { left: 0.4rem; }
  .lightbox__btn--next { right: 0.4rem; }
}

/* ---------- UX: dotyk, fokus ---------- */
.btn:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}
.btn[disabled] { opacity: 0.65; cursor: wait; }
@media (max-width: 640px) {
  .form input {
    font-size: 16px;          /* iOS: brání auto-zoomu */
    padding: 0.9rem 0.85rem;
  }
  .question__buttons .btn {
    min-height: 48px;         /* pohodlná dotyková plocha */
  }
}

/* ---------- Ozdoba: vetvička so srdiečkom (zhodná s hlavnou stránkou) ---------- */
.chapter__title::after {
  content: "";
  display: block;
  width: 9rem;
  height: 1.3rem;
  margin: 0.9rem auto 0;
  background-color: var(--rose);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 26%22%3E%3Cg fill=%22%238C2F42%22%3E%3Cg%3E%3Cpath d=%22M30 13 C48 12.2 70 12.2 88 13%22 fill=%22none%22 stroke=%22%238C2F42%22 stroke-width=%221.5%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(40,13)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(40,13) scale(1,-1)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(55,13)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(55,13) scale(1,-1)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(70,13)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(70,13) scale(1,-1)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(84,13)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(84,13) scale(1,-1)%22/%3E%3C/g%3E%3Cg transform=%22translate(200,0) scale(-1,1)%22%3E%3Cpath d=%22M30 13 C48 12.2 70 12.2 88 13%22 fill=%22none%22 stroke=%22%238C2F42%22 stroke-width=%221.5%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(40,13)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(40,13) scale(1,-1)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(55,13)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(55,13) scale(1,-1)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(70,13)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(70,13) scale(1,-1)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(84,13)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(84,13) scale(1,-1)%22/%3E%3C/g%3E%3Cpath d=%22M12 21 C12 21 2 14 2 7.9 C2 4.3 4.8 1.8 8 1.8 C9.9 1.8 11.4 3 12 4.1 C12.6 3 14.1 1.8 16 1.8 C19.2 1.8 22 4.3 22 7.9 C22 14 12 21 12 21 Z%22 transform=%22translate(94.6,2.9) scale(0.617)%22/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 26%22%3E%3Cg fill=%22%238C2F42%22%3E%3Cg%3E%3Cpath d=%22M30 13 C48 12.2 70 12.2 88 13%22 fill=%22none%22 stroke=%22%238C2F42%22 stroke-width=%221.5%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(40,13)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(40,13) scale(1,-1)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(55,13)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(55,13) scale(1,-1)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(70,13)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(70,13) scale(1,-1)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(84,13)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(84,13) scale(1,-1)%22/%3E%3C/g%3E%3Cg transform=%22translate(200,0) scale(-1,1)%22%3E%3Cpath d=%22M30 13 C48 12.2 70 12.2 88 13%22 fill=%22none%22 stroke=%22%238C2F42%22 stroke-width=%221.5%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(40,13)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(40,13) scale(1,-1)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(55,13)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(55,13) scale(1,-1)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(70,13)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(70,13) scale(1,-1)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(84,13)%22/%3E%3Cpath d=%22M0 0 C -5.5 -1.2 -10.5 -4.2 -14.5 -9.6 C -8.2 -10.4 -3.4 -6.2 0 0 Z%22 transform=%22translate(84,13) scale(1,-1)%22/%3E%3C/g%3E%3Cpath d=%22M12 21 C12 21 2 14 2 7.9 C2 4.3 4.8 1.8 8 1.8 C9.9 1.8 11.4 3 12 4.1 C12.6 3 14.1 1.8 16 1.8 C19.2 1.8 22 4.3 22 7.9 C22 14 12 21 12 21 Z%22 transform=%22translate(94.6,2.9) scale(0.617)%22/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

/* Vetvička pod názvom kapitoly vyrastie od srdiečka do strán, keď sa
   kapitola dostane do záberu. Bez JavaScriptu je rovno celá. */
.chapter__title.is-visible::after,
.is-visible .chapter__title::after {
  animation: vetvicka-rast 1.05s cubic-bezier(0.22, 0.9, 0.3, 1) 0.15s both;
}
@keyframes vetvicka-rast {
  from { clip-path: inset(0 50% 0 50%); opacity: 0; }
  40%  { opacity: 1; }
  to   { clip-path: inset(0 0 0 0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .chapter__title.is-visible::after,
  .is-visible .chapter__title::after { animation: none; }
}

/* ---------- Skutočná fotka namiesto gradientu ----------
   `photo__frame` je zástupný gradient. Keď fotka existuje, generátor
   vloží <picture> a platí toto. Pomer strán drží rozloženie aj kým
   sa obrázok načíta — stránka pri čítaní neposkakuje. */
.photo picture { display: block; }
.photo__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}
.lightbox__slide picture, .lightbox__slide img { display: block; max-width: 100%; height: auto; }
