/* Davuldi — folha de estilo única para todas as páginas */

:root{
  --bg:#f4f0e8;
  --bg-alt:#e7e1d5;
  --dark:#20242a;
  --ink:#22201b;
  --ink-2:#655e51;
  --on-dark:#f4f0e8;
  --on-dark-2:#bcb3a4;
  --accent:#2c4668;
  --accent-2:#a06a2c;
  --step:80px;
}

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

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

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

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

.wrap{max-width:1240px;margin:0 auto;padding-inline:40px}

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

/* ---------- cabeçalho e navegação ---------- */

.site-head{padding:26px 0 10px}
.head-in{display:flex;flex-wrap:wrap;align-items:baseline;gap:18px 32px;justify-content:space-between}

.brand{
  font-size:19px;font-weight:700;letter-spacing:-.01em;
  color:var(--ink);text-decoration:none
}
.brand:hover{color:var(--accent)}

.site-nav ul{display:flex;flex-wrap:wrap;gap:10px 26px;margin:0;padding:0;list-style:none}
.site-nav a{
  color:var(--ink-2);text-decoration:none;font-size:15px
}
.site-nav a:hover{color:var(--accent)}
.site-nav a[aria-current="page"]{
  color:var(--ink);
  box-shadow:inset 0 -2px 0 0 var(--accent)
}

/* ---------- herói ---------- */

.hero{padding:64px 0 0}
.hero h1{
  grid-column:1 / 8;
  margin:0;
  font-size:clamp(38px,5.6vw,76px);
  line-height:1.04;
  letter-spacing:-.035em;
  font-weight:700;
}
.hero .lede{grid-column:9 / 13;margin:10px 0 0;color:var(--ink)}
.hero .lede p{margin:0 0 16px}
.hero .lede p:last-child{margin-bottom:0}

/* eixo gráfico sob o título — apenas CSS */
.axis{grid-column:1 / 8;position:relative;height:1px;background:var(--accent);margin-top:38px}
.axis i{position:absolute;top:0;width:1px;background:var(--accent)}
.axis i::after{
  content:"";position:absolute;left:-3px;bottom:-7px;width:7px;height:7px;background:var(--accent)
}
.axis i:nth-child(1){left:0;height:58px}
.axis i:nth-child(2){left:31%;height:30px}
.axis i:nth-child(3){left:66%;height:82px}

/* ---------- figura principal ---------- */

.figure-main{margin:56px 0 0}
.figure-main img{grid-column:4 / 13}
.figure-main figcaption{
  grid-column:1 / 4;align-self:start;
  font-size:13px;line-height:1.55;color:var(--ink-2);padding-top:2px
}
.figure-main figcaption::before{
  content:"";display:block;width:8px;height:8px;background:var(--accent-2);margin-bottom:12px
}

/* ---------- secções ---------- */

.section{padding:var(--step) 0}
.section--alt{background:var(--bg-alt)}
.section--dark{background:var(--dark);color:var(--on-dark)}
.section--dark a{color:var(--on-dark)}
.section--dark a:focus-visible{outline-color:var(--on-dark)}
.section--dark .num{color:var(--accent-2)}
.section--dark .marker{background:var(--accent-2)}
.section--dark .lead{color:var(--on-dark)}
.section--dark li::before{background:var(--accent-2)}

.sec-head{grid-column:1 / 4}
.sec-head .marker{display:block;width:8px;height:8px;background:var(--accent);margin-bottom:16px}
.sec-head .num{
  display:block;font-size:13px;letter-spacing:.06em;color:var(--accent-2);margin-bottom:8px
}
.sec-head h2{
  margin:0;font-size:27px;line-height:1.28;font-weight:700;letter-spacing:-.015em;padding-top:1px
}
.sec-body{grid-column:5 / 12}
.sec-body > :first-child{margin-top:0}
.sec-body p{margin:0 0 20px;max-width:64ch}
.sec-body p:last-child{margin-bottom:0}
.sec-body h3{
  margin:34px 0 10px;font-size:19px;line-height:1.4;font-weight:700;letter-spacing:-.01em
}

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

/* listas */
.sec-body ul,.sec-body ol{margin:0 0 20px;padding:0;list-style:none;max-width:64ch}
.sec-body li{position:relative;padding-left:24px;margin-bottom:10px}
.sec-body ul li::before{
  content:"";position:absolute;left:0;top:11px;width:7px;height:7px;background:var(--accent)
}
.sec-body ol{counter-reset:passo}
.sec-body ol li{padding-left:34px;counter-increment:passo}
.sec-body ol li::before{
  content:counter(passo,decimal-leading-zero);
  position:absolute;left:0;top:0;font-size:13px;color:var(--accent-2);line-height:1.9
}

/* ---------- secção escura com imagem de pormenor ---------- */

