/* =========================================================
   Mio Somnus — base compartilhada (sistema editorial preto)
   Fontes, cores, botões, menu superior e rodapé. Carregado por
   TODAS as páginas, inclusive a home (que tem o resto do CSS
   inline). Componentes das páginas internas ficam em site.css.
   ========================================================= */

@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/anton-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-400italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlowcondensed-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlowcondensed-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/barlowcondensed-800-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/barlowcondensed-900-latin.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ink: #09090A;
  --coal: #131315;
  --coal-2: #1B1B1E;
  --line: #27272B;
  --line-2: #3A3A40;
  --bone: #F3F1EC;
  --text: #DAD8D3;
  --smoke: #9C9BA3;
  --gold: #D6AC66;
  --gold-2: #E4BE7E;
  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --slam: "Barlow Condensed", "Arial Narrow", sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 68px;
}

.wrap { padding-inline: var(--gutter); max-width: 1320px; margin-inline: auto; }
.label { font-family: var(--label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 14px; color: var(--gold); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; line-height: 1.1; text-decoration: none; padding: 15px 24px; border-radius: 2px; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.btn-gold { background: var(--gold); color: #09090A; }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-line { border-color: var(--line-2); color: var(--bone); background: transparent; }
.btn-line:hover { border-color: var(--bone); }
.arr { width: .8em; height: .8em; flex: none; transform: translateY(-.02em); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--gold); color: #09090A; padding: 10px 14px; }

/* ---------- menu superior ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 40; padding-top: env(safe-area-inset-top, 0px); color: var(--bone); }
.topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(9, 9, 10, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .3s ease; }
.topbar.solid::before { opacity: 1; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.topbar .brand { font-family: var(--display); font-size: 24px; letter-spacing: .04em; text-decoration: none; line-height: 1; color: var(--bone); }
.topbar .brand b, .site-foot .brand b { color: var(--gold); font-weight: 400; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-family: var(--label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
.nav__links ul a { text-decoration: none; color: #C9C8CF; transition: color .2s ease; }
.nav__links ul a:hover, .nav__links ul a[aria-current="page"] { color: var(--gold); }
.topbar .btn { padding: 10px 16px; font-size: 13px; }
.nav__extra { display: none; }
.nav__toggle { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: transparent; color: var(--bone); cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .3s ease, opacity .2s ease; }

@media (max-width: 960px) {
  .nav__toggle { display: block; position: relative; z-index: 3; }
  .topbar .brand { position: relative; z-index: 3; }
  .nav__links { position: fixed; inset: 0; z-index: 2; height: 100dvh; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: calc(var(--nav-h) + 24px) var(--gutter) max(28px, env(safe-area-inset-bottom)); background: var(--ink); overflow-y: auto; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s linear .3s; }
  .nav.open .nav__links { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s ease, visibility 0s; }
  .nav__links ul { flex-direction: column; gap: 0; font-family: var(--display); font-weight: 400; letter-spacing: .01em; font-size: clamp(38px, 11vw, 56px); line-height: 1; }
  .nav__links ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--bone); }
  .topbar .nav__links .btn { margin-top: 28px; padding: 18px 24px; font-size: 15px; }
  .nav__extra { display: block; margin: auto 0 0; padding-top: 28px; color: var(--smoke); font-size: 14px; line-height: 1.6; }
  .nav__extra a { color: var(--bone); }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  html:not(.js) .nav__toggle { display: none; }
  html:not(.js) .nav__links { position: static; height: auto; opacity: 1; visibility: visible; pointer-events: auto; padding: 0; background: none; }
  html:not(.js) .nav__links ul { display: none; }
}

body.menu-open { overflow: hidden; }

/* ---------- rodapé ---------- */
.site-foot { background: var(--ink); color: var(--smoke); font-family: var(--body); font-size: 14px; line-height: 1.55; }
.site-foot .wrap { padding-block: 56px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.site-foot .brand { font-family: var(--display); font-size: 24px; letter-spacing: .04em; text-decoration: none; line-height: 1; color: var(--bone); }
.site-foot .sf-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; width: 100%; }
.site-foot h4 { font-family: var(--label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: var(--gold); margin: 0 0 10px; }
.site-foot .sf-grid a:not(.brand) { display: block; color: #C9C8CF; text-decoration: none; margin: 6px 0; }
.site-foot .sf-grid a:not(.brand):hover { color: var(--gold); }
.site-foot p { margin: 8px 0 0; }
.site-foot .sf-tag { font-family: var(--label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: var(--bone); margin-top: 14px; }
.site-foot .sf-co { width: 100%; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; font-size: 13px; }
.site-foot .sf-co p { margin: 4px 0 0; }
.site-foot .sf-co strong { color: #C9C8CF; font-weight: 500; }
.site-foot .sf-co a { color: #C9C8CF; }
.site-foot .sf-legal { max-width: 110ch; color: #75747B; font-size: 12px; margin-top: 14px !important; }
@media (max-width: 900px) { .site-foot .sf-grid { grid-template-columns: 1fr 1fr; } .site-foot .sf-grid > div:first-child { grid-column: 1 / -1; } }

/* faixa de prova (nota + avaliações) */
.rating-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: var(--bone); text-decoration: none; }
.rating-line .stars { color: var(--gold); letter-spacing: .08em; }
.rating-line b { font-weight: 600; color: var(--bone); }
.rating-line span { color: var(--smoke); }
a.rating-line:hover span { color: var(--gold); }

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

@media (prefers-reduced-motion: reduce) {
  .topbar::before, .nav__links, .btn, .nav__toggle span { transition: none !important; }
}
