/* =============================================================================
   Base tipográfica, background e layout de página
   ========================================================================== */

body {
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---- Background: grid + glow -------------------------------------------- */

/*
   Grid de circuito em CSS puro, sem imagem. Fica em ::before do body para
   passar por baixo de todo o conteúdo sem interferir no fluxo.
*/
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    pointer-events: none;
}

/* Brilho rosa no topo — muito sutil, só para o preto não ficar morto. */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 0%, rgba(255, 59, 157, .10), transparent 45%);
    pointer-events: none;
}

/* ---- Tipografia --------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    margin: 0;
    color: var(--color-white);
}

h1 {
    font-size: var(--fs-h1);
    line-height: var(--lh-h1);
    font-weight: 800;
    letter-spacing: -.02em;
}

h2 {
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    font-weight: 700;
    letter-spacing: -.015em;
}

h3 {
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
    font-weight: 700;
}

h4 {
    font-size: var(--fs-h4);
    line-height: var(--lh-h4);
    font-weight: 600;
}

p {
    margin: 0 0 var(--lh-body);
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 600;
    color: var(--color-white);
}

a {
    color: var(--color-pink);
    transition: color var(--transition);
}

a:hover {
    color: var(--color-pink-neon);
}

.text-muted-rosathon {
    color: var(--color-gray);
}

.text-light-rosathon {
    color: var(--color-gray-light);
}

.text-pink {
    color: var(--color-pink);
}

.small-caps {
    font-size: var(--fs-small);
    line-height: var(--lh-small);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--color-gray);
    font-weight: 600;
}

/* ---- Layout ------------------------------------------------------------- */

.container-rosathon {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 575px) {
    .container-rosathon {
        padding: 0 20px;
    }
}

.section {
    padding: var(--section-gap) 0;
}

.section--tight {
    padding: calc(var(--section-gap) * .6) 0;
}

/* Faixa de contraste: separa seções sem precisar de linha divisória. */
.section--panel {
    background: var(--color-black-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head p {
    color: var(--color-gray-light);
    margin-top: 20px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-small);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--color-pink);
    font-weight: 700;
    margin-bottom: 18px;
}

.section-label::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--color-pink);
}

.section-head--center .section-label {
    justify-content: center;
}

/* ---- Marca em texto ----------------------------------------------------- */

/*
   O wordmark é texto HTML, não imagem: aproveita a Sora carregada, fica nítido
   em qualquer densidade de tela e é lido por leitor de tela sem alt.
*/
.wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}

.wordmark__rosa {
    color: var(--color-pink);
}

.wordmark__thon {
    color: var(--color-gray);
}

/* Sobre fundo rosa (botão) a marca precisa virar monocromática. */
.wordmark--mono .wordmark__rosa,
.wordmark--mono .wordmark__thon {
    color: inherit;
}

/* ---- Utilitários -------------------------------------------------------- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

[hidden] {
    display: none !important;
}
