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

:root{
  --bg:#e8e6e1;
  --bg-alt:#d3d0c9;
  --bg-dark:#2a2a28;
  --ink:#17171a;
  --ink-2:#6a6862;
  --ink-inv:#e8e6e1;
  --acc:#8c4a2f;
  --acc-2:#55707a;
  --step:80px;
  --serif:Georgia,'Times New Roman',serif;
  --sans:system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
}

*,*::before,*::after{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;
}

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

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

:focus-visible{outline:2px solid var(--acc);outline-offset:3px}
.band--dark :focus-visible,.site-footer :focus-visible{outline-color:#d9a382}

h1,h2,h3{font-family:var(--serif);font-weight:700;color:inherit}
h1{font-size:clamp(36px,5.4vw,66px);line-height:1.05;letter-spacing:-.01em;margin:0}
h2{font-size:clamp(24px,2.4vw,30px);line-height:1.22;margin:0}
h3{font-size:19px;line-height:1.35;margin:34px 0 10px}

p{margin:0 0 22px}
p:last-child{margin-bottom:0}

/* ---------- rejilla ---------- */

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

.grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  column-gap:24px;
}

.band{padding:var(--step) 0}
.band--alt{background:var(--bg-alt)}
.band--dark{background:var(--bg-dark);color:var(--ink-inv)}
.band--dark a{color:#dda98a}

/* ---------- cabecera ---------- */

.site-header{padding:26px 0 8px}
.site-header .wrap{display:flex;flex-wrap:wrap;align-items:baseline;gap:18px 40px;justify-content:space-between}

.brand{
  font-family:var(--serif);
  font-size:21px;
  letter-spacing:.02em;
  color:var(--ink);
  text-decoration:none;
}
.brand span{color:var(--acc)}
.brand:hover{color:var(--acc)}

.site-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px 26px}
.site-nav a{
  font-size:13px;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--ink-2);
  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(--acc)}

/* ---------- portada ---------- */

.hero{padding:56px 0 var(--step)}
.hero__title{grid-column:1 / 8}
.hero__intro{grid-column:8 / 12;padding-top:10px;color:var(--ink-2);font-size:16px}
.hero__intro strong{color:var(--ink);font-weight:600}

.axis{position:relative;height:104px;margin-top:38px}
.axis__bar{position:absolute;left:0;top:0;width:100%;height:1px;background:var(--acc)}
.axis__drop{position:absolute;top:0;width:1px;background:var(--acc-2)}
.axis__drop::after{
  content:"";position:absolute;left:-4px;bottom:-8px;
  width:9px;height:9px;background:var(--acc);
}
.axis__drop--a{left:6%;height:92px}
.axis__drop--b{left:33%;height:46px}
.axis__drop--c{left:64%;height:68px}
.axis__drop--b::after{background:var(--acc-2)}

/* ---------- figuras ---------- */

.figure-main{margin:0;padding-bottom:var(--step)}
.figure-main img{grid-column:4 / 13;width:100%}
.figure-main figcaption{
  grid-column:1 / 4;
  align-self:end;
  font-size:12px;
  line-height:1.65;
  color:var(--ink-2);
  padding-bottom:2px;
}

.figure-detail{margin:0;grid-column:1 / 6}
.figure-detail img{width:100%}
.figure-detail figcaption{font-size:12px;line-height:1.65;color:#9d9a92;margin-top:14px}

.dark-text{grid-column:7 / 13}
.dark-text h2{margin-bottom:20px}

/* ---------- secciones de texto ---------- */

.sec + .sec{margin-top:var(--step)}
.sec__head{grid-column:1 / 4}
.sec__body{grid-column:4 / 11;padding-top:36px}

.sec__num{
  display:flex;
  align-items:center;
  gap:11px;
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--acc-2);
  margin-bottom:12px;
}
.sec__num::before{content:"";flex:0 0 8px;width:8px;height:8px;background:var(--acc)}

/* ---------- listas ---------- */

