@import "tailwindcss";
@import url('https://fonts.googleapis.com/css2?family=Alike&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Paleta HomeNest */
  --hn-cream: #FEF3C7;
  --hn-cream-light: #FFF9E6;
  --hn-cream-dark: #F3E2B3;
  --hn-brown: #8B5E3C;
  --hn-brown-dark: #6F4B30;
  --hn-brown-light: #A87B5D;
  --hn-sage: #84CC16;
  --hn-sage-light: #D9F99D;
  --hn-sage-dark: #65A30D;
  --hn-bark: #3E2C1C;
  --hn-bark-muted: #7A5C44;
  --hn-bark-light: #5C4634;
  --hn-sand: #E9D5B7;
  --hn-sand-light: #F5EBD8;
  --hn-white: #FFFFFF;
  --hn-rose: #EF4444;

  /* Uso semántico */
  --text: var(--hn-bark);
  --text-muted: var(--hn-bark-muted);
  --text-heading: var(--hn-bark);
  --bg: var(--hn-cream);
  --surface: var(--hn-cream-light);
  --border: var(--hn-sand);
  --accent: var(--hn-brown);
  --accent-hover: var(--hn-brown-dark);
  --accent-bg: var(--hn-sand-light);

  --font-sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Alike', Georgia, serif;
  --font-heading: 'Alike', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  width: 100%;
  max-width: 100%;
  margin: 0;
  text-align: left;
  border: none;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--text-heading);
  letter-spacing: -0.01em;
  margin: 0;
}

.font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

p {
  margin: 0;
}

/* Scrollbar cálida */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(139, 94, 60, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 94, 60, 0.4);
}
