/* Světlá čtenářská úprava. Veškerá písma jsou místní. */
@media screen {
  :root {
    --ink: #16283a;
    --muted: #506173;
    --paper: #fafcfd;
    --wash: #edf2f7;
    --line: #ced8e1;
    --accent: #2348ac;
    --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --serif: var(--sans);
    --width: 1176px;
  }
  html { color-scheme: light; scroll-padding-top: 84px; }
  body { background: var(--paper); font-family: var(--sans); }
  ::selection { background: #c8dcff; color: #10244a; }
  .site-header { background: #fff; border: 0; border-bottom: 1px solid var(--line); }
  .site-header .header-inner { min-height: 73px; gap: 24px; }
  .site-header .brand { gap: 12px; }
  .site-header .brand-mark {
    width: 45px; height: 44px; border: 0; border-radius: 9px 3px 9px 3px;
    background: #233f88; color: #fff; font: 800 22px/1 var(--sans); letter-spacing: -2px;
  }
  .site-header .brand strong { font: 750 19px/1.15 var(--sans); letter-spacing: -.55px; color: var(--ink); }
  .site-header .brand small { color: var(--muted); font-size: 13px; letter-spacing: 0; text-transform: none; }
  .site-header .primary-nav { gap: clamp(12px, 2vw, 29px); }
  .site-header .primary-nav a { color: #34495c; font-size: 15px; font-weight: 650; padding: 22px 0; }
  .site-header .primary-nav a:is([aria-current="page"], :hover) { color: var(--accent); border-bottom-color: var(--accent); }
  :is(a, button, summary):focus-visible { outline: 3px solid #315dd1; outline-offset: 4px; }
  .wrap.home { max-width: var(--width); }
  .home .field-lead {
    display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .97fr);
    align-items: center; gap: clamp(30px, 5vw, 74px); padding: clamp(38px, 5vw, 70px) 0 40px;
  }
  .field-lead .home-head { max-width: none; padding: 0; }
  .home .field-lead h1 {
    margin: 0 0 22px; color: var(--ink); max-width: 16ch;
    font: 720 clamp(42px, 4.5vw, 68px)/1.04 var(--sans);
    letter-spacing: -.037em; text-wrap: balance;
  }
  .field-lead .front-lead { font: 400 clamp(17px, 1.45vw, 20px)/1.55 var(--sans); color: #34485b; }
  .field-lead .context-link { color: #203a56; text-decoration-color: #a2afbd; text-underline-offset: 3px; font-weight: 550; }
  .field-lead .context-link:hover { color: var(--accent); text-decoration-color: currentColor; }
  .field-lead .reference a { color: var(--accent); }
  .field-lead .home-actions { gap: 10px 24px; margin-top: 25px; }
  .field-lead .home-actions .button, .evidence-action, .start-topic {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 46px; padding: 11px 17px; background: var(--accent); border: 1px solid var(--accent);
    border-radius: 7px; color: #fff; font: 700 16px/1.35 var(--sans); text-decoration: none;
  }
  .field-lead .home-actions .button:hover, .evidence-action:hover, .start-topic:hover { color: #fff; background: #163785; }
  .lead-listen>span:last-child { display: grid; gap: 2px; text-align: left; }
  .lead-listen strong { font-size: 16px; }
  .lead-listen small { color: #edf1ff; font: 550 13px/1.3 var(--sans); }
  .clip-shape { max-width: 460px; margin: 12px 0 14px; padding: 6px 12px; border-radius: 6px; background: #223e86; }
  .clip-shape img { width: 100%; height: 43px; object-fit: fill; }
  .clip-shape figcaption { display: flex; justify-content: space-between; color: #f3f6ff; font: 600 12px/1.3 var(--sans); }
  .field-lead .home-actions a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font: 650 16px/1.4 var(--sans); text-decoration: underline; }
  .sound-sign { display: inline-flex; align-items: center; gap: 2px; height: 17px; }
  .sound-sign i { width: 2px; height: 7px; border-radius: 2px; background: currentColor; }
  .sound-sign i:nth-child(2) { height: 16px; }
  .sound-sign i:nth-child(3) { height: 11px; }
  .field-series { min-width: 0; }
  .photo-frames { display: grid; background: #192e3c; border-radius: 12px 12px 0 0; overflow: hidden; }
  .field-photo { display: block; grid-area: 1 / 1; color: #fff; text-decoration: none; }
  .field-photo[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
  .field-photo:focus-visible { outline-offset: -4px; outline-color: #d7e8ff; }
  .field-photo:hover { color: #fff; }
  .field-photo img { width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; object-position: center 40%; }
  #uvodni-sovi-hrad img { object-fit: contain; }
  .field-caption { display: grid; gap: 4px; padding: 15px 20px 18px; border-top: 3px solid #abcad9; }
  .field-caption small { color: #d3e0eb; font: 600 13px/1.4 var(--sans); }
  .field-caption strong { font: 700 clamp(19px, 1.65vw, 25px)/1.16 var(--sans); letter-spacing: -.025em; }
  .field-photo:hover .field-caption strong, .proof-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
  .photo-controls, .photo-fallback { display: flex; align-items: stretch; gap: 3px; flex-wrap: wrap; padding: 4px 7px; background: #e9eff5; border-radius: 0 0 10px 10px; }
  .photo-picks { display: flex; flex-wrap: wrap; gap: 2px; }
  .photo-controls button, .photo-fallback a {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 5px 10px;
    background: transparent; color: #26425d; border: 0; border-radius: 6px; font: 650 14px/1.25 var(--sans);
  }
  .photo-picks button[aria-pressed="true"] { background: #fff; color: #1a3c94; box-shadow: inset 0 0 0 1px #a8bdd5; }
  .photo-controls button:hover, .photo-fallback a:hover { text-decoration: underline; }
  .photo-controls .photo-rotation { margin-left: auto; gap: 7px; }
  .photo-rotation::before { content: ""; width: 7px; height: 11px; border-inline: 2px solid currentColor; }
  .photo-rotation[data-stopped]::before { width: 0; height: 0; border: 5px solid transparent; border-left: 8px solid currentColor; border-right: 0; }
  .evidence-shelf { padding: 12px 0 36px; }
  .section-bar { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 0 0 16px; }
  .section-bar h2, .home-cast-head h2 { margin: 0; font: 720 clamp(25px, 3vw, 37px)/1.15 var(--sans); letter-spacing: -.029em; }
  .section-bar>a, .story-choices a, .backlinks a { color: var(--accent); font-weight: 650; }
  .section-bar>a { font-size: 15px; }
  .proof-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .proof-card { display: flex; flex-direction: column; min-width: 0; background: white; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .proof-card:hover { color: var(--ink); border-color: #72879f; }
  .proof-visual { height: 128px; position: relative; overflow: hidden; }
  .proof-sound { background: #223e86; color: white; padding: 11px 17px; }
  .proof-sound img { display: block; width: 100%; height: 79px; object-fit: fill; }
  .sound-time { display: flex; justify-content: space-between; gap: 10px; font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; color: #ecf2ff; }
  .proof-document { color: #1f3651; background: #dfe9ef; }
  .proof-document img { position: absolute; width: 71%; max-width: 310px; height: auto; right: -4px; top: -69%; box-shadow: 0 2px 9px #233d602c; transform: rotate(-8deg); }
  .proof-document span { position: absolute; left: 16px; bottom: 14px; padding: 4px 8px; color: #102f49; background: #fff; border: 1px solid #9eadb8; border-radius: 4px; font: 650 13px/1.3 var(--sans); }
  .proof-mail { background: #ebeff6; color: #273e60; display: grid; align-content: center; padding: 14px 21px; }
  .proof-mail blockquote { border: 0; margin: 0; padding: 0; background: transparent; color: inherit; font: 600 clamp(17px, 1.45vw, 21px)/1.28 var(--sans); letter-spacing: -.025em; }
  .proof-copy { display: block; padding: 16px 18px 18px; }
  .proof-kind { display: block; margin: 0 0 6px; color: var(--muted); font: 650 13px/1.4 var(--sans); }
  .proof-copy h3 { font: 700 clamp(20px, 1.75vw, 25px)/1.16 var(--sans); letter-spacing: -.023em; margin: 0; }
  .proof-copy p { margin: 8px 0 0; color: #42576a; font: 400 16px/1.45 var(--sans); }
  .story-choices { margin: 0 0 34px; padding: 22px 0; border-block: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap; }
  .story-choices h2 { font: 730 23px/1.2 var(--sans); letter-spacing: -.03em; }
  .story-choices nav { display: flex; gap: 12px 24px; flex-wrap: wrap; }
  .story-choices a { font-size: 16px; }
  .home .home-cast { border-top: 0; padding-top: 5px; }
  .home-cast-head p { margin-top: 8px; color: var(--muted); }
  .home .home-actor-card { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
  .home .home-cast-grid { gap: 12px; }
  .home-actor-card .portrait, .topic-cast .portrait, .serial-portrait .portrait { border-radius: 7px; }
  .home-directions { border-color: var(--line); }
  .topic-page .page-head, .chapter-overview .page-head { padding-bottom: 22px; }
  .page-head h1,.document-head h1 { letter-spacing: -.045em; font-weight: 760; text-wrap: balance; }
  .page-head .lead,.page-head .story-lead,.article-text { color: #293f51; }
  .breadcrumb { font-size: 14px; }
  .topic-page .topic-text { font-size: 18px; line-height: 1.66; }
  .topic-text.with-standalone-heading > h2:first-child { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); }
  .page-head .back { margin-top: 4px; }
  .topic-cast { border-color: var(--line); }
  .topic-pagination,.story-pagination { gap: 12px; }
  .topic-pagination a, .story-pagination a { border: 1px solid var(--line); padding: 16px; border-radius: 7px; background: #fff; }
  .topic-pagination a:last-child { color: #1e3f89; background: #edf2fc; }
  .topic-pagination a small { color: #4d5d71; }
  .chapter-start { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 16px; }
  .chapter-start .continuous-link { margin: 0; }
  .mobile-topics { display: none; }
  .list-contents { display: inline-block; margin-left: 15px; color: var(--accent); font: 600 15px/1.6 var(--sans); }
  .start-topic { min-height: 44px; font-size: 15px; }
  .early-cue { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 15px 0 7px; }
  .early-cue small { font-size: 14px; color: var(--muted); }
  .backlinks,.source-photos,.gallery-evidence { margin: 24px 0; padding: 17px 20px; background: #edf2f7; max-width: 760px; border-radius: 8px; }
  .backlinks h2,.source-photos h2,.gallery-evidence h2 { margin: 0 0 6px; font: 700 19px/1.3 var(--sans); }
  .backlinks ul { margin: 0; padding-left: 20px; }
  .backlinks li { padding: 3px 0; }
  .backlinks summary { cursor: pointer; font-weight: 650; margin-top: 8px; }
  .source-photos .proof-photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding-top: 8px; }
  .proof-photos img { width: 100%; height: auto; border-radius: 5px; }
  .proof-photos figcaption, .gallery-evidence p { color: var(--muted); font: 400 15px/1.5 var(--sans); margin: 6px 0 0; }
  .gallery-evidence a { font-weight: 650; color: var(--accent); }
  .site-footer { background: #e9eff4; color: #293e51; border-top: 1px solid var(--line); }
}
@media screen and (max-width: 850px) {
  .home .field-lead { gap: 25px; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
  .proof-grid { gap: 12px; }
  .proof-copy { padding: 13px; }
}
@media screen and (max-width: 740px) {
  html { scroll-padding-top: 14px; }
  .site-header { position: static; }
  .site-header .header-inner { min-height: 0; padding-top: 11px; width: calc(100% - 32px); }
  .site-header .brand-mark { width: 32px; height: 33px; font-size: 17px; border-radius: 6px 2px; }
  .site-header .brand { gap: 9px; }
  .site-header .brand strong { font-size: 17px; }
  .site-header .brand small { font-size: 12px; }
  .site-header .primary-nav { display: flex; justify-content: space-between; gap: 3px; margin-top: 3px; }
  .site-header .primary-nav a { padding: 10px 1px 8px; min-height: 38px; font: 650 14px/1.25 var(--sans); }
  .home .field-lead { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding: 28px 0 18px; }
  .home .field-lead h1 { max-width: 16ch; font-size: clamp(36px, 9.6vw, 48px); margin-bottom: 14px; }
  .field-lead .front-lead { font-size: 17px; line-height: 1.55; }
  .field-lead .home-actions { margin-top: 16px; gap: 5px 14px; }
  .field-lead .home-actions :is(.button, a:not(.button)) { font-size: 15px; }
  .field-series { width: 100%; }
  .field-caption { padding: 10px 14px 12px; }
  .field-caption strong { font-size: 19px; }
  .photo-controls { padding-inline: 4px; }
  .photo-controls button { font-size: 13px; padding-inline: 7px; }
  .section-bar h2 { font-size: 26px; }
  .evidence-shelf { padding: 10px 0 22px; }
  .proof-grid { grid-template-columns: 1fr; gap: 9px; }
  .proof-card { display: grid; grid-template-columns: minmax(84px,30%) minmax(0,1fr); }
  .proof-visual { height: 100%; min-height: 117px; }
  .proof-sound { display: grid; align-content: center; padding: 10px; }
  .proof-sound img { height: 56px; }
  .proof-document img { width: 118%; max-width: none; top: -4%; right: -22%; }
  .proof-document span { left: 6px; bottom: 7px; font-size: 12px; padding: 2px 4px; }
  .proof-mail { padding: 9px; }
  .proof-mail blockquote { font-size: 14px; line-height: 1.25; }
  .proof-copy { align-self: center; padding: 12px; }
  .proof-copy h3 { font-size: 20px; }
  .proof-copy p { margin-top: 4px; font-size: 15px; }
  .proof-kind { font-size: 12px; margin-bottom: 4px; }
  .story-choices { margin-bottom: 24px; padding: 16px 0; }
  .story-choices nav { gap: 8px 16px; }
  .home .home-cast-grid { grid-template-columns: 1fr; }
  .home .home-actor-card { padding: 14px; }
  .home-actor-card .home-actor-top { flex-direction: row; gap: 12px; align-items: center; }
  .home-actor-top .portrait { width: 58px; height: 66px; flex-basis: 58px; }
  .home-actor-card .home-actor-fact { margin-top: 7px; }
  .breadcrumb { padding-top: 14px; }
  .page-head { padding: 14px 0 20px; }
  .page-head h1 { margin: 7px 0 12px; }
  .chapter-index>.topic-index { display: none; }
  .mobile-topics { display: block; margin: 0 0 18px; padding: 9px 13px; background: var(--wash); border-radius: 6px; }
  .mobile-topics summary { cursor: pointer; min-height: 32px; padding: 4px 0; font-weight: 650; }
  .mobile-topics .topic-index { border: 0; }
  .topic-page>.topic-cast { margin: 0 0 14px; padding: 8px 0; }
  .topic-page .topic-cast .topic-cast-person { flex-direction: row; align-items: center; flex: 1 1 144px; gap: 8px; }
  .topic-page .topic-cast .portrait { width: 40px; height: 50px; flex: 0 0 40px; }
  .topic-page .topic-cast .topic-cast-name { font-size: 15px; }
  .topic-page .topic-cast .topic-cast-role { font-size: 13px; }
  .topic-page .topic-text { font-size: 17px; }
  .source-photos .proof-photos { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .photo-controls, .photo-fallback, .field-photo[aria-hidden="true"] { display: none; }
}
