/* Kanoba — hoja de estilos común */

:root {
  --bg-base: #131c17;
  --bg-alt: #1a2620;
  --bg-light: #eaeee7;
  --ink: #e4eae2;
  --ink-soft: #8b9a8e;
  --ink-dark: #131c17;
  --brass: #c2a24d;
  --sage: #7fa88a;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --step: 80px;
  --gutter: 28px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.shell {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
}

/* ---------- Cabecera y navegación ---------- */

.site-head {
  border-bottom: 1px solid rgba(139, 154, 142, 0.28);
  background: var(--bg-base);
}

.site-head .shell {
  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: 22px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.brand span { color: var(--brass); }

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

.site-nav a {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

/* ---------- Secciones ---------- */

.band {
  padding-top: var(--step);
  padding-bottom: var(--step);
  background: var(--bg-base);
  position: relative;
}

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

.band--light {
  background: var(--bg-light);
  color: var(--ink-dark);
}

.band--light .lede,
.band--light .caption,
.band--light .kicker { color: #4a5a4e; }

.band--light a { color: #6d5a1f; }

.marker {
  width: 8px;
  height: 8px;
  background: var(--brass);
  display: block;
  margin-bottom: 18px;
}

.band--light .marker { background: #6d5a1f; }

/* Bloque de dos ejes: títulos a la izquierda (3 col), texto a la derecha (7 col) */

.axis {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  align-items: start;
}

.axis > .axis-head { grid-column: 1 / span 3; }
.axis > .axis-body { grid-column: 5 / span 7; }

.axis-head h2,
.axis-head h1 { margin: 0; }

.axis-body > *:first-child { margin-top: 0; }

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

h1 {
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 26px;
}

h2 {
  font-size: clamp(24px, 2.6vw, 31px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

h3 {
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.3;
  margin: 34px 0 10px;
}

p { margin: 0 0 22px; }

.lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--sage);
  margin: 0 0 10px;
}

.caption {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 12px 0 0;
}

/* ---------- Hero ---------- */

.hero { padding-top: 74px; padding-bottom: 62px; }

.hero-title { grid-column: 1 / span 7; }
.hero-side { grid-column: 9 / span 4; }

.hero-side p { margin-bottom: 14px; }

.hero-side p:last-child { margin-bottom: 0; }

/* Eje gráfico en CSS puro bajo el H1 */

.axis-graphic {
  margin-top: 6px;
  width: 100%;
  max-width: 560px;
}

.axis-graphic .rail {
  height: 1px;
  background: var(--brass);
  width: 100%;
}

.axis-graphic .drops {
  display: grid;
  grid-template-columns: 14% 40% 22% 1fr;
  align-items: start;
}

.axis-graphic .drop {
  width: 1px;
  background: var(--sage);
  position: relative;
}

.axis-graphic .drop::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: -3px;
  width: 7px;
  height: 7px;
  background: var(--brass);
}

.axis-graphic .d1 { height: 54px; }
.axis-graphic .d2 { height: 30px; }
.axis-graphic .d3 { height: 76px; }

/* ---------- Imágenes ---------- */

.band.figure-band { padding-top: 0; padding-bottom: 64px; }

.figure-main {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  align-items: end;
}

.figure-main img { grid-column: 4 / span 9; width: 100%; }
.figure-main figcaption { grid-column: 1 / span 3; }

.figure-detail { margin: 0; }

.detail-wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  align-items: start;
}

.detail-wrap .figure-detail { grid-column: 1 / span 4; }
.detail-wrap .detail-text { grid-column: 6 / span 6; }
.detail-wrap .detail-text > *:first-child { margin-top: 0; }

/* ---------- Listas ---------- */

ul.plain, ol.plain {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
}

ul.plain li, ol.plain li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
}

ul.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  background: var(--brass);
}

ol.plain { counter-reset: paso; }

ol.plain li { padding-left: 42px; }

ol.plain li::before {
  counter-increment: paso;
  content: counter(paso, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sage);
  line-height: 2.4;
}

.band--light ul.plain li::before { background: #6d5a1f; }
.band--light ol.plain li::before { color: #4a5a4e; }

dl.defs { margin: 0 0 24px; }

dl.defs dt {
  font-style: italic;
  font-size: 19px;
  margin-top: 20px;
}

dl.defs dd { margin: 6px 0 0; }

/* ---------- Página About: línea vertical continua ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  align-items: start;
  border-left: 0;
}

.split .split-head {
  grid-column: 1 / span 3;
  padding-right: 24px;
  border-right: 1px solid rgba(139, 154, 142, 0.35);
  align-self: stretch;
}

.split .split-body { grid-column: 5 / span 7; }
.split .split-body > *:first-child { margin-top: 0; }

/* ---------- Pie ---------- */

.site-foot {
  background: var(--bg-light);
  color: var(--ink-dark);
  padding-top: 54px;
  padding-bottom: 54px;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 24px;
}

.foot-top .foot-name {
  font-size: 30px;
  letter-spacing: 0.02em;
}

.foot-top a { color: #6d5a1f; }

.foot-rule {
  height: 1px;
  background: rgba(19, 28, 23, 0.22);
  margin: 22px 0 20px;
}

.foot-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0 0 18px;
  padding: 0;
}

.foot-links a {
  font-family: var(--sans);
  font-size: 13px;
  color: #2f3d34;
  text-decoration: none;
  border-bottom: 1px solid rgba(109, 90, 31, 0.55);
  padding-bottom: 2px;
}

.foot-links a:hover { border-bottom-color: #6d5a1f; color: #131c17; }

.foot-note {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: #4a5a4e;
  max-width: 62ch;
  margin: 0;
}

/* ---------- Adaptación ---------- */

@media (max-width: 900px) {
  :root { --step: 56px; --gutter: 20px; }

  .hero-title, .hero-side { grid-column: 1 / span 12; }
  .hero-side { margin-top: 30px; }

  .axis > .axis-head,
  .axis > .axis-body { grid-column: 1 / span 12; }
  .axis > .axis-body { margin-top: 14px; }

  .figure-main img { grid-column: 1 / span 12; }
  .figure-main figcaption { grid-column: 1 / span 12; }

  .detail-wrap .figure-detail { grid-column: 1 / span 7; }
  .detail-wrap .detail-text { grid-column: 1 / span 12; margin-top: 26px; }

  .split .split-head {
    grid-column: 1 / span 12;
    border-right: 0;
    border-bottom: 1px solid rgba(139, 154, 142, 0.35);
    padding-right: 0;
    padding-bottom: 14px;
  }
  .split .split-body { grid-column: 1 / span 12; margin-top: 20px; }
}

@media (max-width: 600px) {
  :root { --step: 48px; }

  body { font-size: 17px; }

  .hero { padding-top: 44px; padding-bottom: 42px; }

  .site-head .shell { flex-direction: column; align-items: flex-start; }

  .detail-wrap .figure-detail { grid-column: 1 / span 12; }

  .foot-top .foot-name { font-size: 24px; }

  .axis-graphic .drops { grid-template-columns: 18% 38% 22% 1fr; }
}
