:root {
  --bg: #faf7f2;
  --bg-alt: #f3ede4;
  --ink: #1e1a1b;
  --muted: #6d6466;
  --pink: #f4b3c0;
  --pink-d: #e8889b;
  --wine: #7a2e3b;
  --line: #e4dcd1;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--wine); font-weight: 600; margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: #3a3234; }
.narrow { max-width: 42rem; }
.muted { color: var(--muted); font-size: .95rem; }
.tag { display: inline-block; font-size: .75rem; padding: .25em .7em; border: 1px dashed var(--pink-d); color: var(--wine); border-radius: 999px; background: #fff8; }

/* Hlavička */
.top { position: sticky; top: 0; z-index: 10; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 max(1.25rem, env(safe-area-inset-left)); background: rgba(250, 247, 242, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; }
nav { display: flex; gap: 1.6rem; }
nav a { text-decoration: none; color: var(--ink); font-size: .95rem; position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--pink-d); transition: right .2s; }
nav a:hover::after { right: 0; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 7px 0; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Úvod */
.hero { padding: clamp(3rem, 9vw, 7rem) 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(3.2rem, 11vw, 6.5rem); letter-spacing: -.03em; margin-bottom: .35em; }
.hero-logo { width: 100%; max-width: 360px; justify-self: center; filter: drop-shadow(0 18px 30px rgba(122, 46, 59, .18)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.next { display: inline-grid; gap: .1rem; margin-top: 1rem; padding: 1rem 1.3rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.next-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.next-date { font-family: var(--serif); font-size: 1.5rem; }
.next-name { color: var(--wine); font-size: .95rem; }
.draft-note { margin-top: 3rem; font-size: .85rem; color: var(--muted); border-left: 3px solid var(--pink); padding-left: .9rem; }

/* Sekce */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.alt { background: var(--bg-alt); }

/* Časová osa */
.timeline { list-style: none; margin: 2rem 0 1.5rem; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 4.6rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 4rem 1fr; gap: 2rem; padding: 0 0 2rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(4.6rem - 6px); top: .45rem; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); border: 2px solid var(--wine); }
.timeline time { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--wine); padding-top: .1rem; }
.timeline p { color: #3a3234; max-width: 44rem; }

/* Karty */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(30, 26, 27, .07); }
.card p { color: #3a3234; margin: 0; }
.card-year { display: inline-block; font-family: var(--serif); color: var(--wine); font-weight: 600; margin-bottom: .4rem; }
.card.placeholder { background: transparent; border-style: dashed; border-color: var(--pink-d); }

/* Setkání */
.dates { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.dates li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.dates .d { font-family: var(--serif); font-size: 2rem; line-height: 1; display: block; margin-bottom: .4rem; }
.dates .n { font-weight: 600; display: block; }
.dates .c { font-size: .85rem; color: var(--muted); }
.dates li.is-next { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.dates li.is-next .d::after { content: "příští"; font-family: var(--sans); font-size: .7rem; vertical-align: middle; margin-left: .6rem; padding: .2em .6em; border-radius: 999px; background: var(--wine); color: #fff; letter-spacing: .05em; }
.topics ul { padding-left: 1.2rem; margin: 0; }
.topics li { margin-bottom: .35rem; }

/* Symboly */
.symbols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.symbol { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.symbol .tag { align-self: flex-start; margin-top: auto; }
.portrait { aspect-ratio: 3 / 2; border-radius: 10px; background: repeating-linear-gradient(45deg, var(--bg-alt) 0 12px, #fff 12px 24px); display: grid; place-items: center; margin-bottom: 1.2rem; }
.portrait img { width: 40%; opacity: .55; filter: grayscale(1); }
.flag { border-radius: 6px; margin-bottom: 1.2rem; box-shadow: 0 6px 18px rgba(30, 26, 27, .12); aspect-ratio: 3 / 2; width: 100%; }
.anthem { margin: 0 0 1.2rem; aspect-ratio: 3 / 2; display: grid; place-items: center; background: var(--ink); color: var(--bg); border-radius: 10px; padding: 1rem; font-family: var(--serif); font-style: italic; text-align: center; font-size: .98rem; }
.anthem p { margin: 0; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 2rem; }
.gallery figure { margin: 0; }
.gallery img, .gallery .ph div { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--bg-alt); filter: sepia(.35) contrast(1.05) saturate(.85); transition: filter .3s; }
.gallery img:hover { filter: none; }
.gallery .ph div { display: grid; place-items: center; border: 1px dashed var(--pink-d); color: var(--wine); font-family: var(--serif); background: repeating-linear-gradient(-45deg, var(--bg-alt) 0 12px, var(--bg) 12px 24px); filter: none; }
.gallery figcaption { font-size: .9rem; margin-top: .5rem; }
.gallery small { display: block; color: var(--muted); font-size: .72rem; }

/* Prameny */
.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 2rem 0; }
.sources > div { border-top: 3px solid var(--pink-d); padding-top: 1rem; }
.sources p { color: #3a3234; margin: 0; }

/* Patička */
.foot { padding: 3rem 0 calc(3rem + env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid var(--line); }
.foot img { margin: 0 auto 1rem; }
.foot p { margin: .2rem 0; }

/* Mobil */
@media (max-width: 900px) {
  .symbols, .sources { grid-template-columns: 1fr; }
  .symbols { max-width: 520px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1rem; transform: translateY(-110%); transition: transform .25s; z-index: -1; visibility: hidden; }
  nav.open { transform: none; visibility: visible; }
  nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  nav a:last-child { border-bottom: 0; }
  nav a::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-logo { order: -1; max-width: 200px; }
  .hero { text-align: center; }
  .next, .draft-note { text-align: left; }
  .timeline::before { left: .5rem; }
  .timeline li { grid-template-columns: 1fr; gap: .2rem; padding-left: 2rem; }
  .timeline li::before { left: calc(.5rem - 6px); }
  .gallery { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .gallery figcaption { font-size: .8rem; }
}
@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; }
  .cards, .dates { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo { animation: none; }
}
