/* Grizolmabe — tessera-modules */

:root{
  --paper:#faf7f0;
  --stone:#dde2e4;
  --deep:#1f4a4a;
  --ink:#14120f;
  --muted:#6c6659;
  --red:#d2402f;
  --ochre:#a97f18;
  --seam:4px;
}

*{box-sizing:border-box;}

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

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

h1,h2,h3{
  font-family:Georgia,"Times New Roman",serif;
  line-height:1.05;
  margin:0 0 18px;
  font-weight:700;
  letter-spacing:-0.01em;
}

h1{font-size:clamp(30px,4.6vw,54px);}
h2{font-size:clamp(24px,2.8vw,34px);}
h3{font-size:clamp(19px,1.7vw,22px);line-height:1.2;}

p{margin:0 0 18px;}
p:last-child{margin-bottom:0;}

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

a:focus-visible,
:focus-visible{
  outline:3px solid var(--red);
  outline-offset:3px;
}

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

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

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

.site-head{
  border-bottom:var(--seam) solid var(--ink);
  background:var(--paper);
}

.head-in{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:16px 32px;
  padding-top:20px;
  padding-bottom:20px;
}

.brand{
  font-family:Georgia,"Times New Roman",serif;
  font-size:24px;
  font-weight:700;
  color:var(--ink);
  text-decoration:none;
  letter-spacing:0.01em;
}
.brand:hover{color:var(--red);}

.site-nav ul{
  list-style:none;
  margin:0;padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px 24px;
}
.site-nav a{
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  padding-bottom:2px;
  border-bottom:2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"]{
  border-bottom-color:var(--red);
  color:var(--red);
}

/* ---------- mosaic grid ---------- */

.mosaic{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:var(--seam);
}

.mod{padding:28px;}
.mod--paper{background:var(--paper);}
.mod--stone{background:var(--stone);}
.mod--red{background:var(--red);color:var(--paper);}
.mod--teal{background:var(--deep);color:var(--paper);}
.mod--ochre{background:var(--ochre);color:var(--paper);}
.mod--plain{padding:28px 28px 28px 0;}

.c4{grid-column:span 4;}
.c5{grid-column:span 5;}
.c6{grid-column:span 6;}
.c7{grid-column:span 7;}
.c8{grid-column:span 8;}
.c12{grid-column:span 12;}

.fill{min-height:96px;}

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

.band{padding:96px 0;}
.band--stone{background:var(--stone);}
.band--deep{background:var(--deep);color:var(--paper);}
.band--deep h2,.band--deep h3{color:var(--paper);}
.band--deep a{color:var(--paper);}
.band--tight{padding:72px 0;}

.kicker{
  font-size:13px;
  color:var(--ochre);
  letter-spacing:0.02em;
  margin:0 0 10px;
}
.band--deep .kicker{color:var(--ochre);}

.cap{
  font-size:13px;
  line-height:1.6;
  color:var(--muted);
  margin:0;
}
.band--deep .cap{color:var(--stone);}

.lead{font-size:19px;line-height:1.7;}

/* ---------- separators ---------- */

.tiles{
  display:flex;
  gap:var(--seam);
  flex-wrap:wrap;
  padding:24px 0;
}
.tiles span{
  width:24px;height:24px;
  display:block;
  background:var(--stone);
}
.tiles span:nth-child(3n+1){background:var(--red);}
.tiles span:nth-child(5n+3){background:var(--ochre);}
.tiles span:nth-child(7n+5){background:var(--deep);}

