@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/archivo-black-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
}

/* _StackMedia: shared identity for every application surface. */
:root {
  color-scheme: light;
  --ink: #151515;
  --paper: #f3ede8;
  --surface: #fcf8f4;
  --white: #ffffff;
  --muted: #625d58;
  --red: #e21a59;
  --orange: #e25d1f;
  --red-text: #9e153d;
  --orange-text: #973d18;
  --gray: #575757;
  --line: rgba(21, 21, 21, 0.14);
  --shadow: 0 28px 80px rgba(21, 21, 21, 0.16);
  --font-body: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Archivo Black", "Space Grotesk", system-ui, sans-serif;
  --page-scale: 0.9;
  --page-scale-reverse: 1.111111;

  /* Compatibility aliases used by the existing editor controls. */
  --vermelho: var(--red);
  --azul: var(--ink);
  --brand-blue-dark: var(--gray);
  --brand-red-dark: var(--red-text);
  --color-ink: var(--ink);
  --color-muted: var(--muted);
  --color-line: var(--line);
  --color-panel: var(--white);
  --color-page: var(--paper);
  --color-surface: var(--surface);
  --color-blue-soft: #f6e4d8;
  --color-red-soft: #fce3eb;
  --color-blue: var(--ink);
  --color-red: var(--red);
  --glass-surface: var(--surface);
  --glass-surface-strong: var(--white);
  --glass-line: var(--line);
  --glass-shadow: 0 8px 24px rgba(21, 21, 21, .06);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .7);
  --glass-selected: #f6e4d8;
  --glass-selected-line: #d6a58b;
  --glass-blur: blur(20px);
  --glass-page-background: var(--paper);
  --shadow-soft: var(--glass-shadow);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  font-family: var(--font-body);
  font-synthesis: none;
}

body { font-family: var(--font-body); line-height: 1.5; }
.brand-wordmark { white-space: nowrap; text-transform: none; letter-spacing: normal; }
.brand-wordmark > .brand-media { color: var(--red, #e21a59); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
button:disabled { cursor: not-allowed; }
::selection { color: var(--red-text); background: var(--color-red-soft); }

.site-header {
  background: var(--glass-surface);
  color: var(--azul);
  border-bottom: 1px solid var(--glass-line);
  box-shadow: var(--glass-highlight), 0 4px 18px rgba(21, 21, 21, .04);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.site-header-inner {
  display: flex;
  width: min(1440px, 90%);
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.site-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--azul);
  text-decoration: none;
}
.site-brand-logo {
  display: block;
  width: 184px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.site-brand strong { display: block; font-size: 17px; line-height: 1.2; }
.site-brand small { display: block; margin-top: 3px; color: var(--color-muted); font-size: 11px; }
.site-nav { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 12px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.site-nav a:hover { color: var(--azul); background: var(--glass-surface-strong); }
.site-nav a[aria-current="page"] { color: var(--brand-blue-dark); border-color: var(--glass-selected-line); background: var(--glass-selected); box-shadow: var(--glass-highlight); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --glass-surface: var(--surface);
    --glass-surface-strong: #fff;
    --glass-selected: #f6e4d8;
    --glass-blur: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  :root {
    --glass-surface: var(--surface);
    --glass-surface-strong: #fff;
    --glass-selected: #f6e4d8;
    --glass-blur: none;
  }
}

@media (max-width: 640px) {
  .site-header-inner { width: calc(100% - 32px); padding: 14px 0; gap: 12px; flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .site-nav a { justify-content: center; flex: 1; }
}

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