/* =========================================================================
   AprovaQuest — Colors & Type (tokens do Design System)
   Fonte: AprovaQuest Logo/AprovaQuest-Design-System.md, seção 2.

   NÃO EDITE ESTE ARQUIVO à mão. Ele é a cópia fiel dos tokens da marca.
   Ajustes de layout e componentes vão em app.css.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* ---------- Brand: Gold ---------- */
  --gold-50: #fbf6e9;
  --gold-100: #f5eac9;
  --gold-200: #ebd79a;
  --gold-300: #ddbe6a;
  --gold-400: #c9a249;
  --gold-500: #b8893e; /* PRIMARY */
  --gold-600: #9a6e2c;
  --gold-700: #7a5520;
  --gold-800: #5a3d17;
  --gold-900: #3a2710;

  --gold-gradient: linear-gradient(135deg, #8c5e1e 0%, #c9a249 45%, #e5cf83 70%, #b8893e 100%);
  --gold-gradient-soft: linear-gradient(135deg, #ddbe6a 0%, #f5eac9 100%);

  /* ---------- Ink (texto) ---------- */
  --ink-900: #14110d;
  --ink-800: #2a241d;
  --ink-700: #443b30;
  --ink-600: #635749;
  --ink-500: #8a7e6e;
  --ink-400: #b3a795;
  --ink-300: #d5ccbc;
  --ink-200: #e8e0cf;
  --ink-100: #f2ede0;
  --ink-50: #faf7f2;

  /* ---------- Surface ---------- */
  --surface-base: #ffffff;
  --surface-page: #faf7f2;
  --surface-elevated: #ffffff;
  --surface-sunken: #f2ede0;
  --surface-ink: #14110d;
  --surface-ink-soft: #2a241d;

  /* ---------- Semantic ---------- */
  --success-50: #e9f4ed;
  --success-500: #2b7a4b;
  --success-700: #1f5a36;

  --danger-50: #fbeae9;
  --danger-500: #c73e3a;
  --danger-700: #8e2825;

  --warning-50: #fbf1dc;
  --warning-500: #d89a23;
  --warning-700: #9c6e13;

  --info-50: #e7eff7;
  --info-500: #2e5b8c;
  --info-700: #1e406a;

  /* ---------- Spacing (grade base 4pt) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ---------- Radii ---------- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-pill: 999px;

  /* ---------- Shadows ---------- */
  --shadow-xs: 0 1px 2px rgba(58, 39, 16, 0.06);
  --shadow-sm: 0 2px 6px rgba(58, 39, 16, 0.08), 0 1px 2px rgba(58, 39, 16, 0.04);
  --shadow-md: 0 8px 20px rgba(58, 39, 16, 0.1), 0 2px 6px rgba(58, 39, 16, 0.06);
  --shadow-lg: 0 20px 40px rgba(58, 39, 16, 0.14), 0 8px 16px rgba(58, 39, 16, 0.08);
  --shadow-glow: 0 0 0 4px rgba(184, 137, 62, 0.18);
  --shadow-inner: inset 0 1px 2px rgba(58, 39, 16, 0.08);

  /* ---------- Famílias de tipo ---------- */
  --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* ---------- Escala de tipo ---------- */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 20px;
  --fs-xl: 24px;
  --fs-2xl: 30px;
  --fs-3xl: 38px;
  --fs-4xl: 48px;
  --fs-5xl: 60px;
  --fs-6xl: 76px;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-loose: 1.7;

  --tracking-tight: -0.02em;
  --tracking-snug: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-caps: 0.12em;

  /* ---------- Motion ---------- */
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;
}

/* ---------- Estilos semânticos base (DS §2.1) ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

html,
body {
  background: var(--surface-page);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-6xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink-900);
}
h1,
.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink-900);
}
h2,
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-3xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--ink-900);
}
h3,
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  color: var(--ink-900);
}
h4,
.h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  color: var(--ink-900);
}
h5,
.h5 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--ink-900);
}
h6,
.h6 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  color: var(--ink-800);
}

p,
.body {
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--ink-800);
}
.body-lg {
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
}
.body-sm {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--ink-700);
}
.muted {
  color: var(--ink-600);
}
.caption {
  font-size: var(--fs-xs);
  color: var(--ink-600);
  letter-spacing: var(--tracking-wide);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--gold-600);
}

a {
  color: var(--gold-700);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--gold-500) 30%, transparent);
  transition:
    color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast);
}
a:hover {
  color: var(--gold-800);
  border-bottom-color: var(--gold-600);
}
code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--ink-100);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-xs);
  color: var(--ink-800);
}

.numeric {
  font-family: var(--font-display);
  font-feature-settings:
    "tnum" 1,
    "lnum" 1;
  font-weight: 700;
  letter-spacing: var(--tracking-snug);
}

/* Foco visível — acessibilidade. Nunca remova sem substituir. */
:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

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