/* Stikentu — book-spine / lněná vazba: mařena a oliva */

:root {
  --paper: #efeae1;
  --paper-alt: #e3dbce;
  --ink-deep: #2c3a5c;
  --text: #2b2822;
  --text-soft: #6f6759;
  --madder: #a83b2c;
  --olive: #6e7a47;
  --rhythm: 76px;
  --spine: 46px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}

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

a {
  color: var(--madder);
  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(--madder);
  outline-offset: 3px;
}

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

.sheet {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 22px;
}

.col-main { grid-column: 2 / 8; }
.col-wide { grid-column: 2 / 10; }
.col-full { grid-column: 2 / 13; }

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

.masthead {
  border-bottom: 1px solid rgba(43, 40, 34, .18);
  background: var(--paper);
}

.masthead .sheet {
  padding-top: 20px;
  padding-bottom: 18px;
  row-gap: 10px;
  align-items: baseline;
}

.wordmark {
  grid-column: 1 / 5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  letter-spacing: .04em;
  line-height: 1.1;
  color: var(--text);
  text-decoration: none;
}

.wordmark span {
  display: block;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--text-soft);
  margin-top: 2px;
}

.masthead nav { grid-column: 5 / 13; }

.masthead ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 20px;
  font-size: 15px;
}

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

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

/* ---------- hero s koreškem ---------- */

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

.hero .sheet { align-items: start; }

.stitching {
  grid-column: 1 / 2;
  align-self: stretch;
  min-height: 230px;
  border-left: 1px solid rgba(110, 122, 71, .5);
  background-image: repeating-linear-gradient(
    to bottom,
    var(--madder) 0 2px,
    transparent 2px 17px
  );
  background-size: 14px 100%;
  background-repeat: no-repeat;
  background-position: 6px 6px;
}

.hero h1 {
  grid-column: 2 / 11;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(34px, 5.1vw, 58px);
  line-height: 1.05;
  letter-spacing: -.005em;
  max-width: 17em;
}

.rule-double {
  grid-column: 2 / 9;
  height: 0;
  margin: 26px 0 24px;
  border-top: 2px solid var(--text);
  border-bottom: 1px solid rgba(43, 40, 34, .35);
  padding-bottom: 4px;
}

.standfirst {
  grid-column: 2 / 8;
  margin: 0;
  font-size: 19px;
  line-height: 1.72;
  color: var(--text);
}

/* ---------- sekce ---------- */

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

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

.folio {
  grid-column: 1 / 4;
  font-size: 13px;
  line-height: 1.5;
  color: var(--olive);
  border-bottom: 1px solid rgba(110, 122, 71, .55);
  padding-bottom: 6px;
  margin-bottom: 26px;
}

.folio b {
  font-weight: 600;
  color: var(--madder);
  margin-right: 8px;
}

h2 {
  grid-column: 2 / 10;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(25px, 3vw, 33px);
  line-height: 1.15;
  margin: 0 0 18px;
}

h3 {
  grid-column: 2 / 8;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
  margin: 30px 0 8px;
}

p { grid-column: 2 / 8; margin: 0 0 18px; }

.lede {
  grid-column: 2 / 10;
  font-size: 19px;
  line-height: 1.7;
}

ul.list, ol.list {
  grid-column: 2 / 8;
  margin: 4px 0 22px;
  padding-left: 20px;
}

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

ul.list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 11px;
}

ul.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 11px;
  height: 2px;
  background: var(--madder);
}

ol.list li { margin-bottom: 11px; padding-left: 4px; }

ol.list li::marker { color: var(--olive); }

.note {
  grid-column: 2 / 8;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
  border-left: 2px solid var(--olive);
  padding-left: 16px;
  margin: 0 0 18px;
}

/* ---------- oddělovač ze tří štrichů ---------- */

.dinkus {
  grid-column: 1 / 13;
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 44px 0 40px;
}

.dinkus span {
  width: 15px;
  height: 2px;
  background: var(--madder);
}

