/* =============================================================================
   site.css — Třebčický Pravdoměr
   Zpravodajský magazín: papírový podklad, patkové titulky (Fraunces), text
   v Montserratu. Barvy jen přes tokeny na :root; tmavý vzhled podle systému
   (prefers-color-scheme) nebo ručně přepínačem (data-theme na <html>).
   Adresy /assets/… doplní build.js o otisk ?v=.
   ============================================================================= */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/fraunces-latin-ext.woff2?v=ffbbcc88) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/fraunces-latin.woff2?v=175f6e93) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/montserrat-latin-ext.woff2?v=c33f88bf) format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/montserrat-latin.woff2?v=b6711dec) format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

/* ---------- tokeny ---------- */
:root {
  color-scheme: light;
  --paper: #f7f4ec; --paper-2: #efe9db; --card: #fffdf8;
  --ink: #1d2420; --ink-2: #454d47; --ink-3: #636a63;
  --line: #ddd5c3;
  --green: #2f5d3a; --green-2: #3f7a4c; --green-deep: #24472d;
  --wheat: #e3b55b; --poppy: #c8412b; --sky: #2f6fa3; --plum: #7d4b91;
  --poppy-t: #a3301d; --wheat-t: #7a5200; --green-t: #2f5d3a; --sky-t: #245a85; --plum-t: #6e3f80;
  --btn: #b83a25; --btn-hover: #9c2f1d;
  --link: #2f5d3a; --focus: #2563a8;
  --foot-bg: #1d2420;
  --glass: rgba(255, 253, 248, .92);
  --shadow: 0 1px 2px rgba(29, 36, 32, .06), 0 10px 30px rgba(29, 36, 32, .10);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px; --gutter: clamp(16px, 4vw, 32px);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #121513; --paper-2: #181c19; --card: #1c211e;
    --ink: #ece7da; --ink-2: #c3c6bb; --ink-3: #9da297;
    --line: #2d342f;
    --green: #7cc48e; --green-2: #5fae73; --green-deep: #1e3a26;
    --wheat: #e8c171; --poppy: #e2553c; --sky: #5a9bd0; --plum: #b07cc6;
    --poppy-t: #ff8f78; --wheat-t: #f0cf8a; --green-t: #8fd3a0; --sky-t: #8cc4f0; --plum-t: #d6aee8;
    --link: #8fd3a0; --focus: #8ab4f8;
    --foot-bg: #0b0d0c;
    --glass: rgba(28, 33, 30, .92);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121513; --paper-2: #181c19; --card: #1c211e;
  --ink: #ece7da; --ink-2: #c3c6bb; --ink-3: #9da297;
  --line: #2d342f;
  --green: #7cc48e; --green-2: #5fae73; --green-deep: #1e3a26;
  --wheat: #e8c171; --poppy: #e2553c; --sky: #5a9bd0; --plum: #b07cc6;
  --poppy-t: #ff8f78; --wheat-t: #f0cf8a; --green-t: #8fd3a0; --sky-t: #8cc4f0; --plum-t: #d6aee8;
  --link: #8fd3a0; --focus: #8ab4f8;
  --foot-bg: #0b0d0c;
  --glass: rgba(28, 33, 30, .92);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .45);
}

/* barvy rubrik: --c plná, --ct text na světlém podkladu */
.chip--poppy, .rubrika-tile--poppy, .pagehead--poppy { --c: var(--poppy); --ct: var(--poppy-t); }
.chip--wheat, .rubrika-tile--wheat, .pagehead--wheat { --c: var(--wheat); --ct: var(--wheat-t); }
.chip--green, .rubrika-tile--green, .pagehead--green { --c: var(--green-2); --ct: var(--green-t); }
.chip--sky, .rubrika-tile--sky, .pagehead--sky { --c: var(--sky); --ct: var(--sky-t); }
.chip--plum, .rubrika-tile--plum, .pagehead--plum { --c: var(--plum); --ct: var(--plum-t); }

/* ---------- základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(800px + 2 * var(--gutter)); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 8px; }

/* ---------- proužek „Satira“ a tiráž ---------- */
.ribbon { background: var(--foot-bg); color: #f3f1ea; font-size: 13px; line-height: 1.45; }
.ribbon__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px;
  padding-block: 8px; text-align: center; }
.ribbon a { color: inherit; text-underline-offset: 2px; }
.masthead { border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 12px; letter-spacing: .02em; }
.masthead__in { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }

