/* Gerise — tessera-modules
   tmavě švestková / mosaz / stříbro */

:root {
  --bg: #1e1a20;
  --bg-alt: #272229;
  --bg-light: #e9e6e1;
  --tx: #e9e6e1;
  --tx-dim: #9c949c;
  --tx-dark: #1e1a20;
  --brass: #c9a24b;
  --silver: #a9b2bd;
  --seam: 4px;
}

* { box-sizing: border-box; }

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

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

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

h1 { font-size: 2.15rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

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

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

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

/* ---------- shell ---------- */

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--seam);
}

.mod {
  background: var(--bg-alt);
  padding: 32px;
  grid-column: span 12;
  min-width: 0;
}

.mod-4 { grid-column: span 4; }
.mod-5 { grid-column: span 5; }
.mod-6 { grid-column: span 6; }
.mod-7 { grid-column: span 7; }
.mod-8 { grid-column: span 8; }
.mod-2 { grid-column: span 2; }
.mod-3 { grid-column: span 3; }

.mod-plain { background: transparent; padding: 0; }
.fill-brass { background: var(--brass); padding: 0; }
.fill-silver { background: var(--silver); padding: 0; }
.fill-plum { background: #3a3140; padding: 0; }
.fill-dark { background: #171419; padding: 0; }

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

.site-head {
  border-bottom: var(--seam) solid var(--bg-alt);
  padding: 20px 0;
}

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

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tx);
  text-decoration: none;
}
.brand:hover { color: var(--brass); }

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

.site-nav a {
  color: var(--tx-dim);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.site-nav a:hover { color: var(--tx); border-bottom-color: var(--brass); }
.site-nav a[aria-current="page"] { color: var(--tx); border-bottom-color: var(--brass); }

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

.hero { padding: 72px 0 0; }

.hero-title {
  grid-column: span 8;
  background: var(--bg-alt);
  padding: 44px 40px;
  display: flex;
  align-items: center;
}
.hero-title h1 { margin: 0; }

.hero-lede {
  grid-column: span 4;
  background: #221e25;
  padding: 36px 32px;
  color: var(--tx-dim);
  font-size: 1rem;
  line-height: 1.85;
}

.tile { min-height: 56px; }

.hero-img {
  grid-column: 3 / span 6;
  background: var(--bg-alt);
  padding: 0;
  line-height: 0;
}
.hero-img img { width: 100%; height: auto; display: block; }

.hero-cap {
  grid-column: span 3;
  background: #221e25;
  padding: 28px 24px;
  color: var(--tx-dim);
  font-size: 14px;
  line-height: 1.7;
}
.hero-cap .num {
  display: block;
  color: var(--silver);
  letter-spacing: 0.2em;
  font-size: 12px;
  margin-bottom: 10px;
}

/* ---------- separators ---------- */

.seam-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, 24px);
  gap: var(--seam);
  margin: 72px 0;
  overflow: hidden;
}
.seam-row span { height: 24px; background: var(--bg-alt); }
.seam-row span:nth-child(3n) { background: var(--brass); }
.seam-row span:nth-child(5n) { background: var(--silver); }
.seam-row span:nth-child(7n) { background: #3a3140; }

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

.band { padding: 72px 0; }
.band-alt { background: var(--bg-alt); }
.band-alt .mod { background: #2f2932; }

.band-light {
  background: var(--bg-light);
  color: var(--tx-dark);
  padding: 96px 0;
}
.band-light .mod { background: #ddd8d0; }
.band-light a { color: #8a6a1d; }
.band-light .cap { color: #5c565c; }
.band-light h2, .band-light h3 { color: var(--tx-dark); }

.sec-num {
  display: block;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--silver);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.band-light .sec-num { color: #6d6a63; }

.cap {
  font-size: 14px;
  line-height: 1.7;
  color: var(--tx-dim);
}

/* ---------- lists ---------- */

ul.checks, ol.steps {
  margin: 0 0 28px;
  padding: 0 0 0 26px;
}
ul.checks { list-style: none; padding-left: 0; }
ul.checks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  line-height: 1.75;
}
ul.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  background: var(--brass);
}
ol.steps li { margin-bottom: 16px; line-height: 1.75; }
ol.steps li::marker { color: var(--brass); }
ul.checks li:last-child, ol.steps li:last-child { margin-bottom: 0; }

dl.gloss { margin: 0; }
dl.gloss dt {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--brass);
  margin-top: 22px;
}
.band-light dl.gloss dt { color: #8a6a1d; }
dl.gloss dt:first-child { margin-top: 0; }
dl.gloss dd { margin: 6px 0 0; }

/* ---------- detail image (light band) ---------- */

.detail-img {
  grid-column: 2 / span 4;
  background: transparent;
  padding: 0;
}
.detail-img img { width: 100%; height: auto; display: block; }
.detail-img figcaption { margin-top: 14px; font-size: 14px; line-height: 1.7; color: #5c565c; }
figure { margin: 0; }

.detail-text { grid-column: 7 / span 6; background: transparent; padding: 0; }

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

.about-lede { grid-column: span 8; }
.about-6 { grid-column: span 6; }
.about-5 { grid-column: span 5; }
.about-contact { grid-column: span 4; background: #322b36; }

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

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

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--seam);
  margin-top: var(--seam);
}
.foot-grid > div {
  background: var(--bg-alt);
  padding: 28px 24px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--tx-dim);
  min-width: 0;
}
.foot-grid h2 {
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tx);
  margin: 0 0 12px;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 6px; }
.foot-grid a { color: var(--tx-dim); text-decoration: none; border-bottom: 1px solid #4a434c; }
.foot-grid a:hover { color: var(--brass); border-bottom-color: var(--brass); }

/* ---------- page head (inner pages) ---------- */

.page-head { padding: 72px 0 0; }
.page-head .mod-title {
  grid-column: span 8;
  background: var(--bg-alt);
  padding: 40px;
}
.page-head .mod-title h1 { margin: 0; }
.page-head .mod-note {
  grid-column: span 4;
  background: #221e25;
  padding: 32px;
  color: var(--tx-dim);
  font-size: 14px;
  line-height: 1.8;
}

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

@media (max-width: 900px) {
  .mod-4, .mod-5, .mod-6, .mod-7, .mod-8 { grid-column: span 6; }
  .hero-title, .hero-lede, .hero-cap,
  .about-lede, .about-6, .about-5, .about-contact,
  .page-head .mod-title, .page-head .mod-note { grid-column: span 12; }
  .hero-img { grid-column: span 12; }
  .detail-img { grid-column: span 12; }
  .detail-text { grid-column: span 12; margin-top: 32px; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 17px; line-height: 1.85; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .mod, .mod-4, .mod-5, .mod-6, .mod-7, .mod-8 { grid-column: span 12; }
  .mod { padding: 24px; }
  .hero { padding: 48px 0 0; }
  .hero-title { padding: 28px 24px; }
  .hero-lede { padding: 24px; }
  .band, .page-head { padding: 48px 0; }
  .page-head { padding-bottom: 0; }
  .band-light { padding: 48px 0; }
  .seam-row { margin: 48px 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .tile { min-height: 40px; }
  .site-foot { padding-bottom: 48px; }
}
