/* Identidade candidata do portal geral RASGO. */

/* Self-hosted, not named-system-font (regra de fontes livres da família
   RASGO, 26 ago. 2026): "DejaVu Sans"/"DejaVu Sans Mono" são livres
   (Bitstream Vera License) mas só eram citadas pelo nome, sem @font-face —
   mesmo bug achado e corrigido no mesmo dia nos sites do Antitotem e do
   Navalha 2. Subset compartilhado com o Antitotem (Latin + pontuação/setas
   usadas nos cards). */
@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: #f3f1e8;
  --muted: #a9aaa2;
  --line: #343a38;
  --surface: #121716;
  --surface-high: #1b2220;
  --yellow: #f4c842;
  --red: #df4747;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #0b0e0d;
  font: 16px/1.6 "DejaVu Sans", system-ui, sans-serif;
}
a { color: inherit; }
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 20;
  padding: .65rem .9rem; background: var(--yellow); color: #151713;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  gap: 2rem; padding: 1.1rem clamp(1.2rem, 5vw, 5rem);
  background: rgba(11, 14, 13, .92); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { color: var(--ink); font: 700 1.35rem/1 "DejaVu Sans Mono", monospace; text-decoration: none; letter-spacing: .08em; }
.brand span { color: var(--yellow); }
nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
nav a { color: var(--muted); font-size: .82rem; text-decoration: none; }
nav a:hover, a:hover { color: var(--yellow); }
.lang-switch { gap: .6rem; font: 700 .78rem "DejaVu Sans Mono", monospace; letter-spacing: .04em; }
.lang-switch a[aria-current] { color: var(--yellow); }
.hero, .section { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 6vw, 4rem); }
.hero { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 780px; margin: .5rem 0 1rem; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; letter-spacing: -.03em; }
.lead { max-width: 620px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.status-note { margin-top: 1.4rem; color: var(--yellow); font: .76rem/1.4 "DejaVu Sans Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow, .card-kicker { color: var(--yellow); font: 700 .72rem/1.2 "DejaVu Sans Mono", monospace; letter-spacing: .14em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-block; padding: .65rem 1rem; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .88rem; }
.button-primary { border-color: var(--yellow); background: var(--yellow); color: #151713; }
.section-grid { display: grid; grid-template-columns: minmax(220px, .8fr) 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
h2 { max-width: 560px; margin: .5rem 0 .8rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.12; letter-spacing: -.02em; }
.section p { max-width: 660px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.card { position: relative; min-height: 220px; padding: 1.3rem; background: var(--surface); border: 1px solid var(--line); transition: background .15s ease; }
.card:hover { background: var(--surface-high); }
.card-featured { border-color: var(--yellow); }
.card h3 { margin: .4rem 0 .6rem; font-size: 1.3rem; }
.card p { margin-top: 0; }
.card a { color: var(--yellow); text-decoration: none; font: .85rem "DejaVu Sans Mono", monospace; }
/* Whole-card click target: the visible link stays where it is, but its
   ::after stretches to cover the whole .card box (nearest positioned
   ancestor), so clicking anywhere in the card follows the link. */
.card > a.card-link::after { content: ""; position: absolute; inset: 0; }
.muted { color: var(--muted); font-size: .9rem; }
.section-dark { background: var(--surface); }
.support { background: #151b18; }
.support-status { color: var(--yellow) !important; font: .82rem/1.5 "DejaVu Sans Mono", monospace; }
.research-list p { padding: 0 0 1rem 1rem; border-left: 2px solid var(--red); }
.research-list strong { color: var(--ink); }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.tag-row span { padding: .3rem .55rem; border: 1px solid var(--line); color: var(--muted); font: .72rem "DejaVu Sans Mono", monospace; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem clamp(1.2rem, 5vw, 5rem); color: var(--muted); font-size: .78rem; }

/* Contact email: click-to-copy instead of a plain mailto: link, so the
   visitor's OS doesn't launch a desktop mail client (e.g. Thunderbird) just
   for looking up the address. Same pattern as the Navalha 2 site. */
.link-trigger {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  color: var(--yellow); font: inherit; text-decoration: underline;
}
.link-trigger:hover { color: var(--ink); }
.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-size: 1rem; 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: #0b0e0d; color: var(--yellow); font-size: .82rem; overflow-wrap: anywhere; }
.contact-dialog .button { padding: .6rem .8rem; font-size: .78rem; border: 1px solid var(--yellow); cursor: pointer; }
.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(--yellow); }
@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .hero, .section { padding-block: 4rem; }
  .section-grid, .cards { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
