:root {
  --fundo: #fbf7f0;
  --superficie: #ffffff;
  --texto: #1f1d1a;
  --texto-suave: #5a534a;
  --borda: #e6dccb;
  --onca: #9a5a12;        /* links e destaques sobre fundo claro (contraste AA) */
  --onca-viva: #c9822b;
  --estrela: #f2c14e;
  --noite: #14182b;
  --noite-2: #1e2440;
  --noite-texto: #ece8df;
  --foco: #1b63d6;
  --largura: 44rem;
  --raio: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #12141f;
    --superficie: #1a1d2b;
    --texto: #ece8df;
    --texto-suave: #b5ada0;
    --borda: #2c3147;
    --onca: #e9a552;
    --noite: #0b0d17;
    --noite-2: #161a2e;
    --foco: #7fb0ff;
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1, h2 { line-height: 1.2; margin: 0 0 .75rem; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
p { margin: 0 0 1rem; }
a { color: var(--onca); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 4px; }

.faixa { max-width: var(--largura); margin: 0 auto; padding: 0 16px; }

.pular {
  position: absolute; left: 16px; top: -100px;
  background: var(--superficie); color: var(--texto);
  padding: .5rem 1rem; border-radius: var(--raio); z-index: 10;
}
.pular:focus { top: 12px; }

/* Topo */
.topo { background: var(--noite); color: var(--noite-texto); }
.topo .faixa {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-top: .75rem; padding-bottom: .75rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .5rem;
  color: inherit; text-decoration: none; font-weight: 700; font-size: 1.15rem;
}
.topo ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.topo nav a { color: var(--noite-texto); text-decoration: none; padding: .25rem 0; }
.topo nav a:hover { color: var(--estrela); text-decoration: underline; }

/* Abertura: o céu ao entardecer */
.abertura {
  background:
    radial-gradient(circle at 78% 18%, rgba(242,193,78,.22), transparent 30%),
    linear-gradient(180deg, var(--noite) 0%, var(--noite-2) 70%, #3a2a2a 100%);
  color: var(--noite-texto);
  text-align: center;
  padding: 3.5rem 0 4rem;
}
.abertura-marca { display: block; margin: 0 auto 1.25rem; width: 96px; height: 96px; }
.abertura h1 { font-size: clamp(2.5rem, 11vw, 4rem); letter-spacing: .01em; }
.lema { font-size: clamp(1.1rem, 3.6vw, 1.3rem); max-width: 34rem; margin: 0 auto 1.75rem; color: #d9d3c6; }
.botao {
  display: inline-block; background: var(--estrela); color: #1f1d1a;
  font-weight: 700; text-decoration: none; padding: .8rem 1.4rem; border-radius: 999px;
}
.botao:hover { background: #ffd56e; }

/* Seções */
.secao { padding: 3.5rem 0; }
.secao + .secao { border-top: 1px solid var(--borda); }
.selo {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--onca); border: 1.5px solid currentColor; border-radius: 999px; padding: .15rem .7rem; margin-bottom: 1rem;
}
.destaque { font-size: 1.2rem; font-weight: 600; }

.frentes { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .75rem; }
@media (min-width: 560px) { .frentes { grid-template-columns: 1fr 1fr; } }
.frentes li {
  background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem;
}
.frentes span { color: var(--texto-suave); font-size: .95rem; }

.secao-noite { background: var(--noite); color: var(--noite-texto); border-top: 0 !important; }
.secao-noite a { color: var(--estrela); }
.secao-noite .fonte { color: #b5ada0; font-size: .9rem; }

.email { font-size: clamp(1.1rem, 4.5vw, 1.4rem); font-weight: 700; overflow-wrap: anywhere; }

.rodape { border-top: 1px solid var(--borda); padding: 1.5rem 0; color: var(--texto-suave); font-size: .9rem; }
.rodape p { margin: 0; }
