/* Blog THE SHORTCUT (Shortcut Pages). Brand: Ink + Paper, jeden akcent magenta, Outfit + Instrument Sans, rez 26 stupnu. */
:root {
  --ink: #0D0D0D; --paper: #FBFBFC; --mag: #C026D3; --mag-h: #A21CAF; --tint: #F9E9FB;
  --n1: #2A2A30; --n2: #6B6B75; --n3: #E6E6EA; --line-d: #26262C; --muted-d: #9A9AA5;
  --fh: "Outfit", system-ui, sans-serif; --fb: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(18px, 3vw, 40px); --max: 1280px; --bar: 72px;
  --cut-btn: polygon(0 0,100% 0,100% calc(100% - 14px),calc(100% - 29px) 100%,0 100%);
  --cut-card: polygon(0 0,100% 0,100% calc(100% - 28px),calc(100% - 57px) 100%,0 100%);
  --cut-sm: polygon(0 0,100% 0,100% calc(100% - 9px),calc(100% - 18px) 100%,0 100%);
  --ease: cubic-bezier(.16,1,.3,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--fb); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--fh); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.ico { width: 18px; height: 18px; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--mag); color: #fff; padding: 10px 16px; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--mag); outline-offset: 3px; }

/* stitky */
.eyebrow { display: inline-block; font: 600 11px/1.4 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--n2); }
.eyebrow--mag { color: var(--mag); }

