/* Sundabelio — light-axis */

:root {
  --bg: #efeae1;
  --bg-alt: #e3dbce;
  --bg-dark: #2c3a5c;
  --ink: #2b2822;
  --ink-soft: #6f6759;
  --ink-inv: #efeae1;
  --accent: #a83b2c;
  --accent2: #6e7a47;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --step: 80px;
}

* { 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;
}

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

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

/* ---------- links ---------- */

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(168, 59, 44, .45); }
a:hover { border-bottom-color: var(--accent); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-bottom-color: transparent;
}

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

.site-head {
  padding: 26px 0 22px;
  background: var(--bg);
}
.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 28px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .02em;
  color: var(--ink);
  border-bottom: none;
  font-weight: 700;
}
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.brand span { color: var(--accent); }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

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

.hero { padding: 46px 0 var(--step); background: var(--bg); }

.hero-title { grid-column: 1 / span 7; margin: 0; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0;
  max-width: 15ch;
}
.hero-lead {
  grid-column: 9 / span 4;
  align-self: start;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}
.hero-lead strong { color: var(--ink); font-weight: 600; }

/* CSS axis graphic */
.axis {
  grid-column: 1 / span 7;
  margin-top: 34px;
  position: relative;
  height: 74px;
}
.axis::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--accent);
}
.axis i {
  position: absolute;
  top: 0;
  width: 1px;
  background: var(--accent);
  display: block;
}
.axis i::after {
  content: "";
  position: absolute;
  left: -3.5px;
  bottom: -8px;
  width: 8px; height: 8px;
  background: var(--accent);
}
.axis i:nth-child(1) { left: 4%;  height: 64px; }
.axis i:nth-child(2) { left: 31%; height: 34px; }
.axis i:nth-child(3) { left: 63%; height: 50px; }

/* ---------- figures ---------- */

.figure-main { padding-bottom: var(--step); background: var(--bg); }
.figure-main figure { margin: 0 auto; }
.figure-main img { grid-column: 4 / span 9; grid-row: 1; width: 100%; height: auto; display: block; }
.figure-main figcaption {
  grid-column: 1 / span 3;
  grid-row: 1;
  align-self: end;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-bottom: 4px;
}
.figure-main figcaption b {
  display: block;
  color: var(--accent2);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

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

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

.sec-head { grid-column: 1 / span 3; position: relative; }
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.25;
  margin: 0;
  padding-left: 20px;
}
.sec-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px; height: 8px;
  background: var(--accent);
}
.sec-num {
  display: block;
  padding-left: 20px;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--accent2);
  text-transform: uppercase;
}

.sec-body { grid-column: 5 / span 7; }
.sec-body > :first-child { margin-top: 0; }
.sec-body > :last-child { margin-bottom: 0; }
.sec-body p { margin: 0 0 1.2em; }
.sec-body h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin: 2em 0 .6em;
}

.sec-body ul, .sec-body ol { margin: 0 0 1.4em; padding-left: 0; }
.sec-body ul { list-style: none; }
.sec-body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: .55em;
}
.sec-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 7px; height: 7px;
  background: var(--accent);
}
.sec-body ol { padding-left: 22px; }
.sec-body ol li { margin-bottom: .55em; }
.sec-body ol li::marker { color: var(--accent2); font-variant-numeric: tabular-nums; }

.note {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: 1.6em;
}

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

