:root {
  --paper: #ede2c5;
  --paper-dark: #c8b896;
  --paper-shadow: #b8a47c;
  --ink: #1a120a;
  --ink-soft: #3d2e1a;
  --accent: #5a1a14;
  --rule: #1a120a;
  --serif: "PT Serif", "Old Standard TT", Georgia, serif;
  --display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --display-bold: "Playfair Display", "Cinzel", Georgia, serif;
  --smallcaps: "Cinzel", "Playfair Display", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%; width: 100%;
  background: #0e0a06;
  color: var(--ink);
  font-family: var(--serif);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

/* === Pozadí: video tavernu === */
.bg-video {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #0a0604;  /* fallback dokud se video nenačte */
}
.bg-overlay {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.30) 20%, rgba(0,0,0,0.78) 100%);
  pointer-events: none;
}

/* === Loader === */
.loader {
  position: fixed; inset: 0; display: grid; place-items: center;
  color: var(--paper); font-family: var(--display); font-size: 30px;
  background: #0e0a06; z-index: 100;
  transition: opacity 0.6s ease;
  letter-spacing: 1px;
}
.loader-text::after {
  content: "…"; animation: dots 1.4s infinite;
}
@keyframes dots {
  0%, 20% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}
.loader.hide { opacity: 0; pointer-events: none; }

/* === Spodní lišta === */
.bottombar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
}
.iconbtn {
  background: rgba(237,226,197,0.10);
  border: 1px solid rgba(237,226,197,0.35);
  color: var(--paper);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  font-family: var(--display);
  transition: background 0.2s, transform 0.15s;
  display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.iconbtn:hover { background: rgba(237,226,197,0.22); }
.iconbtn:active { transform: scale(0.94); }
.iconbtn.on {
  background: rgba(237,226,197,0.4);
  color: #1a120a;
  border-color: rgba(237,226,197,0.6);
}
.pageinfo {
  color: var(--paper);
  font-family: var(--smallcaps);
  font-size: 14px;
  min-width: 70px;
  text-align: center;
  letter-spacing: 2px;
  opacity: 0.85;
}

/* === Stage (obsah) === */
.stage {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 16px 8px 80px;
  z-index: 1;
}

/* Spodní lišta navigace na všech zařízeních */
@media (max-width: 768px) {
  #pageInfo { font-size: 12px; min-width: 50px; }
  .iconbtn { width: 42px; height: 42px; font-size: 20px; }
}

/* Zlatá svítící šipka vpravo (next) */
#nextBtn {
  background: rgba(255, 200, 80, 0.22);
  border-color: rgba(255, 215, 110, 0.7);
  color: #ffd76b;
  box-shadow: 0 0 12px rgba(255, 200, 80, 0.45), inset 0 0 6px rgba(255, 200, 80, 0.25);
  animation: glow-gold 2.4s ease-in-out infinite;
}
#nextBtn:hover {
  background: rgba(255, 200, 80, 0.4);
  box-shadow: 0 0 18px rgba(255, 215, 100, 0.7), inset 0 0 8px rgba(255, 200, 80, 0.4);
}
@keyframes glow-gold {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 200, 80, 0.45), inset 0 0 6px rgba(255, 200, 80, 0.25); }
  50%      { box-shadow: 0 0 20px rgba(255, 220, 130, 0.85), inset 0 0 10px rgba(255, 210, 90, 0.5); }
}
.book {
  position: relative;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.65)) drop-shadow(0 8px 20px rgba(0,0,0,0.4));
}

