@import "tailwindcss";
@import "tw-animate-css";
@import "./fonts.css";
@import "./theme.css";

@custom-variant dark (&:is(.dark *));

@theme inline {
  /* Design system tokens (theme-aware via CSS vars from theme.css) */
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-banner-foreground: var(--banner-foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);

  /* ruby_ui specific */
  --color-warning: var(--warning);
  --color-warning-foreground: var(--warning-foreground);
  --color-success: var(--success);
  --color-success-foreground: var(--success-foreground);

  /* Border radius */
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  /* Font families */
  --font-mulish: "Mulish", sans-serif;
  --font-instrument: "Instrument Sans", sans-serif;
}

@utility container {
  margin-inline: auto;
  padding-inline: 1rem;
  max-width: 1400px;

  @variant sm {
    padding-inline: 2rem;
  }
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  html {
    overflow-x: hidden;
  }
  body {
    @apply bg-background text-foreground font-instrument antialiased;
    overflow-x: hidden;
    width: 100%;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    @apply font-mulish;
  }
}
