/* B · Dnešní vydání — base, header, masthead, ticker, front page */
:root {
  --red: #AB161B;
  --linen: #FAF0E6;
  --brown: #302009;
  --paper-2: #F3E6D6;
  --paper-3: #EADAC5;
  --ink-2: #5A4630;
  --grey: #8C7F70;
  --crust: #B9772F;
  --red-tint: #F2D9D3;
  --rule: rgba(48, 32, 9, .85);
  --hair: rgba(48, 32, 9, .28);
  --f-head: 'Playfair Display', 'Times New Roman', serif;
  --f-text: 'Source Serif 4', Georgia, serif;
  --f-label: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --g: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --bar: 56px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--linen); color: var(--brown);
  font: 400 18px/1.55 var(--f-text); font-optical-sizing: auto;
  overflow-x: clip;
}
/* paper fibre + faint column rules (parallax via --py) */
body::before {
  content: ''; position: fixed; inset: -40% 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .19 0 0 0 0 .13 0 0 0 0 .04 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(48, 32, 9, .045) calc(25% - 1px) 25%);
  translate: 0 calc(var(--py, 0) * 1px);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--red); color: var(--linen); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brown); color: var(--linen); padding: 12px 16px; font: 600 15px var(--f-label); }
.skip:focus { top: 12px; }
.kicker { font: 700 13px/1.2 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 20px;
  font: 700 15px/1 var(--f-label); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--brown); transition: background-color .2s, color .2s, translate .2s var(--ease);
}
.btn-red { background: var(--red); border-color: var(--red); color: var(--linen); }
.btn-ink { background: transparent; color: var(--brown); }
@media (hover: hover) {
  .btn-red:hover { background: var(--brown); border-color: var(--brown); }
  .btn-ink:hover { background: var(--brown); color: var(--linen); }
  .btn:hover { translate: 0 -2px; }
}

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50; height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--g); background: rgba(250, 240, 230, .94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hair);
}
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 15px var(--f-label); text-decoration: none; letter-spacing: .03em; }
.bar-title { position: absolute; left: 50%; translate: -50% 0; font: 800 20px/1 var(--f-head); text-decoration: none; white-space: nowrap; opacity: 0; transition: opacity .3s, visibility .3s; pointer-events: none; visibility: hidden; }
.bar-title .red { color: var(--red); }
.bar-sub { font: italic 500 16px var(--f-head); margin-left: 6px; }
.scrolled .bar-title { opacity: 1; pointer-events: auto; visibility: visible; }
.bar-r { display: flex; align-items: center; gap: 10px; }
.bar-tel { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; justify-content: center; font: 600 15px var(--f-label); text-decoration: none; }
.bar-tel svg { width: 18px; height: 18px; fill: var(--red); }
.lang { display: flex; border: 1.5px solid var(--brown); }
.lang button {
  min-width: 44px; min-height: 42px; border: 0; background: transparent; color: var(--brown); cursor: pointer;
  font: 700 14px var(--f-label); letter-spacing: .08em;
}
.lang button[aria-pressed="true"] { background: var(--brown); color: var(--linen); }
@media (max-width: 720px) {
  .tel-t, .bar-sub { display: none; }
  .bar-title { display: none; }
}