/* === Stránka === */
.page {
  background: var(--paper);
  background-color: var(--paper);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

/* Vrstvy: paper-tex (z:1, šum) → bg-layer (z:2, ozdobný okraj z nano banana, multiply na papír) → page-inner (z:3, obsah) */
.page-paper-tex {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(0,0,0,0.04), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(80,40,10,0.10), transparent 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.3  0 0 0 0 0.18  0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 1;
}
.page-bg-layer {
  position: absolute; inset: 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 1;
  z-index: 2;
}
.page-inner {
  position: absolute; inset: 0;
  padding: 6% 7% 8% 7%;
  overflow: hidden;
  display: flex; flex-direction: column;
  z-index: 3;
}
/* Dvojitý novinový rámeček v CSS — máme nad ním plnou kontrolu */
.page-frame {
  position: absolute;
  top: 4%; right: 5%; bottom: 4%; left: 5%;
  border: 1px solid rgba(26,18,10,0.85);
  pointer-events: none;
  z-index: 2;
}
.page-frame::before {
  content: ""; position: absolute;
  top: 4px; right: 4px; bottom: 4px; left: 4px;
  border: 1px solid rgba(26,18,10,0.65);
}
/* Drobné rohové ornamenty */
.page-frame::after {
  content: "";
  position: absolute;
  top: -7px; left: -7px; right: -7px; bottom: -7px;
  background:
    radial-gradient(circle at 0 0,     rgba(26,18,10,0.85) 0 2px, transparent 3px) top    left / 14px 14px no-repeat,
    radial-gradient(circle at 100% 0,  rgba(26,18,10,0.85) 0 2px, transparent 3px) top    right / 14px 14px no-repeat,
    radial-gradient(circle at 0 100%,  rgba(26,18,10,0.85) 0 2px, transparent 3px) bottom left / 14px 14px no-repeat,
    radial-gradient(circle at 100% 100%, rgba(26,18,10,0.85) 0 2px, transparent 3px) bottom right / 14px 14px no-repeat;
  pointer-events: none;
}

/* === Typografie === */
.page h1, .page h2, .page h3 {
  font-family: var(--display-bold);
  font-weight: 900;
  margin: 0;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
}
.page p {
  font-family: var(--serif);
  font-size: 1em;
  line-height: 1.45;
  margin: 0 0 0.7em;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 7 4 3;
}

.rubric {
  font-family: var(--smallcaps);
  font-weight: 600;
  letter-spacing: 0.32em;
  font-size: 0.78em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 0.4em 0.8em;
  display: inline-block;
  margin: 0 0 0.8em;
  align-self: flex-start;
}

.byline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85em;
  color: var(--ink-soft);
  margin: 0.2em 0 0.8em;
  border-bottom: 1px solid rgba(26,18,10,0.4);
  padding-bottom: 0.5em;
}

/* === Reportáž (feature) === */
.feature h1.char-name {
  font-family: var(--display-bold);
  font-weight: 900;
  font-style: italic;
  font-size: 2.5em;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 0.15em;
  white-space: nowrap;
  overflow: visible;
}
/* Auto-zmenšení pokud je jméno dlouhé (Hannah Abbottová, Levandule Brownová atd.) */
@media (max-width: 480px) {
  .feature h1.char-name { font-size: 2.1em; letter-spacing: -0.03em; }
}

/* Lede: blok kde plave hero a obtéká text */
.feature .lede { position: relative; }
.feature .lede::after { content: ""; display: block; clear: both; }

.feature .hero {
  float: right;
  width: 55%;
  margin: 0.2em 0 0.5em 1em;
  position: relative;
  border: 1px solid rgba(26,18,10,0.7);
  background: var(--paper-dark);
  shape-outside: margin-box;
}
/* poster image: drží rozměr; video překryje když se načte */
.feature .hero {
  isolation: isolate;  /* aby blend uvnitř neunikl */
  mix-blend-mode: multiply;
}
.feature .hero img.hero-poster {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) sepia(0.65) contrast(1.05) brightness(0.88) saturate(1.3);
}
.feature .hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) sepia(0.65) contrast(1.05) brightness(0.88) saturate(1.3);
}
.feature .hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,0.30) 0.5px, transparent 1px);
  background-size: 2.5px 2.5px;
  mix-blend-mode: multiply;
  opacity: 0.25;
  z-index: 1;
}
/* popisek odstraněn */

.feature .lead {
  font-size: 1.05em;
  line-height: 1.5;
}
.feature .lead::first-letter {
  font-family: var(--display-bold);
  font-weight: 900;
  font-style: italic;
  float: left;
  font-size: 4.2em;
  line-height: 0.85;
  padding: 0.05em 0.12em 0 0;
  color: var(--accent);
}

