/* Maestruc — proposta B aprovada pelo autor (18/11/2026). Identidade própria, extraída dos tokens
   da interface (app/Visual.h, namespace cor): papel creme, tinta quase
   preta, teal como acento primário, vermelho só para o ponto do Master (o
   ícone). Estrutura e regras copiadas do site do Batruc (que veio do
   Trioio); só as variáveis são do Maestruc. */
/* Fontes livres embutidas (regra dos sites RASGO): DejaVu, cópia fixada do
   site do Trioio, que a fixou do Antitotem. */
@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: #23201B;          /* tinta */
  --muted: #4A443B;        /* tinta2 */
  --line: #D9D0C0;         /* borda */
  --ground: #F2EDE3;       /* fundo */
  --surface: #FBF8F2;      /* painel */
  --surface-high: #FFFDF8; /* creme */
  --ref: #6B6358;          /* apagado */
  --eye: #B3362B;          /* vermelho: o ponto do Master */
  --eye-bg: #F6E6E1;
  --response: #1D6670;     /* teal */
  --response-bg: #E3EFEF;  /* tagMusica */
}

* { 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(242, 237, 227, .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); }
.header-nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.page-nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.page-nav a { color: var(--muted); text-decoration: none; font: 700 .74rem "DejaVu Sans Mono", monospace; letter-spacing: .08em; text-transform: uppercase; padding-bottom: .15rem; border-bottom: 2px solid transparent; }
.page-nav a:hover { color: var(--response); }
.page-nav a[aria-current] { color: var(--response); border-bottom-color: var(--response); }
/* páginas internas: Tutorial, LEARN, Instalação (14/11/2026) */
.hero-inner { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.hero-inner h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.toc { margin: 1.4rem 0 0; padding-left: 1.4rem; columns: 2 260px; color: var(--muted); font: .85rem "DejaVu Sans Mono", monospace; }
.toc a { color: var(--response); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.lessons { display: grid; gap: 1rem; }
.lesson { max-width: 820px; padding: 1.3rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--response); scroll-margin-top: 7rem; }
.lesson h2 { margin: 0 0 .7rem; font: 700 1rem "DejaVu Sans Mono", monospace; color: var(--response); letter-spacing: .03em; text-transform: uppercase; }
.lesson p, .lesson li { color: var(--muted); max-width: 720px; }
.lesson ul, .lesson ol { margin: .4rem 0 0; padding-left: 1.3rem; }
.lesson li { margin: .3rem 0; }
.lesson-shot { margin: 1rem 0 0; max-width: 100%; }
.lesson-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); background: var(--ground); }
.lesson pre { margin: .8rem 0 0; padding: .8rem 1rem; overflow-x: auto; background: var(--ground); border: 1px solid var(--line); font: .82rem "DejaVu Sans Mono", monospace; 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(35, 32, 27, .55); 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); }

@media (max-width: 760px) { .header-nav { gap: .7rem; } .page-nav { gap: .7rem; } }
@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: .7rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* o motivo do ícone no topo: as linhas (os instrumentos) que se juntam no Master */
.hero-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 420px); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero-b .logo-grande { display: block; width: 100%; height: auto; }
.dl-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
code { font-family: "DejaVu Sans Mono", monospace; font-size: .9em; }
/* animação do topo (autor, 18/11/2026): as linhas se desenham, o Master surge */
.logo-animada .linha { stroke-dasharray: 1; stroke-dashoffset: 1; animation: desenha 1.1s cubic-bezier(.5, 0, .2, 1) forwards; animation-delay: calc(var(--i) * .09s); }
@keyframes desenha { to { stroke-dashoffset: 0; } }
.logo-animada .master { transform-origin: 760px 512px; transform: scale(0); animation: chega .5s cubic-bezier(.3, 1.4, .5, 1) 1.5s forwards; }
@keyframes chega { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .logo-animada .linha { animation: none; stroke-dashoffset: 0; }
  .logo-animada .master { animation: none; transform: none; }
  .logo-animada .pulsos, .logo-animada .onda { display: none; }
}
@media (max-width: 760px) { .hero-b { grid-template-columns: 1fr; } .hero-b .logo-grande { max-width: 280px; } }
