/* ==========================================================================
   Svatební web — vzhled (barvy převzaté přímo z pozvánky)
   Barvy se obvykle upravovat nemusí; vše textové se mění v js/data.js.
   ========================================================================== */

:root {
  --sage:       #ACB4A4;   /* zelené pozadí — shodné s okrajem pozvánky      */
  --sage-deep:  #6E7C62;   /* sytější šalvěj — linky, nadpisy, tlačítka      */
  --sage-soft:  #C9D1BE;
  --cream:      #F8F5EC;   /* krémová — shodná se středem pozvánky           */
  --cream-warm: #EFEADD;
  --ink:        #3E4639;   /* tmavá zeleno-šedá — text                       */
  --ink-soft:   #5C6553;

  /* Okrasné (jména) a doplňkové (text) písmo.
     Snell Roundhand a Athelas jsou systémová písma Applu (Mac/iPhone/iPad);
     pro ostatní zařízení slouží webové náhrady Pinyon Script / Cormorant. */
  --script: "Snell Roundhand", "Pinyon Script", "Segoe Script", cursive;
  --serif:  "Athelas", "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;   /* dvě „stránky": pozvánka a obsah */
}

body {
  margin: 0;
  background-color: var(--sage);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

/* --- HERO: původní pozvánka (vyplní celou výšku okna) ----------------- */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1rem, 3.5vh, 2rem) 1rem;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.hero__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(600px, 92vw);
  max-height: 80vh;
  max-height: 80svh;
  border-radius: 2px;
  box-shadow: 0 18px 55px -22px rgba(40, 50, 35, .55);
}

/* --- Náznak scrollování pod pozvánkou --------------------------------- */
.scroll-hint {
  position: absolute;
  bottom: clamp(1rem, 3vh, 1.8rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  color: var(--ink);
  text-decoration: none;
}
.scroll-hint__text {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.scroll-hint__chevron { display: block; animation: hint-nudge 1.9s ease-in-out infinite; }
.scroll-hint:hover .scroll-hint__text { color: var(--ink); }
@keyframes hint-nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint__chevron { animation: none; }
}

/* --- INFO KARTA (krémový „papír“ s ozdobným rámečkem) ----------------- */
.paper {
  position: relative;
  z-index: 0;
  max-width: 920px;
  margin: clamp(1.6rem, 5vw, 3rem) auto 0;
  padding: clamp(2.6rem, 7vw, 4rem) clamp(1.6rem, 6vw, 3.4rem);
  background: var(--cream);
  border-radius: 2px;
  box-shadow: 0 18px 55px -22px rgba(40, 50, 35, .55);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: clamp(.75rem, 3vh, 1.75rem);
}
.paper::before,
.paper::after { content: ""; position: absolute; pointer-events: none; border-radius: 2px; }
.paper::before { inset: 13px; border: 1px solid rgba(110, 124, 98, .55); }
.paper::after  { inset: 18px; border: 1px solid rgba(110, 124, 98, .28); }
.paper__inner { position: relative; z-index: 1; }

/* --- Ozdoby vystřižené z pozvánky ------------------------------------- */
.flourish {
  height: 40px;
  margin: clamp(1.7rem, 4.5vw, 2.6rem) auto;
  background: url("../assets/divider.png") center / contain no-repeat;
}
.ornament {
  height: 116px;
  margin: .4rem auto .2rem;
  background: url("../assets/ornament.png") center / contain no-repeat;
}

/* --- Typografie ------------------------------------------------------- */
.section { margin: 0 auto; }
.section__title {
  margin: 0 0 .9rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.1rem, 3.4vw, 1.35rem);
  letter-spacing: .17em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}
.section__note {
  max-width: 40ch;
  margin: -.4rem auto .9rem;
  font-style: italic;
  font-size: .95rem;
  text-align: center;
  color: var(--ink-soft);
}
.section p {
  max-width: 52ch;
  margin: .4rem auto;
  font-size: clamp(1.08rem, 2.6vw, 1.22rem);
  line-height: 1.78;
  text-align: center;
  color: var(--ink);
}
.lead {
  max-width: 56ch;
  margin: .4rem auto 0;
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.34rem);
  line-height: 1.7;
  text-align: center;
  color: var(--ink-soft);
}
.countdown {
  margin: 1rem 0 0;
  text-align: center;
  font-style: italic;
  letter-spacing: .04em;
  color: var(--sage-deep);
}

/* --- Program dne ------------------------------------------------------ */
.program {
  list-style: none;
  max-width: 34rem;
  margin: .4rem auto 0;
  padding: 0;
}
.program li {
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: .9rem;
  align-items: baseline;
  padding: .55rem 0;
  text-align: left;
  border-bottom: 1px dotted rgba(110, 124, 98, .45);
}
.program li:last-child { border-bottom: none; }
.program .cas {
  font-weight: 600;
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
  color: var(--sage-deep);
}
.program .text { font-size: 1.1rem; color: var(--ink); }

/* --- Místa ------------------------------------------------------------ */
.place { max-width: 42ch; margin: 1.1rem auto; text-align: center; }
.place__name {
  margin-bottom: .15rem;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.place__desc { font-size: 1.14rem; line-height: 1.6; color: var(--ink); }

/* --- Tlačítka (mapa, formulář) ---------------------------------------- */
.btn {
  display: inline-block;
  margin: .65rem .3rem 0;
  padding: .62em 1.5em;
  font-family: var(--serif);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--sage-deep);
  border-radius: 2px;
  transition: background .2s ease, color .2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--sage-deep); color: var(--cream); }

/* --- Dress code — barevná paleta -------------------------------------- */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
  margin: 1.1rem 0 .2rem;
}
.swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(60, 70, 55, .2);
}

/* --- RSVP ------------------------------------------------------------- */
.rsvp__date {
  margin: .7rem 0 .2rem;
  font-style: italic;
  font-size: 1.28rem;
  text-align: center;
  color: var(--ink);
}
.rsvp__date strong { font-weight: 600; }
.rsvp__actions { text-align: center; }

/* --- Kontakty --------------------------------------------------------- */
.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.6rem;
  justify-content: center;
  align-items: flex-start;
  margin: .8rem 0 0;
  padding: 0;
  list-style: none;
}
.contact { text-align: center; max-width: 15rem; }
.contact__name {
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--sage-deep);
}
.contact__role {
  margin: .05rem 0 .3rem;
  font-style: italic;
  font-size: .92rem;
  line-height: 1.3;
  color: var(--ink-soft);
}
.contact a { display: block; color: var(--ink); text-decoration: none; }
.contact a:hover { text-decoration: underline; }

/* --- Patička ---------------------------------------------------------- */
.footer { text-align: center; margin-top: .6rem; }
.footer__names {
  margin: .1rem 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.3rem, 9vw, 3.2rem);
  line-height: 1.15;
  color: var(--ink);
}
.footer__date {
  font-size: .9rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer__note { max-width: 52ch; margin: 0 auto .2rem; font-style: italic; color: var(--ink-soft); }

/* --- Drobné dolaďování pro malé displeje ------------------------------ */
@media (max-width: 420px) {
  body { font-size: 17px; }
  .program li { grid-template-columns: 3.6rem 1fr; gap: .6rem; }
}
