/* Prundelvako — jednotný styl webu */

:root {
  --bg: #faf7f0;
  --bg-alt: #dde2e4;
  --bg-dark: #1f4a4a;
  --ink: #14120f;
  --ink-soft: #6c6659;
  --ink-invert: #faf7f0;
  --accent: #d2402f;
  --accent-2: #a97f18;
  --rhythm: 76px;
  --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(--ink);
  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(--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 {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.col-text { grid-column: 2 / 8; }
.col-wide { grid-column: 2 / 10; }
.col-img  { grid-column: 7 / 13; }

/* --- korešek / hřbet --- */

.spine {
  grid-column: 1 / 2;
  position: relative;
  min-height: 100%;
}

.spine::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--ink-soft);
  opacity: .45;
}

.spine::after {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 9px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--accent) 0,
    var(--accent) 8px,
    transparent 8px,
    transparent 24px
  );
}

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

.site-head {
  border-bottom: 1px solid rgba(20, 18, 15, .18);
  padding: 20px 0;
}

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

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
}

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

.nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
}

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

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

/* --- typografie --- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  letter-spacing: -.01em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

p { margin: 0 0 20px; }

.lead {
  font-size: 20px;
  line-height: 1.7;
}

.rule-double {
  border: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  height: 4px;
  margin: 22px 0 24px;
  max-width: 220px;
  opacity: .8;
}

.folio {
  grid-column: 1 / 3;
  font-size: 13px;
  color: var(--accent-2);
  letter-spacing: .04em;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(169, 127, 24, .5);
  margin-bottom: 26px;
  align-self: start;
}

.caption {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* --- sekce --- */

section { padding: var(--rhythm) 0; }

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

.band-dark {
  background: var(--bg-dark);
  color: var(--ink-invert);
}

.band-dark h2,
.band-dark h3 { color: var(--ink-invert); }

.band-dark .folio {
  color: #e2c877;
  border-bottom-color: rgba(226, 200, 119, .45);
}

.band-dark .caption { color: #c3d2d2; }

.band-dark a { color: #f0a394; }

.band-dark .spine::before { background: #6d8f8f; }

.band-dark .spine::after {
  background-image: repeating-linear-gradient(
    to bottom, #e2c877 0, #e2c877 8px, transparent 8px, transparent 24px);
}

.band-dark li::marker { color: #e2c877; }

/* --- hero --- */

.hero { padding-top: 62px; padding-bottom: var(--rhythm); }

.hero h1 { grid-column: 2 / 10; max-width: 16ch; }
.hero .hero-body { grid-column: 2 / 8; }
.hero hr { margin-left: 0; }

.hero-figure {
  grid-column: 7 / 13;
  margin: 34px 0 0;
}

.hero-figure img { aspect-ratio: 3 / 2; object-fit: cover; }

/* --- seznamy --- */

ul.check, ol.steps {
  padding-left: 20px;
  margin: 0 0 22px;
}

ul.check { list-style: square; }

ul.check li, ol.steps li { margin-bottom: 10px; }

ul.check li::marker { color: var(--accent); }

ol.steps li::marker {
  color: var(--accent-2);
  font-family: var(--serif);
}

dl.terms { margin: 0 0 22px; }

dl.terms dt {
  font-family: var(--serif);
  font-size: 1.08rem;
  margin-top: 18px;
  color: var(--ink);
}

.band-dark dl.terms dt { color: var(--ink-invert); }

dl.terms dd { margin: 4px 0 0; }

/* --- typografický oddělovač --- */

.dinkus {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
  grid-column: 2 / 10;
}

.dinkus span {
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: block;
}

.band-dark .dinkus span { background: #e2c877; }

/* --- detailní obrázek v tmavé sekci --- */

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

.detail-figure img { aspect-ratio: 4 / 5; object-fit: cover; }

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

/* --- About --- */

.dropcap::first-letter {
  float: left;
  font-family: var(--serif);
  color: var(--accent);
  font-size: 4.2em;
  line-height: .82;
  padding: 6px 10px 0 0;
}

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

.site-foot {
  border-top: 1px solid rgba(20, 18, 15, .2);
  padding: 46px 0 54px;
  text-align: center;
}

.site-foot .foot-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

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

.foot-nav li { display: flex; align-items: center; }

.foot-nav li + li::before {
  content: "";
  width: 1px;
  height: 14px;
  background: rgba(20, 18, 15, .3);
  margin: 0 14px;
}

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

.foot-mail { margin-bottom: 10px; }

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

/* --- responzivita --- */

@media (max-width: 900px) {
  .col-img, .hero-figure { grid-column: 1 / 13; }
  .detail-figure { grid-column: 1 / 8; }
  .detail-text { grid-column: 1 / 13; margin-top: 26px; }
}

@media (max-width: 720px) {
  :root { --rhythm: 46px; }
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .grid { column-gap: 0; }
  .spine { display: none; }
  .col-text, .col-wide, .col-img,
  .hero h1, .hero .hero-body, .hero-figure,
  .detail-figure, .detail-text, .dinkus, .folio {
    grid-column: 1 / 13;
  }
  .hero { padding-top: 34px; }
  .lead { font-size: 18px; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; }
  .nav ul { gap: 6px 16px; }
  .foot-nav ul { flex-direction: column; gap: 8px; }
  .foot-nav li + li::before { display: none; }
}
