/* Bravindi — dílna licího odlévání keramiky */

:root {
  --bg: #e8e6e1;
  --bg-alt: #d3d0c9;
  --bg-dark: #2a2a28;
  --ink: #17171a;
  --ink-soft: #6a6862;
  --ink-invert: #e8e6e1;
  --rust: #8c4a2f;
  --steel: #55707a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gutter: 24px;
}

* { 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(--rust); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.col-5 { grid-column: 1 / span 5; }
.col-6 { grid-column: 1 / span 6; }
.col-7 { grid-column: 1 / span 7; }
.col-8 { grid-column: 1 / span 8; }
.col-9 { grid-column: 1 / span 9; }

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

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

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

h1 .h1-second { display: block; padding-left: 8.33%; }

h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.3;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.06rem;
  line-height: 1.4;
  margin: 30px 0 8px;
}

p { margin: 0 0 18px; max-width: 72ch; }

.lead { font-size: 1.06rem; color: var(--ink); }

.note, figcaption, .caption {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.sec-no {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel);
  display: block;
  margin-bottom: 6px;
}

ul, ol { max-width: 68ch; padding-left: 20px; margin: 0 0 18px; }
li { margin-bottom: 8px; }
ul { list-style: none; padding-left: 0; }
ul li { position: relative; padding-left: 22px; }
ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 10px; height: 1px;
  background: var(--rust);
}
ol { padding-left: 22px; }
ol li::marker { color: var(--steel); font-family: var(--serif); }

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

.site-head { padding: 22px 0 18px; border-bottom: 1px solid rgba(23,23,26,.16); }

.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 26px;
}

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

.site-nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; }
.site-nav li { padding-left: 0; margin: 0; }
.site-nav li::before { display: none; }
.site-nav a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  border-bottom-color: var(--rust);
  color: var(--rust);
}

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

.hero { padding: 72px 0 0; position: relative; }

.hero-inner { position: relative; padding-left: 34px; }

/* vertical dimension line with serifs */
.hero-inner::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--ink-soft);
}
.hero-inner::after {
  content: "";
  position: absolute;
  left: -6px; top: 6px;
  width: 13px; height: 1px;
  background: var(--ink-soft);
  box-shadow: 0 0 0 0 transparent;
}
.hero-tick-bottom {
  position: absolute;
  left: -6px; bottom: 6px;
  width: 13px; height: 1px;
  background: var(--ink-soft);
}

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

.dim-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 26px;
  color: var(--steel);
}
.dim-line span {
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.dim-line::before,
.dim-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--steel);
  position: relative;
}
.dim-rule { position: relative; display: flex; align-items: center; gap: 14px; }

.hero-intro { grid-column: 1 / span 6; }
.hero-intro p { margin-bottom: 0; }

/* main figure */

.figure-main {
  margin: 40px 0 0;
  align-items: start;
}
.figure-main img { grid-column: 1 / span 7; width: 100%; }
.figure-main figcaption {
  grid-column: 9 / span 4;
  position: relative;
  padding-top: 18px;
}
.figure-main figcaption::before {
  content: "";
  position: absolute;
  left: -20%; top: 9px;
  width: 20%; height: 1px;
  background: var(--steel);
}

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