.list{list-style:none;margin:26px 0;padding:0}
.list li{position:relative;padding-left:26px;margin-bottom:12px}
.list li::before{
  content:"";position:absolute;left:0;top:.72em;
  width:7px;height:7px;background:var(--acc);
}
.list li:last-child{margin-bottom:0}

.list--num{counter-reset:paso}
.list--num li{padding-left:38px;counter-increment:paso}
.list--num li::before{
  content:counter(paso,decimal-leading-zero);
  width:auto;height:auto;background:none;top:0;
  font-size:12px;letter-spacing:.08em;color:var(--acc-2);
}

.note{
  font-size:15px;
  line-height:1.75;
  color:var(--ink-2);
  border-left:1px solid var(--acc-2);
  padding-left:22px;
  margin-top:28px;
}

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

.contact-line{font-size:19px;margin-top:6px}

/* ---------- páginas con eje vertical ---------- */

.page-head{padding:34px 0 var(--step)}
.page-head__title{grid-column:1 / 9}
.page-head__meta{grid-column:9 / 13;padding-top:12px;font-size:12px;line-height:1.7;color:var(--acc-2);text-transform:uppercase;letter-spacing:.14em}

.axis-grid{row-gap:0}
.ax-head{grid-column:1 / 4;padding-bottom:52px}
.ax-body{
  grid-column:4 / 11;
  border-left:1px solid var(--acc-2);
  padding:0 0 52px 32px;
}
.ax-body:last-child{padding-bottom:0;border-left-color:transparent}
.ax-body > :first-child{margin-top:0}

/* ---------- pie ---------- */

.site-footer{background:var(--bg-dark);color:var(--ink-inv);padding:64px 0 56px;margin-top:var(--step)}
.footer-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:14px 40px}
.footer-name{font-family:var(--serif);font-size:26px}
.footer-mail{font-size:17px}
.footer-mail a{color:#dda98a}
.footer-rule{height:1px;background:var(--acc-2);margin:26px 0 24px}
.footer-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px 28px}
.footer-nav a{
  font-size:13px;letter-spacing:.09em;text-transform:uppercase;
  color:#c9c5bd;text-decoration:none;border-bottom:1px solid transparent;padding-bottom:2px;
}
.footer-nav a:hover{color:var(--ink-inv);border-bottom-color:var(--acc)}
.footer-about{margin-top:22px;max-width:62ch;font-size:14px;line-height:1.75;color:#9d9a92}

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

@media (max-width:1000px){
  .hero__title{grid-column:1 / 9}
  .hero__intro{grid-column:9 / 13}
  .sec__head{grid-column:1 / 5}
  .sec__body{grid-column:5 / 13}
  .figure-main img{grid-column:3 / 13}
  .figure-main figcaption{grid-column:1 / 3}
  .figure-detail{grid-column:1 / 7}
  .dark-text{grid-column:7 / 13}
  .page-head__title{grid-column:1 / 10}
  .page-head__meta{grid-column:10 / 13}
  .ax-head{grid-column:1 / 5}
  .ax-body{grid-column:5 / 13}
}

@media (max-width:760px){
  :root{--step:48px}
  body{font-size:16px;line-height:1.75}
  .wrap{padding:0 20px}
  .grid > *{grid-column:1 / -1 !important}
  .hero{padding:34px 0 var(--step)}
  .hero__intro{padding-top:26px}
  .axis{height:76px;margin-top:28px}
  .axis__drop--a{height:66px}
  .axis__drop--b{height:34px}
  .axis__drop--c{height:50px}
  .figure-main figcaption{margin-top:14px;padding-bottom:0}
  .sec__body{padding-top:18px}
  .sec__num{margin-bottom:10px}
  .figure-detail figcaption{margin-bottom:34px}
  .ax-head{padding-bottom:14px}
  .ax-body{border-left:none;padding:0 0 40px 0}
  .page-head__meta{padding-top:20px}
  .site-header .wrap{gap:16px}
  .footer-top{gap:6px}
}
