:root {
  /* Paleta principal */
  --color-bg: #f7f5ef;
  --color-background: var(--color-bg);
  --color-background-soft: #f1eee6;
  --color-surface: #ffffff;
  --color-surface-strong: #e9f1ed;
  --color-white: #ffffff;
  --color-text: #10251f;
  --color-muted: #64736e;
  --color-border: #d8ded8;
  --color-brand: #064d3b;
  --color-brand-strong: #03382b;
  --color-primary: var(--color-brand);
  --color-primary-strong: var(--color-brand-strong);
  --color-danger: #8a1f11;
  --color-error-bg: #f8e9e4;
  --color-error-border: #e5b8ad;
  --color-info-bg: #eef4f1;
  --color-warning-bg: #fff5df;
  --color-warning-text: #704500;
  --color-success-bg: #e7f3ed;
  --color-focus: #946b2d;

  /* Sombra e raios */
  --shadow-card: 0 18px 40px rgba(16, 37, 31, 0.08);
  --shadow-soft: var(--shadow-card);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;

  /* Espaçamento */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-base);
  line-height: 1.5;
}

a {
  color: var(--color-brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

button,
a,
input,
select {
  min-height: 44px;
}

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

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

h1,
h2,
h3 { line-height: 1.1; }

img { max-width: 100%; }

[hidden] { display: none !important; }
