/* Rirdesabri — společný styl pro všechny stránky */

:root {
  --bg: #f2f0ea;
  --bg-alt: #e5e2d9;
  --bg-dark: #1a1c22;
  --ink: #1a1c22;
  --muted: #6e6b64;
  --paper: #f2f0ea;
  --accent: #a82c26;
  --accent-2: #2a4a6b;
  --rule: rgba(26, 28, 34, 0.18);
  --rule-dark: rgba(242, 240, 234, 0.24);
  --sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1140px;
  --gap: 28px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  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(--accent);
  outline-offset: 3px;
}

/* ---------- mřížka ---------- */

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

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

.c-center-6 { grid-column: 4 / span 6; }
.c-center-8 { grid-column: 3 / span 8; }
.c-left-7 { grid-column: 1 / span 7; }
.c-left-6 { grid-column: 1 / span 6; }
.c-pair-l { grid-column: 2 / span 4; }
.c-pair-r { grid-column: 7 / span 4; }
.c-img-5 { grid-column: 2 / span 5; }
.c-text-6 { grid-column: 7 / span 6; }
.c-full { grid-column: 1 / -1; }

/* ---------- osa ---------- */

.axis { position: relative; }

.axis::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(168, 44, 38, 0) 0%,
    rgba(168, 44, 38, 0.55) 12%,
    rgba(168, 44, 38, 0.55) 88%,
    rgba(168, 44, 38, 0) 100%
  );
  pointer-events: none;
}

/* ---------- typografie ---------- */

h1, h2, h3 { margin: 0 0 0.6em; }

h1 {
  font-size: clamp(38px, 6.6vw, 68px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(24px, 3vw, 33px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 32px;
}

p { margin: 0 0 1.1em; max-width: 74ch; }

.lead {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
}

.num {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.caption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 14px 0 0;
  max-width: 56ch;
}

.side-note p { font-size: 15px; line-height: 1.65; }
.side-note h2 { font-size: 17px; font-weight: 600; letter-spacing: 0; margin-bottom: 0.5em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.15em; max-width: 74ch; }
li { margin-bottom: 0.5em; padding-left: 4px; }
li::marker { color: var(--accent); }

.checklist { list-style: none; padding-left: 0; }
.checklist li {
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--rule);
  position: relative;
  margin-bottom: 0;
}
.checklist li:last-child { border-bottom: 1px solid var(--rule); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-left: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- rytmus sekcí ---------- */

.s-64 { padding: 64px 0; }
.s-80 { padding: 80px 0; }
.s-96 { padding: 96px 0; }

.tone { background: var(--bg-alt); }

.dark {
  background: var(--bg-dark);
  color: var(--paper);
}
.dark .caption { color: rgba(242, 240, 234, 0.66); }
.dark .num { color: #8fb0cf; }
.dark a { color: #e2a09a; }
.dark li::marker { color: #e2a09a; }

/* ---------- oblouk jako předěl ---------- */

.arc {
  width: min(340px, 60%);
  height: 34px;
  margin: 0 auto;
  border: 1px solid var(--rule);
  border-bottom: 0;
  border-radius: 220px 220px 0 0;
}

.arc-dark { border-color: var(--rule-dark); }

/* ---------- hlavička ---------- */

.site-header {
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.brand {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 3px;
}

.site-nav ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  max-width: none;
}

.site-nav li { margin: 0; padding: 0; }

.site-nav a {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

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

.hero { padding: 72px 0 56px; }
.hero h1 { text-align: center; margin-bottom: 26px; }
.hero .lead { text-align: center; }
.hero .grid { row-gap: 40px; }

.hero-note {
  font-size: 15px;
  line-height: 1.65;
}
.hero-note h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.hero-note p { margin-bottom: 0; }
.hero-note-l { grid-column: 1 / span 3; text-align: right; border-right: 1px solid var(--rule); padding-right: 20px; }
.hero-note-r { grid-column: 10 / span 3; border-left: 1px solid var(--rule); padding-left: 20px; }

/* ---------- obrázky ---------- */

.figure-main {
  margin: 0 auto;
  max-width: 680px;
  text-align: center;
}
.figure-main img { margin: 0 auto; }
.figure-main .caption { margin-left: auto; margin-right: auto; text-align: center; }

.figure-detail { margin: 0; }
.figure-detail img { width: 100%; }

/* ---------- patička ---------- */

.site-footer {
  background: var(--bg);
  padding: 56px 0 48px;
  text-align: center;
}

.site-footer .brand-line {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 26px 0 14px;
}

.footer-nav ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  max-width: none;
}

.footer-nav li { margin: 0; padding: 0 14px; border-right: 1px solid var(--rule); }
.footer-nav li:last-child { border-right: 0; }

.footer-nav a { font-size: 15px; color: var(--ink); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-mail { font-size: 16px; margin: 0 0 10px; }
.footer-mail a { color: var(--accent); }

.footer-note {
  font-size: 13px;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto;
}

.site-footer p { max-width: none; }

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

@media (max-width: 900px) {
  .c-center-6, .c-center-8, .c-left-7, .c-left-6,
  .c-pair-l, .c-pair-r, .c-img-5, .c-text-6,
  .hero-note-l, .hero-note-r { grid-column: 1 / -1; }

  .hero-note-l { text-align: left; border-right: 0; padding-right: 0; border-top: 1px solid var(--rule); padding-top: 16px; }
  .hero-note-r { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 16px; }

  .axis::before { display: none; }

  .hero { padding: 48px 0 40px; }
  .s-64 { padding: 40px 0; }
  .s-80 { padding: 48px 0; }
  .s-96 { padding: 56px 0; }

  .grid { row-gap: 26px; }
  .figure-detail img { max-width: 460px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-nav ul { gap: 6px 16px; }
  .footer-nav li { padding: 0 10px; }
}
