
:root {
  --tinta: #131a20;
  --corpo: #3c4650;
  --apagado: #6b7683;
  --linha: #dfe4e8;
  --fundo: #ffffff;
  --areia: #f5f4f1;
  --azul: #14456e;
  --azul-claro: #e8eef4;
  --verde: #0f7a2e;            --neon: #50f060;             --breu: #0b1210;             --breu-linha: #1d2c24;
  --alerta: #8c3a2e;
  --max: 68rem;
      --medida: 36rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tinta: #f0f3f6;
    --corpo: #c2cbd4;
    --apagado: #8b96a2;
    --linha: #2a333c;
    --fundo: #10161b;
    --areia: #171f26;
    --azul: #7fb0dc;
    --azul-claro: #172633;
    --verde: #6fbfa2;
    --alerta: #e08878;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--corpo);
  font: 400 1.0625rem/1.65 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--tinta); line-height: 1.2; text-wrap: balance; margin: 0;
             max-width: var(--medida); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 650; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0; max-width: var(--medida); }

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


a { color: var(--azul); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 2px;
}

.env { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

@media (min-width: 46rem) {
    main > section > .env { max-width: calc(var(--medida) + 3rem); }
    .pe .env { max-width: calc(var(--medida) + 3rem); }
}

.topo {
  border-bottom: 1px solid var(--linha);
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--fundo) 92%, transparent);
  backdrop-filter: blur(8px);
}
.topo .env { display: flex; align-items: center; gap: 2rem; height: 4.25rem; }
.marca {
  font-weight: 700; color: var(--tinta); text-decoration: none;
  letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.65rem;
}
.marca img {
  height: 2.05rem; width: auto; display: block;
  background: var(--breu);
  border-radius: 6px;
  padding: 0.3rem 0.4rem;
  box-sizing: content-box;
}
.marca small { display: block; font-size: 0.6875rem; font-weight: 500; color: var(--apagado); letter-spacing: 0.06em; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--corpo); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.nav a:hover { color: var(--azul); }
.nav a.destaque {
  background: var(--azul); color: #fff; padding: 0.5rem 1rem; border-radius: 4px;
}
.nav a.atual {
  color: var(--tinta);
  text-decoration: underline;
  text-decoration-color: var(--verde);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

@media (max-width: 46rem) {
  .topo .env {
    height: auto;
    min-height: 3.25rem;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-top: 0.6rem;
    padding-bottom: 0.55rem;
  }
    .marca { gap: 0.5rem; font-size: 0.95rem; }
  .marca img { height: 1.9rem; padding: 0.22rem 0.3rem; }
  .marca small { display: none; }

  .nav {
    width: 100%;
    margin-left: 0;
    gap: 0.75rem;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .nav a { font-size: 0.875rem; white-space: nowrap; }
  .nav a.destaque { padding: 0.35rem 0.75rem; }
    .nav a.atual { text-underline-offset: 3px; }
}


section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section.areia { background: var(--areia); }
.pilha { display: flex; flex-direction: column; gap: 1.25rem; }
.pilha-larga { display: flex; flex-direction: column; gap: 2.5rem; }

.olho {
  font-size: 0.75rem; font-weight: 650; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--verde);
}

.tese {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.45;
  color: var(--tinta); font-weight: 500; max-width: 48ch;
}

.grade { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

.cartao {
  border: 1px solid var(--linha); border-radius: 6px; padding: 1.5rem;
  background: var(--fundo); display: flex; flex-direction: column; gap: 0.6rem;
}
.cartao p { font-size: 0.9375rem; }


.nota {
  border-left: 3px solid var(--azul); background: var(--azul-claro);
  padding: 1.25rem 1.5rem; border-radius: 0 4px 4px 0;
  max-width: calc(var(--medida) + 1.5rem);
}
.nota p { font-size: 0.9375rem; }
.nota strong { color: var(--tinta); }

.limite {
  border: 1px solid var(--linha); border-left: 3px solid var(--alerta);
  padding: 1.25rem 1.5rem; border-radius: 0 4px 4px 0; background: var(--fundo);
  max-width: calc(var(--medida) + 1.5rem);
}
.limite p { font-size: 0.9375rem; }

.lista { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.lista li { padding-left: 1.5rem; position: relative; font-size: 0.9375rem; max-width: var(--medida); }
.lista li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--verde);
}

.fonte { font-size: 0.8125rem; color: var(--apagado); }
.fonte code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em;
  background: var(--areia); padding: 0.1rem 0.35rem; border-radius: 3px;
}