/* ---------- záhlaví ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--glass); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
.top__bar { display: flex; align-items: center; gap: 20px; min-height: 72px; position: relative; }
.top__tools { display: flex; gap: 8px; margin-left: auto; }
.nav + .top__tools { margin-left: 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__bg { fill: var(--green); }
.brand__arc { fill: none; stroke: var(--paper); stroke-width: 3; stroke-linecap: round; opacity: .45; }
.brand__arc--hot { stroke: var(--wheat); opacity: 1; }
.brand__needle { stroke: var(--paper); stroke-width: 2.6; stroke-linecap: round; }
.brand__hub { fill: var(--wheat); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font: 700 22px/1.1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand__name em { font-style: normal; color: var(--green-t); }
.brand__tag { font-size: 11px; color: var(--ink-3); letter-spacing: .03em; white-space: nowrap; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.iconbtn { width: 42px; height: 42px; flex: none; display: inline-grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 26px; line-height: 1; }
.iconbtn:hover { border-color: var(--ink-3); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--sun { display: none; }
:root[data-theme="dark"] .icon--sun { display: block; }
:root[data-theme="dark"] .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon--sun { display: block; }
  :root:not([data-theme="light"]) .icon--moon { display: none; }
}
.navbtn { display: none; }
.navbtn__bars, .navbtn__bars::before, .navbtn__bars::after { display: block; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .2s, opacity .2s; }
.navbtn__bars { position: relative; }
.navbtn__bars::before, .navbtn__bars::after { content: ''; position: absolute; left: 0; }
.navbtn__bars::before { top: -6px; }
.navbtn__bars::after { top: 6px; }
.nav-open .navbtn__bars { background: transparent; }
.nav-open .navbtn__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .navbtn__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- štítky, tlačítka ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; white-space: nowrap;
  font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--ct); }
a.chip:hover { background: color-mix(in srgb, var(--c) 26%, transparent); }
.chip--satira { background: var(--btn); color: #fff; }
.chip--sm { height: 20px; padding: 0 8px; font-size: 10px; }
.kicker { margin: 0; font: 700 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ct, var(--poppy-t)); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer; font: 700 15px/1 var(--sans); text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--btn); color: #fff; }
.btn--primary:hover { background: var(--btn-hover); }
.btn--light { background: #fff; color: #1e3a26; }
.btn--light:hover { background: #f1eee4; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--big { min-height: 54px; padding: 0 30px; font-size: 17px; }

/* ---------- fotky a autoři ---------- */
.photo { position: relative; margin: 0; }
.credit { display: block; font-size: 12px; font-weight: 400; line-height: 1.35; color: var(--ink-3); }
.credit a { color: inherit; }
/* fotka bez popisku (karty, úvod): autor v rohu přes fotku */
.photo > .credit { position: absolute; right: 8px; bottom: 8px; z-index: 2; max-width: calc(100% - 16px); padding: 3px 7px;
  border-radius: 6px; background: rgba(10, 12, 11, .62); color: #f3f1ea; font-size: 10.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- úvod: hlavní článek ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(540px, 76vh, 760px);
  color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 10, .55) 0%, rgba(8, 12, 10, 0) 70%),
    linear-gradient(180deg, rgba(8, 12, 10, .12) 0%, rgba(8, 12, 10, .42) 42%, rgba(8, 12, 10, .9) 100%); }