.qa {
  margin: 1em 0 0.6em;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  padding: 0.6em 0;
  clear: both;
}
.qa .qlabel,
.qa .alabel {
  font-family: var(--smallcaps);
  font-weight: 600;
  letter-spacing: 0.25em;
  font-size: 0.65em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin: 0 0 0.3em;
}
.qa .question {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1em;
  margin: 0 0 0.6em;
  text-align: left;
}
.qa .answer {
  font-family: var(--display-bold);
  font-weight: 700;
  font-style: italic;
  font-size: 1.45em;
  line-height: 1.2;
  text-align: center;
  margin: 0;
  position: relative;
  padding: 0 0.6em;
}
.qa .answer::before, .qa .answer::after {
  font-family: var(--display-bold);
  color: var(--accent);
  font-size: 1.6em;
  line-height: 0;
  position: relative;
  vertical-align: -0.4em;
}
.qa .answer::before { content: "“"; margin-right: 0.1em; }
.qa .answer::after  { content: "”"; margin-left: 0.1em; }

.feature .closing {
  margin-top: 0.6em;
  font-style: italic;
}

.feature .sidebar {
  margin-top: auto;
  padding: 0.5em 0 1.6em 0;
  border-top: 3px double var(--rule);
  display: block;
}
.feature .sidebar .box {
  padding: 0.55em 0.7em 0.45em;
  position: relative;
}
.feature .sidebar .box .title { font-size: 1em; padding-right: 7em; }
.feature .sidebar .box .body {
  font-size: 0.85em; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* "Placená reklama" odznak v pravém horním rohu */
.feature .sidebar .box::before {
  content: "Placená reklama";
  position: absolute;
  top: 0; right: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--smallcaps);
  font-weight: 600;
  font-style: normal;
  font-size: 0.55em;
  letter-spacing: 0.22em;
  padding: 0.22em 0.6em 0.18em;
  text-transform: uppercase;
}
.box {
  border: 1px solid var(--rule);
  padding: 0.4em 0.6em;
  background: rgba(26,18,10,0.04);
}
.box .title {
  font-family: var(--display-bold);
  font-weight: 900;
  font-size: 0.95em;
  margin-bottom: 0.2em;
}
.box .body { font-size: 0.78em; line-height: 1.35; }
.tip {
  font-family: var(--smallcaps);
  font-weight: 600;
  font-size: 0.72em;
  letter-spacing: 0.12em;
  padding: 0.3em 0.5em;
  border-left: 3px solid var(--accent);
  background: rgba(90,26,20,0.08);
}
.weather, .ticker {
  font-family: var(--smallcaps);
  font-size: 0.72em;
  letter-spacing: 0.12em;
  padding: 0.3em 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.personals { margin: 0; padding: 0; list-style: none; font-size: 0.78em; line-height: 1.35; }
.personals li { padding: 0.2em 0.4em; border-left: 2px solid var(--paper-shadow); margin-bottom: 0.3em; font-style: italic; }

.foot {
  position: absolute; left: 0; right: 0;
  bottom: 0;
  text-align: center;
  font-family: var(--smallcaps);
  font-size: 0.65em;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  opacity: 0.92;
  pointer-events: none;
  background: linear-gradient(to top, var(--paper) 0%, var(--paper) 60%, rgba(237,226,197,0) 100%);
  padding: 24px 0 1.4%;
}
.feature .box .body, .feature .personals { font-size: 0.74em; }
.feature .tip { font-size: 0.68em; }
.feature .ticker, .feature .weather { font-size: 0.68em; }

/* === Titulka === */
.cover .masthead {
  text-align: center;
  border-bottom: 3px double var(--rule);
  padding-bottom: 0.5em;
  margin-bottom: 0.6em;
}
.cover .masthead .title {
  font-family: var(--display-bold);
  font-weight: 900;
  font-style: italic;
  font-size: 3.2em;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.cover .masthead .meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--smallcaps);
  font-size: 0.65em;
  letter-spacing: 0.15em;
  padding-top: 0.4em;
  color: var(--ink-soft);
}
.cover .kicker {
  font-family: var(--smallcaps);
  letter-spacing: 0.4em;
  font-size: 0.65em;
  color: var(--paper);
  background: var(--accent);
  padding: 0.4em 0.8em;
  display: inline-block;
  margin: 0 0 0.5em;
}
.cover h1.headline {
  font-family: var(--display-bold);
  font-weight: 900;
  font-size: 2.3em;
  line-height: 0.95;
  margin: 0.1em 0 0.25em;
  text-align: left;
}
.cover .subhead {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  font-size: 0.95em;
  margin: 0 0 0.5em;
  text-align: left;
}
.cover .hero {
  float: right;
  width: 48%;
  margin: 0.2em 0 0.5em 1em;
  position: relative;
  border: 1px solid rgba(26,18,10,0.7);
  background: var(--paper-dark);
  shape-outside: margin-box;
}
.cover .hero {
  isolation: isolate;
  mix-blend-mode: multiply;
}
.cover .hero img.hero-poster {
  display: block; width: 100%; height: auto;
  filter: grayscale(1) sepia(0.65) contrast(1.05) brightness(0.88) saturate(1.3);
}
.cover .hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) sepia(0.65) contrast(1.05) brightness(0.88) saturate(1.3);
}
.cover .hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,0.30) 0.5px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: 0.25;
  z-index: 1;
}
/* popisek odstraněn */
.cover .cover-body {
  position: relative;
}
.cover .cover-body::after { content: ""; display: block; clear: both; }
.cover .cover-body p { font-size: 0.8em; margin: 0 0 0.5em; }
.cover .cover-body .lead::first-letter {
  font-family: var(--display-bold);
  font-weight: 900;
  font-style: italic;
  float: left;
  font-size: 3.2em;
  line-height: 0.85;
  padding: 0.05em 0.1em 0 0;
  color: var(--accent);
}
.cover .secondary {
  margin-top: auto;
  border-top: 2px solid var(--rule);
  padding: 0.4em 0 0;
  clear: both;
}
.cover .secondary h2 {
  font-family: var(--display-bold);
  font-weight: 900;
  font-size: 1.1em;
  margin: 0 0 0.15em;
}
.cover .secondary p { font-size: 0.8em; margin: 0 0 0.3em; }
.cover .weather { font-size: 0.7em; margin-bottom: 1.4em; }

