:root {
  --bg: #faf7f2;
  --paper: #ffffff;
  --ink: #3b3833;
  --muted: #7d766b;
  --sage: #6f8064;
  --sage-dark: #56664c;
  --gold: #b08d57;
  --line: #e6dfd3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, .serif { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; }
a { color: var(--sage-dark); }

/* ---------- Úvod ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 16px;
  background: url("img/wreath.png") center / contain no-repeat;
  pointer-events: none;
  z-index: -1;
}
.eyebrow {
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 28px;
}
.names {
  font-size: clamp(48px, min(13vw, 10vh), 120px);
  line-height: 1;
  margin: 0;
  font-style: italic;
  font-weight: 400;
}
.names .amp {
  display: block;
  font-size: .45em;
  color: var(--gold);
  margin: .2em 0;
  font-style: italic;
}
.lead {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(20px, 3.2vw, 26px);
  font-style: italic;
  color: var(--muted);
  margin: min(32px, 3vh) 0 0;
}
.date {
  margin: 28px 0 0;
  font-size: clamp(18px, 2.6vw, 22px);
  letter-spacing: .08em;
}
.date .sep { color: var(--gold); margin: 0 .6em; }
.place { margin: 6px 0 0; color: var(--muted); }

.countdown {
  display: flex;
  gap: clamp(18px, 5vw, 44px);
  justify-content: center;
  margin-top: min(44px, 4vh);
}
.countdown div { min-width: 64px; }
.countdown .num {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 7vw, 52px);
  line-height: 1;
}
.countdown .lbl {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown-done {
  margin-top: 44px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-style: italic;
  color: var(--sage-dark);
}

.scroll-hint {
  margin-top: min(52px, 4vh);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.scroll-hint:hover { color: var(--sage-dark); }

/* ---------- Sekce ---------- */
section.block {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}
section.block h2 {
  font-size: clamp(36px, 6vw, 48px);
  margin: 0 0 8px;
}
.ornament {
  display: block;
  margin: 0 auto 32px;
  width: 120px;
  height: 20px;
  color: var(--gold);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  text-align: center;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 24px;
}
.card .label {
  letter-spacing: .24em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}
.card .big {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 6px;
}
.card p { margin: 0; }

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  border: 1px solid var(--sage);
  color: var(--sage-dark);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--sage); color: #fff; }
.btn.solid { background: var(--sage); color: #fff; }
.btn.solid:hover, .btn.solid:focus-visible { background: var(--sage-dark); border-color: var(--sage-dark); }

/* ---------- Potvrzení účasti ---------- */
.rsvp-intro { color: var(--muted); margin: 0 0 8px; }
.rsvp-btn { padding: 16px 44px; font-size: 15px; }
.form-note { font-size: 14px; color: var(--muted); margin: 24px 0 0; }

/* ---------- Program ---------- */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 8px 0;
  max-width: 460px;
  text-align: left;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 20px; bottom: 20px;
  left: 92px;
  width: 1px;
  background: var(--line);
}
.timeline li {
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 40px;
  align-items: baseline;
  padding: 10px 0;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 89px;
  top: 50%;
  width: 7px; height: 7px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold);
}
.timeline li.key::before { background: var(--gold); }
.timeline time {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  color: var(--gold);
  text-align: right;
}
.timeline span { font-weight: 400; }
.timeline li.key span { font-family: "Cormorant Garamond", Georgia, serif; font-size: 23px; font-weight: 500; }

/* ---------- Informace ---------- */
.info p { margin: 0 auto; max-width: 520px; }

footer {
  text-align: center;
  padding: 56px 24px 72px;
  border-top: 1px solid var(--line);
  max-width: 720px;
  margin: 24px auto 0;
}
footer .serif { font-size: 30px; font-style: italic; margin: 0; }
footer p { margin: 4px 0 0; color: var(--muted); }

@media (max-width: 600px) {
  .hero { padding: 72px 40px; }
  .hero::before {
    inset: 0;
    background-size: 150vw auto;
    background-position: center top;
  }
  .names { font-size: 64px; }
  .lead { font-size: 21px; }
  .place { line-height: 1.5; }
  .countdown { gap: 24px; }
  .countdown div { min-width: 0; }
  .countdown .num { font-size: 40px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .date .sep { display: block; height: 0; overflow: hidden; }
}
