/* Plandarvesok — sítotisková dílna */

:root {
  --bg: #efeae1;
  --bg-alt: #e3dbce;
  --bg-dark: #2c3a5c;
  --text: #2b2822;
  --text-soft: #6f6759;
  --text-inv: #efeae1;
  --accent: #a83b2c;
  --accent2: #6e7a47;
  --maxw: 1240px;
  --gap: 24px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  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; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

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

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

.c5 { grid-column: 1 / span 5; }
.c6 { grid-column: 1 / span 6; }
.c7 { grid-column: 1 / span 7; }
.c9 { grid-column: 1 / span 9; }
.c7r { grid-column: 6 / span 7; }
.c5r { grid-column: 8 / span 5; }
.c9r { grid-column: 4 / span 9; }

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

.site-header {
  border-bottom: 1px solid #d6cdbd;
  padding: 20px 0;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
}

.brand {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

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

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
}

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

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

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

.hero {
  padding: 96px 0 72px;
}

.hero-head {
  position: relative;
  padding-left: 28px;
}

.hero-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero h1 span { display: block; }
.hero h1 span:nth-child(2) { margin-left: 8%; }
.hero h1 span:nth-child(3) { margin-left: 16%; }

.hero-intro { margin-top: 44px; }

.hero-intro p { margin: 0 0 18px; }

.topline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.topline li::after {
  content: "/";
  color: var(--accent);
  margin: 0 10px;
  font-weight: 700;
}

.topline li:last-child::after { content: ""; margin: 0; }

/* ---------- main image ---------- */

.figure-main {
  margin: 0;
  grid-column: 5 / span 8;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  align-items: start;
}

.figure-main img { width: 100%; }

.cap-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
  justify-self: start;
}

.figure-main figcaption { margin: 0; }

.hero-image-row { margin-top: 64px; }

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

.section { padding: 120px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 20px;
}

.section h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 34px 0 10px;
}

.section p { margin: 0 0 18px; }
.section p:last-child { margin-bottom: 0; }

.sec-num {
  display: block;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--accent2);
  font-weight: 700;
  margin-bottom: 14px;
}

/* separators */

.rule {
  border: 0;
  height: 3px;
  background: var(--accent);
  width: 33.333%;
  margin: 0;
}

.rule.left { margin-left: 0; }
.rule.center { margin: 0 auto; }
.rule.right { margin-left: auto; }

/* numbered checklist */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 26px 0 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 68px;
  margin-bottom: 22px;
  border-top: 1px solid #d6cdbd;
  padding-top: 14px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.steps strong { display: block; }

.plain-list {
  margin: 20px 0 0;
  padding-left: 20px;
}

.plain-list li { margin-bottom: 10px; }
.plain-list li::marker { color: var(--accent); }

.note {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ---------- dark section ---------- */

.section.dark {
  background: var(--bg-dark);
  color: var(--text-inv);
  padding: 120px 0;
}

.section.dark h2, .section.dark h3 { color: var(--text-inv); }
.section.dark .sec-num { color: #b9c184; }
.section.dark a { color: #e8b0a4; }

.figure-detail {
  margin: 0;
  grid-column: 1 / span 5;
}

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

.figure-detail figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #b6bdd0;
}

.dark-text { grid-column: 7 / span 6; }

.dark-list {
  margin: 22px 0 0;
  padding-left: 20px;
}

.dark-list li { margin-bottom: 10px; }
.dark-list li::marker { color: #b9c184; }

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

.page-head {
  padding: 84px 0 48px;
  border-bottom: 3px solid var(--accent);
}

.page-head h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.page-head .kicker {
  display: block;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 700;
  margin-bottom: 18px;
}

.lede { font-size: 22px; line-height: 1.55; }

.doc { padding: 64px 0 96px; }

.doc-block { margin-bottom: 52px; }

.doc-block h2 {
  grid-column: 1 / span 3;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.doc-block .doc-body { grid-column: 4 / span 6; }
.doc-block .doc-body > :first-child { margin-top: 0; }
.doc-block p { margin: 0 0 16px; }
.doc-block p:last-child { margin-bottom: 0; }
.doc-block h3 { font-size: 1rem; margin: 26px 0 8px; }

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

.site-footer {
  border-top: 3px solid var(--accent);
  padding: 48px 0 64px;
  background: var(--bg);
}

.footer-name {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 40px;
}

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

.footer-nav { grid-column: 1 / span 5; }
.footer-meta { grid-column: 7 / span 6; }

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
}

.footer-nav li { margin-bottom: 10px; break-inside: avoid; }

.footer-nav a { color: var(--text); text-decoration: none; border-bottom: 1px solid #cdc4b3; }
.footer-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.footer-meta p { margin: 0 0 12px; font-size: 15px; color: var(--text-soft); }
.footer-meta .email { font-size: 17px; color: var(--text); }

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

@media (max-width: 900px) {
  .c5, .c6, .c7, .c9, .c7r, .c5r, .c9r,
  .figure-main, .figure-detail, .dark-text,
  .doc-block h2, .doc-block .doc-body,
  .footer-nav, .footer-meta {
    grid-column: 1 / -1;
  }

  .section { padding: 64px 0; }
  .section.tight { padding: 40px 0; }
  .section.dark { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .hero-image-row { margin-top: 40px; }
  .doc { padding: 44px 0 64px; }
  .doc-block { margin-bottom: 38px; }
  .doc-block h2 { margin-bottom: 12px; }
  .page-head { padding: 48px 0 32px; }
  .rule { width: 60%; }
  .lede { font-size: 19px; }

  .figure-main {
    grid-template-columns: 1fr;
  }

  .cap-vertical {
    writing-mode: horizontal-tb;
    transform: none;
    order: 2;
    margin-top: 10px;
  }

  .footer-nav { margin-bottom: 32px; }
  .footer-name { margin-bottom: 28px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .steps li { padding-left: 52px; }
  .steps li::before { font-size: 1.35rem; }
  .footer-nav ul { columns: 1; }
  .hero h1 span:nth-child(2) { margin-left: 6%; }
  .hero h1 span:nth-child(3) { margin-left: 12%; }
}
