:root{
  --bg:#eceff1;
  --bg-alt:#dde3e7;
  --bg-dark:#1f2a33;
  --ink:#151c22;
  --ink-soft:#606d78;
  --ink-invert:#eceff1;
  --accent:#a2472c;
  --accent2:#3f6b86;
  --sans:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --serif:Georgia,"Times New Roman",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(--serif);
  font-size:18px;
  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}
a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

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

/* ---------- header ---------- */
.site-head{padding:26px 0 22px;background:var(--bg)}
.site-head .wrap{align-items:baseline;row-gap:10px}
.brand{
  grid-column:1 / 4;
  font-family:var(--sans);
  font-weight:800;
  font-size:20px;
  letter-spacing:-.02em;
  color:var(--ink);
  text-decoration:none;
}
.brand:hover{color:var(--accent)}
.site-nav{grid-column:5 / -1;justify-self:end}
.site-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:22px}
.site-nav a{
  font-family:var(--sans);
  font-size:15px;
  color:var(--ink);
  text-decoration:none;
  padding-bottom:3px;
  border-bottom:1px solid transparent;
}
.site-nav a:hover,.site-nav a[aria-current="page"]{border-bottom-color:var(--accent)}

/* ---------- hero ---------- */
.hero{padding:56px 0 var(--step)}
.hero h1{
  grid-column:1 / 8;
  margin:0;
  font-family:var(--sans);
  font-weight:800;
  font-size:clamp(36px,5.6vw,68px);
  line-height:.98;
  letter-spacing:-.035em;
  max-width:14ch;
}
.hero .lede{grid-column:9 / -1;margin:6px 0 0;font-size:17px;line-height:1.65;color:var(--ink)}
.hero .lede p{margin:0 0 14px}
.hero .lede p:last-child{margin-bottom:0}

.axis{grid-column:1 / 8;margin-top:38px}
.axis-bar{height:2px;background:var(--accent)}
.axis-drops{display:flex;gap:64px;padding-left:6px}
.drop{width:2px;background:var(--accent2);position:relative}
.drop:nth-child(1){height:34px}
.drop:nth-child(2){height:66px}
.drop:nth-child(3){height:20px}
.drop::after{content:"";position:absolute;left:-3px;bottom:-8px;width:8px;height:8px;background:var(--accent)}

/* ---------- figures ---------- */
.figure-main{padding-bottom:var(--step)}
.figure-main figure{grid-column:4 / -1;margin:0}
.figure-main img{width:100%}
.figure-main .fig-side{
  grid-column:1 / 4;
  grid-row:1;
  align-self:end;
  font-family:var(--sans);
  font-size:13px;
  line-height:1.5;
  color:var(--ink-soft);
  padding-bottom:2px;
  margin:0;
}