.band--dark {
  background: var(--bg-dark);
  color: var(--ink-inv);
  padding: var(--step) 0;
}
.band--dark .sec-head h2 { color: var(--ink-inv); }
.band--dark .sec-head h2::before { background: var(--accent2); }
.band--dark .sec-num { color: #b6c07f; }
.band--dark a { color: #e2b3a8; border-bottom-color: rgba(226,179,168,.5); }
.band--dark a:focus-visible { outline-color: #e2b3a8; }

.detail-grid { margin-top: 44px; align-items: start; }
.detail-fig { grid-column: 8 / span 5; margin: 0; }
.detail-fig img { width: 100%; height: auto; display: block; }
.detail-fig figcaption {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #b9bfd0;
}
.detail-text { grid-column: 1 / span 6; }
.detail-text > :first-child { margin-top: 0; }
.detail-text h3 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 1.8em 0 .5em;
}
.detail-text ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
.detail-text ul li { position: relative; padding-left: 22px; margin-bottom: .55em; }
.detail-text ul li::before {
  content: "";
  position: absolute; left: 0; top: .72em;
  width: 7px; height: 7px; background: var(--accent2);
}

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

.contact-body p { margin: 0 0 1em; }
.mailrow {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 28px);
  margin-top: 22px;
}

/* ---------- page (inner) layout ---------- */

.page-head { padding: 40px 0 var(--step); }
.page-head h1 {
  grid-column: 1 / span 7;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.12;
  margin: 0;
  max-width: 17ch;
}
.page-head .lead {
  grid-column: 9 / span 4;
  align-self: start;
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* two-axis prose layout with continuous vertical rule */
.axis-doc {
  position: relative;
  padding-bottom: var(--step);
}
.axis-doc::before {
  content: "";
  position: absolute;
  top: 0; bottom: var(--step);
  left: calc((100% - 24px * 11) / 12 * 3 + 24px * 3 + 12px);
  width: 1px;
  background: rgba(111, 103, 89, .35);
}
.axis-doc .doc-sec { margin-bottom: 46px; }
.axis-doc .doc-sec:last-child { margin-bottom: 0; }
.axis-doc h2 {
  grid-column: 1 / span 3;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.axis-doc .doc-body { grid-column: 5 / span 7; }
.axis-doc .doc-body > :first-child { margin-top: 0; }
.axis-doc .doc-body > :last-child { margin-bottom: 0; }
.axis-doc .doc-body p { margin: 0 0 1.1em; }
.axis-doc .doc-body h3 {
  font-family: var(--serif);
  font-size: 17px;
  margin: 1.7em 0 .5em;
}
.axis-doc .doc-body ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
.axis-doc .doc-body ul li { position: relative; padding-left: 22px; margin-bottom: .5em; }
.axis-doc .doc-body ul li::before {
  content: "";
  position: absolute; left: 0; top: .72em;
  width: 7px; height: 7px; background: var(--accent);
}

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

.site-foot {
  background: var(--bg-dark);
  color: var(--ink-inv);
  padding: 52px 0 46px;
}
.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: clamp(24px, 4vw, 38px);
  font-weight: 700;
  margin: 0;
  letter-spacing: .01em;
}
.foot-mail { font-size: 17px; }
.site-foot a { color: #e2b3a8; border-bottom-color: rgba(226,179,168,.5); }
.site-foot a:hover { border-bottom-color: #e2b3a8; }
.site-foot a:focus-visible { outline: 2px solid #e2b3a8; outline-offset: 3px; }
.foot-rule {
  height: 1px;
  background: rgba(239, 234, 225, .28);
  margin: 24px 0 20px;
}
.foot-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0 0 18px;
  padding: 0;
  font-size: 14px;
}
.foot-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #b9bfd0;
  max-width: 68ch;
}

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

@media (max-width: 900px) {
  :root { --step: 56px; }
  .hero-lead, .page-head .lead { grid-column: 1 / span 12; margin-top: 22px; }
  .hero-title, .page-head h1 { grid-column: 1 / span 12; max-width: none; }
  .axis { grid-column: 1 / span 12; }
  .figure-main img { grid-column: 3 / span 10; grid-row: 1; }
  .figure-main figcaption { grid-column: 1 / span 12; grid-row: 2; margin-top: 12px; }
  .sec-head, .sec-body, .detail-text, .detail-fig,
  .axis-doc h2, .axis-doc .doc-body { grid-column: 1 / span 12; }
  .sec-body, .axis-doc .doc-body { margin-top: 20px; }
  .detail-fig { margin-top: 28px; }
  .axis-doc::before { display: none; }
}

@media (max-width: 620px) {
  :root { --step: 48px; }
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .figure-main img { grid-column: 1 / span 12; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .site-nav ul { gap: 6px 18px; }
  .axis { height: 60px; }
  .axis i:nth-child(1) { height: 52px; }
  .axis i:nth-child(2) { height: 28px; }
  .axis i:nth-child(3) { height: 40px; }
}
