/* Conceito: alfaiataria. Verde-garrafa e latão (do bronze da logo), retratos em preto e branco
   dentro do pentágono da marca. Uma só cor de destaque: o latão. */
:root {
  --fundo: #f6f8f6;
  --painel: #e7ece9;
  --cartao: #ffffff;
  --tinta: #14201c;
  --suave: #4b5953;
  --latao: #7c6037;
  --linha: #c8d2cc;
  --campo: #74827b;
  --botao: #17392f;
  --botao-texto: #ffffff;
  --botao-foco: #24564a;
  --forte: #17392f;
  --sobre-forte: #f3f6f4;
  --sobre-suave: #bdcec6;
  --sobre-latao: #d6b98b;
  --forte-2: #2b5145;
  --rodape: #0f241e;
  --moldura: #967b53;
  --titulo: "Source Serif 4", Georgia, "Times New Roman", serif;
  --texto: "Instrument Sans", "Segoe UI", Calibri, sans-serif;
  --penta: polygon(68% 0, 100% 23.3%, 100% 76.5%, 68% 100%, 0 50%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fundo: #0e1513; --painel: #141e1b; --cartao: #1a2622; --tinta: #ecf1ee; --suave: #a7b5af;
    --latao: #d0b182; --linha: #2d3b36; --campo: #7d8c85; --botao: #d0b182; --botao-texto: #14201c; --botao-foco: #e2c99f;
    --forte: #173128; --forte-2: #2a4a3f; --rodape: #090f0d;
    --moldura: #a98b5d; --brilho: brightness(1.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fundo: #0e1513; --painel: #141e1b; --cartao: #1a2622; --tinta: #ecf1ee; --suave: #a7b5af;
  --latao: #d0b182; --linha: #2d3b36; --campo: #7d8c85; --botao: #d0b182; --botao-texto: #14201c; --botao-foco: #e2c99f;
  --forte: #173128; --forte-2: #2a4a3f; --rodape: #090f0d;
  --moldura: #a98b5d; --brilho: brightness(1.4); color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font: 400 1.0625rem/1.65 var(--texto); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--titulo); line-height: 1.12; text-wrap: balance; margin: 0; font-weight: 400; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -.005em; line-height: 1.25; }
p, ul, ol { margin: 0; max-width: 64ch; }
a { color: inherit; text-decoration-color: var(--latao); text-decoration-thickness: 2px; text-underline-offset: .28em; }
a:hover { color: var(--latao); }
:focus-visible { outline: 3px solid var(--latao); outline-offset: 3px; }
.faixa { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.secao { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.secao.nevoa { background: var(--painel); }
.pilha { display: grid; gap: 1.35rem; align-content: start; justify-items: start; }
.pilha > * { min-width: 0; max-width: 100%; }
.pilha > p { max-width: min(64ch, 100%); }
.abertura { font-size: 1.22rem; line-height: 1.55; color: var(--suave); }
.pular { position: absolute; left: -999px; }
.pular:focus { left: 1rem; top: 1rem; background: var(--cartao); padding: .5rem 1rem; z-index: 20; }
.botao { display: inline-block; background: var(--botao); color: var(--botao-texto); font-weight: 600; text-decoration: none; padding: .85rem 1.5rem; }
.botao:hover { background: var(--botao-foco); color: var(--botao-texto); }

.topo { border-bottom: 1px solid var(--linha); background: var(--fundo); position: sticky; top: 0; z-index: 10; }
.topo-linha, .topo-acoes { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topo-linha { padding-block: .7rem; }
.marca { display: flex; gap: .75rem; align-items: center; text-decoration: none; line-height: 1.2; }
.marca strong { display: block; font: 600 1.12rem/1.2 var(--titulo); white-space: nowrap; }
.marca small { color: var(--suave); font-size: .87rem; }
.marca img { filter: var(--brilho, none); }
.menu { display: flex; gap: 1.35rem; font-size: 1rem; }
.menu a { text-decoration: none; padding-block: .4rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.menu a:hover, .menu a[aria-current] { border-color: var(--latao); }
.tema-botao, .menu-botao { background: none; border: 1px solid var(--campo); color: var(--tinta); cursor: pointer; height: 44px; }
.tema-botao { width: 44px; display: grid; place-items: center; padding: 0; flex: none; }
.menu-botao { display: none; font: 600 1rem var(--texto); padding: 0 1rem; }

.hero { overflow: hidden; }
.hero > .faixa { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.hero h1 { font-size: clamp(2.7rem, 6.1vw, 4.9rem); line-height: 1.02; letter-spacing: -.03em; }
.hero h1 span { display: block; color: var(--latao); }
.retrato { position: relative; aspect-ratio: 578 / 735; width: min(100%, 430px); justify-self: end; background: var(--moldura); clip-path: var(--penta); }
.retrato img { position: absolute; inset: 4.2%; width: 91.6%; height: 91.6%; object-fit: cover; clip-path: var(--penta); filter: grayscale(1) contrast(1.08); }

.entradas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border: 1px solid var(--linha); background: var(--cartao); }
.entradas a { padding: 1.2rem 1.4rem; text-decoration: none; display: grid; gap: .2rem; align-content: start; }
.entradas a + a { border-left: 1px solid var(--linha); }
.entradas strong { font: 600 1.25rem/1.3 var(--titulo); }
.entradas span { color: var(--suave); font-size: 1rem; }
.entradas a:hover { background: var(--botao); color: var(--botao-texto); }
.entradas a:hover span { color: inherit; }

.interna, .campo-forte { background: var(--forte); color: var(--sobre-forte); position: relative; overflow: hidden; }
.interna::after { content: ""; position: absolute; right: -5rem; top: -20%; height: 140%; aspect-ratio: 578 / 735; background: var(--forte-2); opacity: .55; clip-path: var(--penta); }
.interna .faixa { position: relative; z-index: 1; padding-block: clamp(3rem, 7vw, 5.5rem); }
.interna h1 { max-width: 21ch; }
.interna .abertura, .campo-forte .abertura, .campo-forte .nota { color: var(--sobre-suave); }
.interna .abertura { max-width: 56ch; }
.interna .botao, .campo-forte .botao { background: var(--sobre-latao); color: #14201c; }
.interna .botao:hover, .campo-forte .botao:hover { background: #ffffff; color: #14201c; }
.campo-forte a:not(.botao) { text-decoration-color: var(--sobre-latao); }
.campo-forte a:not(.botao):hover { color: var(--sobre-latao); }
.campo-forte th, .campo-forte td { border-color: var(--forte-2); }
.campo-forte thead th { border-color: var(--sobre-latao); }
.campo-forte .realce { color: var(--sobre-latao); }

.relogio { display: grid; gap: .45rem; margin: 0; width: 100%; }
.relogio .rotulo { color: var(--sobre-suave); margin-top: .6rem; }
.barra { display: flex; gap: 3px; height: 4.2rem; }
.barra span { flex: var(--m) 1 0; min-width: 0; display: grid; place-items: center; background: var(--forte-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.barra .n { background: var(--sobre-latao); color: #14201c; }
.horas { position: relative; height: 1.6rem; font-variant-numeric: tabular-nums; color: var(--sobre-suave); }
.horas span { position: absolute; transform: translateX(-50%); }
.horas span:first-child { transform: none; }
.horas span:last-child { transform: translateX(-100%); }
.relogio figcaption { color: var(--sobre-suave); font-size: 1rem; max-width: 72ch; margin-top: .8rem; }

.areas { list-style: none; padding: 0; max-width: none; width: 100%; border-top: 1px solid var(--linha); }
.areas li { border-bottom: 1px solid var(--linha); }
.areas a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: .4rem 2rem; padding: 1.6rem 0; text-decoration: none; align-items: baseline; }
.areas p { color: var(--suave); }
.areas.grandes h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 400; }
.areas a:hover h3 { text-decoration: underline; text-decoration-color: var(--latao); text-decoration-thickness: 2px; }

.duas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(1.75rem, 5vw, 4.5rem); }
.foto { width: min(100%, 380px); justify-self: start; }
.temas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; width: 100%; }
.temas.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.temas > div { display: grid; gap: .4rem; align-content: start; }
.temas p { color: var(--suave); }
.passos { padding: 0; list-style: none; counter-reset: p; display: grid; gap: 1.6rem; }
.passos li { counter-increment: p; display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); }
.passos li::before { content: counter(p); font: 400 1.9rem/1 var(--titulo); color: var(--latao); }
.lista { padding-left: 1.2rem; display: grid; gap: .5rem; }
.lista ::marker { color: var(--latao); }
.rola { overflow-x: auto; width: 100%; }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: .9rem 1.3rem .9rem 0; border-bottom: 1px solid var(--linha); }
tbody th { font-weight: 600; }
thead th { font: 600 1.1rem/1.3 var(--titulo); border-bottom: 2px solid var(--latao); }
.nota { color: var(--suave); font-size: 1rem; }
details { border-bottom: 1px solid var(--linha); padding-block: 1.1rem; width: 100%; }
summary { font: 600 1.18rem/1.4 var(--titulo); cursor: pointer; }
summary::marker { color: var(--latao); }
details p { padding-top: .6rem; color: var(--suave); }

.artigo { max-width: 790px; }
.artigo h2 { font-size: 1.75rem; margin-top: 1.4rem; }
.linha-tempo { display: grid; gap: 1.1rem; margin: 0; }
.linha-tempo div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; }
.linha-tempo dt { font-weight: 600; color: var(--latao); font-variant-numeric: tabular-nums; }
.linha-tempo dd { margin: 0; }

.triagem { display: grid; gap: 1.3rem; width: 100%; }
.triagem label { display: grid; gap: .4rem; font-weight: 600; }
.triagem select, .triagem input { font: 400 1.05rem var(--texto); padding: .8rem; border: 1px solid var(--campo); border-radius: 0; background: var(--cartao); color: var(--tinta); width: 100%; }
.previa { background: var(--cartao); border: 1px solid var(--linha); padding: 1.1rem 1.3rem; white-space: pre-wrap; overflow-wrap: anywhere; width: 100%; }

.rodape { background: var(--rodape); color: var(--sobre-suave); padding-block: 3.5rem 2.2rem; }
.rodape a { color: var(--sobre-forte); display: block; padding-block: .25rem; text-decoration: none; overflow-wrap: anywhere; }
.rodape a:hover { text-decoration: underline; text-decoration-color: var(--sobre-latao); }
.rodape h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; color: var(--sobre-latao); margin-bottom: .6rem; }
.rodape strong { color: var(--sobre-forte); }
.rodape-grade { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 2rem; }
.rodape-grade > * { min-width: 0; }
.rodape img { margin-bottom: 1rem; }
.rodape :focus-visible, .campo-forte :focus-visible, .interna :focus-visible { outline-color: var(--sobre-latao); }
.aviso { margin-top: 2.5rem; font-size: .94rem; max-width: 1200px; }
.wa-fixo { display: none; }

@media (max-width: 1080px) {
  .menu-botao { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--fundo); border-bottom: 1px solid var(--linha); padding: .5rem clamp(1.1rem, 4vw, 2.5rem) 1rem; flex-direction: column; gap: 0; font-size: 1.1rem; }
  .menu.aberto { display: flex; }
  .menu a { padding-block: .7rem; }
  .topo-acoes { gap: .5rem; }
}
@media (max-width: 800px) {
  .hero > .faixa, .duas, .areas a, .temas, .temas.tres, .rodape-grade { grid-template-columns: minmax(0, 1fr); }
  .retrato { justify-self: center; width: min(74vw, 320px); }
  .barra { height: 3.2rem; font-size: .9rem; }
  .wa-fixo { display: block; position: fixed; inset: auto 0 0; background: var(--botao); color: var(--botao-texto); text-align: center; font-weight: 600; text-decoration: none; padding: .9rem 1rem calc(.9rem + env(safe-area-inset-bottom, 0px)); z-index: 9; border-top: 1px solid var(--linha); }
  .interna .botao, .so-larga { display: none; }
  body:has(.triagem) .wa-fixo { display: none; }
  .rodape { padding-bottom: 6rem; }
}
@media (max-width: 480px) {
  .marca { gap: .5rem; }
  .marca img { width: 38px; }
  .marca strong { font-size: .9rem; }
  .marca small { font-size: .78rem; }
  .topo-linha { gap: .6rem; }
  .menu-botao { padding: 0 .7rem; }
  .entradas { grid-template-columns: minmax(0, 1fr); }
  .entradas a + a { border-left: 0; border-top: 1px solid var(--linha); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
