﻿:root {
  --paper: #f7f4ee;
  --paper-2: #fffdf8;
  --ink: #2b2926;
  --muted: #756f67;
  --line: rgba(43, 41, 38, .18);
  --accent: #8d7f6e;
  --accent-dark: #5b5046;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(43, 41, 38, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.7;
}

body.menu-open,
body.modal-open { overflow: hidden; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* HEADER */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  z-index: 20;
  background: rgba(255, 253, 248, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(43, 41, 38, .08);
}
.brand {
  font-family: "Playfair Display", serif;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 600;
  font-size: 20px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.nav a { text-decoration: none; transition: color .2s ease; }
.nav a:hover { color: var(--accent); }
.nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  letter-spacing: .16em;
}
.nav-cta:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

/* HERO */
.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 112px 22px 52px;
}
.hero-image,
.split-image { background-size: cover; background-position: center; }
.hero-image {
  position: absolute;
  inset: 0;
  background-image: url('assets/pozadi.jpg');
  transform: scale(1.04);
  filter: saturate(.85) brightness(.97);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,253,248,.6), rgba(255,253,248,.82));
}
.hero-content {
  position: relative;
  width: min(760px, 100%);
  padding: clamp(30px, 6vw, 64px);
  background: rgba(255,253,248,.74);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow);
}
.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-dark);
}
h1, h2, h3 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  line-height: 1.05;
}
h1 {
  margin: 0;
  font-size: clamp(29px, 7.2vw, 63px);
}
h1 .name {
  display: block;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  font-weight: 400;
}
h1 .name b {
  font-family: "MonteCarlo", cursive;
  text-transform: none;
  font-weight: 400;
  font-size: 1.9em;
  line-height: .7;
  display: inline-block;
  vertical-align: -.16em;
  margin-right: .22em;
}
h1 small {
  display: block;
  margin: -6px 0 -2px;
  font-family: "Great Vibes", cursive;
  font-size: .42em;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--accent-dark);
}
.announcement {
  max-width: 520px;
  margin: 24px auto 0;
  color: var(--muted);
}
.date {
  margin: 28px 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 3.6vw, 34px);
  letter-spacing: .1em;
}
.place {
  margin: 10px 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(16px, 2.8vw, 25px);
  letter-spacing: .06em;
  color: var(--muted);
}

.hero-actions,
.location-buttons,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* BUTTONS */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button.primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.button.ghost { background: rgba(255,255,255,.64); }
.button.ghost.dark { background: transparent; }
.button:hover { transform: translateY(-1px); }

/* COUNTDOWN */
.countdown-section {
  width: min(1060px, calc(100% - 32px));
  margin: -52px auto 0;
  position: relative;
  z-index: 2;
  background: var(--paper-2);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 42px);
  text-align: center;
}
.countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(4px, 2.4vw, 22px);
}
.countdown > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(56px, 12vw, 96px);
}
.countdown strong {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 7vw, 66px);
  font-weight: 400;
  line-height: 1.1;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.countdown span {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown i {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 5vw, 50px);
  font-style: normal;
  /* line-box stejně vysoký jako číslo → dvojtečka se svisle vystředí vůči číslům */
  line-height: clamp(40px, 8.2vw, 76px);
  color: var(--accent);
}
.countdown-note {
  margin: 18px 0 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 19px;
  color: var(--accent-dark);
}

/* SECTIONS */
.section { padding: clamp(74px, 10vw, 130px) clamp(20px, 5vw, 72px); }
.section-heading {
  width: min(720px, 100%);
  margin: 0 auto 54px;
  text-align: center;
}
.section-heading h2,
.split-content h2,
.rsvp-card h2 {
  margin: 0;
  font-size: clamp(38px, 7vw, 70px);
}
.section-heading p:last-child,
.split-content p,
.rsvp-card > p { color: var(--muted); }

/* INFO GRID */
.info-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.info-card {
  min-height: 214px;
  padding: 32px 20px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  box-shadow: 0 16px 36px rgba(43, 41, 38, .06);
  transition: transform .2s ease, box-shadow .2s ease;
  font-family: inherit;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.info-card strong {
  display: block;
  margin: 18px 0 8px;
  font-family: "Playfair Display", serif;
  font-size: 25px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}
.info-card small { color: var(--muted); }

.children-note {
  width: min(1120px, 100%);
  margin: 46px auto 0;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 26px;
  color: var(--accent-dark);
}
.children-note .heart-inline {
  height: .82em;
  width: auto;
  display: inline-block;
  vertical-align: -.04em;
  margin-left: .28em;
  mix-blend-mode: multiply;
}
.children-note span {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--muted);
  margin-top: 6px;
}