.hero__media > .credit { top: 12px; bottom: auto; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: end; padding-block: 56px; }
.hero__kicker { margin: 0 0 14px; color: rgba(255, 255, 255, .85); font: 700 12px/1.3 var(--sans); letter-spacing: .14em;
  text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.hero__title { margin: 16px 0; font: 700 clamp(34px, 5.2vw, 62px)/1.04 var(--serif); letter-spacing: -.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero__title a { color: inherit; text-decoration: none; }
.hero__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hero__perex { max-width: 62ch; margin: 0 0 22px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero__meta .meta { color: rgba(255, 255, 255, .82); margin: 0; }
.hero .chip--wheat, .hero .chip--poppy, .hero .chip--green, .hero .chip--sky, .hero .chip--plum {
  background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero__gauge { background: var(--glass); color: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-color: transparent; box-shadow: var(--shadow); }

/* ---------- panely ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.panel__h { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--ink-3);
  font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.panel__h::before { content: ''; width: 18px; height: 3px; border-radius: 2px; background: var(--poppy); }
.panel__note { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }
.toplist { counter-reset: top; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.toplist li { counter-increment: top; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 8px; }
.toplist li::before { content: counter(top); grid-row: span 2; font: 700 30px/1 var(--serif); color: var(--wheat); }
.toplist a { color: var(--ink); font: 600 16px/1.3 var(--serif); text-decoration: none; }
.toplist a:hover { text-decoration: underline; }
.toplist__views { font-size: 12px; color: var(--ink-3); }
.panel--quiz { background: var(--green-deep); border-color: transparent; color: #eef3ec; }
.panel--quiz .kicker { color: #f0cf8a; }
.panel--quiz .panel__h { color: #fff; font: 700 24px/1.15 var(--serif); letter-spacing: -.01em; text-transform: none; margin: 8px 0; }
.panel--quiz .panel__h::before { display: none; }
.panel--quiz p { margin: 0 0 16px; font-size: 15px; }
.ad { padding: 12px 0; border-top: 1px dashed var(--line); }
.ad:first-of-type { border-top: 0; padding-top: 0; }
.ad__title { display: block; font: 700 17px/1.3 var(--serif); }
.ad p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.ad__tag { float: right; margin-left: 8px; padding: 3px 7px; border-radius: 5px; background: var(--wheat); color: #3b2a00;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- pravdoměr ---------- */
.gauge { margin: 0; text-align: center; }
.gauge svg { display: block; width: 100%; max-width: 240px; height: auto; margin-inline: auto; overflow: visible; }
.gauge__seg { fill: none; stroke-width: 16; }
.gauge__seg--1 { stroke: var(--poppy); }
.gauge__seg--2 { stroke: #e07a3f; }
.gauge__seg--3 { stroke: var(--wheat); }
.gauge__seg--4 { stroke: #8fbf6a; }
.gauge__seg--5 { stroke: var(--green-2); }
.gauge__end { fill: var(--ink-3); font: 700 10px var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.gauge__needle { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(var(--deg));
  transition: transform 1.6s cubic-bezier(.25, 1.5, .5, 1); }
.gauge__needle line { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.gauge__needle circle { fill: var(--ink); }
.js .gauge:not(.is-in) .gauge__needle { transform: rotate(-90deg); }
.gauge figcaption { margin-top: 8px; color: var(--ink-2); font-weight: 600; }
.gauge__value { display: block; font: 700 30px/1.1 var(--serif); color: var(--ink); }

/* ---------- úvod: mřížka, boční sloupec ---------- */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-block: 56px; }
.home__side { display: flex; flex-direction: column; gap: 24px; }
.sec-h { margin: 0 0 24px; font: 700 clamp(24px, 2.6vw, 32px)/1.15 var(--serif); letter-spacing: -.01em; }
.sec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sec-more { font-size: 14px; font-weight: 700; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .photo { aspect-ratio: 3 / 2; overflow: hidden; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .photo img { transform: scale(1.04); }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 16px 18px 18px; }
.card__chips { position: relative; z-index: 2; }
.card__title { margin: 0; font: 650 20px/1.22 var(--serif); letter-spacing: -.005em; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card__perex { margin: 0; color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; }
.meta { margin-top: auto; color: var(--ink-3); font-size: 13px; }
@media (min-width: 720px) {
  .home__main .card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
  .home__main .card:first-child .photo { aspect-ratio: auto; min-height: 300px; }
  .home__main .card:first-child .card__body { padding: 28px; justify-content: center; }
  .home__main .card:first-child .card__title { font-size: 30px; }
  .home__main .card:first-child .card__perex { font-size: 16px; -webkit-line-clamp: 5; }
}

.sec-h--more { margin-top: 48px; font-size: 22px; }
.newslist { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.newslist li { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.newslist .chip { flex: none; }
.newslist a:not(.chip) { color: var(--ink); font: 600 17px/1.35 var(--serif); text-decoration: none; }
.newslist a:not(.chip):hover { text-decoration: underline; }
.sec-cta { margin: 28px 0 0; }

/* ---------- úvod: fotky, rubriky ---------- */
.strip { padding-block: 56px; background: var(--paper-2); border-block: 1px solid var(--line); }
.strip__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.strip__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.strip__item figcaption { margin-top: 8px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.rubriky { padding-block: 56px 72px; }
.rubriky__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.rubrika-tile { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line);
  border-top: 4px solid var(--c); border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none;
  transition: transform .2s, box-shadow .2s; }
.rubrika-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.rubrika-tile strong { font: 700 20px/1.2 var(--serif); }
.rubrika-tile span { color: var(--ink-2); font-size: 14px; }
.rubrika-tile em { margin-top: auto; color: var(--ct); font-size: 12px; font-style: normal; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; }

/* ---------- záhlaví stránek ---------- */
.pagehead { padding-block: 56px 40px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c, var(--green-2)) 12%, var(--paper)) 0%, var(--paper) 100%); }
.pagehead__title { margin: 10px 0 12px; font: 700 clamp(34px, 5vw, 56px)/1.05 var(--serif); letter-spacing: -.02em; }
.pagehead__perex { max-width: 65ch; margin: 0; color: var(--ink-2); font-size: 18px; }
.listing { padding-block: 40px 72px; }
.empty { color: var(--ink-3); font-size: 18px; }

/* ---------- stránkování, archiv ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; }
.pagination a:hover { border-color: var(--ink-3); }
.pagination [aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.archive { padding-block: 32px 72px; }
.archive__month { margin-top: 28px; }
.archive__h { position: sticky; top: 72px; z-index: 1; margin: 0 0 8px; padding: 8px 0; background: var(--paper);
  font: 700 22px/1.2 var(--serif); }
.archive__h::first-letter { text-transform: uppercase; }
.archive__list { margin: 0; padding: 0; list-style: none; }
.archive__list li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line); }
.archive__list time { color: var(--ink-3); font-size: 13px; }
.archive__list a:not(.chip) { color: var(--ink); font-weight: 600; text-decoration: none; }
.archive__list a:not(.chip):hover { text-decoration: underline; }

/* ---------- článek ---------- */
.article { padding-block: 40px 24px; }
.article__head { max-width: 880px; }
.article__title { margin: 16px 0; font: 700 clamp(32px, 4.6vw, 54px)/1.08 var(--serif); letter-spacing: -.02em; }
.article__perex { margin: 0 0 16px; color: var(--ink-2); font-size: clamp(18px, 1.8vw, 21px); font-weight: 500; line-height: 1.5; }
.article__meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 28px; color: var(--ink-3); font-size: 14px; }
.article__meta .meta { margin: 0; font-size: inherit; }
.article__photo img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius); }
.article__photo figcaption, .prose .photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; margin-top: 40px; }
.article__side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.related { padding-block: 24px 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; color: var(--ink-3); font-size: 14px; }
.crumbs a { color: var(--ink-2); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager__link { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none; }
.pager__link:hover { border-color: var(--ink-3); }
.pager__link span { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.pager__link strong { font: 600 17px/1.3 var(--serif); }
.pager__link--next { text-align: right; }

.prose { max-width: 70ch; font-size: 18px; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 1.8em 0 .6em; font: 700 28px/1.2 var(--serif); letter-spacing: -.01em; }
.prose h3 { margin: 1.5em 0 .5em; font: 700 22px/1.25 var(--serif); }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--poppy); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--wheat);
  font: 500 21px/1.5 var(--serif); }
.prose blockquote p { margin: 0; }
.prose .verse { padding-left: 18px; border-left: 2px solid var(--line); font-family: var(--serif); font-size: 1.05em; line-height: 1.6; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.prose .photo { margin: 1.8em 0; }
.prose .photo img { border-radius: 12px; }
.prose--page { padding-block: 40px 72px; }
.callout { margin: 1.6em 0; padding: 16px 20px; border-left: 4px solid var(--wheat); border-radius: 12px; background: var(--paper-2);
  font-size: 16px; line-height: 1.6; }
.callout p:last-child { margin-bottom: 0; }
.callout__title { margin: 0 0 6px; color: var(--ink-2); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.callout--alert { border-left-color: var(--poppy); background: color-mix(in srgb, var(--poppy) 9%, var(--paper)); }

/* ---------- galerie ---------- */
.gallery { columns: 3 300px; column-gap: 20px; padding-block: 40px 72px; }
.gallery__item { margin: 0 0 22px; break-inside: avoid; }
.gallery__open { display: block; overflow: hidden; border-radius: 12px; cursor: zoom-in; }
.gallery__open img { width: 100%; transition: transform .5s; }
.gallery__open:hover img { transform: scale(1.03); }
.gallery__item figcaption { margin-top: 8px; font-size: 14px; font-weight: 600; }
.lightbox { max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; padding: 0; border: 0;
  background: rgba(8, 10, 9, .96); overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(8, 10, 9, .6); }
.lightbox__fig { margin: 0; padding: 56px 64px 24px; text-align: center; }
.lightbox__fig img { width: auto; max-width: min(1400px, 100%); max-height: calc(100vh - 140px); margin: 0 auto; border-radius: 8px; }
.lightbox__fig figcaption { margin-top: 12px; color: #f3f1ea; font-weight: 600; }
.lightbox__fig .credit { color: #c6c9c0; }
.lightbox .iconbtn { position: fixed; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* ---------- kvíz ---------- */
.quiz { padding-block: 40px 72px; }
.quiz__q { margin: 0 0 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.quiz__q legend { float: left; width: 100%; margin: 0 0 14px; padding: 0; font: 700 20px/1.3 var(--serif); }
.quiz__n { display: block; margin-bottom: 4px; color: var(--ink-3); font: 700 12px var(--sans); letter-spacing: .1em; }
.quiz__opts { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { position: relative; display: flex; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span { flex: 1; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px; line-height: 1.4;
  transition: border-color .15s, background .15s; }
.opt:hover span { border-color: var(--ink-3); }
.opt input:checked + span { border-color: var(--green-2); background: color-mix(in srgb, var(--green-2) 14%, transparent); font-weight: 600; }
.opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.quiz__result { margin-top: 8px; padding: 32px 24px; text-align: center; }
.quiz__result .gauge svg { max-width: 300px; }
.quiz__title { margin: 16px 0 8px; font: 700 clamp(26px, 4vw, 36px)/1.15 var(--serif); }
.quiz__text { max-width: 52ch; margin: 0 auto 8px; color: var(--ink-2); font-size: 17px; }
.quiz__score { margin: 0 0 20px; color: var(--ink-3); font-size: 14px; }

/* ---------- patička ---------- */
.foot { padding-block: 56px 28px; background: var(--foot-bg); color: #d9d4c7; font-size: 15px; }
.foot a { color: #fff; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot .brand { color: #fff; margin-bottom: 16px; }
.foot .brand__name em { color: #9ad6a8; }
.foot .brand__tag { color: #a9b0a6; white-space: normal; }
.foot .brand__bg { fill: #2f5d3a; }
.foot .brand__arc, .foot .brand__needle { stroke: #f7f4ec; }
.foot__brand p { max-width: 52ch; margin: 0; color: #c2c6bc; }
.foot__h { margin: 4px 0 14px; color: #a9b0a6; font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.foot__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.foot__list a { text-decoration: none; }
.foot__list a:hover { text-decoration: underline; }
.foot__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: #a9b0a6; font-size: 13px; }
.foot__legal p { margin: 0 0 6px; }

/* ---------- šířky ---------- */
@media (max-width: 1080px) {
  .navbtn { display: inline-grid; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; margin: 0; padding: 12px var(--gutter) 18px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { padding: 12px 14px; font-size: 16px; border-radius: 12px; }
  .top__tools { margin-left: auto; }
  .nav + .top__tools { margin-left: auto; }
}
@media (max-width: 1000px) {
  .home { grid-template-columns: minmax(0, 1fr); }
  .home__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .article__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .article__side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .strip__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 40px; }
  .hero__gauge { max-width: 380px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .masthead__price { display: none; }
  .archive__list li { grid-template-columns: minmax(0, 1fr) auto; }
  .archive__list time { grid-column: 1 / -1; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .newslist li { flex-direction: column; gap: 6px; }
  .quiz__opts { grid-template-columns: minmax(0, 1fr); }
  .strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose { font-size: 17px; }
  .home, .rubriky, .strip { padding-block: 40px; }
  .card__title { font-size: 19px; }
}
@media (max-width: 480px) {
  .brand__tag { display: none; }
  .brand { gap: 10px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 19px; }
  .top__bar { gap: 12px; }
  .top__tools { gap: 6px; }
  .masthead__in { justify-content: center; }
  .masthead__in > :first-child { display: none; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .lightbox__fig { padding: 56px 8px 16px; }
}
@media (max-width: 400px) {
  .brand__mark { width: 32px; height: 32px; }
  .brand__name { font-size: 17px; }
  .top__bar .iconbtn { width: 38px; height: 38px; }
}
@media (max-width: 340px) {
  .brand__name { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
