/* =====================================================================
   Base do site da IHub Educacional: cores, fontes e reset.
   Azul-marinho institucional, vinho nos destaques e cinza claro nas
   superfícies. Fraunces nos títulos e Inter no texto. Cores em oklch,
   iguais às da versão original feita no Lovable.
   ===================================================================== */

:root {
  --fundo: oklch(1 0 0);
  --texto: oklch(0.2217 0.0577 255.05);
  --marinho: oklch(0.2217 0.0577 255.05);        /* cor principal */
  --marinho-claro: oklch(0.2937 0.0778 255.92);
  --vinho: oklch(0.3423 0.1405 29.23);           /* destaque */
  --vinho-hover: oklch(0.406 0.1549 27.74);
  --branco: oklch(1 0 0);
  --cinza: oklch(0.9672 0 89.88);                /* superfícies */
  --suave: oklch(0.4461 0.0263 256.8);
  --claro-suave: oklch(0.8 0.015 255);           /* texto em fundo escuro */
  --linha: oklch(0.9208 0.0063 255.48);

  --sombra-cartao: 0 1px 2px oklch(0.2217 0.0577 255.05 / 0.04), 0 12px 32px -18px oklch(0.2217 0.0577 255.05 / 0.28);
  --sombra-elevada: 0 2px 4px oklch(0.2217 0.0577 255.05 / 0.06), 0 24px 48px -24px oklch(0.2217 0.0577 255.05 / 0.35);
  --degrade-marinho: linear-gradient(160deg, oklch(0.2217 0.0577 255.05) 0%, oklch(0.2937 0.0778 255.92) 55%, oklch(0.2217 0.0577 255.05) 100%);
  --transicao-suave: 400ms cubic-bezier(0.22, 1, 0.36, 1);
  --curva: cubic-bezier(0.4, 0, 0.2, 1);

  --fonte-titulo: "Fraunces", ui-serif, Georgia, serif;
  --fonte-texto: "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after,
::backdrop {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
  border-color: var(--linha);
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: var(--fonte-texto);
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  background-color: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte-texto);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  font-weight: 500;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 40;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
ol, ul, menu { list-style: none; }
img, svg, video, iframe { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button, input, textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  border-radius: 0;
  background-color: transparent;
  opacity: 1;
}
::placeholder { opacity: 1; color: color-mix(in oklab, currentcolor 50%, transparent); }
textarea { resize: vertical; }
[hidden]:where(:not([hidden="until-found"])) { display: none !important; }

:focus-visible {
  outline: 2px solid var(--vinho);
  outline-offset: 3px;
  border-radius: 2px;
}

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