/* Graneliovosk — index-column */

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

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

body {
  margin: 0;
  background: #f4ece0;
  color: #2a2119;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, .ui {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800;
}

a { color: #b0512c; 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 #b0512c; outline-offset: 3px; }

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

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

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

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

.site-head {
  border-bottom: 1px solid #d9c9b0;
  padding: 22px 0 18px;
}
.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 26px;
}
.brand {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: #2a2119;
  text-decoration: none;
}
.brand:hover { color: #b0512c; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #2a2119;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: #b0512c; border-bottom-color: #b0512c; }
.site-nav a[aria-current="page"] { border-bottom-color: #37596b; }

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

.hero { padding: 74px 0 60px; }

.hero h1 {
  grid-column: 1 / 9;
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero .lede {
  grid-column: 1 / 7;
  margin: 30px 0 0;
  font-size: 20px;
  line-height: 1.65;
}
.hero .lede + .lede { margin-top: 18px; font-size: 18px; color: #7d6f5c; }

/* index column */
.indexcol { grid-column: 10 / 13; padding-top: 8px; }
.indexcol h2, .indexcol .idx-title {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #37596b;
  margin: 0 0 14px;
}
.indexcol ol { list-style: none; margin: 0; padding: 0; }
.indexcol li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #ddceb6;
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}
.indexcol li:last-child { border-bottom: 1px solid #ddceb6; }
.indexcol .num { color: #37596b; font-weight: 700; font-variant-numeric: tabular-nums; }
.indexcol a { color: #2a2119; text-decoration: none; }
.indexcol a:hover { color: #b0512c; text-decoration: underline; }

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

.band { padding: 84px 0; }
.band--alt { background: #e8dbc7; }
.band--dark { background: #33231a; color: #f4ece0; }

.sec { grid-column: 1 / 9; }
.sec-num {
  grid-column: 10 / 13;
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #37596b;
  padding-top: 10px;
}
.sec + .sec, .band > .wrap > .grid + .grid { margin-top: 84px; }

.sec h2 {
  margin: 0 0 20px;
  font-size: clamp(25px, 3.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.sec h3 {
  margin: 34px 0 12px;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.sec p { margin: 0 0 18px; }
.sec p:last-child { margin-bottom: 0; }

.rule { border: 0; border-top: 1px solid #d9c9b0; margin: 0; }
.band--dark .rule { border-top-color: #574234; }

ul.marks, ol.marks { margin: 0 0 18px; padding: 0; list-style: none; }
ul.marks li, ol.marks li {
  position: relative;
  padding: 0 0 0 26px;
  margin-bottom: 10px;
}
ul.marks li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #b0512c;
  font-weight: 700;
}
ol.marks { counter-reset: m; }
ol.marks li { counter-increment: m; }
ol.marks li::before {
  content: counter(m, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #37596b;
}

/* ---------- main figure ---------- */

.fig-main { grid-column: 1 / 9; margin: 0; }
.fig-main img { width: 100%; }
.fig-cap {
  grid-column: 10 / 13;
  align-self: end;
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: #7d6f5c;
  padding-bottom: 4px;
}

/* ---------- dark band with detail image ---------- */

.band--dark h2 { color: #f4ece0; }
.band--dark .sec-num { color: #7fa3b3; }
.band--dark a { color: #d98a5f; }
.band--dark ul.marks li::before { color: #d98a5f; }
.band--dark ol.marks li::before { color: #7fa3b3; }

.detail-fig { grid-column: 2 / 6; margin: 0; }
.detail-fig img { width: 100%; }
.detail-fig figcaption {
  margin-top: 12px;
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #b9a795;
}
.detail-text { grid-column: 7 / 13; }
.detail-text h2 { margin-top: 0; }

/* ---------- about / legal pages ---------- */

.page-head { padding: 62px 0 40px; }
.page-head h1 {
  grid-column: 1 / 9;
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.page-head .lede { grid-column: 1 / 7; margin: 26px 0 0; font-size: 19px; }

.marks-legal li { margin-bottom: 8px; }

.mail { font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 15px; }

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

.site-foot { background: #e8dbc7; padding: 60px 0 46px; margin-top: 0; }
.foot-top { align-items: start; }
.foot-name {
  grid-column: 1 / 7;
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
  margin: 0;
}
.foot-nav { grid-column: 9 / 13; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li {
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  padding: 6px 0;
  border-top: 1px solid #d5c3a8;
}
.foot-nav li:last-child { border-bottom: 1px solid #d5c3a8; }
.foot-nav a { color: #2a2119; text-decoration: none; }
.foot-nav a:hover { color: #b0512c; text-decoration: underline; }

.foot-rule { border: 0; border-top: 1px solid #d5c3a8; margin: 34px 0 22px; }

.foot-bottom { display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: space-between; }
.foot-bottom p {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  color: #7d6f5c;
  line-height: 1.6;
}

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

@media (max-width: 900px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .grid { column-gap: 0; row-gap: 0; grid-template-columns: minmax(0, 1fr); }

  .hero { padding: 40px 0 34px; }
  .hero h1, .hero .lede, .indexcol,
  .sec, .sec-num, .fig-main, .fig-cap,
  .detail-fig, .detail-text,
  .page-head h1, .page-head .lede,
  .foot-name, .foot-nav { grid-column: 1 / -1; }

  .hero .indexcol { order: -1; margin-bottom: 30px; padding-top: 0; }
  .hero h1 { order: 0; }
  .hero .lede { order: 1; font-size: 18px; }
  .hero .lede + .lede { order: 2; }
  .hero .grid, .hero > .wrap > .grid { display: flex; flex-direction: column; }

  .indexcol ol { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .indexcol li { border: 0; padding: 4px 0; }
  .indexcol li:last-child { border: 0; }

  .sec + .sec, .band > .wrap > .grid + .grid { margin-top: 50px; }
  .band { padding: 50px 0; }
  .sec-num { padding: 0 0 8px; order: -1; }
  .grid.has-num { display: flex; flex-direction: column; }

  .fig-main { margin-bottom: 14px; }
  .fig-cap { padding: 0; }
  .detail-fig { max-width: 340px; margin-bottom: 26px; }

  .page-head { padding: 36px 0 26px; }
  .foot-name { margin-bottom: 22px; }
  .site-foot { padding: 44px 0 36px; }
  .foot-bottom { flex-direction: column; }
}
