/* Mainstage · Plataforma: tokens e base
   Paleta do brandbook: vermelho #E02424, carvão #333333, off-white #F2F2F2.
   Anton para impacto editorial; Raleway para interface e leitura. */

@font-face { font-family: Anton; src: url("../assets/fonts/anton-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Anton; src: url("../assets/fonts/anton-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Raleway; src: url("../assets/fonts/raleway-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Raleway; src: url("../assets/fonts/raleway-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* marca */
  --red: #E02424;
  --red-hover: #C81C1C;
  --red-press: #A9161A;
  --red-ink: #B4161B;          /* texto vermelho sobre claro (AA) */
  --red-tint: #FDF0F0;
  --red-line: #F4C9C9;

  /* superfícies escuras */
  --ink: #101013;
  --night: #0B0B0D;
  --graphite: #17171B;
  --smoke: #222227;
  --charcoal: #333333;
  --on-dark: #FFFFFF;
  --on-dark-2: rgba(255,255,255,.72);
  --on-dark-3: rgba(255,255,255,.52);
  --line-dark: rgba(255,255,255,.10);
  --line-dark-2: rgba(255,255,255,.16);

  /* superfícies claras */
  --paper: #F2F2F2;
  --paper-2: #EAEAEA;
  --surface: #FFFFFF;
  --surface-2: #F8F8F8;
  --line: #E1E1E1;
  --line-2: #CFCFD2;
  --text: #141417;
  --text-2: #4A4A51;
  --text-3: #66666E;

  /* estados (sempre acompanhados de texto) */
  --ok: #1E7047;        --ok-tint: #EAF5EF;
  --warn: #8F5200;      --warn-tint: #FBF1E2;
  --info: #2B4FB5;      --info-tint: #EDF1FB;
  --neutral: #55555C;   --neutral-tint: #EFEFF0;

  --font-display: Anton, Impact, "Arial Narrow", sans-serif;
  --font-ui: Raleway, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 6px;
  --r: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  --shadow-pop: 0 18px 50px -12px rgba(16,16,19,.28), 0 2px 6px rgba(16,16,19,.08);
  --shadow-soft: 0 1px 2px rgba(16,16,19,.05);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 140ms;
  --t: 200ms;

  --header-h: 64px;
  --demo-h: 32px;
  --sidebar-w: 240px;
  --content-max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--text);
  font: 500 15px/1.55 var(--font-ui);
  font-feature-settings: "lnum" 1, "pnum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible, .is-dark :focus-visible { outline-color: #fff; }

.skip-link {
  position: fixed; z-index: 1000; top: 8px; left: 8px;
  padding: 10px 14px; border: 0; border-radius: var(--r);
  background: var(--red); color: #fff; font-weight: 700; font-size: 14px;
  transform: translateY(-160%); transition: transform var(--t) var(--ease);
}
.skip-link:focus-visible { transform: none; outline-color: #fff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* tipografia */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .005em;
  line-height: .98;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red-ink);
  font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.on-dark .eyebrow, .eyebrow--light { color: #FF8A8A; }
.eyebrow::before { display: none; }
.eyebrow--plain::before { display: none; }

.h1 { font-size: clamp(26px, 2.4vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; }
.h2 { font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.h3 { font-size: 16px; font-weight: 750; line-height: 1.35; }
.lede { color: var(--text-2); font-size: 16px; line-height: 1.6; max-width: 62ch; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 750; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; letter-spacing: 0; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

.stack > * + * { margin-top: var(--stack, 16px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.grow { flex: 1 1 auto; min-width: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
