/* Tipy jak fotit – statický web */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1c1b19;
  --ink-2: #57534c;
  --ink-3: #8a857c;
  --line: #e7e2d9;
  --accent: #6b1a5c;
  --accent-ink: #5a1450;
  --accent-soft: #f4e8f0;
  --gold: #f0cb45;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28,27,25,.06), 0 8px 24px rgba(28,27,25,.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --read: 720px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312; --surface: #1d1c1a; --ink: #f1ede6; --ink-2: #c4beb3; --ink-3: #8f897f;
    --line: #2f2d29; --accent: #c77bb6; --accent-ink: #e3a6d6; --accent-soft: #33202f; --gold: #f0cb45;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 99; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 21px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.logo svg.brand { height: 46px; width: auto; display: block; flex: none; }
.site-footer .logo svg.brand { height: 54px; margin-bottom: 4px; }
.logo:hover { color: var(--ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav li { position: relative; }
.nav a, .nav summary { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; cursor: pointer; }
.nav a:hover, .nav summary:hover, .nav details[open] summary { background: var(--accent-soft); color: var(--accent-ink); }
.nav summary { list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.nav .sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.nav .sub a { font-weight: 400; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink); }
.icon-btn:hover { background: var(--accent-soft); color: var(--accent-ink); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { display: none; margin-left: auto; }
.menu-toggle summary { list-style: none; cursor: pointer; }
.menu-toggle summary::-webkit-details-marker { display: none; }
@media (max-width: 920px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle[open] .mobile-nav { display: block; }
  .mobile-nav { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 66px); overflow: auto; padding: 10px 22px 24px; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  .mobile-nav a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
  .mobile-nav ul ul a { padding-left: 16px; font-weight: 400; color: var(--ink-2); }
}

/* Typography helpers */
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); text-decoration: none; }
.meta { color: var(--ink-3); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.meta a { color: var(--ink-2); text-decoration: none; }
.meta a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; letter-spacing: -.01em; }

/* Hero */
.hero { padding: 44px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; }
.hero-main { position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; background: #2b2722; }
.hero-main img, .hero-main .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-main:hover img { transform: scale(1.03); }
.hero-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78)); }
.hero-main .txt { position: relative; z-index: 1; padding: 32px; }
.hero-main .eyebrow { color: var(--gold); }
.hero-main h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 10px 0 10px; color: #fff; }
.hero-main p { margin: 0; color: rgba(255,255,255,.85); max-width: 56ch; }
.hero-side { display: flex; flex-direction: column; gap: 18px; }
.hero-side .card-row { flex: 1; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-main { min-height: 380px; } }

.intro { padding: 30px 0 6px; max-width: 760px; }
.intro h1 { font-size: clamp(34px, 5vw, 56px); margin: 0 0 10px; }
.intro p { color: var(--ink-2); font-size: 19px; margin: 0; }

/* Sections */
.section { padding: 44px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 28px; }
.section-head a { font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px 26px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card .thumb { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--line); margin-bottom: 14px; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.card:hover .thumb img { transform: scale(1.04); }
.card h3 { font-size: 21px; margin: 8px 0 8px; color: var(--ink); }
.card:hover h3 { color: var(--accent-ink); }
.card p { margin: 0 0 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; text-decoration: none; color: inherit; }
.card-row .thumb { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--line); }
.card-row .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-row h3 { font-size: 19px; margin: 6px 0 4px; color: var(--ink); }
.card-row:hover h3 { color: var(--accent-ink); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--line)); color: var(--accent-ink); font: 700 44px/1 var(--serif); }

/* Topics */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.topic { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; padding: 18px; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; background: #2b2722; }
.topic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: opacity .3s, transform .5s; }
.topic:hover img { opacity: .5; transform: scale(1.05); }
.topic strong { position: relative; font: 700 22px/1.15 var(--serif); }
.topic span { position: relative; font-size: 13px; color: rgba(255,255,255,.85); }