/* === Zadní strana === */
/* === Colophon (Imerze tiráž, poslední strana) === */
.colophon { display: flex; flex-direction: column; height: 100%; align-items: center; }
.colophon-main {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  width: 100%;
}
.colophon .kicker {
  font-family: var(--smallcaps); letter-spacing: 0.4em; font-size: 0.7em;
  color: var(--accent); margin: 0 0 0.3em;
}
.colophon h1 {
  font-family: var(--display-bold); font-weight: 900; font-style: italic;
  font-size: 2em; line-height: 1; margin: 0 0 0.45em;
  text-align: center;
}
.colophon .imerze-logo {
  width: 28%; max-width: 160px;
  margin: 0.2em 0 0.8em;
  filter: contrast(1.05);
}
.colophon p {
  font-size: 0.92em; line-height: 1.5;
  max-width: 92%; margin: 0 auto 0.6em;
  text-align: center !important;
  hyphens: auto;
}
.colophon p.lead { font-style: italic; font-size: 1em; }
.colophon p.lead::first-letter { all: unset; }
.colophon p.cta { margin: 0.5em auto 0; }
.colophon p.cta a {
  font-family: var(--smallcaps); font-weight: 600;
  letter-spacing: 0.3em; font-size: 1.05em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: 0.4em 1em;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.colophon p.cta a:hover { background: var(--ink); color: var(--paper); }
.colophon p.credit {
  margin: 0 auto 2.5em;
  font-size: 0.78em;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
}
.colophon p.credit strong { color: var(--ink); font-style: normal; }
.colophon p.credit a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-style: normal;
}
.colophon p.credit a:hover { color: var(--accent); }
.colophon p.disclaimer {
  font-size: 0.55em;
  line-height: 1.4;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.7;
  margin: 0.4em auto 1.5em;
  max-width: 95%;
}

.back .ads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
  margin: 0.5em 0;
}
.back h1 {
  font-family: var(--display-bold);
  font-weight: 900;
  font-style: italic;
  font-size: 2em;
  text-align: center;
  margin-bottom: 0.5em;
}
.back h2 {
  font-family: var(--display-bold);
  font-weight: 900;
  font-size: 1.3em;
  margin-top: 0.6em;
  border-top: 2px solid var(--rule);
  padding-top: 0.4em;
}

/* === Hint pro mobil/první návštěvu === */
.hint {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  color: var(--paper);
  font-family: var(--smallcaps);
  font-size: 11px;
  letter-spacing: 0.25em;
  opacity: 0.55;
  pointer-events: none;
  animation: pulse 2.6s ease-in-out infinite;
  z-index: 49;
  white-space: nowrap;
}
@keyframes pulse { 0%,100% { opacity: 0.3 } 50% { opacity: 0.75 } }