.detail-text{grid-column:1 / 7;margin-top:44px}
.detail-text > :first-child{margin-top:0}
.figure-detail{grid-column:8 / 13;margin:44px 0 0}
.figure-detail figcaption{
  font-size:13px;line-height:1.55;color:var(--on-dark-2);margin-top:12px;max-width:42ch
}

/* ---------- página "sobre" ---------- */

.axis-list{row-gap:0}
.axis-list .ax-head{grid-column:1 / 4;padding:30px 0 0}
.axis-list .ax-head h2{margin:0;font-size:24px;line-height:1.3;font-weight:700;letter-spacing:-.015em}
.axis-list .ax-head .marker{display:block;width:8px;height:8px;background:var(--accent);margin-bottom:14px}
.axis-list .ax-body{
  grid-column:5 / 12;
  border-left:1px solid rgba(34,32,27,.22);
  padding:30px 0 30px 28px;
  margin-left:-28px
}
.axis-list .ax-body > :first-child{margin-top:0}
.axis-list .ax-body p{margin:0 0 18px;max-width:64ch}
.axis-list .ax-body p:last-child{margin-bottom:0}
.axis-list .ax-body ul{margin:0 0 18px;padding:0;list-style:none;max-width:64ch}
.axis-list .ax-body li{position:relative;padding-left:24px;margin-bottom:10px}
.axis-list .ax-body li::before{
  content:"";position:absolute;left:0;top:11px;width:7px;height:7px;background:var(--accent)
}

/* ---------- páginas de texto (privacidade, termos) ---------- */

.page-head{padding:60px 0 0}
.page-head h1{
  grid-column:1 / 9;margin:0;
  font-size:clamp(32px,4.4vw,56px);line-height:1.08;letter-spacing:-.03em;font-weight:700
}
.page-head .lede{grid-column:1 / 9;margin:22px 0 0;color:var(--ink-2);max-width:62ch}
.page-head .axis{grid-column:1 / 9;margin-top:34px}

/* ---------- rodapé ---------- */

.site-foot{background:var(--dark);color:var(--on-dark);padding:58px 0 46px;margin-top:0}
.foot-top{
  display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px 32px
}
.foot-top .foot-name{font-size:24px;font-weight:700;letter-spacing:-.02em}
.foot-top a{color:var(--on-dark);text-decoration-color:var(--accent-2)}
.foot-rule{height:1px;background:rgba(244,240,232,.22);margin:26px 0 22px}
.foot-links ul{display:flex;flex-wrap:wrap;gap:10px 28px;margin:0;padding:0;list-style:none}
.foot-links a{color:var(--on-dark);font-size:15px;text-decoration:none}
.foot-links a:hover{text-decoration:underline;text-decoration-color:var(--accent-2)}
.foot-links a:focus-visible{outline-color:var(--on-dark)}
.foot-note{font-size:13px;line-height:1.6;color:var(--on-dark-2);margin:22px 0 0;max-width:68ch}

/* ---------- tablet ---------- */

@media (max-width:1080px){
  .wrap{padding-inline:32px}
  .hero h1{grid-column:1 / 9}
  .axis{grid-column:1 / 9}
  .hero .lede{grid-column:1 / 9;margin-top:34px}
  .figure-main img{grid-column:3 / 13}
  .figure-main figcaption{grid-column:1 / 3}
  .sec-head{grid-column:1 / 5}
  .sec-body{grid-column:5 / 13}
  .detail-text{grid-column:1 / 7}
  .figure-detail{grid-column:8 / 13}
  .axis-list .ax-head{grid-column:1 / 5}
  .axis-list .ax-body{grid-column:5 / 13}
}

/* ---------- telemóvel ---------- */

@media (max-width:760px){
  :root{--step:48px}
  .wrap{padding-inline:20px}
  .grid{column-gap:0}
  .hero{padding-top:40px}
  .hero h1,.axis,.hero .lede,
  .figure-main img,.figure-main figcaption,
  .sec-head,.sec-body,
  .detail-text,.figure-detail,
  .page-head h1,.page-head .lede,.page-head .axis,
  .axis-list .ax-head,.axis-list .ax-body{grid-column:1 / -1}
  .br-wide{display:none}
  .hero h1{letter-spacing:-.025em}
  .hero .lede{margin-top:30px}
  .axis{margin-top:30px}
  .axis i:nth-child(3){height:62px}
  .figure-main{margin-top:36px}
  .figure-main figcaption{margin-top:14px;order:2}
  .figure-main figcaption::before{margin-bottom:10px}
  .sec-head{margin-bottom:22px}
  .sec-head h2{font-size:24px}
  .detail-text{margin-top:26px;order:2}
  .figure-detail{margin-top:26px}
  .axis-list .ax-head{padding-top:34px}
  .axis-list .ax-body{
    border-left:0;border-top:1px solid rgba(34,32,27,.22);
    padding:18px 0 0;margin-left:0
  }
  .site-foot{padding:44px 0 38px}
  .foot-top{display:block}
  .foot-top .foot-name{display:block;margin-bottom:6px}
}
