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

body {
  font-family: Arial, Helvetica, sans-serif;
}

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 142.1 76.2% 36.3%;
    --primary-foreground: 355.7 100% 97.3%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 142.1 76.2% 36.3%;
    --radius: 0.5rem;
    --chart-1: 142.1 76.2% 36.3%;
    --chart-2: 240 4.8% 95.9%;
    --chart-3: 240 4.8% 95.9%;
    --chart-4: 240 4.8% 105.9%;
    --chart-5: 142.1 76.2% 46.3%;

    --sidebar-background: 0 0% 97%;
    --sidebar-foreground: 240 10% 38%;
    --sidebar-primary: 142 76% 33%;
    --sidebar-primary-foreground: 356 100% 100%;
    --sidebar-accent: 240 5% 75%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 240 6% 87%;
    --sidebar-ring: 142 76% 33%;
  }

  .dark {
    --background: 20 14.3% 4.1%;
    --foreground: 0 0% 95%;
    --card: 24 9.8% 10%;
    --card-foreground: 0 0% 95%;
    --popover: 0 0% 9%;
    --popover-foreground: 0 0% 95%;
    --primary: 142.1 70.6% 45.3%;
    --primary-foreground: 144.9 80.4% 10%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 15%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 12 6.5% 15.1%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 85.7% 97.3%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 142.4 71.8% 29.2%;
    --radius: 0.5rem;
    --chart-1: 142.1 70.6% 45.3%;
    --chart-2: 240 3.7% 15.9%;
    --chart-3: 12 6.5% 15.1%;
    --chart-4: 12 6.5% 25.1%;
    --chart-5: 142.1 70.6% 55.3%;

    --sidebar-background: 0 0% 0%;
    --sidebar-foreground: 0 0% 50%;
    --sidebar-primary: 142 71% 25%;
    --sidebar-primary-foreground: 145 80% 100%;
    --sidebar-accent: 12 7% 7%;
    --sidebar-accent-foreground: 0 0% 98%;
    --sidebar-border: 240 4% 8%;
    --sidebar-ring: 142 72% 21%;
  }
}

@layer base {
  @font-face {
    font-family: "Poppins";
    src: url("./fonts/Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
  }

  @font-face {
    font-family: "Poppins";
    src: url("./fonts/Poppins-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
  html {
    scroll-behavior: smooth;
  }

  .halftone {
    --dotSize: 0.25rem;
    --stop1: 3%;
    --stop2: 60%;
  }

  .halftone::after {
    /* Cover our element */
    content: "";
    position: absolute;
    inset: 0;

    /* Dotted background */
    background-image: radial-gradient(
      circle at center,
      hsl(var(--foreground)) var(--dotSize),
      transparent 0
    );
    background-size: 2rem 2rem;
    background-position: 0 0, 0.65rem 0.65rem;
  }
  .halftone::after {
    mask-image: linear-gradient(
      hsl(var(--background) / 0),
      hsl(var(--background) / 0.25),
      hsl(var(--background) / 0)
    );
  }
  .hero-figure-gradient {
    background: linear-gradient(
      hsl(var(--background) / 0.95),
      1%,
      hsl(var(--background))
    );
  }
}

nav.navbar {
  background-color: transparent;
  background-image: radial-gradient(
    transparent 1px,
    var(--token-f32baa44-90b8-42a5-8bca-ffba9d95b23a, hsl(var(--background)))
      1px
  );
  background-size: 4px 4px;
  backdrop-filter: blur(3px);
  mask: linear-gradient(rgb(0, 0, 0) 60%, rgba(0, 0, 0, 0) 100%);
  opacity: 1;
}

nav.navbar::before {
  display: block;
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.2;
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}
