:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d2430;
  --muted: #5b6575;
  --line: #e6e2d9;
  --brand: #1f3a5f;
  --brand-soft: #e9eef5;
  --accent: #c8793a;
  --accent-soft: #fbf1e7;
  --on-brand: #ffffff;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 8px 24px rgba(20, 20, 30, .07);
  --shadow-lg: 0 2px 4px rgba(20, 20, 30, .06), 0 18px 40px rgba(20, 20, 30, .14);
  --radius: 14px;
  --wrap: 740px;
  --wide: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161d;
    --surface: #1b2029;
    --text: #e9ebef;
    --muted: #a5adb9;
    --line: #2c3340;
    --brand: #9cb8de;
    --brand-soft: #1f2a3a;
    --accent: #e3a066;
    --accent-soft: #2b2219;
    --on-brand: #14171c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .card-title, .section-title, .footer-brand, .logo { font-family: var(--serif); letter-spacing: -.01em; }
h1, h2, h3 { text-wrap: balance; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wide { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; }
img { max-width: 100%; height: auto; }
.small { font-size: .85rem; }

/* hlavička */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--wide); margin: 0 auto; padding: 0 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; min-height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem;
  color: var(--text); text-decoration: none; white-space: nowrap; }
.logo-mark { flex: none; width: 30px; height: 30px; border-radius: 9px; background:
  radial-gradient(circle at 70% 30%, var(--accent) 0 28%, transparent 30%), var(--brand); }
.site-header nav { display: flex; gap: 6px; font-size: .95rem; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.site-header nav a:hover { color: var(--text); background: var(--brand-soft); }
.site-header nav a { white-space: nowrap; }
@media (max-width: 480px) { .logo { font-size: 1.05rem; } .site-header nav a { padding: 6px 8px; }
  .site-header nav a:first-child { display: none; } }

/* úvod */
.hero { position: relative; overflow: hidden; padding: 56px 0 48px;
  background: radial-gradient(1200px 500px at 90% -10%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--brand-soft), var(--bg)); }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); line-height: 1.08; margin: 10px 0 18px; max-width: 16ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700;
  color: var(--accent); margin: 0; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.hero-inner { display: grid; gap: 40px; align-items: center; }
.hero.has-image .hero-inner { grid-template-columns: 1.05fr 1fr; }
@media (max-width: 900px) { .hero.has-image .hero-inner { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.button { display: inline-block; background: var(--brand); color: var(--on-brand); padding: 13px 24px;
  border-radius: 999px; text-decoration: none; font-weight: 650; box-shadow: var(--shadow);
  transition: transform .15s, background .15s; }
.button:hover { background: var(--accent); color: var(--on-brand); transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 24px 0 0;
  font-size: .9rem; color: var(--muted); }
.badges li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 6px; }
.hero-figure { margin: 0; position: relative; }
.hero-figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px;
  box-shadow: var(--shadow-lg); }
.hero-figure::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 24px;
  background: var(--accent-soft); z-index: -1; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
  margin-top: -8px; margin-bottom: 48px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); }
.step span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--on-brand); font-weight: 700; }
.step h3 { font-size: 1.2rem; margin: 12px 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* karty a rubriky */
#clanky { padding-bottom: 56px; }
.section-title { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.2; margin: 0 0 6px; }
.section-desc { color: var(--muted); margin: 0 0 18px; max-width: 65ch; }
.cat-section { margin-top: 48px; scroll-margin-top: 80px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  font-size: .95rem; font-weight: 600; }
.chip span { background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 0 8px;
  font-size: .8rem; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.cards { list-style: none; padding: 0; margin: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none;
  color: var(--text); box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s, border-color .2s; }
.card a:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.card-media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--brand-soft); }
.card-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card a:hover .card-img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 18px 20px 20px; }
.card-title { font-size: 1.22rem; font-weight: 700; line-height: 1.3; }
.card-text { color: var(--muted); font-size: .95rem; line-height: 1.55; flex: 1; }
.more { color: var(--accent); font-weight: 650; font-size: .9rem; }
.pill { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--brand); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; }
.featured-wrap { margin-top: 8px; }
.featured-wrap .eyebrow { margin-bottom: 12px; }
.featured-list { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .featured a { flex-direction: row; }
  .featured .card-media { flex: 0 0 55%; aspect-ratio: auto; min-height: 340px; }
  .featured .card-body { padding: 32px; justify-content: center; }
  .featured .card-title { font-size: 1.9rem; }
  .featured .card-text { flex: none; font-size: 1.05rem; }
}