/* Callout */
.callout { border-left: 6px solid var(--gold); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 34px; border-radius: calc(var(--radius) + 4px); background: var(--accent-soft); }
.callout h2 { margin: 0 0 6px; font-size: 30px; }
.callout p { margin: 0; color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: #490a3d; color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.btn:hover { background: #6b1a5c; color: #fff; }
@media (max-width: 700px) { .callout { grid-template-columns: 1fr; padding: 26px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: 14px; }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }

/* Archive header */
.archive-head { padding: 42px 0 8px; }
.archive-head h1 { font-size: clamp(32px, 4.5vw, 50px); margin: 8px 0 8px; }
.archive-head p { color: var(--ink-2); max-width: 64ch; margin: 0 0 14px; }
.crumbs { font-size: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 48px 0 10px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--surface); }
.pager a:hover { border-color: var(--accent); color: var(--accent-ink); }
.pager .cur { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager .gap { border: 0; background: none; }

/* Article */
.article-head { max-width: var(--read); margin: 0 auto; padding: 44px 0 10px; }
.article-head h1 { font-size: clamp(32px, 5vw, 52px); margin: 12px 0 16px; }
.article-head .lead { font-size: 20px; color: var(--ink-2); margin: 0 0 18px; }
.article-cover { max-width: 1040px; margin: 26px auto 40px; }
.article-cover img { width: 100%; border-radius: calc(var(--radius) + 4px); display: block; }
.prose { max-width: var(--read); margin: 0 auto; font-size: 18.5px; line-height: 1.75; }
.prose > * { margin-top: 0; margin-bottom: 1.15em; }
.prose h2 { font-size: 32px; margin: 1.6em 0 .55em; }
.prose h3 { font-size: 26px; margin: 1.5em 0 .5em; }
.prose h4 { font-size: 21px; margin: 1.4em 0 .4em; }
.prose img { border-radius: 10px; display: block; }
.prose .aligncenter, .prose .alignnone { margin-left: auto; margin-right: auto; }
.prose p > img, .prose p > a > img { margin: 1.6em auto; }
@media (min-width: 760px) {
  .prose .alignleft { float: left; max-width: 46%; margin: .35em 1.6em 1em 0; }
  .prose .alignright { float: right; max-width: 46%; margin: .35em 0 1em 1.6em; }
  .prose p > .alignleft, .prose p > a > .alignleft, .prose p > .alignright, .prose p > a > .alignright { margin-top: .35em; }
}
.prose h2, .prose h3, .prose h4 { clear: both; }
.prose figure, .prose .wp-caption { margin: 2em auto; max-width: 100% !important; width: auto !important; }
.prose figcaption, .prose .wp-caption-text { font-size: 14.5px; color: var(--ink-3); text-align: center; margin-top: 10px; line-height: 1.5; }
.prose .wp-caption img, .prose figure img { margin: 0 auto; }
.prose blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--gold); font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--ink); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose table { width: 100% !important; height: auto !important; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose table > tbody { display: table; width: 100%; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose tr:first-child td { font-weight: 700; }
.prose .embed { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; border-radius: 12px; overflow: hidden; background: #000; }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose iframe { max-width: 100%; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose::after { content: ""; display: block; clear: both; }

.article-foot { max-width: var(--read); margin: 40px auto 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font: 700 24px/1 var(--serif); }
.author-box h3 { margin: 0 0 4px; font-size: 20px; }
.author-box h3 a { color: var(--ink); text-decoration: none; }
.author-box p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.prevnext a { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--surface); }
.prevnext a:hover { border-color: var(--accent); }
.prevnext small { display: block; color: var(--ink-3); font-size: 13px; margin-bottom: 4px; }
.prevnext strong { font-family: var(--serif); font-size: 17px; }
.prevnext .next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .prevnext { grid-template-columns: 1fr; } .prevnext .next { grid-column: 1; } }

/* Glossary */
.glossary { columns: 4 200px; column-gap: 30px; }
.glossary section { break-inside: avoid; margin-bottom: 22px; }
.glossary h2 { font-size: 30px; color: var(--accent-ink); margin: 0 0 6px; }
.glossary ul { list-style: none; margin: 0; padding: 0; }
.glossary li { padding: 3px 0; }
.glossary a { color: var(--ink); text-decoration: none; }
.glossary a:hover { color: var(--accent-ink); }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 30px; }
.az a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--surface); font-weight: 600; }
.az a:hover { border-color: var(--accent); color: var(--accent-ink); }

/* Search */
.search-box { display: flex; gap: 10px; margin: 10px 0 30px; max-width: 640px; }
.search-box input { flex: 1; font: inherit; font-size: 18px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.search-box input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-count { color: var(--ink-3); margin: -14px 0 24px; font-size: 15px; }

/* Footer */
.site-footer { margin-top: 80px; padding: 50px 0 40px; border-top: 1px solid var(--line); background: var(--surface); font-size: 15px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { font: 700 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 6px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent-ink); }
.site-footer .copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.notfound { text-align: center; padding: 80px 0 30px; }
.notfound h1 { font-size: 64px; margin: 0; }

/* Cookie lišta */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto; display: flex; gap: 18px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-size: 15px; }
.consent[hidden] { display: none; }
.consent p { margin: 0; color: var(--ink-2); }
.consent div { display: flex; gap: 8px; flex: none; }
.consent button { font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 999px; border: 1px solid #490a3d; background: #490a3d; color: #fff; cursor: pointer; }
.consent button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
@media (max-width: 640px) { .consent { flex-direction: column; align-items: stretch; } .consent div { justify-content: flex-end; } }
.search-box button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
