/* Moc emoce: monochromní editoriální systém (černá na bílé, vlasové linky, žádné stíny) */
:root {
  --bg: #ffffff;
  --ink: #000000;
  --grey: #d6d6d6;
  --light: #f2f2f2;
  --muted: #555555;
  --rule: 1px solid var(--ink);
  --rule-soft: 1px solid #c8c8c8;

  --font-display: "Newsreader", "Times New Roman", serif;
  --font-ui: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-read: "Source Serif 4", Georgia, serif;

  --s-10: 10px; --s-14: 14px; --s-21: 21px; --s-35: 35px; --s-71: 71px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-ui); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }

.label {
  font-family: var(--font-ui); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.label a { text-decoration: none; }
.label a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header { background: var(--bg); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-21);
  padding-top: 28px; padding-bottom: 14px; border-bottom: var(--rule-soft);
  position: relative;
}
.header-inner::after { /* vlasová linka v rámci obsahu */
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: -1px; border-bottom: var(--rule-soft);
}
.site-header .header-inner { border-bottom: 0; }
.brand { display: flex; align-items: center; gap: var(--s-35); text-decoration: none; }
.logo-mark { width: 168px; height: 64px; }
.brand span { font-weight: 600; font-size: 17px; letter-spacing: -.02em; }

.nav { display: flex; align-items: stretch; }
.nav a:not(.btn) {
  display: flex; align-items: center; padding: 18px 40px; text-decoration: none;
  font-size: 16px; letter-spacing: -.01em; border-left: var(--rule-soft);
}
.nav a:not(.btn):first-child { border-left: 0; }
.nav a:not(.btn):nth-last-child(2) { border-right: var(--rule-soft); }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }
.nav a[aria-current="page"] { font-weight: 600; }
.nav .btn { margin-left: 40px; align-self: center; }
.menu-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-ui); font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  padding: 12px 20px; text-decoration: none; border: var(--rule); border-radius: 0;
  transition: background .15s, color .15s;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--bg); color: var(--ink); }
