/* Belmatoreni — light-axis */

:root {
  --bg: #faf7f0;
  --bg-alt: #dde2e4;
  --bg-deep: #1f4a4a;
  --ink: #14120f;
  --ink-soft: #6c6659;
  --ink-inv: #faf7f0;
  --accent: #d2402f;
  --accent-2: #a97f18;
  --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.72;
  overflow-x: hidden;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

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

a {
  color: var(--accent);
  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 var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: none;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.25;
}

h3 {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 8px;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: var(--ink-soft);
}

.num {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  display: block;
  margin-bottom: 10px;
}

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

.site-head {
  padding: 26px 0 22px;
  background: var(--bg);
}

.site-head .grid { align-items: baseline; row-gap: 12px; }

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

.site-nav { grid-column: 4 / 13; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  justify-content: flex-end;
}

.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); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }

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

.hero { padding: 40px 0 var(--step); }
.hero .grid { row-gap: 34px; }

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

.hero-lede {
  grid-column: 9 / 13;
  color: var(--ink-soft);
  font-size: 16px;
  padding-top: 6px;
}
.hero-lede strong { color: var(--ink); font-weight: 600; }

/* light axis — pure CSS */
.axis { margin-top: 30px; width: 100%; }
.axis-bar { height: 2px; background: var(--accent); width: 100%; }
.axis-drops {
  display: grid;
  grid-template-columns: 12% 30% 22% auto;
  align-items: start;
}
.drop { width: 1px; background: var(--accent-2); position: relative; }
.drop::after {
  content: "";
  position: absolute;
  left: -3.5px;
  bottom: -8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}
.drop:nth-child(1) { height: 54px; }
.drop:nth-child(2) { height: 92px; }
.drop:nth-child(3) { height: 30px; }

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

