/* Jobimi Magazín / Magazyn: jeden soubor bez frameworku. Barvy znacky: oranzova #ff8a00, tmave modra #001935. */
:root {
  --navy: #001935;
  --navy-2: #0d2a4d;
  --orange: #ff8a00;
  --orange-ink: #b85600;
  --ink: #1b1f24;
  --ink-2: #4a525c;
  --ink-3: #6b737d;
  --line: #e4e7eb;
  --paper: #ffffff;
  --paper-2: #f6f5f2;
  --radius: 10px;
  --wrap: 1180px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--navy); color: #fff; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { color: #fff; text-decoration: none; display: inline-flex; align-items: baseline; gap: 8px; }
.brand:hover { color: #fff; }
.brand-name { font: 700 26px/1 var(--sans); letter-spacing: -.5px; }
.brand-name span { color: var(--orange); }
.brand-tag { font: 400 italic 18px/1 var(--serif); color: #d6dbe2; }
.header-links { display: flex; gap: 18px; font-size: 14px; }
.header-links a { color: #d6dbe2; text-decoration: none; }
.header-links a:hover { color: #fff; }
.nav { border-top: 1px solid rgba(255,255,255,.12); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: block; white-space: nowrap; color: #e8ecf1; text-decoration: none; font-size: 15px; padding: 11px 12px; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--orange); }

main { padding: 28px 0 56px; }

/* Breadcrumb */
.crumbs { font-size: 14px; color: var(--ink-3); margin: 0 0 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); color: #b4bac2; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

/* Labels */
.kicker { display: inline-block; font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); text-decoration: none; margin-bottom: 10px; }
a.kicker:hover { color: var(--navy); }
.meta { font-size: 14px; color: var(--ink-3); }
.meta span + span::before { content: "·"; margin: 0 7px; }

/* Lead article */
.lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: center; padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.lead .thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); }
.lead .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lead h2 { font-size: clamp(26px, 3.2vw, 38px); }
.lead h2 a { color: var(--navy); text-decoration: none; }
.lead h2 a:hover { color: var(--orange-ink); }
.lead p { color: var(--ink-2); font-size: 18px; }

/* Section heading */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--navy); margin: 8px 0 22px; padding-bottom: 8px; }
.section-head h2 { font-size: 24px; margin: 0; }
.section-head a { font-size: 14px; text-decoration: none; white-space: nowrap; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 26px; }
.card { display: flex; flex-direction: column; }
.card .thumb { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); margin-bottom: 14px; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .thumb img { transform: scale(1.03); }
.card h3 { font-size: 20px; margin: 0 0 8px; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--orange-ink); }
.card p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 10px; }
.card .meta { margin-top: auto; }
.thumb-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: rgba(255,255,255,.85); font: 700 italic 22px/1.2 var(--serif); padding: 16px; text-align: center; }

.rubrika-block { margin-top: 44px; }

/* Listing header */
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.page-head p { color: var(--ink-2); max-width: 70ch; font-size: 18px; margin: 0; }

/* Pagination */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.pager a { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); }
.pager a:hover { border-color: var(--navy); }
.pager .pos { color: var(--ink-3); }

/* Article */
.article-head { max-width: 780px; margin: 0 auto 26px; }
.article-head h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 14px; }
.article-head .perex { font: 400 21px/1.55 var(--serif); color: var(--ink-2); margin: 0 0 16px; }
.article-hero { max-width: 1000px; margin: 0 auto 32px; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prose { max-width: 700px; margin: 0 auto; font: 400 19px/1.75 var(--serif); color: #22272e; }
.prose h2 { font-size: 28px; margin: 1.6em 0 .55em; }
.prose h3 { font-size: 23px; margin: 1.4em 0 .5em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose blockquote { border-left: 4px solid var(--orange); padding: 4px 0 4px 18px; color: var(--ink-2); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font: 400 16px/1.5 var(--sans); display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-2); }
.prose img { border-radius: var(--radius); margin: 1.4em auto; }
.prose a { color: var(--orange-ink); }
.prose .box, .prose aside { background: var(--paper-2); border-radius: var(--radius); padding: 18px 22px; margin: 1.6em 0; font: 400 17px/1.6 var(--sans); }
.prose .box h2, .prose .box h3, .prose aside h2, .prose aside h3 { margin-top: 0; font-size: 20px; }
.prose .box :last-child, .prose aside :last-child { margin-bottom: 0; }
.article-foot { max-width: 700px; margin: 36px auto 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }

/* CTA */
.cta { margin: 56px 0 0; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cta h2 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.cta p { margin: 0; color: #d6dbe2; }
.btn { display: inline-block; background: var(--orange); color: #1b1200; font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 999px; white-space: nowrap; }
.btn:hover { background: #ffa033; color: #1b1200; }

/* Static pages */
.page { max-width: 760px; }
.page h1 { font-size: clamp(30px, 4vw, 42px); }
.page h2 { font-size: 24px; margin-top: 1.4em; }
.page ul { padding-left: 1.2em; }

/* Gone / 404 */
.notice { text-align: center; max-width: 640px; margin: 10px auto 40px; }
.notice h1 { font-size: clamp(28px, 4vw, 40px); }
.notice p { color: var(--ink-2); font-size: 18px; }

/* Footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 15px; color: var(--ink-2); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font: 700 13px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--navy); text-decoration: underline; }
.site-footer .legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .lead { grid-template-columns: 1fr; gap: 18px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; gap: 26px; }
  .brand-tag { display: none; }
  .header-links { display: none; }
  .prose { font-size: 18px; }
  .article-head .perex { font-size: 19px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 22px; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .card .thumb img { transition: none; }
  .card:hover .thumb img { transform: none; }
}
