@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=DM+Sans:wght@400;500&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    /* Core Colors */
    --background: 30 37% 97%;
    --foreground: 0 0% 4%;
    --card: 33 35% 94%;
    --card-foreground: 33 29% 13%;
    --popover: 30 37% 97%;
    --popover-foreground: 0 0% 4%;
    --primary: 35 32% 41%;
    --primary-foreground: 0 0% 100%;
    --secondary: 35 25% 91%;
    --secondary-foreground: 0 0% 39%;
    --muted: 35 29% 92%;
    --muted-foreground: 29 13% 48%;
    --accent: 35 31% 50%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 37 24% 83%;
    --input: 37 24% 83%;
    --ring: 35 32% 41%;

    /* Extended Colors */
    --chart-1: 36 32% 71%;
    --chart-2: 36 32% 56%;
    --chart-3: 35 32% 41%;
    --chart-4: 36 32% 26%;
    --chart-5: 35 33% 11%;

    /* Sidebar Colors */
    --sidebar: 35 29% 92%;
    --sidebar-foreground: 0 0% 4%;
    --sidebar-primary: 35 32% 41%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 35 31% 50%;
    --sidebar-accent-foreground: 0 0% 100%;
    --sidebar-border: 37 24% 83%;
    --sidebar-ring: 35 32% 41%;

    /* Typography */
    --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: "Cormorant Garamond", Georgia, serif;
    --font-serif: ui-serif, Georgia, "Times New Roman", serif;
    --font-mono: ui-monospace, "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;

    /* Border Radius */
    --radius: 0.5rem;

    /* Shadows */
    --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
    --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
    --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
    --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
    --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
    --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
    --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
    --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
  }

  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground font-sans;
  
    font-family: var(--font-sans);
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading) !important;
  }
}

/* Custom utility classes */
@layer utilities {
  .animate-in {
    animation-duration: 0.2s;
    animation-fill-mode: both;
  }

  .fade-in {
    animation-name: fadeIn;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

/* Unless told otherwise, keep it for smooth scrolling */
html {
  scroll-behavior: smooth;
}
