/* ===========================================
   Café 360 — CSS Reset
   Normalização + base de tipografia.
   =========================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: var(--fonte-principal, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  font-size: var(--fs-base, 16px);
  font-weight: var(--peso-normal, 400);
  line-height: var(--lh-normal, 1.5);
  color: var(--texto-principal, #2A2520);
  background-color: var(--bege-papel, #FAF6EB);
  /* Textura de papel sutil — SVG inline (~3% opacidade) */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.24 0 0 0 0 0.34 0 0 0 0 0.22 0 0 0 0.06 0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.5'/></svg>");
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums tabular-nums;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--verde-medio);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--linha-media);
  border-radius: var(--raio-full);
}

/* Seleção de texto na cor do tema */
::selection {
  background: var(--verde-suave);
  color: var(--verde-escuro);
}