.btn-outline { background: var(--bg); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-outline:hover .arrow circle { fill: var(--bg); }
.btn-outline:hover .arrow path { stroke: var(--ink); }
.arrow { width: 22px; height: 22px; }
.text-link { font-weight: 600; font-size: 15px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- typography ---------- */
.display {
  font-family: var(--font-display); font-weight: 300; font-optical-sizing: auto;
  font-size: clamp(52px, 8vw, 104px); line-height: .95; letter-spacing: -.035em; margin: 0;
}
.lede {
  font-family: var(--font-ui); font-size: clamp(22px, 2.6vw, 34px); line-height: 1.3;
  letter-spacing: -.025em; max-width: 21em; margin: var(--s-35) 0 0;
}
.lede em { font-family: var(--font-display); font-size: 1.05em; font-style: italic; }
.heading {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05; letter-spacing: -.02em; margin: 0 0 var(--s-35);
}

/* ---------- sections ---------- */
.hero { padding-top: clamp(64px, 10vw, 128px); padding-bottom: var(--s-71); }
.hero-small { padding-bottom: var(--s-35); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-35); margin-top: var(--s-71); }
.section { position: relative; padding-top: var(--s-71); padding-bottom: var(--s-35); margin-top: var(--s-35); }
.section::before, .footer-inner::before, .pager::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: var(--rule);
}
.section + .section { margin-top: var(--s-35); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 21px; }
.card {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-21);
  padding: var(--s-14); border: var(--rule-soft); text-decoration: none;
  min-height: 210px; transition: border-color .15s;
}
.card:hover { border-color: var(--ink); }
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card-text { display: flex; flex-direction: column; gap: var(--s-10); padding: 6px 0 6px 4px; }
.card h3 { font-family: var(--font-ui); font-weight: 600; font-size: 17px; line-height: 1.25; letter-spacing: -.02em; margin: 0; }
.card p { font-family: var(--font-read); font-style: italic; font-size: 14px; line-height: 1.45; color: #222; margin: 0; }
.card-img { background: var(--light); overflow: hidden; }
.card-img svg { width: 100%; height: 100%; }

.story-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 21px; }
.story-list li { border-bottom: var(--rule-soft); }
.story-list a { display: flex; gap: var(--s-14); align-items: baseline; padding: 18px 0; text-decoration: none; font-size: 18px; letter-spacing: -.02em; }
.story-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.num { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- photos ---------- */
.photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.photo-ph { background: #cfcfcf; position: relative; min-height: 100%; }
.photo-ph .label { position: absolute; left: 12px; bottom: 10px; color: var(--ink); font-size: 11px; }
.hero-photo { margin-bottom: var(--s-35); }
.hero-photo .photo { height: clamp(260px, 42vw, 620px); }
.card-img .photo { min-height: 180px; }

/* ---------- story ---------- */
.story-head { padding-top: clamp(56px, 9vw, 110px); padding-bottom: var(--s-35); }
.story-head .display { margin-top: var(--s-21); max-width: 12em; }
.story-cover { margin-bottom: var(--s-71); }
.story-cover .photo { height: clamp(240px, 38vw, 560px); }
.story-body {
  max-width: 680px; margin: 0 auto; padding: 0 var(--gutter) var(--s-71);
  font-family: var(--font-read); font-size: clamp(18px, 1.3vw, 20px); line-height: 1.72; letter-spacing: -.003em;
  hyphens: auto; -webkit-hyphens: auto;
}
.story-body p { margin: 0 0 1.05em; }
.story-body .epigraph { font-style: normal; color: var(--muted); font-size: .9em; }
.story-body .part-label { font-family: var(--font-ui); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2em; }
.story-body .part-label strong { font-weight: 600; }
.part + .part { margin-top: var(--s-71); padding-top: var(--s-35); border-top: var(--rule-soft); }
.part-num { font-family: var(--font-display); font-weight: 300; font-size: 56px; line-height: 1; margin: 0 0 var(--s-35); }
.story-body p:first-of-type:not(.epigraph):not(.part-label)::first-letter { font-family: var(--font-display); }

.pager { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: var(--s-71); }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: var(--s-35) 0; text-decoration: none; font-family: var(--font-display); font-size: 30px; line-height: 1.05; }
.pager a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.pager .next { text-align: right; align-items: flex-end; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-71); align-items: center; padding-top: var(--s-71); padding-bottom: var(--s-71); }
.quote { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.3; letter-spacing: -.025em; margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 511 / 564; object-fit: cover; filter: grayscale(1); }
.photo-placeholder { position: relative; aspect-ratio: 511 / 564; background: var(--light); }
.photo-placeholder svg { width: 100%; height: 100%; }
.photo-placeholder .label { position: absolute; left: 14px; bottom: 14px; background: var(--bg); padding: 4px 8px; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { margin-top: var(--s-71); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-35); padding-top: var(--s-71); padding-bottom: var(--s-71); position: relative; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col .label { margin-bottom: 6px; }
.footer-col a { text-decoration: none; font-size: 18px; letter-spacing: -.02em; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-end { align-items: flex-end; text-align: right; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav a:not(.btn) { padding: 18px 22px; }
  .nav .btn { margin-left: 22px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .story-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .header-inner { padding-top: 16px; }
  .logo-mark { width: 105px; height: 40px; }
  .brand { gap: var(--s-14); }
  .menu-toggle {
    display: block; background: none; border: var(--rule); border-radius: 0; color: var(--ink);
    font: 600 14px var(--font-ui); padding: 9px 14px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 5;
    flex-direction: column; background: var(--bg); padding: 0 var(--gutter) var(--s-21); border-bottom: var(--rule);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn), .nav a:not(.btn):nth-last-child(2) { border: 0; border-bottom: var(--rule-soft); padding: 16px 0; }
  .nav .btn { margin: var(--s-21) 0 0; align-self: flex-start; }
  .cards, .story-list { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: var(--s-35); }
  .about-photo { order: -1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-end { align-items: flex-start; text-align: left; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { border-left: 0; border-top: var(--rule-soft); text-align: left; align-items: flex-start; }
}
@media (max-width: 420px) {
  .card { grid-template-columns: 1fr; }
  .card-img { height: 140px; order: -1; }
  .brand span { font-size: 15px; }
}

/* =========================================================
   Editoriální, nepravidelné fotky (12sloupcová mřížka)
   ========================================================= */
.photo { display: block; width: 100%; height: 100%; object-fit: cover; }

/* --- úvod: text vlevo, fotka vpravo, posunutá dolů --- */
.hero-split { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 21px; align-items: start; }
.hero-split .hero-text { grid-column: 1 / 8; }
.hero-split .hero-img { grid-column: 8 / 13; margin-top: 140px; aspect-ratio: 4 / 3; }

/* --- povídky jako editoriální bloky --- */
.features { display: flex; flex-direction: column; gap: 110px; }
.feature { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 21px; align-items: end; }
.feature-img { display: block; overflow: hidden; }
.feature-img .photo { transition: transform .6s ease; }
.feature-img:hover .photo { transform: scale(1.03); }
.feature-text { display: flex; flex-direction: column; gap: 14px; max-width: 30em; }
.feature h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 4.2vw, 60px); line-height: 1; letter-spacing: -.03em; margin: 4px 0 6px; }
.feature h3 a { text-decoration: none; }
.feature h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.feature p { font-family: var(--font-read); font-style: italic; font-size: 17px; line-height: 1.5; margin: 0; color: #222; }
.feature .text-link { margin-top: 6px; align-self: flex-start; }

/* v1: vysoká fotka vlevo, text vpravo dole */
.feature.v1 .feature-img { grid-column: 1 / 6; grid-row: 1; aspect-ratio: 3 / 4; }
.feature.v1 .feature-text { grid-column: 7 / 12; grid-row: 1; padding-bottom: 20px; }
/* v2: úzká fotka vpravo, text vlevo nahoře */
.feature.v2 { align-items: start; }
.feature.v2 .feature-img { grid-column: 9 / 13; grid-row: 1; aspect-ratio: 2 / 3; margin-top: 60px; }
.feature.v2 .feature-text { grid-column: 2 / 7; grid-row: 1; }
/* v3: široká fotka přes většinu šířky, text pod ní vpravo */
.feature.v3 .feature-img { grid-column: 1 / 10; grid-row: 1; aspect-ratio: 16 / 9; }
.feature.v3 .feature-text { grid-column: 8 / 13; grid-row: 2; margin-top: 35px; }
/* v4: malá fotka uprostřed, text vedle */
.feature.v4 { align-items: center; }
.feature.v4 .feature-img { grid-column: 4 / 7; grid-row: 1; aspect-ratio: 4 / 5; }
.feature.v4 .feature-text { grid-column: 8 / 12; grid-row: 1; }
/* bez fotky: čistě typografický blok */
.feature.nophoto .feature-text { grid-column: 3 / 10; grid-row: 1; max-width: none; border-top: 1px solid var(--ink); padding-top: 28px; }
.feature.nophoto h3 { font-size: clamp(44px, 6vw, 88px); }
/* na šířku orientované fotky dostanou širší výřez */
.feature.v1.land .feature-img { grid-column: 1 / 8; aspect-ratio: 4 / 3; }
.feature.v1.land .feature-text { grid-column: 9 / 13; }
.feature.v2.land .feature-img { grid-column: 7 / 13; aspect-ratio: 3 / 2; }
.feature.v4.land .feature-img { grid-column: 2 / 7; aspect-ratio: 3 / 2; }

/* --- detail povídky: titul + fotka podle orientace --- */
.story-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 21px; align-items: end; padding-bottom: var(--s-71); }
.story-head .story-title { grid-column: 1 / 8; }
.story-head .story-title .display { margin-top: var(--s-21); }
.story-head.port .story-cover { grid-column: 9 / 13; aspect-ratio: 3 / 4; margin: 0; }
.story-head.land .story-title { grid-column: 1 / 11; grid-row: 1; }
.story-head.land .story-cover { grid-column: 3 / 13; grid-row: 2; aspect-ratio: 16 / 10; margin-top: var(--s-35); }
.story-head.nophoto .story-title { grid-column: 1 / 11; }
.story-cover .photo { height: 100%; }

@media (max-width: 860px) {
  .hero-split .hero-text { grid-column: 1 / 13; }
  .hero-split .hero-img { grid-column: 4 / 13; margin-top: 56px; aspect-ratio: 4 / 3; }
  .features { gap: 72px; }
  .feature, .feature.v2, .feature.v4 { align-items: start; }
  .feature .feature-text { grid-column: 1 / 13 !important; grid-row: 2 !important; margin-top: 21px; padding: 0; }
  /* různé šířky a poměry, nikdy ne přes celou obrazovku */
  .feature.v1 .feature-img { grid-column: 1 / 10; aspect-ratio: 4 / 5; }
  .feature.v2 .feature-img { grid-column: 5 / 13; aspect-ratio: 2 / 3; margin-top: 0; }
  .feature.v3 .feature-img { grid-column: 1 / 12; aspect-ratio: 3 / 2; }
  .feature.v4 .feature-img { grid-column: 3 / 10; aspect-ratio: 1 / 1; }
  .feature.v1.land .feature-img, .feature.v2.land .feature-img, .feature.v4.land .feature-img { aspect-ratio: 3 / 2; }
  .feature.v2 .feature-text { grid-column: 3 / 13 !important; }
  .feature.nophoto .feature-text { grid-row: 1 !important; }
  .story-head { padding-bottom: var(--s-35); }
  .story-head .story-title, .story-head.land .story-title { grid-column: 1 / 13; }
  .story-head.port .story-cover { grid-column: 5 / 13; grid-row: 2; margin-top: var(--s-35); aspect-ratio: 3 / 4; }
  .story-head.land .story-cover { grid-column: 1 / 12; aspect-ratio: 3 / 2; }
}
/* fotka na výšku v širokém výřezu: ukázat spíš horní část */
.feature.v3.port .photo { object-position: 50% 30%; }
