/* Trioio — identidade própria do instrumento, extraída dos tokens da
   interface (src/app/MainView.h, namespace Tokens): fundo quase-preto
   azulado, âmbar do Terceiro Olho como acento raro, verde-água da resposta
   como acento primário. Provisória como a da interface (docs/design.md §6):
   trocar a paleta é trocar estas variáveis. Não compartilha a paleta do
   portal RASGO (GOVERNANCA_E_TRANSVERSALIDADE.md §10). */
/* Fontes livres embutidas (regra dos sites RASGO, 26 ago. 2026): DejaVu,
   cópia fixada de ANTITOTEM/website (README.md, Proveniência). */
@font-face { font-family: "DejaVu Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/dejavu-sans-400.woff2") format("woff2"); }
@font-face { font-family: "DejaVu Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/dejavu-sans-700.woff2") format("woff2"); }
@font-face { font-family: "DejaVu Sans Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/dejavu-sans-mono-400.woff2") format("woff2"); }
@font-face { font-family: "DejaVu Sans Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/dejavu-sans-mono-700.woff2") format("woff2"); }

:root {
  --ink: #ece8de;
  --muted: #a3a9b6;
  --line: #272b35;
  --ground: #0e1014;
  --surface: #161920;
  --surface-high: #1c2029;
  --ref: #8e9bb0;
  --eye: #e2a23b;
  --eye-bg: #19160f;
  --response: #4fb3a5;
  --response-bg: #10201e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ground); font: 16px/1.6 "DejaVu Sans", system-ui, sans-serif; }
a { color: var(--response); }
a:hover { color: var(--ink); }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 20; padding: .65rem .9rem; background: var(--response); color: var(--ground); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--response); outline-offset: 4px; }