.section { padding: var(--step) 0; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: var(--ink-inv); }
.section--deep h2, .section--deep h3 { color: var(--ink-inv); }
.section--deep .num { color: #e2c374; }
.section--deep a { color: #f0a99c; }
.section--deep .caption { color: #b9cbc7; }

.section .grid { row-gap: 26px; }

.sec-head {
  grid-column: 1 / 4;
  position: relative;
  padding-left: 20px;
}
.sec-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}
.section--deep .sec-head::before { background: #e2c374; }

.sec-body { grid-column: 4 / 11; }

/* full-width intro paragraph blocks inside a body column */
.lead { font-size: 18px; }

/* lists */
ul.check, ol.steps {
  margin: 0 0 1.15em;
  padding-left: 0;
  list-style: none;
}
ul.check li, ol.steps li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
}
ul.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--accent);
}
ol.steps { counter-reset: st; }
ol.steps li { counter-increment: st; padding-left: 30px; }
ol.steps li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}
.section--deep ul.check li::before { background: #e2c374; }

dl.defs { margin: 0 0 1.15em; }
dl.defs dt {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  margin-top: 14px;
}
dl.defs dd { margin: 2px 0 0; color: var(--ink); }

/* ---------- figures (CSS graphics) ---------- */

.figure-wide {
  grid-column: 4 / 13;
}
.caption {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-top: 10px;
  max-width: 46ch;
}
.figure-wide-caption { grid-column: 1 / 4; align-self: end; }

/* step wedge graphic 16:9 */
.wedge {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(20, 18, 15, 0.18);
}
.wedge span {
  display: block;
  position: relative;
}
.wedge span::after {
  content: attr(data-t);
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(250, 247, 240, 0.85);
}
.wedge span:nth-child(1) { background: #f4efe4; }
.wedge span:nth-child(2) { background: #ded6c6; }
.wedge span:nth-child(3) { background: #c2b8a5; }
.wedge span:nth-child(4) { background: #a29884; }
.wedge span:nth-child(5) { background: #827964; }
.wedge span:nth-child(6) { background: #635b48; }
.wedge span:nth-child(7) { background: #47402f; }
.wedge span:nth-child(8) { background: #2c281c; }
.wedge span:nth-child(9) { background: #14120f; }
.wedge span:nth-child(1)::after,
.wedge span:nth-child(2)::after,
.wedge span:nth-child(3)::after { color: rgba(20, 18, 15, 0.8); }

/* enlarger schematic, 4:5, inside deep section */
.figure-tall { grid-column: 2 / 6; }
.enlarger {
  aspect-ratio: 4 / 5;
  background: #1a3f3f;
  border: 1px solid rgba(250, 247, 240, 0.22);
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  padding: 26px;
  gap: 0;
}
.en-head {
  width: 46%;
  margin: 0 auto;
  background: #d2402f;
  height: 34%;
  align-self: center;
}
.en-cone {
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 34px solid transparent;
  border-right: 34px solid transparent;
  border-top: 96px solid rgba(226, 195, 116, 0.34);
  max-width: 100%;
}
.en-base {
  align-self: end;
  height: 8px;
  background: #faf7f0;
}
.figure-tall-text { grid-column: 7 / 13; }

/* ---------- about (two-axis with continuous rule) ---------- */

.about-wrap { padding: var(--step) 0; }
.about-wrap .grid { row-gap: 30px; }

.about-rail {
  grid-column: 1 / 4;
  position: relative;
  padding-right: 24px;
}
.about-rail::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(20, 18, 15, 0.25);
}
.about-body { grid-column: 5 / 12; }
.about-body h2 { margin-top: 34px; }
.about-body h2:first-child { margin-top: 0; }
.about-body h2 + p { margin-top: 10px; }

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

.page-head { padding: 34px 0 46px; }
.page-head .grid { row-gap: 22px; }
.page-head h1 { grid-column: 1 / 9; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.page-head .page-lede { grid-column: 9 / 13; color: var(--ink-soft); font-size: 16px; }

.doc { padding: 0 0 var(--step); }
.doc .grid { row-gap: 26px; }
.doc-rail { grid-column: 1 / 4; }
.doc-body { grid-column: 4 / 11; }
.doc-body h2 {
  margin-top: 40px;
  position: relative;
  padding-left: 20px;
}
.doc-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h2 + p, .doc-body h2 + ul { margin-top: 12px; }

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

.site-foot {
  background: var(--bg-deep);
  color: var(--ink-inv);
  padding: 54px 0 46px;
}
.site-foot a { color: #f0a99c; }
.foot-top {
  grid-column: 1 / 13;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
}
.foot-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
}
.foot-rule {
  grid-column: 1 / 13;
  height: 1px;
  background: rgba(250, 247, 240, 0.3);
  margin: 22px 0 20px;
}
.foot-links { grid-column: 1 / 13; }
.foot-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.foot-links a { font-size: 14px; color: var(--ink-inv); text-decoration: none; border-bottom: 1px solid rgba(250,247,240,0.4); }
.foot-links a:hover { border-bottom-color: #f0a99c; color: #f0a99c; }
.foot-note {
  grid-column: 1 / 9;
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.65;
  color: #b9cbc7;
}

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

@media (max-width: 900px) {
  .hero-head, .hero-lede,
  .sec-head, .sec-body,
  .figure-wide, .figure-wide-caption,
  .figure-tall, .figure-tall-text,
  .about-rail, .about-body,
  .doc-rail, .doc-body,
  .page-head h1, .page-head .page-lede,
  .brand, .site-nav, .foot-note {
    grid-column: 1 / 13;
  }
  .about-rail { padding-right: 0; }
  .about-rail::after { right: auto; left: 0; top: auto; bottom: -14px; width: 100%; height: 1px; }
  .site-nav ul { justify-content: flex-start; }
  .figure-wide-caption { order: 2; }
}

@media (max-width: 640px) {
  :root { --step: 48px; }
  body { font-size: 16px; }
  .grid { padding: 0 20px; column-gap: 16px; }
  .hero { padding: 24px 0 var(--step); }
  .wedge { aspect-ratio: 3 / 2; }
  .wedge span::after { font-size: 10px; left: 4px; bottom: 4px; }
  .enlarger { padding: 18px; }
  .foot-top { flex-direction: column; align-items: flex-start; }
}