.band--deep .tiles span{background:#2c5b5b;}
.band--deep .tiles span:nth-child(3n+1){background:var(--red);}
.band--deep .tiles span:nth-child(5n+3){background:var(--ochre);}

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

.hero{
  padding:72px 0 96px;
}
.hero .mosaic{grid-auto-rows:minmax(84px,auto);}

.hero-title{
  grid-column:1/9;
  grid-row:1/3;
  background:var(--stone);
  display:flex;
  align-items:center;
}
.hero-title h1{margin:0;}

.hero-t1{grid-column:9/11;grid-row:1/2;background:var(--red);}
.hero-t2{grid-column:11/13;grid-row:1/2;background:var(--deep);}
.hero-t3{grid-column:9/13;grid-row:2/3;background:var(--ochre);}

.hero-side{grid-column:1/3;grid-row:3/6;background:var(--red);}

.hero-figure{
  grid-column:3/9;
  grid-row:3/6;
  margin:0;
  background:var(--stone);
}
.hero-figure img{width:100%;aspect-ratio:1/1;object-fit:cover;}

.hero-intro{grid-column:9/13;grid-row:3/5;background:var(--stone);}
.hero-cap{grid-column:9/13;grid-row:5/6;background:var(--paper);}

/* ---------- lists ---------- */

ul.check,ol.steps{
  margin:0 0 18px;
  padding-left:0;
  list-style:none;
}
ul.check li{
  position:relative;
  padding-left:26px;
  margin-bottom:10px;
}
ul.check li::before{
  content:"";
  position:absolute;
  left:0;top:11px;
  width:10px;height:10px;
  background:var(--red);
}
.band--deep ul.check li::before{background:var(--ochre);}

ol.steps{counter-reset:s;}
ol.steps li{
  counter-increment:s;
  position:relative;
  padding-left:40px;
  margin-bottom:12px;
}
ol.steps li::before{
  content:counter(s,decimal-leading-zero);
  position:absolute;left:0;top:0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:15px;
  color:var(--ochre);
}

dl.terms{margin:0;}
dl.terms dt{
  font-family:Georgia,"Times New Roman",serif;
  font-size:19px;
  margin-top:18px;
}
dl.terms dt:first-child{margin-top:0;}
dl.terms dd{margin:6px 0 0;}

/* ---------- detail image in deep band ---------- */

.detail-figure{
  grid-column:8/13;
  margin:0;
  background:#173a3a;
  padding:0;
}
.detail-figure img{width:100%;aspect-ratio:4/5;object-fit:cover;}
.detail-figure figcaption{padding:14px 4px 0;}

.detail-text{grid-column:1/7;}

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

.about-lead{grid-column:span 8;background:var(--stone);}
.about-tileA{grid-column:span 4;background:var(--red);}
.about-a{grid-column:span 6;background:var(--stone);}
.about-b{grid-column:span 5;background:var(--stone);}
.about-tileB{grid-column:span 1;background:var(--ochre);}
.about-contact{grid-column:span 4;background:var(--deep);color:var(--paper);}
.about-contact a{color:var(--paper);}

/* ---------- legal text pages ---------- */

.doc{grid-column:span 8;}
.doc-side{grid-column:span 4;background:var(--stone);}
.doc article{margin-bottom:36px;}
.doc article:last-child{margin-bottom:0;}

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

.site-foot{
  background:var(--paper);
  border-top:var(--seam) solid var(--ink);
  padding:48px 0 64px;
}
.foot-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:var(--seam);
  margin-top:8px;
}
.foot-grid > div{background:var(--stone);padding:24px;}
.foot-grid h2{font-size:19px;margin-bottom:12px;}
.foot-grid ul{list-style:none;margin:0;padding:0;}
.foot-grid li{margin-bottom:6px;}
.foot-grid a{color:var(--ink);}
.foot-grid a:hover{color:var(--red);}
.foot-name{
  font-family:Georgia,"Times New Roman",serif;
  font-size:24px;
  line-height:1.1;
}

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

@media (max-width:1000px){
  .hero-title{grid-column:1/13;grid-row:1/3;}
  .hero-t1{grid-column:1/5;grid-row:3/4;}
  .hero-t2{grid-column:5/9;grid-row:3/4;}
  .hero-t3{grid-column:9/13;grid-row:3/4;}
  .hero-side{grid-column:1/2;grid-row:4/7;}
  .hero-figure{grid-column:2/13;grid-row:4/7;}
  .hero-intro{grid-column:1/13;grid-row:7/8;}
  .hero-cap{grid-column:1/13;grid-row:8/9;}
  .detail-figure,.detail-text{grid-column:span 12;}
  .detail-figure img{aspect-ratio:4/3;}
}

@media (max-width:760px){
  body{font-size:17px;}
  .band{padding:48px 0;}
  .band--tight{padding:48px 0;}
  .hero{padding:40px 0 48px;}
  .mod{padding:20px;}
  .mod--plain{padding:20px 0;}
  .c4,.c5,.c6,.c7,.c8,.c12,
  .about-lead,.about-a,.about-b,.about-contact,
  .doc,.doc-side{grid-column:span 12;}
  .about-tileA{grid-column:span 6;}
  .about-tileB{grid-column:span 6;min-height:48px;}
  .foot-grid{grid-template-columns:1fr;}
  .hero-figure img{aspect-ratio:1/1;}
  .tiles span{width:20px;height:20px;}
  .site-nav ul{gap:6px 18px;}
}