/* faixa fixa do portal RASGO acima do cabeçalho do instrumento (regra da família, 27 ago. 2026) */
.rasgo-strip { position: sticky; top: 0; z-index: 11; display: flex; justify-content: center; padding: .4rem 1rem; background: var(--ground); border-bottom: 1px solid var(--line); }
.rasgo-strip a { color: var(--muted); text-decoration: none; font: 700 .68rem "DejaVu Sans Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.rasgo-strip a:hover { color: var(--response); }

.site-header { position: sticky; top: 1.9rem; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: .9rem clamp(1.2rem, 5vw, 4rem); background: rgba(14, 16, 20, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { display: block; width: 2.1rem; height: 2.1rem; }
.brand span { font: 700 1.1rem/1 "DejaVu Sans Mono", monospace; letter-spacing: .18em; color: var(--ink); }
.lang-switch { display: flex; gap: .4rem; }
.lang-switch a { padding: .3rem .55rem; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font: .72rem "DejaVu Sans Mono", monospace; letter-spacing: .06em; }
.lang-switch a[aria-current="true"] { color: var(--response); border-color: var(--response); }
.lang-switch a:hover { color: var(--ink); }

.hero { padding: clamp(3rem, 9vw, 7rem) clamp(1.2rem, 8vw, 6rem) clamp(2rem, 6vw, 4rem); border-bottom: 1px solid var(--line); }
.status-pill { display: inline-block; padding: .3rem .7rem; margin-bottom: 1.2rem; border: 1px solid var(--eye); color: var(--eye); font: 700 .74rem/1.3 "DejaVu Sans Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 0 0 .8rem; font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: 1.02; letter-spacing: -.02em; }
.hero .lead { max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin: 0; }

.section { padding: clamp(2.5rem, 7vw, 5rem) clamp(1.2rem, 8vw, 6rem); border-bottom: 1px solid var(--line); }
.section h2 { margin: 0 0 1.2rem; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.01em; }
.section p { max-width: 720px; color: var(--muted); }
.section-dark { background: var(--surface); }

.steps { list-style: none; counter-reset: passo; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; max-width: 1100px; }
.steps li { counter-increment: passo; padding: 1.2rem; background: var(--ground); border: 1px solid var(--line); border-top: 2px solid var(--response); }
.steps h3 { margin: 0 0 .5rem; font: 700 .95rem "DejaVu Sans Mono", monospace; color: var(--response); letter-spacing: .03em; }
.steps h3::before { content: counter(passo) " · "; color: var(--muted); }
.steps p { margin: 0; color: var(--muted); font-size: .9rem; }

/* o Terceiro Olho tem a sua cor, como na faixa do meio da interface */
.eye-section { background: var(--eye-bg); border-left: 3px solid var(--eye); }
.eye-section h2 { color: var(--eye); }

.facts { max-width: 720px; margin: 1rem 0; padding-left: 1.2rem; color: var(--muted); }
.facts li { margin: .35rem 0; }
.example { border-left: 2px solid var(--response); padding: .2rem 0 .2rem 1rem; background: var(--response-bg); }

figure.shot { margin: 1.4rem 0 0; max-width: 1100px; }
figure.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
figure.shot figcaption { margin-top: .6rem; color: var(--muted); font: .78rem/1.5 "DejaVu Sans Mono", monospace; max-width: 820px; }

.button { display: inline-block; padding: .65rem 1.1rem; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: .88rem "DejaVu Sans", sans-serif; cursor: pointer; background: none; }
.button:hover { border-color: var(--response); color: var(--response); }
.button-primary { border-color: var(--response); background: var(--response); color: var(--ground); font-weight: 700; }
.button-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.contact-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem clamp(1.2rem, 5vw, 4rem); color: var(--muted); font: .76rem "DejaVu Sans Mono", monospace; letter-spacing: .04em; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--response); }

/* contato: copiar o endereço em vez de mailto (mesmo padrão dos outros sites RASGO) */
.contact-dialog { width: min(100% - 40px, 380px); padding: 1.4rem; border: 1px solid var(--line); background: var(--surface-high); color: var(--ink); }
.contact-dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.contact-dialog h2 { margin: 0 0 .6rem; font: 700 1rem "DejaVu Sans Mono", monospace; letter-spacing: .06em; }
.contact-dialog p { margin-bottom: 0; color: var(--muted); font-size: .82rem; }
.contact-dialog code { display: block; margin: .9rem 0 .8rem; padding: .65rem; border: 1px solid var(--line); background: var(--ground); color: var(--response); font-size: .82rem; overflow-wrap: anywhere; }
.contact-dialog .button { padding: .6rem .8rem; font-size: .78rem; }
.contact-feedback { min-height: 1.3em; margin: .6rem 0 0; font-size: .76rem; color: var(--muted); }
.dialog-close { position: absolute; top: .6rem; right: .7rem; border: 0; background: transparent; color: var(--muted); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.dialog-close:hover { color: var(--response); }

/* menu das páginas (nivelamento dos sites da família, 19/11/2026): o mesmo
   desenho do seletor de língua, em texto */
.site-menu { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; margin-left: auto; }
.site-menu a { color: var(--muted); text-decoration: none; font: .78rem "DejaVu Sans Mono", monospace; letter-spacing: .06em; text-transform: uppercase; padding: .3rem 0; border-bottom: 1px solid transparent; }
.site-menu a:hover { color: var(--ink); }
.site-menu a[aria-current="page"] { color: var(--response); border-bottom-color: var(--response); }
.section .facts { max-width: 760px; }
.facts.toc a { text-decoration: none; }
table.ref { border-collapse: collapse; max-width: 900px; width: 100%; margin: 1rem 0; font-size: .92rem; }
table.ref th, table.ref td { text-align: left; vertical-align: top; padding: .6rem .8rem; border-bottom: 1px solid var(--line); color: var(--muted); }
table.ref th { color: var(--ink); font-weight: 400; width: 34%; }
.section code { font: .86em "DejaVu Sans Mono", monospace; color: var(--ink); }
pre.example { max-width: 760px; padding: .8rem 1rem; overflow-x: auto; }

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .site-menu { margin-left: 0; }
  table.ref th { width: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
