@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

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

@layer base {
  :root {
    --background: 210 20% 97%;
    --foreground: 215 25% 15%;

    --card: 0 0% 100%;
    --card-foreground: 215 25% 15%;

    --popover: 0 0% 100%;
    --popover-foreground: 215 25% 15%;

    --primary: 213 45% 40%;
    --primary-foreground: 0 0% 100%;

    --secondary: 210 18% 93%;
    --secondary-foreground: 215 25% 15%;

    --muted: 210 14% 94%;
    --muted-foreground: 215 10% 45%;

    --accent: 213 55% 52%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 214 15% 88%;
    --input: 214 15% 88%;
    --ring: 213 45% 40%;

    --radius: 0.75rem;

    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;

    /* Custom tokens */
    --hero-bg: 215 30% 20%;
    --hero-foreground: 0 0% 100%;
    --section-alt: 210 18% 95%;
    --teal-light: 213 30% 92%;
    --coral: 213 55% 52%;
    --coral-light: 213 40% 93%;
  }

  .dark {
    --background: 215 25% 8%;
    --foreground: 210 15% 95%;
    --card: 215 20% 12%;
    --card-foreground: 210 15% 95%;
    --popover: 215 20% 12%;
    --popover-foreground: 210 15% 95%;
    --primary: 213 45% 50%;
    --primary-foreground: 0 0% 100%;
    --secondary: 215 15% 18%;
    --secondary-foreground: 210 15% 95%;
    --muted: 215 15% 18%;
    --muted-foreground: 215 10% 60%;
    --accent: 213 55% 58%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 215 15% 22%;
    --input: 215 15% 22%;
    --ring: 213 45% 50%;
    --sidebar-background: 215 25% 8%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
    --hero-bg: 215 30% 12%;
    --hero-foreground: 0 0% 100%;
    --section-alt: 215 18% 10%;
    --teal-light: 213 25% 18%;
    --coral: 213 55% 58%;
    --coral-light: 213 35% 18%;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground font-sans;
    font-family: 'DM Sans', sans-serif;
  }

  h1, h2, h3, h4 {
    font-family: 'DM Serif Display', serif;
  }
}

@layer utilities {
  .text-balance {
    text-wrap: balance;
  }
}
