/* Roboto, SIL Open Font License 1.1. Licença em /assets/fontes/LICENSE. */

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fontes/roboto-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Roboto";
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fontes/roboto-latin-italic.woff2") format("woff2");
}

:root {
    --navy: #0c2340;
    --navy-2: #16365c;
    --gold: #c4a046;
    --ink: #1c1c1c;
    --muted: #3e4a57;
    --paper: #f4f1ea;
    --line: #ddd6c8;
    --coluna: 44rem;
    --largo: 76rem;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: "Roboto", "Liberation Sans", "Nimbus Sans", sans-serif;
    font-weight: 400;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}

a { color: var(--navy); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.pular {
    position: absolute;
    left: -999px;
}

.pular:focus {
    left: 1rem;
    top: 1rem;
    background: white;
    padding: 0.4rem 0.6rem;
    z-index: 2;
}

.topo {
    background: white;
    border-bottom: 4px solid var(--gold);
}

.faixa {
    max-width: var(--coluna);
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.pagina-inicio .faixa { max-width: var(--largo); }

.topo .faixa { padding-top: 1rem; padding-bottom: 0.35rem; }

.marca {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.marca img { width: 64px; height: 64px; }

.sigla {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--navy);
    font-size: 1.45rem;
}

.nome {
    margin: 0.15rem 0 0;
    color: var(--muted);
    max-width: 36rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.35;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.15rem;
    margin-top: 0.85rem;
}

nav a {
    text-decoration: none;
    font-weight: 500;
    padding: 0.35rem 0 0.55rem;
    color: var(--navy);
}

nav a.ativa {
    border-bottom: 3px solid var(--gold);
    font-weight: 700;
}

main {
    max-width: var(--coluna);
    margin: 0 auto;
    padding: 1.75rem 1.25rem 3rem;
    background: white;
}

.pagina-inicio main {
    max-width: var(--largo);
    padding-top: 0;
}

h1, h2, h3 { color: var(--navy); font-weight: 700; letter-spacing: -0.015em; }

h1 { font-size: 1.85rem; line-height: 1.2; margin: 0 0 0.8rem; }

h2 { font-size: 1.4rem; line-height: 1.25; margin: 2rem 0 0.8rem; }

.leitura { max-width: 40rem; }

.hero {
    position: relative;
    width: 100vw;
    margin: 0 0 2rem calc(50% - 50vw);
    color: white;
}

.hero picture, .hero img {
    display: block;
    width: 100%;
    height: min(38rem, 72vw);
    object-fit: cover;
    object-position: center 32%;
}

.hero-texto {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4.5rem max(1.25rem, calc(50vw - 38rem)) 1.6rem;
    background: linear-gradient(to top, rgba(12, 35, 64, 0.94) 0%, rgba(12, 35, 64, 0.55) 48%, rgba(12, 35, 64, 0) 100%);
}

.olho {
    margin: 0 0 0.45rem;
    color: var(--gold);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    color: white;
    font-size: clamp(1.65rem, 3.1vw, 2.55rem);
    max-width: 16em;
    margin-bottom: 0.55rem;
}

.hero p { margin: 0 0 1rem; max-width: 38rem; font-weight: 400; }

.oficios {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.oficios li {
    background: white;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
}

.oficios figure { margin: 0; }

.oficios img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center 30%;
}

.oficios figcaption { padding: 0.85rem 0.95rem 1.05rem; }

.oficios h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }

.oficios p { margin: 0; color: var(--muted); }

.ilustracao {
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-style: italic;
    font-size: 0.92rem;
}

.frentes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.frente {
    border-left: 4px solid var(--gold);
    background: var(--paper);
    padding: 0.95rem 1rem;
    margin: 1rem 0;
}

.frentes .frente { margin: 0; }

.frente p { margin: 0; }

.aviso {
    background: #fff8e8;
    border: 1px solid var(--gold);
    padding: 0.8rem 1rem;
}

.erro {
    background: #fdecec;
    border: 1px solid #a33;
    padding: 0.8rem 1rem;
}

.ok {
    background: #eef6ee;
    border: 1px solid #3d6b45;
    padding: 0.8rem 1rem;
}

form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    max-width: 36rem;
}

label {
    display: grid;
    gap: 0.25rem;
    font-weight: 500;
}

input, select, textarea {
    font: inherit;
    font-weight: 400;
    padding: 0.55rem 0.6rem;
    border: 1px solid var(--line);
    width: 100%;
    background: white;
}

button, .botao {
    background: var(--navy);
    color: white;
    border: 0;
    padding: 0.7rem 1.15rem;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    font-family: inherit;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
}

button:hover, .botao:hover { background: var(--navy-2); }

.hero .botao {
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
}

.hero .botao:hover { background: #d4b15c; }

.ficha {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.35rem 0.8rem;
    margin: 1rem 0;
}

.ficha dt { font-weight: 700; }

.rodape {
    background: var(--navy);
    color: #e7e2d6;
}

.rodape .faixa { padding-top: 1.15rem; padding-bottom: 1.5rem; }

.rodape p { margin: 0.35rem 0; font-size: 0.95rem; }

.rodape .versao {
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.04em;
}

@media (max-width: 900px) {
    .oficios { grid-template-columns: 1fr 1fr; }
    .frentes { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .marca img { width: 48px; height: 48px; }
    .sigla { font-size: 1.15rem; letter-spacing: 0.08em; }
    .ficha { grid-template-columns: 1fr; }
    .oficios { grid-template-columns: 1fr; }
    .hero picture, .hero img { height: 26rem; }
    .hero-texto { padding-top: 3.5rem; }
}
