/* Planitia — estilos base: reset, tipografia, utilitários, estados do navegador */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  font-optical-sizing: auto;
  scrollbar-color: var(--ink-700) var(--background);
  scrollbar-width: thin;
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  caret-color: var(--signal);
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }

::selection { background: var(--signal); color: var(--signal-foreground); }

/* Foco visível e consistente */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Tipografia utilitária (espelha o design system) */
.text-display { font-size: var(--fs-display); line-height: 1; letter-spacing: -0.04em; }
.text-h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.035em; }
.text-h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.03em; }
.text-h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.02em; }
.text-lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.5; letter-spacing: -0.01em; }
.text-small { font-size: var(--fs-small); }
.text-dim { color: var(--text-dim); }
.text-soft { color: var(--text-soft); }
.text-muted { color: var(--muted-foreground); }

/* Estrutura */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-pad); }

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

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

.icon { width: 1.125em; height: 1.125em; flex: none; }

/* Superfícies do design system */
.squircle-sm { border-radius: var(--radius-squircle-sm); corner-shape: squircle; }
.squircle { border-radius: var(--radius-squircle); corner-shape: squircle; }
.squircle-lg { border-radius: var(--radius-squircle-lg); corner-shape: squircle; }
.glass { background: var(--surface-glass); border: 1px solid var(--line); }
/* O único brilho de cada tela: verde-profundo, borda inferior esmaecida */
.glow-deep {
  background:
    radial-gradient(55% 60% at 78% 0%, rgb(5 140 66 / 0.5), transparent 70%),
    radial-gradient(35% 40% at 100% 25%, rgb(22 219 101 / 0.1), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgb(4 71 28 / 0.35), transparent 70%);
  mask-image: linear-gradient(to bottom, black 55%, transparent);
}
.dot-texture {
  background-image: radial-gradient(color-mix(in oklab, var(--foreground) 22%, transparent) 1px, transparent 1.2px);
  background-size: 14px 14px;
}

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