/* Portal do coletivo.dev.br — mesmos tokens do acervo (site/DESIGN.md),
   fontes reaproveitadas de /simbolos/fonts para não duplicar byte. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/simbolos/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/simbolos/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #fdf6ee;
  --surface: #ffffff;
  --ink: #241c17;
  --muted: #7a6a5e;
  --border: #eedfd1;
  --accent: #b4552d;
  --accent-soft: #f6e3d8;
  --ok: #2f6b47;
  --r-card: 14px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(36, 28, 23, 0.05), 0 10px 30px rgba(36, 28, 23, 0.06);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-text: "Source Sans 3", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 180ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191512;
    --surface: #221c18;
    --ink: #f5ede6;
    --muted: #a59486;
    --border: #3a302a;
    --accent: #d97757;
    --accent-soft: #3a241c;
    --ok: #7fbf94;
    --shadow-card: none;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.num {
  font-variant-numeric: tabular-nums;
}

.topo {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

.topo-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  flex-wrap: wrap;
}

.marca {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.br {
  color: var(--ok);
  border-bottom: 2px solid #d9a521;
  padding-bottom: 1px;
}

.topo nav,
.rodape nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topo nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
}

.topo nav a:hover {
  color: var(--accent);
}

.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero h1 {
  max-width: 22ch;
  margin-bottom: 1rem;
}

.linha-fina {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}

.iniciativas {
  padding: 1rem 0 3rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.iniciativas h2 {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 1.25rem 0 1rem;
}

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

.iniciativa {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.iniciativa:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.iniciativa h3 {
  margin: 0;
}

.iniciativa .descricao {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 46ch;
}

.seta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.selo-linha {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem !important;
}

.selo {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ok);
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 1px 6px;
}

.selo--fraco {
  color: var(--muted);
}

.numeros {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1rem 1.75rem;
  margin: 0;
}

.numeros dt {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.numeros dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
}

.seta {
  font-size: 1.5rem;
  color: var(--accent);
}

.nota {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.rodape {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

.rodape-in {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}

.rodape p {
  margin: 0;
}

.rodape a {
  color: var(--muted);
  text-decoration: none;
}

.rodape a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .numeros {
    grid-template-columns: repeat(3, auto);
    gap: 0.75rem 1.25rem;
  }
}
