/* Tontenda — fine-setting: grafit s růžovou */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #191919;
  --bg-alt: #212121;
  --bg-light: #f0eeec;
  --text: #e8e6e4;
  --text-dim: #918e8c;
  --text-dark: #191919;
  --accent: #c96f76;
  --accent-2: #8ca0a8;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gap: 24px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.9;
  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;
}

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

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

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

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

h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(23px, 2.6vw, 30px);
  margin-bottom: 18px;
}

h3 {
  font-size: 20px;
  margin: 34px 0 10px;
}

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

.lead { font-size: 20px; color: var(--text); }

.cap {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  font-family: var(--sans);
}

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

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

.site-head { padding-top: 34px; }

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

.nav a {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
}

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

.brand {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  grid-column: 1 / span 3;
}

.nav { grid-column: 5 / span 8; display: flex; align-items: center; }

.head-rule {
  grid-column: 1 / span 5;
  height: 1px;
  background: var(--accent);
  margin-top: 26px;
}

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

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

.hero-title { grid-column: 1 / span 7; }

.hero-title .inner {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  column-gap: var(--gap);
}

.hero-title .l1 { grid-column: 3 / span 5; display: block; }
.hero-title .l2 { grid-column: 1 / span 7; display: block; }

.hero-list { grid-column: 10 / span 3; }

.hero-list ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #333; }

.hero-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
  padding: 11px 0;
  border-bottom: 1px solid #333;
}

.hero-intro { grid-column: 1 / span 6; margin-top: 52px; }

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

.figure-main { padding-bottom: 64px; }

.figure-main .frame {
  grid-column: 8 / span 5;
  border: 1px solid var(--accent);
  padding: 8px;
}

.figure-main figcaption {
  grid-column: 3 / span 4;
  align-self: end;
  padding-bottom: 6px;
}

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

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

.col { grid-column: 1 / span 6; }
.col-shift { grid-column: 4 / span 6; }

.sep {
  grid-column: 1 / span 2;
  height: 1px;
  background: var(--accent);
  margin-bottom: 26px;
}
.sep-shift { grid-column: 4 / span 2; }

/* lists */

.list { list-style: none; margin: 0 0 20px; padding: 0; }

.list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.75;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 11px;
  height: 1px;
  background: var(--accent);
}

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

.list-num li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-bottom: 14px;
  line-height: 1.75;
}

.list-num li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}

/* ---------- contrast section ---------- */

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

.contrast h2, .contrast h3 { color: var(--text-dark); }
.contrast .num { color: #6d7d84; }
.contrast .cap { color: #5f5c5a; }
.contrast .sep { background: var(--accent); }
.contrast a { color: #a5525a; }
.contrast .list li::before { background: var(--accent); }

.contrast .fig { grid-column: 1 / span 4; }
.contrast .fig figcaption { margin-top: 12px; }
.contrast .txt { grid-column: 6 / span 6; }

/* ---------- contact block ---------- */

.contact-box { grid-column: 1 / span 6; }
.contact-mail { font-family: var(--serif); font-size: 22px; }

/* ---------- about page ---------- */

.page-head { padding: 64px 0 40px; }
.page-head .col { grid-column: 1 / span 7; }
.page-head .cap { margin-top: 18px; }

.doc { grid-column: 1 / span 6; }

.doc section { margin-bottom: 56px; }
.doc section:last-child { margin-bottom: 0; }

.doc h2 { position: relative; padding-left: 40px; }

.doc h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

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

.site-foot { padding: 56px 0 64px; }

.foot-rule {
  grid-column: 1 / span 5;
  height: 1px;
  background: var(--accent);
  margin-bottom: 30px;
}

.foot-a { grid-column: 1 / span 5; }
.foot-b { grid-column: 6 / span 3; }
.foot-c { grid-column: 9 / span 4; }

.foot-name { font-family: var(--serif); font-size: 19px; letter-spacing: 0.05em; margin-bottom: 10px; }

.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 9px; font-size: 15px; line-height: 1.5; }
.site-foot a { color: var(--text-dim); text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.site-foot .mail { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

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

@media (max-width: 960px) {
  .brand { grid-column: 1 / span 12; margin-bottom: 14px; }
  .nav { grid-column: 1 / span 12; }
  .head-rule { grid-column: 1 / span 8; }

  .hero { padding: 48px 0 40px; }
  .hero-title { grid-column: 1 / span 12; }
  .hero-title .inner { grid-template-columns: repeat(6, 1fr); }
  .hero-title .l1 { grid-column: 2 / span 5; }
  .hero-title .l2 { grid-column: 1 / span 6; }
  .hero-list { grid-column: 1 / span 12; margin-top: 40px; }
  .hero-intro { grid-column: 1 / span 12; margin-top: 36px; }

  .figure-main { padding-bottom: 40px; }
  .figure-main .frame { grid-column: 4 / span 9; }
  .figure-main figcaption { grid-column: 1 / span 12; margin-top: 14px; }

  .section { padding: 40px 0; }
  .contrast { padding: 48px 0; }

  .col, .col-shift, .contact-box, .doc, .page-head .col { grid-column: 1 / span 12; }
  .sep, .sep-shift { grid-column: 1 / span 3; }

  .contrast .fig { grid-column: 1 / span 7; }
  .contrast .txt { grid-column: 1 / span 12; margin-top: 32px; }

  .foot-rule { grid-column: 1 / span 8; }
  .foot-a, .foot-b, .foot-c { grid-column: 1 / span 12; }
  .foot-b, .foot-c { margin-top: 28px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .nav ul { gap: 10px 22px; }
  .hero-title .inner { grid-template-columns: 1fr; }
  .hero-title .l1, .hero-title .l2 { grid-column: 1; }
  .figure-main .frame { grid-column: 1 / span 12; }
  .contrast .fig { grid-column: 1 / span 12; }
  .sep, .sep-shift { grid-column: 1 / span 4; }
}
