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

:root {
  --bg: #f0ece6;
  --bg-alt: #e1dcd3;
  --bg-dark: #221e1a;
  --text: #1f1c18;
  --muted: #726c63;
  --on-dark: #f0ece6;
  --accent: #2f6a8c;
  --accent-2: #a05a2c;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

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

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

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

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

.c-center-6 { grid-column: 4 / 10; }
.c-center-8 { grid-column: 3 / 11; }
.c-left-7   { grid-column: 1 / 8; }
.c-pair-a   { grid-column: 2 / 6; }
.c-pair-b   { grid-column: 8 / 12; }
.c-img-5    { grid-column: 2 / 7; }
.c-text-6   { grid-column: 8 / 13; }

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

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

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

.dark {
  background: var(--bg-dark);
  color: var(--on-dark);
}

.dark h2, .dark h3 { color: var(--on-dark); }
.dark .caption, .dark .lead-note { color: #b5aea3; }
.dark .marker { color: #c98a55; }
.dark a { color: #8fc0dc; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 54px;
  line-height: 1.12;
  margin: 0 0 28px;
  text-align: center;
  text-wrap: balance;
}

h2 {
  font-size: 27px;
  line-height: 1.3;
  margin: 0 0 20px;
}

h3 {
  font-size: 19px;
  line-height: 1.4;
  margin: 32px 0 10px;
}

p { margin: 0 0 20px; }

.marker {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 14px;
}

.caption {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 14px 0 0;
}

.lead-note {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.axis-center { text-align: center; }
.axis-center h2 { text-align: center; }

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;
}

.dark a:focus-visible { outline-color: var(--on-dark); }

ul, ol { margin: 0 0 22px; padding-left: 20px; }
li { margin: 0 0 10px; }

ul { list-style: none; padding-left: 0; }

ul li {
  position: relative;
  padding-left: 22px;
}

ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.dark ul li::before { background: #8fc0dc; }

ol { padding-left: 22px; }
ol li::marker { color: var(--accent-2); font-family: var(--serif); }

/* ---------- hlavička a navigace ---------- */

.site-head {
  border-bottom: 1px solid rgba(114, 108, 99, 0.28);
}

.site-head .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 0 18px;
}

.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { text-decoration: none; color: var(--accent); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.site-nav li + li::after {
  content: none;
}

.site-nav li:not(:last-child) a::after {
  content: "·";
  color: var(--muted);
  margin: 0 2px 0 12px;
  text-decoration: none;
  display: inline-block;
}

.site-nav a {
  display: inline-block;
  padding: 4px 10px 4px 0;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.site-nav a[aria-current="page"] { color: var(--accent); }

/* ---------- hero s osou ---------- */

.hero {
  position: relative;
  padding: 72px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(47, 106, 140, 0) 0%,
    rgba(47, 106, 140, 0.55) 18%,
    rgba(47, 106, 140, 0.55) 82%,
    rgba(47, 106, 140, 0) 100%
  );
}

.hero .wrap { position: relative; }

.hero-lead {
  grid-column: 4 / 10;
  text-align: center;
}

.hero-eyebrow {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 22px;
}

.hero-side {
  margin-top: 44px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.hero-side .t {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 6px;
}

.hero-side p { margin: 0; }

.hero-side.left { grid-column: 1 / 4; text-align: right; }
.hero-side.right { grid-column: 10 / 13; text-align: left; }

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

.figure-axis {
  grid-column: 1 / 13;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.figure-axis img {
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
}

.figure-axis .caption { max-width: 560px; }

/* ---------- oblouk jako oddělovač ---------- */

.arc-row { justify-items: center; }

.arc {
  grid-column: 5 / 9;
  height: 26px;
  border-top: 1px solid var(--accent-2);
  border-left: 1px solid rgba(160, 90, 44, 0.35);
  border-right: 1px solid rgba(160, 90, 44, 0.35);
  border-radius: 200px 200px 0 0;
  width: 100%;
}

.dark .arc {
  border-top-color: #c98a55;
  border-left-color: rgba(201, 138, 85, 0.35);
  border-right-color: rgba(201, 138, 85, 0.35);
}

/* ---------- symetrické páry ---------- */

.pair { row-gap: 40px; }

.pair h3 { margin-top: 0; }

.block-note {
  border-top: 1px solid rgba(114, 108, 99, 0.35);
  padding-top: 18px;
}

/* ---------- tmavá sekce s detailem ---------- */

.detail-figure {
  margin: 0;
}

.detail-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-text { align-self: center; }

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

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

.site-foot .arc-row { padding-top: 0; }

.foot-brand {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 30px 0 18px;
}

.foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.foot-nav li { margin: 0; padding: 0; }
.foot-nav li::before { display: none; }

.foot-nav a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}

.foot-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.foot-nav li:not(:last-child) a::after {
  content: "·";
  color: var(--muted);
  margin: 0 8px 0 12px;
}

.foot-mail { margin: 0 0 12px; }

.foot-note {
  max-width: 560px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- vnitřní stránky ---------- */

.page-head {
  position: relative;
  padding: 64px 0 40px;
  text-align: center;
}

.page-head::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(47, 106, 140, 0) 0%,
    rgba(47, 106, 140, 0.5) 25%,
    rgba(47, 106, 140, 0) 100%
  );
}

.page-head .wrap { position: relative; }

.page-head h1 { font-size: 42px; }

.prose h2 { margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }

.contact-line {
  font-family: var(--serif);
  font-size: 20px;
}

/* ---------- responsivita ---------- */

@media (max-width: 960px) {
  h1 { font-size: 40px; }
  .page-head h1 { font-size: 34px; }
  h2 { font-size: 24px; }

  .c-center-6, .c-center-8, .c-left-7,
  .hero-lead { grid-column: 1 / 13; }

  .c-pair-a { grid-column: 1 / 7; }
  .c-pair-b { grid-column: 7 / 13; }

  .c-img-5 { grid-column: 1 / 7; }
  .c-text-6 { grid-column: 7 / 13; }

  .hero-side.left, .hero-side.right { grid-column: 1 / 13; text-align: left; margin-top: 32px; }

  .arc { grid-column: 4 / 10; }
}

@media (max-width: 680px) {
  body { font-size: 16px; line-height: 1.75; }

  h1 { font-size: 30px; }
  .page-head h1 { font-size: 27px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }

  .grid { column-gap: 0; }

  .c-pair-a, .c-pair-b,
  .c-img-5, .c-text-6,
  .arc { grid-column: 1 / 13; }

  .arc { max-width: 240px; margin: 0 auto; }

  .s-a { padding: 40px 0; }
  .s-b { padding: 48px 0; }
  .s-c { padding: 56px 0; }

  .hero { padding: 44px 0 40px; }
  .hero::before { display: none; }
  .page-head { padding: 40px 0 28px; }
  .page-head::before { display: none; }

  .hero-side.left, .hero-side.right { margin-top: 24px; }

  .detail-text { margin-top: 28px; }

  .site-nav a { font-size: 13px; }
  .site-nav li:not(:last-child) a::after { margin: 0 2px 0 8px; }

  .contact-line { font-size: 17px; }
}