section { padding: 72px 0; }
section.rhythm-b { padding: 88px 0; }
section.rhythm-c { padding: 104px 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 p { color: #cfccc5; }
.band-dark .note, .band-dark figcaption { color: #a6a29a; }
.band-dark a { color: #d79b7f; }
.band-dark ul li::before { background: #d79b7f; }
.band-dark .sec-no { color: #8fa8b0; }
.band-dark :focus-visible { outline-color: #d79b7f; }

/* double separator */
.sep { margin-bottom: 26px; }
.sep::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(23,23,26,.22);
}
.sep::after {
  content: "";
  display: block;
  width: 16.66%;
  min-width: 90px;
  height: 3px;
  margin-top: 5px;
  background: var(--rust);
}
.band-dark .sep::before { background: rgba(232,230,225,.28); }

/* detail figure inside dark band */
.detail-row { align-items: start; row-gap: 32px; }
.detail-figure { grid-column: 8 / span 5; margin: 0; }
.detail-figure img { width: 100%; }
.detail-figure figcaption { margin-top: 10px; }
.detail-text { grid-column: 1 / span 6; }

/* checklist block */
.checklist {
  border-left: 1px solid var(--steel);
  padding-left: 20px;
  margin-top: 26px;
}

.defect-list dt {
  font-family: var(--serif);
  font-size: 1.02rem;
  margin-top: 22px;
}
.defect-list dd { margin: 6px 0 0; color: var(--ink); max-width: 68ch; }

/* ---------- about-style vertical line layout ---------- */

.linecol { position: relative; padding-left: 28px; }
.linecol::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 1px;
  background: rgba(23,23,26,.3);
}
.linecol .blk { position: relative; margin-bottom: 40px; }
.linecol .blk::before {
  content: "";
  position: absolute;
  left: -28px; top: 14px;
  width: 14px; height: 1px;
  background: var(--rust);
}
.linecol .blk:last-child { margin-bottom: 0; }

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

.site-foot { padding: 56px 0 34px; }
.foot-top { border-top: 1px solid rgba(23,23,26,.22); }
.foot-top::after {
  content: "";
  display: block;
  width: 16.66%;
  min-width: 90px;
  height: 3px;
  background: var(--rust);
}

.foot-grid { margin-top: 34px; row-gap: 30px; }
.foot-brand { grid-column: 1 / span 5; }
.foot-brand .fname { font-family: var(--serif); font-size: 1.6rem; display: block; margin-bottom: 8px; }
.foot-brand p { font-size: 14px; color: var(--ink-soft); max-width: 42ch; margin: 0; }
.foot-nav { grid-column: 7 / span 3; }
.foot-contact { grid-column: 10 / span 3; }
.foot-grid h2 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
  margin-bottom: 12px;
}
.foot-nav ul { padding: 0; margin: 0; }
.foot-nav li { padding-left: 0; margin-bottom: 7px; }
.foot-nav li::before { display: none; }
.foot-nav a, .foot-contact a { font-size: 14px; }
.foot-contact p { font-size: 14px; margin-bottom: 8px; }

.foot-end {
  margin-top: 38px;
  padding-top: 14px;
  border-top: 1px solid rgba(23,23,26,.18);
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- page header for inner pages ---------- */

.page-head { padding: 64px 0 0; }
.page-head h1 { grid-column: 1 / span 9; }
.page-head .kicker { grid-column: 1 / span 12; }

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

@media (max-width: 900px) {
  .figure-main img { grid-column: 1 / span 12; }
  .figure-main figcaption { grid-column: 1 / span 12; padding-top: 14px; }
  .figure-main figcaption::before { display: none; }
  .detail-figure, .detail-text { grid-column: 1 / span 12; }
  .detail-figure { max-width: 420px; }
  .col-5, .col-6, .col-7, .col-8, .col-9 { grid-column: 1 / span 12; }
  .hero h1, .hero-intro { grid-column: 1 / span 12; }
  .page-head h1 { grid-column: 1 / span 12; }
  .foot-brand, .foot-nav, .foot-contact { grid-column: 1 / span 12; }
}

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.75; }
  .hero { padding-top: 44px; }
  section { padding: 44px 0; }
  section.rhythm-b { padding: 50px 0; }
  section.rhythm-c { padding: 56px 0; }
  .hero-inner { padding-left: 20px; }
  h1 .h1-second { padding-left: 0; }
  .dim-line { gap: 10px; }
  .dim-line span { white-space: normal; font-size: 11px; }
  .site-nav ul { gap: 6px 16px; }
  .site-foot { padding: 40px 0 28px; }
}
