/* Vandreluko — sklářské ateliéry a horké sklo */

:root {
  --bg: #171514;
  --bg-warm: #201C19;
  --bg-light: #EDE9E3;
  --text: #E6E1DA;
  --text-dim: #9A9088;
  --text-dark: #171514;
  --ember: #F08A24;
  --patina: #2F7A6E;
  --gap-wide: 104px;
  --gap-tight: 56px;
}

* { 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.8;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ---------- typografie ---------- */

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(38px, 6.2vw, 74px); }
h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 22px; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; margin-bottom: 12px; }

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

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

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

.caption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

.lede { font-size: 21px; line-height: 1.7; }

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

.topbar { border-bottom: 1px solid rgba(240, 138, 36, 0.55); }

.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 18px 40px;
  padding-top: 22px;
  padding-bottom: 18px;
}

.mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.mark:hover { color: var(--ember); }

.topbar nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin: 0;
  padding: 0;
}

.topbar nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.06em;
}

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

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

.hero {
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding-top: 132px;
  padding-bottom: 64px;
}

.hero .grid { width: 100%; align-items: end; }

.hero h1 { grid-column: 1 / 8; }

.hero-intro {
  grid-column: 9 / 13;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.75;
  border-left: 2px solid var(--ember);
  padding-left: 18px;
}

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

.figure-main {
  margin: 0 auto;
  max-width: 1000px;
  border-top: 1px solid var(--ember);
  padding-top: 16px;
}

.figure-main img,
.figure-detail img {
  display: block;
  width: 100%;
  height: auto;
}

.figure-main figcaption {
  margin-top: 12px;
  text-align: right;
  max-width: 560px;
  margin-left: auto;
}

.section-image { padding: 0 0 var(--gap-wide); }

/* ---------- rytmus sekcí ---------- */

.band-dark { background: var(--bg); padding: var(--gap-wide) 0; }
.band-warm { background: var(--bg-warm); padding: var(--gap-tight) 0; }

.band-light {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: var(--gap-wide) 0;
}

.band-light h2,
.band-light h3 { color: var(--text-dark); }
.band-light .caption { color: #55504A; }
.band-light a { color: #A85A05; }

.rule {
  height: 2px;
  border: 0;
  margin: 0 0 36px;
  width: 50%;
  max-width: 480px;
  background: linear-gradient(to right, var(--ember), rgba(240, 138, 36, 0));
}

/* ---------- textové bloky ---------- */

.col-text { grid-column: 1 / 7; }
.col-text.shift { grid-column: 4 / 10; }
.col-wide { grid-column: 1 / 9; }

.block + .block { margin-top: var(--gap-tight); }

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

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 2;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 6px;
}

.checklist li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ember);
}

.checklist li strong { font-weight: 600; }

/* ---------- detailní sekce se světlým pozadím ---------- */

.detail-grid { align-items: start; }

.figure-detail {
  grid-column: 1 / 5;
  margin: 0;
  padding-right: 26px;
  border-right: 2px solid var(--ember);
}

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

.detail-text { grid-column: 6 / 12; }

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

.contact-box {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 44px 40px;
}

.contact-box p { margin-bottom: 12px; }
.contact-box a { color: #A85A05; }

.contact-mail {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
}

/* ---------- vnitřní stránky ---------- */

.page { padding: 96px 0 var(--gap-wide); }

.page .col-narrow { grid-column: 1 / 8; }

.page-about .col-narrow { grid-column: 4 / 10; }

.page h2 { margin-top: 56px; }
.page h2:first-of-type { margin-top: 40px; }
.page h3 { margin-top: 32px; }

.page-meta {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 48px;
}

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

.site-footer {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 56px 0 48px;
}

.site-footer .wrap { border-top: 2px solid var(--ember); padding-top: 40px; }

.site-footer .grid { row-gap: 32px; }

.foot-brand { grid-column: 1 / 6; }
.foot-nav { grid-column: 6 / 9; }
.foot-contact { grid-column: 9 / 13; }

.foot-brand .name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
}

.foot-brand p {
  font-size: 15px;
  line-height: 1.7;
  color: #55504A;
  margin: 0;
}

.foot-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 2.1;
}

.foot-nav a,
.foot-contact a { color: #A85A05; }

.foot-contact .mail {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(18px, 2vw, 23px);
  word-break: break-word;
}

.foot-note {
  grid-column: 1 / 13;
  font-size: 13px;
  color: #55504A;
  margin-top: 12px;
}

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

@media (max-width: 900px) {
  :root { --gap-wide: 60px; --gap-tight: 36px; }

  .wrap { padding: 0 20px; }

  body { font-size: 16px; }

  .hero { min-height: 0; padding-top: 72px; padding-bottom: 44px; }

  .hero h1,
  .hero-intro,
  .col-text,
  .col-text.shift,
  .col-wide,
  .figure-detail,
  .detail-text,
  .page .col-narrow,
  .page-about .col-narrow,
  .foot-brand,
  .foot-nav,
  .foot-contact { grid-column: 1 / 13; }

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

  .figure-detail {
    padding-right: 0;
    border-right: 0;
    border-left: 2px solid var(--ember);
    padding-left: 20px;
    margin-bottom: 32px;
  }

  .figure-main figcaption { text-align: left; margin-left: 0; }

  .rule { width: 70%; }

  .contact-box { padding: 32px 24px; }

  .page h2 { margin-top: 40px; }
}

@media (max-width: 560px) {
  .topbar .wrap { display: block; }
  .topbar nav ul { margin-top: 14px; gap: 10px 22px; }
}
