/* Sundabelior — light-axis */

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

*{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{
  max-width:1240px;
  margin:0 auto;
  padding:0 28px;
  display:grid;
  grid-template-columns:repeat(12,1fr);
  column-gap:var(--gap);
}

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

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

h1{
  font-size:clamp(38px,5.6vw,68px);
  line-height:1.06;
  letter-spacing:-0.015em;
}

h2{
  font-size:clamp(22px,2.4vw,29px);
  line-height:1.2;
  letter-spacing:-0.01em;
}

h3{
  font-size:18px;
  line-height:1.35;
  margin-bottom:6px;
}

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

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

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

.lead{font-size:18px;}

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

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

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

.site-header .wrap{align-items:baseline;}

.brand{
  grid-column:1 / 4;
  font-family:var(--serif);
  font-size:21px;
  font-weight:700;
  color:var(--ink);
  text-decoration:none;
  letter-spacing:0.01em;
}
.brand:hover{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:8px 26px;
  justify-content:flex-end;
}

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

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

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

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

.axis{
  grid-column:1 / 8;
  margin-top:30px;
  height:74px;
  position:relative;
}
.axis::before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:2px;
  background:var(--accent);
}
.axis span{
  position:absolute;
  top:0;
  width:1px;
  background:var(--accent-2);
}
.axis span::after{
  content:"";
  position:absolute;
  left:-3px;
  bottom:-4px;
  width:7px;height:7px;
  background:var(--accent);
}
.axis span:nth-child(1){left:6%;height:70px;}
.axis span:nth-child(2){left:34%;height:40px;}
.axis span:nth-child(3){left:71%;height:56px;}

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

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

.figure-main{
  grid-column:4 / 13;
  margin:0;
}
.figure-main img{
  display:block;
  width:100%;
  height:auto;
}
.figure-main .caption{
  grid-column:1 / 4;
}

.band-image{
  background:var(--bg);
  padding-bottom:var(--step);
}
.band-image .wrap{align-items:start;}
.figure-note{
  grid-column:1 / 4;
  align-self:end;
  padding-right:10px;
}

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

.band{padding:var(--step) 0;background:var(--bg);}
.band-alt{background:var(--bg-alt);}
.band-dark{background:var(--bg-dark);color:var(--ink-invert);}
.band-dark h2,.band-dark h3{color:var(--ink-invert);}
.band-dark .caption{color:#bfc6d6;}
.band-dark a{color:#e6b8ac;}

.band .wrap{row-gap:34px;}

.head{
  grid-column:1 / 4;
  position:relative;
  padding-left:22px;
}
.head::before{
  content:"";
  position:absolute;
  left:0;
  top:0.55em;
  width:8px;height:8px;
  background:var(--accent);
}
.band-dark .head::before{background:#d99b8c;}

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

.body h3{margin-top:26px;}
.body h3:first-child{margin-top:0;}

/* lists */

.list{
  list-style:none;
  margin:0 0 1.15em;
  padding:0;
}
.list li{
  position:relative;
  padding-left:22px;
  margin-bottom:9px;
}
.list li::before{
  content:"";
  position:absolute;
  left:0;top:0.72em;
  width:6px;height:6px;
  background:var(--accent-2);
}
.band-dark .list li::before{background:#9aa878;}

.steps{
  margin:0 0 1.15em;
  padding-left:1.3em;
}
.steps li{margin-bottom:9px;padding-left:6px;}
.steps li::marker{color:var(--accent-2);font-family:var(--serif);}

.defs{margin:0;}
.defs dt{
  font-family:var(--serif);
  font-size:18px;
  margin-top:22px;
}
.defs dt:first-child{margin-top:0;}
.defs dd{margin:4px 0 0;}

/* ---------- dark section with detail image ---------- */

.detail-figure{
  grid-column:2 / 6;
  margin:0;
}
.detail-figure img{
  display:block;
  width:100%;
  height:auto;
}

.detail-text{
  grid-column:7 / 13;
  align-self:center;
}

.band-dark .detail-head{
  grid-column:2 / 13;
  margin-bottom:6px;
}

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

.axis-page .wrap{row-gap:34px;}

.axis-col{
  grid-column:1 / 4;
  position:relative;
  padding-left:22px;
}
.axis-col::before{
  content:"";
  position:absolute;
  left:0;top:0.55em;
  width:8px;height:8px;
  background:var(--accent);
}

.axis-body{
  grid-column:4 / 11;
  position:relative;
  padding-left:30px;
}
.axis-body::before{
  content:"";
  position:absolute;
  left:0;top:-34px;bottom:-34px;
  width:1px;
  background:#cfc5b3;
}
.axis-page .axis-body:last-of-type::before{bottom:0;}

.band-dark .axis-body::before{background:#4a5878;}

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

.site-footer{
  background:var(--bg-dark);
  color:var(--ink-invert);
  padding:56px 0 44px;
  margin-top:0;
}
.site-footer a{color:#e6b8ac;}

.footer-name{
  grid-column:1 / 7;
  font-family:var(--serif);
  font-size:24px;
  font-weight:700;
}
.footer-mail{
  grid-column:7 / 13;
  text-align:right;
  align-self:center;
  font-size:16px;
}
.footer-rule{
  grid-column:1 / 13;
  height:1px;
  background:#4a5878;
  margin:20px 0 18px;
}
.footer-links{
  grid-column:1 / 13;
  list-style:none;
  margin:0 0 14px;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px 26px;
}
.footer-links a{
  color:var(--ink-invert);
  text-decoration:none;
  border-bottom:1px solid transparent;
  font-size:15px;
}
.footer-links a:hover{border-bottom-color:#e6b8ac;color:#e6b8ac;}
.footer-note{
  grid-column:1 / 9;
  color:#bfc6d6;
  font-size:13px;
  line-height:1.7;
}

/* ---------- page hero for inner pages ---------- */

.page-head{padding:44px 0 46px;background:var(--bg);}
.page-head h1{grid-column:1 / 9;font-size:clamp(32px,4.2vw,50px);}
.page-head .page-sub{
  grid-column:1 / 8;
  margin-top:18px;
  color:var(--ink-soft);
}
.page-head .rule{
  grid-column:1 / 8;
  height:2px;
  background:var(--accent);
  margin-top:26px;
}

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

@media (max-width:900px){
  :root{--step:48px;--gap:20px;}
  body{font-size:16px;line-height:1.75;}
  .wrap{padding:0 20px;}
  .hero{padding:34px 0 var(--step);}
  .hero-title,.axis,.hero-intro,
  .figure-main,.figure-note,
  .head,.body,
  .detail-figure,.detail-text,.band-dark .detail-head,
  .axis-col,.axis-body,
  .page-head h1,.page-head .page-sub,.page-head .rule,
  .footer-name,.footer-mail,.footer-links,.footer-note,.footer-rule{
    grid-column:1 / 13;
  }
  .axis{margin-top:22px;height:52px;}
  .axis span:nth-child(1){height:48px;}
  .axis span:nth-child(2){height:28px;}
  .axis span:nth-child(3){height:38px;}
  .hero-intro{margin-top:26px;}
  .figure-note{margin-top:12px;}
  .detail-text{margin-top:26px;}
  .axis-body{padding-left:22px;}
  .axis-body::before{top:0;bottom:0;}
  .site-nav ul{justify-content:flex-start;}
  .site-nav{margin-top:12px;}
  .brand{grid-column:1 / 13;}
  .footer-mail{text-align:left;margin-top:6px;}
}

@media (max-width:600px){
  .site-nav ul{gap:6px 18px;}
  h1{font-size:clamp(30px,8vw,40px);}
}