/* ---------- masthead ---------- */
.mast { max-width: var(--max); margin: 0 auto; padding: 18px var(--g) 0; text-align: center; }
.rule-x { height: 6px; border-top: 3px solid var(--brown); border-bottom: 1px solid var(--brown); transform-origin: center; }
.mast-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(12px, 3vw, 40px); padding: 10px 0 2px; }
.mast-title {
  margin: 0; padding-top: .14em; font: 900 clamp(84px, 15vw, 220px)/.86 var(--f-head); letter-spacing: -.02em; white-space: nowrap;
  display: flex; justify-content: center; gap: .04em;
}
.mast-title .ch { display: inline-block; }
.mast-title .dot { color: var(--red); font-size: .5em; align-self: center; margin: 0 .06em; }
.ear { border: 1px solid var(--brown); padding: 12px 10px; max-width: 220px; min-height: 120px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.ear-l { justify-self: start; }
.ear-r { justify-self: end; }
.ear p { margin: 0; }
.ear-k { font: 700 12px var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.ear-big { font: 800 22px/1.1 var(--f-head); }
.ear-s { font: 600 13px/1.3 var(--f-label); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.seal { width: 76px; height: 76px; }
.mast-sub { margin: 6px 0 12px; font: italic 500 clamp(17px, 2vw, 24px)/1.25 var(--f-head); }
.dateline {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 9px 0;
  border-bottom: 1px solid var(--brown); font: 600 13px/1.3 var(--f-label); letter-spacing: .1em; text-transform: uppercase;
}
.index { display: flex; justify-content: center; flex-wrap: wrap; border-bottom: 3px double var(--brown); }
.index a {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 14px; text-decoration: none;
  font: 700 14px var(--f-label); letter-spacing: .1em; text-transform: uppercase; position: relative;
}
.index a + a::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--hair); }
@media (hover: hover) { .index a:hover { color: var(--red); } }
@media (max-width: 860px) {
  .mast-row { grid-template-columns: 1fr 1fr; }
  .mast-title { grid-column: 1 / -1; order: -1; }
  .ear { max-width: none; width: 100%; min-height: 96px; }
  .ear-r { flex-direction: row; gap: 12px; }
  .seal { width: 56px; height: 56px; }
  .dateline { justify-content: center; text-align: center; }
  .index { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .index::-webkit-scrollbar { display: none; }
  .index a { white-space: nowrap; }
}
@media (max-width: 420px) {
  .ear-r { flex-direction: column; }
  .ear-big { font-size: 19px; }
}

/* ---------- ticker ---------- */
.ticker { background: var(--brown); color: var(--linen); overflow: hidden; margin-top: 18px; border-block: 2px solid var(--red); }
.tick-track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.tick-run { margin: 0; padding: 11px 0; white-space: nowrap; font: 600 15px/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; }
.tick-run b { color: #F4B8A8; margin: 0 14px 0 28px; }
.tick-run span { margin-right: 18px; }
.tick-run span::after { content: '•'; color: var(--red); margin-left: 18px; filter: brightness(1.6); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (hover: hover) { .ticker:hover .tick-track { animation-play-state: paused; } }

/* ---------- front page ---------- */
.front { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 4vw, 56px) var(--g) clamp(40px, 6vw, 88px); overflow-x: clip; }
.banner { margin: 0; font: 800 clamp(34px, 4.9vw, 80px)/1 var(--f-head); letter-spacing: -.015em; text-wrap: balance; }
.ln { display: block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.ln > span { display: inline-block; }
.deck { margin: .2em 0 0; font: italic 600 clamp(26px, 3.4vw, 52px)/1.1 var(--f-head); color: var(--red); }
.front-grid {
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 0;
  margin-top: clamp(28px, 4vw, 48px); border-top: 3px solid var(--brown);
}
.lead { padding: 22px clamp(18px, 3vw, 40px) 0 0; border-right: 1px solid var(--hair); }
.side { padding: 22px 0 0 clamp(18px, 3vw, 40px); }
.lead-h { margin: 0 0 16px; font: 900 clamp(44px, 5vw, 76px)/.95 var(--f-head); letter-spacing: -.01em; }
.tabs { display: none; }
.js .tabs { display: grid; grid-template-columns: repeat(5, 1fr); border: 1.5px solid var(--brown); border-bottom: 0; }
.tabs button {
  position: relative; min-height: 54px; border: 0; border-right: 1px solid var(--hair); background: var(--paper-2); color: var(--brown);
  font: 700 18px var(--f-label); letter-spacing: .06em; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  transition: background-color .2s, color .2s;
}
.tabs button:last-child { border-right: 0; }
.tabs button[aria-selected="true"] { background: var(--brown); color: var(--linen); }
.today-tag { display: none; font: 700 10px var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.tabs button.is-today .today-tag { display: block; }
.tabs button[aria-selected="true"] .today-tag { color: #F4B8A8; }
@media (hover: hover) { .tabs button:not([aria-selected="true"]):hover { background: var(--paper-3); } }
.sheet {
  position: relative; background: var(--paper-2); border: 1.5px solid var(--brown); padding: clamp(18px, 3vw, 32px);
  transform-origin: 50% 0; outline: none; perspective: 1400px;
}
.sheet .btn { margin-top: 18px; }
.stamp { margin: 0 0 14px; }
.stamp span {
  display: inline-block; padding: 6px 12px; border: 2px solid var(--red); color: var(--red); rotate: -1.5deg;
  font: 700 13px/1.2 var(--f-label); letter-spacing: .12em; text-transform: uppercase;
}
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li, .pl li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.menu-list li { font-size: clamp(17px, 1.5vw, 20px); }
.menu-list .n, .pl li > span { flex: 0 1 auto; min-width: 0; }
.menu-list i, .pl i { flex: 1 1 24px; min-width: 16px; border-bottom: 2px dotted var(--grey); translate: 0 -5px; }
.menu-list b, .pl b { flex: none; font: 700 17px var(--f-label); font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }
.menu-list .star .n strong { color: var(--red); font-weight: 700; }
.sheet-note { margin: 16px 0 0; font-style: italic; color: var(--ink-2); }
.note-h { margin: 6px 0 12px; font: 800 clamp(28px, 3vw, 42px)/1.05 var(--f-head); }
.note-p { margin: 0 0 12px; max-width: 58ch; }
.loaf-fig { margin: 0; }
.loaf-stage { position: relative; aspect-ratio: 4 / 3.2; background: radial-gradient(60% 50% at 50% 55%, var(--paper-2), transparent 70%); cursor: grab; touch-action: pan-y; }
.loaf-stage:active { cursor: grabbing; }
.loaf-svg { position: absolute; inset: 8% 4%; width: 92%; height: 84%; transition: opacity .6s; }
.loaf-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s; }
.has-3d .loaf-stage canvas { opacity: 1; }
.has-3d .loaf-svg { opacity: 0; }
.loaf-fig figcaption { font-size: 16px; line-height: 1.45; color: var(--ink-2); border-top: 1px solid var(--brown); padding-top: 10px; }
.loaf-fig figcaption b { font: 700 13px var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-right: 4px; }
.drag-hint { display: none; font-style: italic; }
.has-3d .drag-hint { display: inline; }
.verbs { margin-top: 24px; border-top: 3px double var(--brown); padding-top: 16px; }
.verbs ul { list-style: none; margin: 0; padding: 0; }
.verbs li { font: 800 clamp(30px, 3vw, 44px)/1.12 var(--f-head); }
.verbs li:nth-child(2) { font-style: italic; color: var(--red); }
.verbs .quote { margin: 14px 0 0; font: italic 500 19px/1.4 var(--f-head); }
@media (max-width: 900px) {
  .front-grid { grid-template-columns: 1fr; }
  .lead { padding-right: 0; border-right: 0; }
  .side { padding-left: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 520px) {
  .tabs button { font-size: 16px; }
}

/* ---------- motion (gated) ---------- */
.js .rv { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js .rv.in { opacity: 1; translate: 0 0; }
.js.intro .rule-x { scale: 0 1; }
.js.intro .mast-title .ch { translate: 0 -40%; opacity: 0; }
.js.intro .ear, .js.intro .mast-sub, .js.intro .dateline, .js.intro .index { opacity: 0; }
.js.intro .ln > span { translate: 0 110%; }
.js .rule-x { transition: scale 1s var(--ease); }
.js .mast-title .ch { transition: translate .7s var(--ease), opacity .7s; }
.js .ear, .js .mast-sub, .js .dateline, .js .index { transition: opacity .8s .5s; }
.js .ln > span { transition: translate .9s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tick-track { animation: none; }
  .js .rv, .js.intro .ln > span, .js.intro .mast-title .ch, .js.intro .rule-x { opacity: 1 !important; translate: none !important; scale: none !important; transition: none !important; }
  .js.intro .ear, .js.intro .mast-sub, .js.intro .dateline, .js.intro .index { opacity: 1; }
  body::before { translate: none; }
}