.dinkus span:nth-child(2) { background: var(--olive); }

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

figure { margin: 0; }

.plate-main {
  grid-column: 7 / 13;
  margin-top: 6px;
}

.plate-main img {
  width: 100%;
  border: 1px solid rgba(43, 40, 34, .2);
}

figcaption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  margin-top: 10px;
  max-width: 34em;
}

/* ---------- kontrastní sekce ---------- */

.band-deep {
  background: var(--ink-deep);
  color: var(--paper);
}

.band-deep h2,
.band-deep h3,
.band-deep p,
.band-deep li { color: var(--paper); }

.band-deep .folio {
  color: #b6c08e;
  border-bottom-color: rgba(239, 234, 225, .35);
}

.band-deep .folio b { color: #e0a196; }

.band-deep a { color: #e6b0a5; }

.band-deep figcaption { color: rgba(239, 234, 225, .72); }

.band-deep .note {
  color: rgba(239, 234, 225, .82);
  border-left-color: #b6c08e;
}

.band-deep ul.list li::before { background: #e0a196; }

.plate-detail { grid-column: 2 / 6; }

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

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

.deep-text h2,
.deep-text h3,
.deep-text p,
.deep-text ul.list,
.deep-text .note { grid-column: auto; }

.deep-text h2 { margin-top: 0; }

/* ---------- O projektu ---------- */

.opening {
  grid-column: 2 / 8;
  margin: 0 0 18px;
}

.opening::first-letter {
  float: left;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 61px;
  line-height: .82;
  color: var(--madder);
  padding: 5px 10px 0 0;
}

/* ---------- kontakt ---------- */

.contact-line {
  grid-column: 2 / 8;
  font-size: 19px;
  margin: 0 0 10px;
}

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

footer {
  background: var(--paper-alt);
  border-top: 1px solid rgba(43, 40, 34, .18);
  padding: 48px 0 54px;
  text-align: center;
}

footer .sheet { display: block; }

.foot-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: .05em;
  margin: 0 0 16px;
}

footer nav ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 15px;
}

footer nav li { padding: 0 14px; border-right: 1px solid rgba(43, 40, 34, .3); }

footer nav li:last-child { border-right: 0; }

footer nav a { color: var(--text); text-decoration: none; }

footer nav a:hover { text-decoration: underline; }

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

.foot-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 46em;
  margin: 0 auto;
}

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

@media (max-width: 900px) {
  .plate-main { grid-column: 2 / 13; }
  .plate-detail { grid-column: 2 / 10; }
  .deep-text { grid-column: 2 / 13; }
  .hero h1 { grid-column: 2 / 13; }
  h2, .lede, .rule-double { grid-column: 2 / 13; }
  p, h3, ul.list, ol.list, .note, .opening, .standfirst, .contact-line { grid-column: 2 / 12; }
  .folio { grid-column: 1 / 8; }
}

@media (max-width: 640px) {
  :root { --rhythm: 46px; }

  body { font-size: 16.5px; }

  .sheet {
    grid-template-columns: 18px repeat(11, 1fr);
    column-gap: 12px;
    padding: 0 16px;
  }

  .hero { padding: 34px 0 var(--rhythm); }

  .stitching { min-height: 150px; }

  .wordmark { grid-column: 1 / 13; }

  .masthead nav { grid-column: 1 / 13; }

  .masthead ul { justify-content: flex-start; gap: 4px 16px; }

  .hero h1,
  h2, .lede, .rule-double,
  p, h3, ul.list, ol.list, .note,
  .opening, .standfirst, .contact-line,
  .plate-main, .plate-detail, .deep-text { grid-column: 2 / 13; }

  ul.list, ol.list { padding-left: 0; }

  ol.list { padding-left: 20px; }

  .folio { grid-column: 1 / 13; margin-bottom: 20px; }

  .dinkus { margin: 30px 0 28px; }

  .opening::first-letter { font-size: 50px; }
}