/* tlacitka: varianta A s orezem, outline */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px 14px; font: 600 15px/1.2 var(--fh); white-space: nowrap; transition: background .25s ease, color .25s ease; }
.btn--cut { background: var(--mag); color: #fff; padding-right: 36px; clip-path: var(--cut-btn); }
.btn--cut:hover { background: var(--mag-h); color: #fff; }
.btn--ghost-dark { color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.btn--ghost-dark:hover { background: #fff; color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* lista */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; background: rgba(13,13,13,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-d); color: #E8E8EC; }
.bar-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); height: var(--bar); display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.bar-logo { flex: none; width: 112px; }
.bar-logo img { width: 112px; height: auto; }
.bar-nav { display: flex; gap: clamp(14px, 2vw, 26px); margin-left: auto; font-size: 15px; font-weight: 500; }
.bar-nav a { padding: 6px 0; position: relative; transition: color .2s ease; }
.bar-nav a:hover { color: var(--mag); }
.bar-nav a.is-on { color: #fff; }
.bar-nav a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mag); }
.bar-cta { width: 176px; }
.bar-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--mag); transform-origin: left; transform: scaleX(0); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; transition: transform .3s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mmenu { background: var(--ink); border-top: 1px solid var(--line-d); padding: 8px var(--gut) 28px; max-height: calc(100vh - var(--bar)); overflow-y: auto; }
.mmenu nav { display: flex; flex-direction: column; margin-bottom: 24px; }
.mmenu nav a { padding: 14px 0; border-bottom: 1px solid var(--line-d); font: 700 24px/1.2 var(--fh); letter-spacing: -.01em; color: #fff; }
.mmenu nav a.is-on { color: var(--mag); }
@media (max-width: 980px) {
  .bar-nav, .bar-cta { display: none; }
  .burger { display: flex; }
  .bar-logo, .bar-logo img { width: 104px; }
}

/* hero (tmavy) + rez do papiru */
.hero { position: relative; background: var(--ink); color: #fff; padding: calc(var(--bar) + clamp(40px, 6vw, 88px)) 0 calc(clamp(56px, 7vw, 104px) + clamp(48px, 6vw, 96px)); overflow: hidden; }
.hero h1 { font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.hero--blog h1 { font-size: clamp(42px, 7.4vw, 104px); max-width: 13ch; margin: 18px 0 28px; }
.hero--post h1 { font-size: clamp(34px, 5.2vw, 68px); line-height: 1.02; margin: 18px 0 24px; max-width: 20ch; }
.hero-lead { font: 500 clamp(18px, 1.6vw, 21px)/1.55 var(--fh); color: #C9C9D1; max-width: 62ch; }
.wedge { position: absolute; left: 0; right: 0; height: clamp(48px, 6vw, 104px); background-size: calc(100% + 8px) calc(100% + 6px); background-position: -4px 0; background-repeat: no-repeat; pointer-events: none; }
.wedge--paper { bottom: -2px; background-image: url(../img/brand/wedge-paper.svg); }
.wedge--top { top: -2px; background-image: url(../img/brand/wedge-paper.svg); transform: scale(-1, -1); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted-d); margin-bottom: clamp(24px, 4vw, 44px); }
.crumbs a:hover { color: var(--mag); }
.crumbs [aria-current] { color: #E8E8EC; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 36px); }
.chip { border: 0; cursor: pointer; padding: 10px 24px 11px 16px; background: #EDEDF0; color: var(--ink); font: 600 14px/1 var(--fb); clip-path: var(--cut-sm); transition: background .2s ease, color .2s ease; }
.chip:hover { background: var(--tint); color: var(--mag-h); }
.chip.is-on { background: var(--mag); color: #fff; }

/* meta radek */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 600 12px/1.4 var(--fb); letter-spacing: .1em; text-transform: uppercase; color: var(--n2); }
.meta--dark { color: var(--muted-d); }
.meta--dark span { display: inline-flex; align-items: center; gap: 6px; }
.meta .ico { width: 15px; height: 15px; }
.tag { background: var(--mag); color: #fff; padding: 5px 12px 6px 9px; clip-path: var(--cut-sm); padding-right: 20px; }

/* prehled: hlavni clanek */
.list-sec { padding: clamp(24px, 4vw, 48px) 0 clamp(72px, 9vw, 128px); }
.empty { color: var(--n2); }
.feat { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: #fff; box-shadow: inset 0 0 0 1px var(--n3); clip-path: var(--cut-card); margin-bottom: clamp(40px, 5vw, 64px); }
.feat-img { display: block; overflow: hidden; background: var(--ink); }
.feat-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.feat-tx { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.feat h2 { font-size: clamp(26px, 2.8vw, 38px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.feat h2 a:hover, .row h3 a:hover, .card h3 a:hover { color: var(--mag); }
.feat p { color: var(--n1); }
.more { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--fh); color: var(--ink); }
.more .ico { color: var(--mag); transition: transform .3s var(--ease); }
.more:hover .ico { transform: translateX(4px); }
@media (max-width: 860px) { .feat { grid-template-columns: 1fr; } }

/* prehled: radky */
.rows { border-top: 1px solid var(--n3); }
.row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 260px; gap: clamp(18px, 3vw, 44px); padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--n3); align-items: start; }
.row-meta { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--n2); }
.row-cat { font: 600 11px/1.4 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--mag); }
.row h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 10px; }
.row-tx p { color: var(--n1); max-width: 62ch; }
.row-min { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; color: var(--n2); }
.row-min .ico { width: 15px; height: 15px; }
.row-img { display: block; overflow: hidden; clip-path: var(--cut-sm); background: var(--ink); }
.row-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; gap: 12px; }
  .row-meta { flex-direction: row; gap: 14px; align-items: center; }
  .row-img { order: -1; }
}
.is-hidden { display: none !important; }

/* clanek */
.wrap--post { max-width: 1120px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted-d); margin-top: 30px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.byline strong { display: block; color: #fff; font-weight: 600; }
.byline a:hover { color: var(--mag); }
.byline .byline-name { display: flex; align-items: center; gap: 12px; }
.byline-in { display: inline-grid; place-items: center; width: 24px; height: 24px; background: var(--mag); clip-path: var(--cut-sm); transition: background .2s ease; }
.byline-in .si { width: 13px; height: 13px; }
.byline-in:hover { background: var(--mag-h); }
.cover { max-width: 1120px; margin: clamp(24px, 3vw, 40px) auto 0; position: relative; }
.hero--post { padding-bottom: calc(clamp(40px, 5vw, 72px) + clamp(48px, 6vw, 96px)); }
.cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; clip-path: var(--cut-card); background: var(--ink); }
.post-grid { max-width: 1120px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(56px, 7vw, 96px); }
.toc-col { position: relative; }
.toc-col { position: sticky; top: calc(var(--bar) + 28px); align-self: start; max-height: calc(100vh - var(--bar) - 48px); overflow-y: auto; scrollbar-width: none; }
.toc-col::-webkit-scrollbar { display: none; }
.toc + .share { margin-top: 28px; }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0; border-left: 1px solid var(--n3); counter-reset: t; }
.toc li a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--n2); transition: color .2s ease, border-color .2s ease; }
.toc li a:hover { color: var(--ink); }
.toc li a.is-on { color: var(--ink); border-left-color: var(--mag); font-weight: 600; }
.share-btns { display: flex; gap: 8px; margin-top: 12px; }
.share-btns a, .share-btns button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: #fff; border: 1px solid var(--n3); cursor: pointer; font-size: 13px; font-weight: 600; transition: border-color .2s ease, color .2s ease; }
.share-btns a { width: 40px; justify-content: center; padding: 0; }
.share-btns a:hover, .share-btns button:hover { border-color: var(--mag); color: var(--mag); }
.share-btns .ico { width: 16px; height: 16px; }
@media (max-width: 980px) {
  .post-grid { grid-template-columns: 1fr; }
  .toc-col { order: 2; position: static; max-height: none; overflow: visible; }
  .toc { display: none; }
}