/* ---------- text sections ---------- */
.sec{padding:var(--step) 0}
.sec--alt{background:var(--bg-alt)}
.sec--dark{background:var(--bg-dark);color:var(--ink-invert)}
.sec--dark a{color:#e0b6a6}

.sec h2{
  grid-column:1 / 4;
  grid-row:1;
  margin:0;
  padding-top:4px;
  font-family:var(--sans);
  font-weight:800;
  font-size:21px;
  line-height:1.2;
  letter-spacing:-.015em;
}
.sec h2::before{content:"";display:block;width:8px;height:8px;background:var(--accent);margin-bottom:18px}
.sec--dark h2::before{background:var(--accent2)}

.sec .body{grid-column:5 / 12;grid-row:1}
.sec .body > :first-child{margin-top:0}
.sec .body p{margin:0 0 20px}
.sec .body p:last-child{margin-bottom:0}
.sec .body h3{
  font-family:var(--sans);
  font-weight:700;
  font-size:17px;
  letter-spacing:-.01em;
  margin:32px 0 10px;
}

.note{font-size:15px;color:var(--ink-soft);line-height:1.6}
.sec--dark .note{color:#9fb0bc}

/* lists */
.list{list-style:none;margin:0 0 20px;padding:0}
.list li{position:relative;padding-left:22px;margin-bottom:12px}
.list li::before{content:"";position:absolute;left:0;top:12px;width:7px;height:7px;background:var(--accent)}
.sec--dark .list li::before{background:var(--accent2)}
.list--steps{counter-reset:step}
.list--steps li{padding-left:36px}
.list--steps li::before{
  counter-increment:step;
  content:counter(step,decimal-leading-zero);
  background:none;
  top:0;
  width:auto;height:auto;
  font-family:var(--sans);
  font-size:13px;
  font-weight:700;
  color:var(--accent2);
}

/* ---------- dark section with detail image ---------- */
.detail{padding:var(--step) 0}
.detail h2{grid-column:1 / 4;grid-row:1;margin:0;padding-top:4px;font-family:var(--sans);font-weight:800;font-size:21px;line-height:1.2}
.detail h2::before{content:"";display:block;width:8px;height:8px;background:var(--accent2);margin-bottom:18px}
.detail .body{grid-column:5 / 11;grid-row:2;padding-top:34px}
.detail figure{grid-column:11 / -1;grid-row:1 / span 2;margin:0;align-self:start}
.detail figure img{width:100%}
.detail figcaption{margin-top:12px;font-family:var(--sans);font-size:13px;line-height:1.5;color:#9fb0bc}

/* ---------- inner page head ---------- */
.page-head{padding:44px 0 var(--step)}
.page-head h1{
  grid-column:1 / 9;
  margin:0;
  font-family:var(--sans);
  font-weight:800;
  font-size:clamp(32px,4.6vw,54px);
  line-height:1;
  letter-spacing:-.03em;
}
.page-head .axis{grid-column:1 / 9;margin-top:32px}
.page-head .lede{grid-column:1 / 9;margin:26px 0 0;color:var(--ink-soft);font-size:17px}

/* about: two axes with continuous vertical rule */
.about-block{padding:0 0 var(--step)}
.about-block .col-head{grid-column:1 / 4;border-right:1px solid #c2ccd3;padding-right:24px}
.about-block .col-body{grid-column:5 / 12}
.about-block h2{
  font-family:var(--sans);
  font-weight:800;
  font-size:20px;
  line-height:1.2;
  margin:0 0 26px;
}
.about-block h2::before{content:"";display:block;width:8px;height:8px;background:var(--accent);margin-bottom:16px}
.about-block h2 + h2{margin-top:44px}
.about-block .col-body section{margin-bottom:44px}
.about-block .col-body section:last-child{margin-bottom:0}
.about-block .col-body h3{
  font-family:var(--sans);
  font-weight:700;
  font-size:17px;
  margin:0 0 10px;
}
.about-block .col-body p{margin:0 0 18px}
.about-block .col-body p:last-child{margin-bottom:0}

/* legal prose */
.prose{padding:0 0 var(--step)}
.prose .body{grid-column:1 / 9}
.prose h2{
  font-family:var(--sans);
  font-weight:800;
  font-size:20px;
  line-height:1.25;
  margin:46px 0 14px;
  letter-spacing:-.015em;
}
.prose h2:first-child{margin-top:0}
.prose h2::before{content:"";display:block;width:8px;height:8px;background:var(--accent);margin-bottom:16px}
.prose p{margin:0 0 18px}
.prose .list{margin-bottom:18px}

/* ---------- footer ---------- */
.site-foot{background:var(--bg-dark);color:var(--ink-invert);padding:64px 0 56px;margin-top:0}
.site-foot .foot-name{
  grid-column:1 / 7;
  font-family:var(--sans);
  font-weight:800;
  font-size:26px;
  letter-spacing:-.02em;
}
.site-foot .foot-mail{grid-column:8 / -1;justify-self:end;align-self:end;font-size:17px}
.site-foot .foot-mail a{color:#e0b6a6}
.site-foot .rule{grid-column:1 / -1;height:1px;background:#3a4954;margin:26px 0 22px}
.site-foot .foot-links{grid-column:1 / 9}
.site-foot .foot-links ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:22px}
.site-foot .foot-links a{font-family:var(--sans);font-size:15px;color:var(--ink-invert);text-decoration:none;border-bottom:1px solid #4d5f6c;padding-bottom:2px}
.site-foot .foot-links a:hover{border-bottom-color:var(--accent)}
.site-foot .foot-about{grid-column:1 / 9;margin:22px 0 0;font-size:15px;line-height:1.6;color:#9fb0bc}

/* ---------- responsive ---------- */
@media (max-width:1000px){
  .hero h1{grid-column:1 / -1;max-width:18ch}
  .hero .lede{grid-column:1 / -1;margin-top:30px}
  .axis{grid-column:1 / -1}
  .figure-main figure{grid-column:3 / -1}
  .figure-main .fig-side{grid-column:1 / 3}
  .sec h2{grid-column:1 / -1;grid-row:auto;margin-bottom:22px}
  .sec .body{grid-column:1 / -1;grid-row:auto}
  .detail h2,.detail .body,.detail figure{grid-column:1 / -1;grid-row:auto}
  .detail .body{padding-top:26px}
  .detail figure{margin-top:32px;max-width:420px}
  .page-head h1,.page-head .lede,.page-head .axis{grid-column:1 / -1}
  .about-block .col-head{grid-column:1 / -1;border-right:0;border-left:1px solid #c2ccd3;padding:0 0 0 20px;margin-bottom:26px}
  .about-block .col-body{grid-column:1 / -1}
  .prose .body{grid-column:1 / -1}
  .site-foot .foot-name,.site-foot .foot-mail,.site-foot .foot-links,.site-foot .foot-about{grid-column:1 / -1;justify-self:start}
  .site-foot .foot-mail{margin-top:10px}
}

@media (max-width:640px){
  :root{--step:48px}
  body{font-size:17px}
  .wrap{padding:0 20px;column-gap:16px}
  .site-head{padding:20px 0 16px}
  .brand{grid-column:1 / -1}
  .site-nav{grid-column:1 / -1;justify-self:start;margin-top:8px}
  .site-nav ul{gap:16px}
  .hero{padding:32px 0 var(--step)}
  .hero h1{max-width:none}
  .axis-drops{gap:40px}
  .figure-main figure{grid-column:1 / -1}
  .figure-main .fig-side{grid-column:1 / -1;grid-row:auto;margin-top:12px}
  .detail figure{max-width:none}
  .site-foot{padding:48px 0 44px}
  .site-foot .foot-name{font-size:22px}
}
