:root {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-alt);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--fg);
  background: var(--bg-alt);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  color: var(--ink);
}

h1 {
  margin-bottom: var(--space-2);
  font-size: clamp(2rem, 4vw, var(--fs-titulo));
  font-weight: var(--w-extra);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

h2 {
  margin-bottom: var(--space-2);
  font-size: clamp(1.25rem, 2vw, var(--fs-sub));
  font-weight: var(--w-extra);
  line-height: 1.25;
}

h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: var(--w-extra);
  line-height: 1.35;
}

:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-pill);
  color: var(--branco);
  background: var(--azul-marinho);
  font-weight: var(--w-bold);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin-bottom: var(--space-2);
  color: var(--azul-escuro);
  font-size: 0.72rem;
  font-weight: var(--w-extra);
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 0;
  border-radius: var(--r-pill);
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  font-weight: var(--w-extra);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  color: var(--branco);
  background: var(--azul);
}

.button--primary:hover {
  background: var(--azul-escuro);
  box-shadow: var(--shadow-sm);
}

.button--ghost {
  border: 2px solid var(--azul);
  color: var(--azul-escuro);
  background: var(--branco);
}

.button--ghost:hover {
  background: var(--azul-claro);
}

.button--wide {
  width: 100%;
}

.notice {
  border-radius: var(--r-sm);
  padding: var(--space-3) var(--space-4);
  font-size: 0.86rem;
  font-weight: var(--w-bold);
  line-height: 1.5;
}

.notice--error {
  border: 1px solid var(--vermelho);
  color: var(--vermelho);
  background: var(--branco);
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: var(--r-pill);
  background: var(--azul);
  box-shadow: 0 0 0 4px var(--azul-claro);
}

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