/* článek */
.article-head { padding: 36px 0 8px; background: linear-gradient(180deg, var(--brand-soft), var(--bg)); }
.article-head h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; margin: 14px 0 14px; }
.crumbs { font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.meta span + span::before { content: "·"; margin-right: 18px; margin-left: -9px; }
.lead-figure { margin: 8px 0 0; }
.lead-figure img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 20px;
  box-shadow: var(--shadow); }
@media (max-width: 640px) { .lead-figure img { aspect-ratio: 3 / 2; border-radius: var(--radius); } }
figcaption { font-size: .75rem; color: var(--muted); margin-top: 6px; }
figcaption a { color: var(--muted); }
.article-grid { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.article { padding: 16px 0 24px; }
@media (min-width: 1100px) {
  .article-grid.has-toc { max-width: var(--wide); display: grid; grid-template-columns: 250px minmax(0, var(--wrap));
    gap: 56px; justify-content: center; }
  .article-aside .toc { position: sticky; top: 84px; margin-top: 32px; max-height: calc(100vh - 110px); overflow: auto; }
  .article-aside .toc li a { display: block; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); }
  .article-aside .toc li a:hover { border-left-color: var(--accent); }
}
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin: 24px 0 0; font-size: .92rem; line-height: 1.45; }
.toc-title { font-weight: 700; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem;
  color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 2px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.summary { margin: 24px 0 8px; padding: 20px 22px; border-radius: var(--radius); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.summary-title { margin: 0 0 6px; font-weight: 700; color: var(--accent); text-transform: uppercase;
  letter-spacing: .08em; font-size: .78rem; }
.summary ul { margin: 0; padding-left: 1.2em; }
.summary li { margin: 4px 0; }
.summary li::marker { color: var(--accent); }
.prose h2 { font-size: clamp(1.45rem, 3vw, 1.75rem); line-height: 1.25; margin: 1.9em 0 .5em; scroll-margin-top: 80px; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .4em; scroll-margin-top: 80px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 650; }
.prose blockquote { margin: 1.6em 0; padding: 16px 20px 16px 52px; position: relative; background: var(--brand-soft);
  border-radius: var(--radius); }
.prose blockquote::before { content: "i"; position: absolute; left: 16px; top: 17px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 700 15px/24px var(--serif);
  text-align: center; font-style: italic; }
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: .6em; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.6em 0; font-size: .93rem;
  display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--brand-soft); font-weight: 650; white-space: nowrap; }
.prose tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--brand-soft) 35%, transparent); }
.prose img.illustration { display: block; width: 100%; height: auto; margin: 1.6em 0; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); }
.prose img.drink { display: block; width: 100%; max-width: 440px; margin: 1em auto 1.2em; padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 1em 0; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); font-size: .95rem; }
.prose dt { font-weight: 650; color: var(--muted); }
.prose dd { margin: 0; }
.disclosure { clear: both; margin: 40px 0 0; padding: 16px 20px; border: 1px dashed var(--line);
  border-radius: var(--radius); color: var(--muted); font-size: .9rem; line-height: 1.55; }
.disclosure strong { color: var(--text); }
.page .prose > :first-child { margin-top: 0; }
.related { padding: 32px 0 64px; background: linear-gradient(180deg, var(--bg), var(--brand-soft)); }
.related .section-title { margin-bottom: 18px; }

/* patička */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { max-width: var(--wide); margin: 0 auto; padding: 40px 16px 24px; display: grid; gap: 28px;
  grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid.no-brand { grid-template-columns: 1fr 1fr; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem;
  color: var(--text); margin: 0 0 8px; }
.footer-h { font-weight: 700; color: var(--text); margin: 0 0 8px; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; line-height: 1.9; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { max-width: var(--wide); margin: 0 auto; padding: 16px; border-top: 1px solid var(--line);
  font-size: .82rem; }
.footer-bottom p { margin: 0; }
.prose img.photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius);
  margin: 1.6em 0 0; box-shadow: var(--shadow); }
.prose .photo-credit { display: block; font-size: .75rem; color: var(--muted); font-style: normal; margin: 6px 0 1.4em; }
.prose dd p { margin: 0; }
.footer-bottom a { text-decoration: underline; text-decoration-color: var(--line); }
.cat-more { margin: 14px 0 0; font-weight: 600; }
.cat-more a { color: var(--accent); text-decoration: none; }
.cat-more a:hover { text-decoration: underline; }
.cat-page { margin-top: 24px; }
.cat-intro { max-width: 72ch; margin: 0 0 28px; }
