/* Prantove — gobelínová tkanina, redakční web
   Barevná osnova: vápencová šeď, rez, ocel */

:root {
  --paper: #e8e6e1;
  --paper-2: #d3d0c9;
  --ink: #17171a;
  --ink-soft: #6a6862;
  --dark: #2a2a28;
  --rust: #8c4a2f;
  --steel: #55707a;
  --line: 5px;
  --band-line: 6px;
}

* { box-sizing: border-box; }

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

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

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

h1 { font-size: clamp(1.95rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.2rem; margin-bottom: 16px; }

p { margin: 0 0 30px; max-width: 62ch; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

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

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

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

.caption {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 20px;
}

.marker {
  font-size: 14px;
  line-height: 1.7;
  color: var(--steel);
  margin: 0 0 18px;
}

/* ---------- mřížka a pásy ---------- */

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

.cell { padding: 72px 44px; background: var(--paper); }

.f-paper { background: var(--paper); }
.f-paper2 { background: var(--paper-2); }
.f-dark { background: var(--dark); color: var(--paper); }
.f-rust { background: var(--rust); color: var(--paper); }
.f-steel { background: var(--steel); color: var(--paper); }

.s3 { grid-column: span 3; }
.s4 { grid-column: span 4; }
.s5 { grid-column: span 5; }
.s7 { grid-column: span 7; }
.s8 { grid-column: span 8; }
.s12 { grid-column: 1 / -1; }

.band { border-top: var(--band-line) solid var(--dark); }

.f-dark a, .f-rust a, .f-steel a { color: var(--paper); text-decoration-color: rgba(232, 230, 225, 0.6); }
.f-dark a:focus-visible, .f-rust a:focus-visible, .f-steel a:focus-visible { outline-color: var(--paper); }
.f-dark .caption, .f-rust .caption, .f-steel .caption { color: rgba(232, 230, 225, 0.78); }
.f-dark .marker { color: #9fb6bd; }

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

.site-head {
  background: var(--paper);
  padding: 22px 44px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: baseline;
  justify-content: space-between;
}

.site-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 15px;
  line-height: 1.6;
}

.site-nav a { color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.site-nav a:hover { border-bottom-color: var(--rust); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--rust); }

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

.hero { border-top: var(--band-line) solid var(--dark); }

.hero .grid { grid-template-rows: auto auto auto; }

.hero-title {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
  display: flex;
  align-items: flex-end;
  padding: 84px 44px 72px;
  background: var(--paper);
}

.hero-title h1 { margin: 0; }
.hero-title .l { display: block; }
.hero-title .l:nth-child(2) { padding-left: 0.9em; }
.hero-title .l:nth-child(3) { color: var(--rust); }

.hero-lead {
  grid-column: 8 / 13;
  grid-row: 1;
  padding: 72px 44px;
}

.hero-lead p { max-width: 40ch; }

.hero-field {
  grid-column: 8 / 13;
  grid-row: 2;
  min-height: 130px;
}

.hero-nav {
  grid-column: 1 / 13;
  grid-row: 3;
  padding: 26px 44px;
  background: var(--paper-2);
}

.hero-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 30px;
  font-size: 15px;
}

.hero-nav a { color: var(--ink); text-decoration-color: var(--rust); text-decoration-thickness: 2px; }

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

.img-cell { padding: 44px; }
.img-cell img { border: var(--line) solid var(--dark); width: 100%; }
.figure { margin: 0; }
.figure figcaption { margin-top: 18px; font-size: 14px; line-height: 1.7; color: var(--ink-soft); max-width: 44ch; }
.f-dark .figure figcaption { color: rgba(232, 230, 225, 0.78); }

/* ---------- seznamy ---------- */

.checklist, .plain-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  max-width: 56ch;
}

.checklist li, .plain-list li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 16px;
  line-height: 1.75;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 3px;
  background: var(--rust);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 3px;
  background: var(--steel);
}

.f-dark .checklist li::before { background: #c98a6c; }

/* ---------- panel stránky O projektu ---------- */

.panel-field { border-top: var(--band-line) solid var(--dark); }
.panel-field .grid { background: transparent; gap: 0; }
.panel-field .inner { grid-column: 1 / 8; padding: 76px 44px; }
.panel-field.tall .inner { padding: 96px 44px; }
.panel-field.short .inner { padding: 60px 44px; }

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

.site-foot { border-top: var(--band-line) solid var(--dark); }
.site-foot .cell { padding: 48px 44px; }
.site-foot .foot-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; letter-spacing: 0.08em; margin: 0 0 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: inherit; text-decoration-color: var(--rust); }
.site-foot .f-dark a { text-decoration-color: rgba(232, 230, 225, 0.6); }
.site-foot p { font-size: 15px; line-height: 1.7; max-width: 40ch; margin: 0 0 14px; }

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

@media (max-width: 1040px) {
  .cell { padding: 60px 36px; }
  .hero-title { padding: 64px 36px 56px; }
  .hero-lead { padding: 56px 36px; }
  .hero-nav, .site-head { padding-left: 36px; padding-right: 36px; }
  .panel-field .inner { grid-column: 1 / 11; }
}

@media (max-width: 880px) {
  body { font-size: 17px; line-height: 1.85; }
  .grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .hero .grid { grid-template-rows: none; }
  .hero-title { align-items: flex-start; }
  .hero-title .l:nth-child(2) { padding-left: 0; }
  .hero-field { min-height: 90px; }
  .cell, .hero-title, .hero-lead { padding: 48px 24px; }
  .img-cell { padding: 24px; }
  .hero-nav, .site-head { padding-left: 24px; padding-right: 24px; }
  .site-foot .cell { padding: 36px 24px; }
  .panel-field .inner { grid-column: 1 / -1; padding: 56px 24px; }
  .panel-field.tall .inner { padding: 64px 24px; }
  .panel-field.short .inner { padding: 44px 24px; }
  p, .checklist, .plain-list { max-width: none; }
}

@media (max-width: 520px) {
  .site-head { display: block; }
  .site-name { display: inline-block; margin-bottom: 12px; }
  .site-nav ul { gap: 4px 18px; font-size: 14px; }
}
