/* Pavima — mirror-axis / tmavě zelená lesní s mosazí */

:root {
  --bg: #131c17;
  --bg-alt: #1a2620;
  --bg-contrast: #eaeee7;
  --text: #e4eae2;
  --text-dim: #8b9a8e;
  --text-dark: #131c17;
  --brass: #c2a24d;
  --sage: #7fa88a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --col: minmax(0, 1fr);
}

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

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

a {
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid rgba(194, 162, 77, 0.45);
}

a:hover { border-bottom-color: var(--brass); }

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

/* ---------- grid ---------- */

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

.grid {
  display: grid;
  grid-template-columns: repeat(12, var(--col));
  column-gap: 24px;
}

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: 3.15rem; }
h2 { font-size: 1.72rem; line-height: 1.25; }
h3 { font-size: 1.12rem; line-height: 1.35; }

p { margin: 0 0 1.15em; }

p:last-child { margin-bottom: 0; }

.lede { font-size: 1.06rem; color: var(--text); }

.cap,
figcaption {
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.num {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 14px;
}

.dim { color: var(--text-dim); }

/* ---------- header / nav ---------- */

.site-head {
  border-bottom: 1px solid rgba(139, 154, 142, 0.22);
  padding: 22px 0 20px;
}

.head-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 0;
}

.brand:hover { color: var(--brass); }

.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(--sage);
  padding: 0 14px;
}

.site-nav a {
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 0;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] { color: var(--brass); }

/* ---------- sections ---------- */

.s-a { padding: 64px 0; }
.s-b { padding: 80px 0; background: var(--bg-alt); }
.s-c { padding: 96px 0; }
.s-d { padding: 64px 0; background: var(--bg-alt); }

.contrast {
  background: var(--bg-contrast);
  color: var(--text-dark);
  padding: 88px 0;
}

.contrast h2, .contrast h3 { color: var(--text-dark); }
.contrast .num { color: #4c6b57; }
.contrast .cap, .contrast figcaption { color: #556459; }
.contrast a { color: #7a6420; border-bottom-color: rgba(122, 100, 32, 0.5); }
.contrast .arc { border-color: rgba(19, 28, 23, 0.28); }

/* ---------- axis + arc separator ---------- */

.axis { position: relative; }

.axis::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, rgba(194, 162, 77, 0.55), rgba(194, 162, 77, 0.08));
  pointer-events: none;
}

.arc {
  grid-column: 5 / 9;
  height: 26px;
  border-top: 1px solid rgba(194, 162, 77, 0.4);
  border-radius: 60px 60px 0 0;
  margin: 0 auto 44px;
  width: 100%;
}

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

.hero { padding: 78px 0 64px; }

.hero-top { text-align: center; }

.hero h1 {
  grid-column: 2 / 12;
  margin-bottom: 26px;
  text-wrap: balance;
}

.hero .lede {
  grid-column: 4 / 10;
  color: var(--text-dim);
}

.hero-sides {
  margin-top: 52px;
  row-gap: 32px;
}

.hero-sides .side-l { grid-column: 2 / 5; }
.hero-sides .side-r { grid-column: 9 / 12; }

.hero-sides h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.hero-sides p { font-size: 15px; color: var(--text-dim); line-height: 1.75; }

.hero-figure {
  margin: 60px auto 0;
  max-width: 680px;
  text-align: center;
}

.hero-figure figcaption { margin-top: 14px; }

/* ---------- symmetric pair ---------- */

.pair { row-gap: 34px; }
.pair .col-l { grid-column: 2 / 6; }
.pair .col-r { grid-column: 8 / 12; }

.center-head {
  text-align: center;
  margin-bottom: 42px;
}

.center-head h2 { max-width: 680px; margin: 0 auto; }

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

/* deliberately asymmetric narrative block */
.narrative { grid-column: 1 / 8; }

.narrative-r { grid-column: 6 / 13; }

/* ---------- lists ---------- */

ul.check, ol.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.check li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.7;
}

