/* Ramumuza — rail-scale */

:root{
  --bg:#efeae1;
  --bg-alt:#e3dbce;
  --bg-dark:#2c3a5c;
  --ink:#2b2822;
  --ink-2:#6f6759;
  --ink-inv:#efeae1;
  --accent:#a83b2c;
  --accent-2:#6e7a47;
  --step:80px;
  --gap:24px;
}

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

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

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  font-size:17px;
  line-height:1.7;
  overflow-x:hidden;
}

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

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

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

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

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

/* service rail column (cols 1–2) */
.rail{
  grid-column:1 / span 2;
  font-size:13px;
  line-height:1.4;
  color:var(--ink-2);
  letter-spacing:.06em;
  text-transform:uppercase;
}
.rail .num{
  color:var(--accent-2);
  font-weight:700;
  display:block;
  font-size:13px;
  letter-spacing:.12em;
}
.rail .lbl{display:block;margin-top:4px;}

/* the tick scale, pure CSS */
.ticks{
  margin-top:14px;
  height:120px;
  width:100%;
  background-image:linear-gradient(to bottom,var(--ink-2) 0 1px,transparent 1px 12px);
  background-size:100% 12px;
  background-repeat:repeat-y;
  opacity:.55;
}
.ticks--short{height:60px;}

.body-col{grid-column:3 / span 7;}
.wide-col{grid-column:3 / span 9;}

/* ---------- header / nav ---------- */
.site-head{
  border-bottom:1px solid rgba(43,40,34,.18);
  background:var(--bg);
}
.site-head .wrap{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:12px 28px;
  padding-top:20px;
  padding-bottom:20px;
}
.brand{
  font-size:19px;
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--ink);
  text-decoration:none;
}
.brand:hover{text-decoration:none;color:var(--accent);}
.site-nav ul{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px 22px;
  margin:0;
  padding:0;
  font-size:15px;
}
.site-nav a{
  color:var(--ink);
  text-decoration:none;
  padding-bottom:2px;
  border-bottom:1px solid transparent;
}
.site-nav a:hover,.site-nav a[aria-current="page"]{
  border-bottom-color:var(--accent);
  color:var(--accent);
}