.botao {
  display: inline-block; background: var(--azul); color: #fff;
  padding: 0.8rem 1.5rem; border-radius: 4px; text-decoration: none;
  font-weight: 600; font-size: 0.9375rem;
}
.botao.vazado { background: transparent; color: var(--azul); border: 1px solid var(--azul); }
.acoes { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }

table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; min-width: 30rem; }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--linha); vertical-align: top; }
th { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--apagado); font-weight: 650; }

.pe { border-top: 1px solid var(--linha); padding: 2.5rem 0; font-size: 0.875rem; color: var(--apagado); }
.pe .env { display: flex; flex-direction: column; gap: 1rem; }
.pe a { color: var(--apagado); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.abertura {
  background: var(--breu);
  border-bottom: 1px solid var(--breu-linha);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%,
      color-mix(in srgb, var(--neon) 12%, transparent), transparent 70%);
}
.abertura h1 { color: #fff; }
.abertura p { color: #b9c6bf; }
.abertura .tese { color: #e7f2ec; }
.abertura .olho { color: var(--neon); }
.abertura .botao { background: var(--neon); color: var(--breu); font-weight: 700; }
.abertura .botao.vazado {
  background: transparent; color: var(--neon); border-color: var(--neon);
}
.abertura .fonte { color: #7d8f86; }
.abertura .fonte code { background: #16211c; color: #a8bdb2; }

.selo {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.85rem; margin: 0 auto 1rem;
}
.selo .nome { text-align: center; }
.abertura .sub { text-align: center; margin-top: -0.4rem; }
.selo img { width: clamp(5.5rem, 12vw, 8rem); height: auto; display: block; }
.selo .nome {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em;
  color: #fff; line-height: 1;
}
.sub {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--neon); font-weight: 600; margin-top: 0.35rem;
}

@media (max-width: 46rem) {
      .abertura .selo img { width: min(62vw, 15rem); }
  .abertura { padding-top: 1.6rem; }
}

@media (min-width: 46rem) {
      .abertura .env > * { width: 100%; max-width: var(--medida);
                       margin-left: auto; margin-right: auto; }
  .abertura .env > .selo { max-width: none; }
    .abertura .selo img { width: clamp(15rem, 26vw, 21rem); }
}

.pe.escuro { background: var(--breu); border-top: 1px solid var(--breu-linha); color: #8b9a92; }
.pe.escuro strong { color: #e7f2ec; }
.pe.escuro a { color: var(--neon); }

.retrato {
  display: grid; gap: 2rem; align-items: start;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 46rem) {
  .retrato { grid-template-columns: 17rem minmax(0, 1fr); gap: 2.5rem; }
}
.retrato figure { margin: 0; }
.retrato img {
  width: 100%; height: auto; display: block; border-radius: 6px;
  border: 1px solid var(--linha);
}
.retrato figcaption {
  font-size: 0.8125rem; color: var(--apagado); margin-top: 0.6rem;
  line-height: 1.45;
}

h1, h2, h3 {
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h1 { letter-spacing: 0.005em; }
h3 { letter-spacing: 0.03em; }

p, .lista li, td {
  text-align: left;
  hyphens: manual;
  text-wrap: pretty;
}
.fonte, figcaption, .pe p, .sub, .olho { text-align: left; hyphens: manual; }

.com-margem { position: relative; }
.puxada {
  border-left: 3px solid var(--verde);
  padding: 0.2rem 0 0.2rem 1.25rem;
  margin: 1.75rem 0;
  font-size: 1.15rem; line-height: 1.4; font-weight: 500;
  color: var(--tinta); text-align: left; hyphens: manual;
  max-width: 34ch;
}
.puxada cite { display: block; font-size: 0.8125rem; font-weight: 500;
  font-style: normal; color: var(--apagado); margin-top: 0.6rem; }

.abertura .puxada { color: #e7f2ec; border-left-color: var(--neon); }
.abertura .puxada cite { color: #8b9a92; }

.com-simbolo { display: flex; flex-direction: column; align-items: center;
               gap: 1.25rem; }
.com-simbolo img { width: 160px; height: auto; display: block;
                   background: var(--breu); border-radius: 8px; padding: 0.6rem; }
.com-simbolo > div { flex: 1; }

@media (min-width: 40rem) {
  .com-simbolo { flex-direction: row; align-items: flex-start; gap: 1.5rem; }
  .com-simbolo img { flex: 0 0 auto; }
}

.lista.credenciais { gap: 0.45rem; margin-top: 0.35rem; }

.retrato-rt {
    width: 100%; height: auto; display: block; border-radius: 6px;
  border: 1px solid var(--linha);
  aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%;
}


