/* Gronvespudi — společná stylová definice
   Osová (mirror-axis) kompozice, tisková paleta modrá / červená */

:root {
  --bg: #f4f2ed;
  --bg-alt: #e6e3dc;
  --bg-dark: #16151a;
  --ink: #16151a;
  --ink-soft: #6d6a63;
  --ink-invert: #f4f2ed;
  --blue: #1f3fa8;
  --red: #c0452e;
  --maxw: 1140px;
  --gap: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.9;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 0.6em;
  letter-spacing: 0.005em;
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.5em; }

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- layout skeleton ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
}

/* svislá osa procházející kontejnerem */
.axis { position: relative; }
.axis::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--blue);
  opacity: 0.35;
  transform: translateX(-0.5px);
}

section { padding: 64px 0; }
section.rhythm-2 { padding: 80px 0; }
section.rhythm-3 { padding: 96px 0; }
section.tinted { background: var(--bg-alt); }

section.dark {
  background: var(--bg-dark);
  color: var(--ink-invert);
  padding: 96px 0;
}
section.dark h2, section.dark h3 { color: var(--ink-invert); }
section.dark a { color: #9db2f0; }
section.dark .caption { color: #a8a49c; }
section.dark .kicker { color: #e2896f; }

/* ---------- opakované prvky ---------- */

.kicker {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
}

.caption {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

.centered { text-align: center; }

/* krátký oblouk jako oddělovač */
.arc {
  grid-column: 5 / span 4;
  height: 26px;
  border-top: 1px solid var(--red);
  border-radius: 200px 200px 0 0;
  margin: 0 auto 40px;
  width: 100%;
}
.arc-lg { margin-bottom: 56px; }

/* ---------- header / navigace ---------- */

.site-header {
  border-bottom: 1px solid rgba(22, 21, 26, 0.14);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 22px;
  padding-bottom: 20px;
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--blue); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
}
.site-nav li + li::before {
  content: "·";
  color: var(--red);
  margin: 0 12px;
}
.site-nav a {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ---------- hero ---------- */

.hero { padding: 88px 0 72px; }
.hero .grid { row-gap: 0; }
.hero h1 {
  grid-column: 2 / span 10;
  text-align: center;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.hero .lede {
  grid-column: 4 / span 6;
  text-align: center;
}
.hero-side {
  margin-top: 34px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.hero-side p { margin-bottom: 0; }
.hero-side.left { grid-column: 1 / span 3; }
.hero-side.right { grid-column: 10 / span 3; }
.hero-side strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ---------- hlavní obrázek ---------- */

.figure-main {
  margin: 0;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.figure-main img {
  width: 100%;
  max-width: 680px;
}
.figure-main figcaption {
  max-width: 560px;
  text-align: center;
}

/* ---------- textové bloky ---------- */

.block-center {
  grid-column: 4 / span 6;
  text-align: left;
}
.block-center > h2, .block-center > .kicker { text-align: center; }

.block-wide { grid-column: 3 / span 8; }

/* asymetrický, vyprávěcí blok */
.block-narrative { grid-column: 1 / span 7; }

.pair { row-gap: 40px; }
.pair-left { grid-column: 2 / span 4; }
.pair-right { grid-column: 7 / span 4; }

.head-center {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 8px;
}

/* seznamy */
ul.plain, ol.plain { padding-left: 0; margin: 0 0 1.5em; }
ul.plain { list-style: none; }
ul.plain li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
}
ul.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 10px;
  height: 1px;
  background: var(--blue);
}
ol.plain {
  list-style: none;
  counter-reset: step;
}
ol.plain li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 14px;
  counter-increment: step;
}
ol.plain li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--red);
}

dl.terms { margin: 0 0 1.5em; }
dl.terms dt {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  margin-top: 26px;
}
dl.terms dd { margin: 4px 0 0; }

/* ---------- tmavá sekce s druhým obrázkem ---------- */

.detail-figure {
  margin: 0;
  grid-column: 1 / span 5;
}
.detail-figure img { width: 100%; }
.detail-text { grid-column: 7 / span 6; }
.detail-text h2 { margin-top: -0.2em; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-alt);
  padding: 64px 0 56px;
  text-align: center;
}
.site-footer .arc { grid-column: 5 / span 4; }
.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  margin: 0 0 18px;
}
.footer-nav ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
}
.footer-nav li + li::before {
  content: "·";
  color: var(--red);
  margin: 0 12px;
}
.footer-nav a { font-size: 15px; color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--blue); text-decoration: underline; }
.footer-mail { margin: 0 0 10px; }
.footer-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 auto;
}

/* ---------- responzivita ---------- */

@media (max-width: 900px) {
  body { font-size: 17px; line-height: 1.85; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  section, section.rhythm-2, section.rhythm-3, section.dark { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }

  .hero h1, .hero .lede,
  .block-center, .block-wide, .block-narrative,
  .pair-left, .pair-right,
  .hero-side.left, .hero-side.right,
  .detail-figure, .detail-text {
    grid-column: 1 / -1;
  }
  .hero-side { margin-top: 26px; }
  .arc { grid-column: 1 / -1; max-width: 260px; margin-bottom: 32px; }
  .axis::before { display: none; }
  .detail-figure { max-width: 460px; margin: 0 auto 32px; }
  .figure-main img { max-width: 100%; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 1.72rem; }
  h2 { font-size: 1.32rem; }
  .wrap { padding: 0 18px; }
  section, section.rhythm-2, section.rhythm-3, section.dark { padding: 44px 0; }
  .hero { padding: 40px 0 40px; }
  .site-nav li + li::before { margin: 0 8px; }
}