/* ---------- sections rhythm ---------- */
.sec{padding:var(--step) 0;}
.sec--alt{background:var(--bg-alt);}
.sec--dark{background:var(--bg-dark);color:var(--ink-inv);}
.sec--dark .rail,.sec--dark .cap{color:#b9b3a6;}
.sec--dark .rail .num{color:#a3b06f;}
.sec--dark .ticks{background-image:linear-gradient(to bottom,#8e97ac 0 1px,transparent 1px 12px);}
.sec--dark a{color:#e2a196;}
.sec--dark h2{color:var(--ink-inv);}
.sec--dark :focus-visible{outline-color:#e2a196;}

/* ---------- typography ---------- */
h1{
  font-size:clamp(38px,5.6vw,66px);
  line-height:1.04;
  letter-spacing:-.035em;
  font-weight:700;
  margin:0 0 22px;
  max-width:14ch;
}
h2{
  font-size:clamp(23px,2.5vw,30px);
  line-height:1.22;
  letter-spacing:-.015em;
  font-weight:700;
  margin:0 0 18px;
}
h3{
  font-size:19px;
  line-height:1.35;
  font-weight:700;
  margin:30px 0 8px;
}
p{margin:0 0 18px;}
.lead{
  font-size:19px;
  line-height:1.65;
  color:var(--ink);
}
.cap{
  font-size:13px;
  line-height:1.5;
  color:var(--ink-2);
  letter-spacing:.02em;
}

/* short vertical accent strokes */
.strokes{
  display:flex;
  gap:7px;
  margin:26px 0;
}
.strokes span{
  display:block;
  width:1px;
  height:24px;
  background:var(--accent-2);
}
.strokes--accent span{background:var(--accent);}

/* ---------- hero ---------- */
.hero{padding:calc(var(--step) + 16px) 0 var(--step);}
.hero h1 .l2{display:block;color:var(--accent);}
.hero .lead{grid-column:3 / span 6;margin:0;}
.hero-head{grid-column:3 / span 8;}
.hero .rail{align-self:start;}

/* ---------- main image band ---------- */
.band{padding-bottom:var(--step);}
.figure-main{
  grid-column:4 / span 9;
  margin:0;
}
.figure-main img{width:100%;aspect-ratio:16/9;object-fit:cover;}
.figure-caption-left{
  grid-column:1 / span 3;
  align-self:end;
  padding-bottom:2px;
}

/* ---------- lists ---------- */
.list-9{grid-column:3 / span 9;}
ul.checks,ol.steps{
  margin:0;
  padding:0 0 0 1.15em;
}
ul.checks{list-style:none;padding-left:0;}
ul.checks li{
  position:relative;
  padding-left:20px;
  margin-bottom:11px;
  break-inside:avoid;
}
ul.checks li::before{
  content:"";
  position:absolute;
  left:0;top:.62em;
  width:9px;height:1px;
  background:var(--accent);
}
ol.steps li{margin-bottom:11px;}
ol.steps li::marker{color:var(--accent-2);font-weight:700;}
.cols2{
  column-count:2;
  column-gap:40px;
}

dl.defs{margin:0;}
dl.defs dt{font-weight:700;margin-top:16px;}
dl.defs dd{margin:2px 0 0;color:var(--ink);}

/* ---------- dark section with detail image ---------- */
.detail-fig{
  grid-column:3 / span 4;
  margin:0;
}
.detail-fig img{width:100%;aspect-ratio:4/5;object-fit:cover;}
.detail-fig figcaption{margin-top:10px;}
.detail-text{grid-column:8 / span 5;}

/* ---------- about ---------- */
.about-rail{
  grid-column:1 / span 2;
  position:sticky;
  top:24px;
  align-self:start;
}
.about-rail ul{list-style:none;margin:10px 0 0;padding:0;font-size:13px;letter-spacing:.04em;}
.about-rail li{margin-bottom:7px;color:var(--ink-2);}

/* ---------- footer ---------- */
.site-foot{
  background:var(--bg);
  border-top:1px solid rgba(43,40,34,.18);
  padding:34px 0 40px;
}
.patchbay{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px 30px;
  flex-wrap:wrap;
}
.patchbay .fname{font-weight:700;letter-spacing:-.01em;}
.patchbay nav ul{
  list-style:none;display:flex;flex-wrap:wrap;gap:6px 20px;margin:0;padding:0;font-size:15px;
}
.patchbay nav a{color:var(--ink);text-decoration:none;border-bottom:1px solid transparent;}
.patchbay nav a:hover{color:var(--accent);border-bottom-color:var(--accent);}
.foot-rule{
  height:1px;
  background:rgba(43,40,34,.2);
  margin:20px 0 12px;
}
.foot-note{font-size:13px;color:var(--ink-2);margin:0;}

/* ---------- responsive ---------- */
@media (max-width:900px){
  :root{--step:48px;--gap:18px;}
  .grid{grid-template-columns:1fr;}
  .rail,.about-rail{
    grid-column:1;
    position:static;
    margin-bottom:10px;
    display:flex;
    align-items:baseline;
    gap:10px;
    flex-wrap:wrap;
  }
  .rail .num,.rail .lbl{display:inline;}
  .ticks{display:none;}
  .about-rail ul{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0;}
  .body-col,.wide-col,.hero-head,.hero .lead,.list-9,
  .figure-main,.figure-caption-left,.detail-fig,.detail-text{grid-column:1;}
  .figure-caption-left{margin-top:10px;}
  .detail-text{margin-top:26px;}
  .cols2{column-count:1;}
  h1{max-width:none;}
  .patchbay{flex-direction:column;align-items:flex-start;}
}

@media (max-width:520px){
  body{font-size:16px;}
  .wrap{padding:0 18px;}
}