ul.check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 9px;
  height: 1px;
  background: var(--brass);
}

ol.steps { counter-reset: st; }

ol.steps li {
  counter-increment: st;
  position: relative;
  padding-left: 42px;
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.7;
}

ol.steps li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--sage);
}

ol.steps li strong { font-weight: 600; }

/* ---------- detail (contrast) block ---------- */

.detail-row { row-gap: 36px; align-items: start; }

.detail-fig { grid-column: 2 / 6; margin: 0; }

.detail-fig figcaption { margin-top: 12px; }

.detail-text { grid-column: 7 / 13; }

.detail-text h2 { margin-bottom: 22px; }

.detail-text h3 { margin: 28px 0 8px; }

/* ---------- notes / plain text sections ---------- */

.note-row { row-gap: 30px; }
.note-row .note { grid-column: span 4; }
.note-row .note h3 { margin-bottom: 8px; }
.note-row .note p { font-size: 15px; color: var(--text-dim); }

/* ---------- legal / article pages ---------- */

.page-head {
  padding: 66px 0 10px;
  text-align: center;
}

.page-head h1 {
  font-size: 2.5rem;
  grid-column: 2 / 12;
  margin-bottom: 18px;
}

.page-head .lede {
  grid-column: 4 / 10;
  color: var(--text-dim);
}

.doc { padding: 48px 0 72px; }

.doc-body { grid-column: 4 / 10; }

.doc-body h2 {
  margin: 46px 0 14px;
  font-size: 1.42rem;
}

.doc-body h2:first-child { margin-top: 0; }

.doc-body h3 { margin: 26px 0 8px; }

.doc-body ul.check li { color: var(--text); }

.contact-line {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid rgba(139, 154, 142, 0.25);
  font-size: 15px;
  color: var(--text-dim);
  text-align: center;
}

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

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

.foot-arc {
  height: 30px;
  width: 33.33%;
  max-width: 340px;
  margin: 0 auto 34px;
  border-top: 1px solid rgba(194, 162, 77, 0.4);
  border-radius: 70px 70px 0 0;
}

.foot-brand {
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

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

.foot-nav li + li::before {
  content: '·';
  color: var(--sage);
  padding: 0 12px;
}

.foot-nav a {
  font-size: 13px;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  border-bottom: 0;
}

.foot-nav a:hover { color: var(--brass); }

.foot-mail { font-size: 15px; margin-bottom: 14px; }

.foot-about {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  h1 { font-size: 2.4rem; }
  .page-head h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero h1,
  .hero .lede,
  .page-head h1,
  .page-head .lede,
  .center-text,
  .doc-body,
  .narrative,
  .narrative-r { grid-column: 1 / -1; }

  .hero-sides .side-l,
  .hero-sides .side-r,
  .pair .col-l,
  .pair .col-r { grid-column: span 6; }

  .detail-fig { grid-column: 1 / 7; }
  .detail-text { grid-column: 7 / 13; }
  .note-row .note { grid-column: span 6; }
  .arc { grid-column: 4 / 10; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.95rem; }
  .page-head h1 { font-size: 1.75rem; }
  h2 { font-size: 1.34rem; }

  .s-a, .s-d { padding: 40px 0; }
  .s-b { padding: 48px 0; }
  .s-c { padding: 56px 0; }
  .contrast { padding: 48px 0; }
  .hero { padding: 44px 0 40px; }
  .page-head { padding: 44px 0 8px; }
  .doc { padding: 32px 0 52px; }

  .axis::before { display: none; }

  .hero-sides .side-l,
  .hero-sides .side-r,
  .pair .col-l,
  .pair .col-r,
  .detail-fig,
  .detail-text,
  .note-row .note,
  .arc { grid-column: 1 / -1; }

  .hero-figure { margin-top: 40px; }
  .hero-sides { margin-top: 36px; }
  .arc { width: 60%; margin-bottom: 32px; }
  .foot-arc { width: 60%; }
  .site-nav li + li::before { padding: 0 9px; }
}