/* Ve zkratce */
.tldr { background: var(--tint); padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 36px); margin-bottom: 40px; clip-path: var(--cut-card); }
.tldr-h { display: flex; align-items: center; gap: 10px; font: 700 20px/1.2 var(--fh); letter-spacing: -.01em; margin-bottom: 12px; }
.tldr-h img { width: 34px; height: auto; }
.tldr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tldr li { position: relative; padding-left: 22px; color: var(--n1); }
.tldr li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--mag); }

/* text clanku */
.prose { font-size: 18px; line-height: 1.75; color: var(--n1); max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); margin-top: 2.1em; }
.prose h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--ink); margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mag); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .2s ease; }
.prose a:hover { color: var(--mag); }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 28px; }
.prose li + li { margin-top: .45em; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 10px; height: 2px; background: var(--mag); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: .2em; font: 700 14px/1.6 var(--fh); color: var(--mag); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--mag); font: 500 clamp(20px, 1.9vw, 23px)/1.5 var(--fh); color: var(--ink); }

/* FAQ, zdroje, autor */
.faq { margin-top: 64px; max-width: 70ch; }
.faq > h2, .sources > h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--n3); }
.faq details:last-of-type { border-bottom: 1px solid var(--n3); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 20px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.faq summary:hover h3 { color: var(--mag); }
.faq-ico { flex: none; width: 32px; height: 32px; display: grid; place-items: center; background: var(--ink); color: #fff; transition: background .2s ease; }
.faq-ico .ico { transition: transform .3s var(--ease); }
.faq details[open] .faq-ico { background: var(--mag); }
.faq details[open] .faq-ico .ico { transform: rotate(45deg); }
.faq-a { padding: 0 48px 22px 0; color: var(--n1); }
.faq-a p + p { margin-top: .8em; }
.sources { margin-top: 56px; max-width: 70ch; }
.sources ol { margin: 0; padding-left: 22px; font-size: 15px; color: var(--n2); display: grid; gap: 8px; }
.sources a { color: var(--n1); text-decoration: underline; text-decoration-color: var(--n3); text-underline-offset: 3px; }
.sources a:hover { color: var(--mag); text-decoration-color: var(--mag); }
.sources span { font-size: 13px; color: var(--n2); }
.author { display: flex; gap: 20px; align-items: center; margin-top: 56px; padding: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--n3); clip-path: var(--cut-card); max-width: 70ch; }
.author img { width: 88px; height: 88px; object-fit: cover; filter: grayscale(1); flex: none; }
.author > a { flex: none; display: block; }
@media (max-width: 600px) {
  .author { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 22px 32px; }
  .author img { width: 72px; height: 72px; }
}
.author-name { font: 700 20px/1.2 var(--fh); margin: 4px 0 6px; }
.author > div > p:not(.eyebrow):not(.author-name):not(.author-links) { color: var(--n1); font-size: 15px; }
.author-name a:hover { color: var(--mag); }
.author-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font: 600 14px/1.2 var(--fh); }
.author-links a { display: inline-flex; align-items: center; gap: 8px; }
.author-links a:hover { color: var(--mag); }
.author-links .ico { width: 16px; height: 16px; color: var(--mag); }
.hero--author { padding-bottom: calc(clamp(40px, 5vw, 72px) + clamp(48px, 6vw, 96px)); }
.author-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero--author h1 { font-size: clamp(42px, 6.4vw, 88px); margin: 18px 0 24px; }
.hero--author .btn .si { width: 18px; height: 18px; }
.btn--ghost-dark:hover .si { background: var(--ink); }
.author-photo { margin: 0; position: relative; }
.author-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; filter: grayscale(1); clip-path: var(--cut-card); }
.list-h { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 20px; }
@media (max-width: 760px) { .author-hero { grid-template-columns: 1fr; } .author-photo { max-width: 260px; order: -1; } }