/* ICONS (inline SVG) */
.icon {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  display: block;
  color: var(--ink);
  fill: none;
  stroke: currentColor;
  stroke-width: 0.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.info-card:hover .icon { color: #000; }
.icon-img {
  height: 58px;
  width: auto;
  max-width: 80%;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.icon-img--sm { height: 39px; }

/* SPLIT / LOCATION */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background: var(--paper-2);
}
.split-image { min-height: 420px; }
.split-image.img-zamek { background-image: url('assets/zamek-up_bez_pani.jpg'); }
.split-image.img-dvorecek { background-image: url('assets/hostina.jpg'); }
.split-section.reverse .split-content { order: 1; }
.split-section.reverse .split-image { order: 2; }
.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(46px, 8vw, 96px);
}
.location-buttons { justify-content: flex-start; }

/* TIMELINE */
.timeline { background: #eee9df; }
.timeline-list {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.timeline-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-list time {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  color: var(--accent-dark);
}
.timeline-list h3 { margin: 0 0 6px; font-size: 28px; }
.timeline-list p { margin: 0; color: var(--muted); }
.timeline-list li.single { align-items: center; }
.timeline-list li.single h3 { margin: 0; }

/* RSVP */
.rsvp {
  background: linear-gradient(rgba(247,244,238,.86), rgba(247,244,238,.92)), url('assets/zamek-nebilovy.jpg') center/cover fixed;
}
.rsvp-card {
  width: min(720px, 100%);
  margin: 0 auto;
  background: rgba(255,253,248,.92);
  padding: clamp(28px, 6vw, 58px);
  box-shadow: var(--shadow);
  text-align: center;
}
form { display: grid; gap: 16px; margin-top: 34px; text-align: left; }
.hp { position: absolute; left: -9999px; }
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 500;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 14px 15px;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-dark); outline-offset: 1px; border-color: var(--accent-dark); }
textarea { resize: vertical; }
form .button { justify-self: center; margin-top: 10px; }
.form-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
}
.form-hint.is-error { color: #9c3b2e; }

.rsvp-thanks { text-align: center; padding: 14px 0 4px; }
.rsvp-thanks .thanks-mark { font-size: 38px; margin: 0 0 6px; }
.rsvp-thanks h3 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 46px);
}
.rsvp-thanks p { margin: 0; color: var(--muted); }

/* FOOTER */
.footer {
  padding: 40px 22px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-names {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: .08em;
  line-height: 1.5;
}
.footer-names .name { text-transform: uppercase; font-weight: 400; }
.footer-names .name b {
  font-family: "MonteCarlo", cursive;
  text-transform: none;
  font-weight: 400;
  font-size: 1.95em;
  line-height: 0;
  vertical-align: -.24em;
  margin-right: .32em;
}
.footer-names .amp { color: var(--accent-dark); margin: 0 .12em; }
.footer a { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; display: inline-block; margin-top: 10px; }
.footer .credit { margin: 26px 0 0; font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.footer .credit a {
  text-transform: none;
  letter-spacing: .02em;
  font-size: 11px;
  margin-top: 0;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 41, 38, .28);
  transition: color .2s ease, border-color .2s ease;
}
.footer .credit a:hover { color: var(--ink); border-color: var(--ink); }

/* MODALS */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(33, 31, 29, .52);
}
.modal.is-open { display: grid; }
.modal-box {
  position: relative;
  width: min(660px, 100%);
  max-height: min(720px, calc(100svh - 48px));
  overflow: auto;
  background: var(--paper-2);
  padding: clamp(28px, 6vw, 58px);
  box-shadow: 0 30px 90px rgba(0,0,0,.26);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
}
.modal-box h2 { margin: 0 40px 24px 0; font-size: clamp(36px, 7vw, 62px); }
.modal-box p { color: var(--muted); }
.modal-box a { color: var(--accent-dark); }
.modal-actions { justify-content: flex-start; }

/* RESPONSIVE */
@media (max-width: 820px) {
  .menu-button { display: block; }
  .nav {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper-2);
    padding: 18px 26px 28px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
  }
  .nav a { padding: 12px 4px; border-bottom: 1px solid rgba(43,41,38,.06); }
  .nav-cta { text-align: center; margin-top: 10px; border-radius: 999px; }
  body.menu-open .nav { display: flex; }
  .brand { font-size: 16px; letter-spacing: .15em; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .split-section.reverse .split-content,
  .split-section.reverse .split-image { order: 0; }
  .location-buttons { justify-content: center; }
  .split-content { text-align: center; }
  .timeline-list li { grid-template-columns: 84px 1fr; gap: 18px; }
  .timeline-list time { font-size: 26px; }
  .countdown-section { margin-top: -28px; }
}

@media (max-width: 520px) {
  .hero { padding-inline: 14px; }
  .hero-content { padding: 30px 18px; }
  .hero-actions, .modal-actions { flex-direction: column; }
  .hero-actions .button, .modal-actions .button { width: 100%; }
  .info-grid { grid-template-columns: 1fr; }
  .countdown { gap: 6px; }
  .countdown span { font-size: 9px; }
}

