/* Dapaparve — light-axis */

:root {
  --bg: #fbf9f5;
  --bg-alt: #e4e8e1;
  --bg-dark: #223129;
  --ink: #22201c;
  --ink-soft: #797468;
  --ink-inv: #fbf9f5;
  --accent: #54684e;
  --accent2: #a87c48;
  --step: 80px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

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

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

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

h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.72rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

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

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

.cap {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-family: var(--sans);
}

.num {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent2);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

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

.site-head {
  border-bottom: 1px solid rgba(34, 49, 41, 0.14);
  background: var(--bg);
}

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

.brand {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--accent); }

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

.site-nav a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent2); }

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

.hero { padding: calc(var(--step) * 0.9) 0 var(--step); }

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

.hero-intro {
  grid-column: 9 / 13;
  align-self: start;
  color: var(--ink-soft);
  font-size: 16px;
}
.hero-intro strong { color: var(--ink); font-weight: 600; }

/* CSS axis graphic */
.axis {
  margin-top: 34px;
  height: 74px;
  border-top: 2px solid var(--accent);
  position: relative;
}
.axis span {
  position: absolute;
  top: 0;
  width: 1px;
  background: var(--accent);
}
.axis span::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: -7px;
  width: 7px;
  height: 7px;
  background: var(--accent2);
}
.axis span:nth-child(1) { left: 4%;  height: 62px; }
.axis span:nth-child(2) { left: 34%; height: 30px; }
.axis span:nth-child(3) { left: 71%; height: 46px; }

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

.figure-main {
  margin: 0 0 var(--step);
}
.figure-main .fm-cap {
  grid-column: 1 / 3;
  padding-top: 4px;
}
.figure-main .fm-img { grid-column: 4 / 13; }
.figure-main img { width: 100%; }

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

.band { padding: var(--step) 0; }
.band-alt { background: var(--bg-alt); }

.band .head { grid-column: 1 / 4; position: relative; }
.band .head::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--accent2);
}
.band .body { grid-column: 5 / 12; }

.band .body > * + * { margin-top: 18px; }

/* checklists */

.check { list-style: none; margin: 0; padding: 0; }
.check li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
}
.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}
.check li:last-child { margin-bottom: 0; }

ol.steps {
  list-style: none;
  counter-reset: s;
  margin: 0;
  padding: 0;
}
ol.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 42px;
  margin-bottom: 20px;
}
ol.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent2);
  font-family: var(--sans);
}
ol.steps li:last-child { margin-bottom: 0; }

.subblock { margin-top: 30px; }
.subblock p { margin-bottom: 0; }

dl.gloss { margin: 0; }
dl.gloss dt {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.02rem;
  margin-top: 22px;
}
dl.gloss dt:first-child { margin-top: 0; }
dl.gloss dd { margin: 4px 0 0; }

/* ---------- dark band ---------- */

.band-dark {
  background: var(--bg-dark);
  color: var(--ink-inv);
  padding: var(--step) 0;
}
.band-dark h2, .band-dark h3 { color: var(--ink-inv); }
.band-dark .cap { color: #a9b5a6; }
.band-dark .num { color: #c79f6d; }
.band-dark a { color: #c7d5c1; }
.band-dark .check li::before { background: #c79f6d; }

.dark-img { grid-column: 1 / 5; }
.dark-img img { width: 100%; }
.dark-img figcaption { margin-top: 12px; }
.dark-text { grid-column: 6 / 12; }
.dark-text > * + * { margin-top: 18px; }

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

.contact-block .body p { margin-bottom: 14px; }
.mail {
  font-family: var(--serif);
  font-size: 1.2rem;
}

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

.about-axis { position: relative; padding: var(--step) 0; }
.about-row { padding-bottom: 46px; }
.about-row:last-child { padding-bottom: 0; }
.about-row .head { grid-column: 1 / 4; }
.about-row .body { grid-column: 5 / 12; }
.about-rule {
  position: absolute;
  left: calc((100% - 24px * 11) / 12 * 4 + 24px * 3.5);
  top: var(--step);
  bottom: var(--step);
  width: 1px;
  background: rgba(34, 49, 41, 0.22);
}

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

.doc { padding: var(--step) 0; }
.doc-head { grid-column: 1 / 9; margin-bottom: 40px; }
.doc-head p { color: var(--ink-soft); margin-top: 18px; }
.doc-body { grid-column: 1 / 9; }
.doc-body section { margin-bottom: 42px; }
.doc-body section:last-child { margin-bottom: 0; }
.doc-body h2 { margin-bottom: 14px; }

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

.site-foot {
  background: var(--bg-dark);
  color: var(--ink-inv);
  padding: 56px 0 44px;
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
}
.foot-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
}
.foot-top a { color: var(--ink-inv); }
.foot-rule {
  height: 1px;
  background: rgba(251, 249, 245, 0.28);
  margin: 22px 0;
}
.foot-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0 0 18px;
  padding: 0;
}
.foot-nav a {
  color: var(--ink-inv);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 249, 245, 0.35);
  padding-bottom: 2px;
}
.foot-nav a:hover { border-bottom-color: #c79f6d; }
.foot-note {
  font-size: 13px;
  line-height: 1.7;
  color: #a9b5a6;
  max-width: 62ch;
  margin: 0;
}
.site-foot :focus-visible { outline-color: #c79f6d; }

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

@media (max-width: 900px) {
  :root { --step: 56px; }
  .hero-title, .hero-intro,
  .figure-main .fm-cap, .figure-main .fm-img,
  .band .head, .band .body,
  .dark-img, .dark-text,
  .about-row .head, .about-row .body,
  .doc-head, .doc-body {
    grid-column: 1 / 13;
  }
  .hero-intro { margin-top: 30px; }
  .band .head { margin-bottom: 20px; }
  .band .head::before { left: 0; top: -18px; }
  .figure-main .fm-cap { order: 2; padding-top: 12px; }
  .figure-main .fm-img { order: 1; }
  .dark-img { margin-bottom: 28px; max-width: 420px; }
  .about-rule { display: none; }
  .about-row .head { padding-bottom: 0; }
}

@media (max-width: 600px) {
  :root { --step: 48px; }
  body { font-size: 16px; }
  .site-head .inner { display: block; }
  .site-nav ul { margin-top: 12px; gap: 6px 18px; }
  .axis { height: 56px; }
  .axis span:nth-child(1) { height: 48px; }
  .axis span:nth-child(2) { height: 24px; }
  .axis span:nth-child(3) { height: 36px; }
  .foot-name { font-size: 1.3rem; }
}