/* dalsi clanky */
.more-sec { background: var(--paper); border-top: 1px solid var(--n3); padding: clamp(56px, 7vw, 96px) 0 calc(clamp(56px, 7vw, 96px) + 40px); }
.more-hd { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.more-hd h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.02em; }
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--1 { grid-template-columns: minmax(0, 560px); }
.card { background: #fff; box-shadow: inset 0 0 0 1px var(--n3); clip-path: var(--cut-card); display: flex; flex-direction: column; }
.card-img { display: block; overflow: hidden; background: var(--ink); }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-tx { padding: 22px 24px 40px; display: grid; gap: 10px; }
.card h3 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
@media (max-width: 860px) { .cards--3, .cards--2 { grid-template-columns: 1fr; } }

/* CTA + paticka */
.cta { position: relative; background: var(--ink); color: #fff; padding: calc(clamp(48px, 6vw, 96px) + clamp(56px, 7vw, 104px)) 0 clamp(64px, 8vw, 112px); }
.cta-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(28px, 5vw, 88px); align-items: end; }
.cta h2 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin-top: 16px; }
.cta p { color: #C9C9D1; font-size: 17px; max-width: 52ch; }
.foot { background: var(--ink); color: var(--muted-d); border-top: 1px solid var(--line-d); padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 3vw, 40px); }
.foot-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.foot-logo img { width: 170px; }
.foot-contact { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px); align-items: center; }
.foot-mail { font: 600 clamp(18px, 1.8vw, 22px)/1.2 var(--fh); color: #fff; }
.foot-mail:hover { color: var(--mag); }
.social { display: inline-flex; gap: 2px; clip-path: var(--cut-sm); }
.social a { position: relative; display: block; width: 44px; height: 44px; background: var(--mag); transition: background .25s ease; }
.social a:hover { background: var(--mag-h); }
.si { display: block; width: 20px; height: 20px; background: #fff; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.social .si { position: absolute; left: 50%; top: 50%; margin: -10px 0 0 -10px; }
.si--ink { background: currentColor; width: 17px; height: 17px; }
.si-fb { --i: url(../img/brand/ico-facebook.svg); }
.si-ig { --i: url(../img/brand/ico-instagram.svg); }
.si-in { --i: url(../img/brand/ico-linkedin.svg); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin-top: clamp(28px, 4vw, 48px); padding-top: 20px; border-top: 1px solid var(--line-d); font-size: 12px; line-height: 1.7; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.foot-links a { display: inline-flex; align-items: center; gap: 6px; }
.foot-links a:hover { color: #fff; }
.foot-links .ico { width: 14px; height: 14px; }

/* animace odhaleni (jen kdyz JS bezi a uzivatel nechce omezit pohyb) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; translate: 0 32px; transition: opacity .9s var(--ease), translate 1.1s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; translate: 0 0; }
}
@media print {
  .bar, .toc-col, .cta, .foot, .more-sec, .wedge, .chips { display: none !important; }
  .hero { background: #fff; color: #000; padding: 0; }
  .hero-lead { color: #333; }
}
