@import 'tailwindcss';

@import 'tw-animate-css';

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

@font-face {
  font-family: 'Indivisa Sans';
  src: url('/fonts/indivisa/IndivisaTextSans-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Indivisa Sans';
  src: url('/fonts/indivisa/IndivisaTextSans-LightItalic.otf')
    format('opentype');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Indivisa Sans';
  src: url('/fonts/indivisa/IndivisaTextSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Indivisa Sans';
  src: url('/fonts/indivisa/IndivisaTextSans-RegularItalic.otf')
    format('opentype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Indivisa Sans';
  src: url('/fonts/indivisa/IndivisaTextSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Indivisa Sans';
  src: url('/fonts/indivisa/IndivisaTextSans-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Indivisa Sans';
  src: url('/fonts/indivisa/IndivisaTextSans-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Indivisa Sans';
  src: url('/fonts/indivisa/IndivisaTextSans-BlackItalic.otf')
    format('opentype');
  font-weight: 900;
  font-style: italic;
}

/* Serif */

@font-face {
  font-family: 'Indivisa Serif';
  src: url('/fonts/indivisa/IndivisaTextSerif-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Indivisa Serif';
  src: url('/fonts/indivisa/IndivisaTextSerif-LightItalic.otf')
    format('opentype');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Indivisa Serif';
  src: url('/fonts/indivisa/IndivisaTextSerif-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Indivisa Serif';
  src: url('/fonts/indivisa/IndivisaTextSerif-RegularItalic.otf')
    format('opentype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Indivisa Serif';
  src: url('/fonts/indivisa/IndivisaTextSerif-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Indivisa Serif';
  src: url('/fonts/indivisa/IndivisaTextSerif-BoldItalic.otf')
    format('opentype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Indivisa Serif';
  src: url('/fonts/indivisa/IndivisaTextSerif-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Indivisa Serif';
  src: url('/fonts/indivisa/IndivisaTextSerif-BlackItalic.otf')
    format('opentype');
  font-weight: 900;
  font-style: italic;
}

body {
  @apply m-0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

strong,
b,
.font-bold {
  font-family: 'Indivisa Sans', serif;
  font-weight: 900;
  /* Inter letter space */
  letter-spacing: -0.025em;
}

:root {
  --background: oklch(0.994 0 0);
  --foreground: oklch(0.275 0.1348 262.7129);
  --card: oklch(0.994 0 0);
  --card-foreground: oklch(0.275 0.1348 262.7129);
  --popover: oklch(0.9911 0 0);
  --popover-foreground: oklch(0.275 0.1348 262.7129);
  --primary: oklch(0.5332 0.2596 262.6358);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.954 0.0063 255.4755);
  --secondary-foreground: oklch(0.1344 0 0);
  --muted: oklch(0.9702 0 0);
  --muted-foreground: oklch(0.4386 0 0);
  --accent: oklch(0.9108 0.046 18.0291);
  --accent-foreground: oklch(0.5788 0.2316 259.638);
  --destructive: oklch(0.629 0.1902 23.0704);
  --destructive-foreground: oklch(1 0 0);
  --border: oklch(0.93 0.0094 286.2156);
  --input: oklch(0.9401 0 0);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0.8071 0.1021 247.9427);
  --chart-2: oklch(0.657 0.2293 16.8059);
  --chart-3: oklch(0.8718 0.1716 90.9505);
  --chart-4: oklch(0.5828 0.1809 259.7276);
  --chart-5: oklch(0.7043 0.0854 189.5354);
  --sidebar: oklch(0.9777 0.0051 247.8763);
  --sidebar-foreground: oklch(0 0 0);
  --sidebar-primary: oklch(0 0 0);
  --sidebar-primary-foreground: oklch(1 0 0);
  --sidebar-accent: oklch(0.9401 0 0);
  --sidebar-accent-foreground: oklch(0.6304 0.2472 28.2698);
  --sidebar-border: oklch(0.9401 0 0);
  --sidebar-ring: oklch(0 0 0);
  --font-sans: 'Indivisa Sans', sans-serif;
  --font-serif: 'Indivisa Serif', serif;
  --font-mono: 'Indivisa Sans', monospace;
  --radius: 1.4rem;
  --shadow-x: 0px;
  --shadow-y: 2px;
  --shadow-blur: 3px;
  --shadow-spread: 0px;
  --shadow-opacity: 0.16;
  --shadow-color: hsl(0 0% 0%);
  --shadow-2xs: 0px 2px 3px 0px hsl(0 0% 0% / 0.08);
  --shadow-xs: 0px 2px 3px 0px hsl(0 0% 0% / 0.08);
  --shadow-sm:
    0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 1px 2px -1px hsl(0 0% 0% / 0.16);
  --shadow:
    0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 1px 2px -1px hsl(0 0% 0% / 0.16);
  --shadow-md:
    0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 2px 4px -1px hsl(0 0% 0% / 0.16);
  --shadow-lg:
    0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 4px 6px -1px hsl(0 0% 0% / 0.16);
  --shadow-xl:
    0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 8px 10px -1px hsl(0 0% 0% / 0.16);
  --shadow-2xl: 0px 2px 3px 0px hsl(0 0% 0% / 0.4);
  --tracking-normal: -0.025em;
  --spacing: 0.27rem;
}

.dark {
  --background: oklch(0 0 0);
  --foreground: oklch(0.9551 0 0);
  --card: oklch(0.1564 0.0688 261.2771);
  --card-foreground: oklch(0.9551 0 0);
  --popover: oklch(0.2568 0.0076 274.6528);
  --popover-foreground: oklch(0.9551 0 0);
  --primary: oklch(0.6648 0.1771 264.5722);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.294 0.013 272.9312);
  --secondary-foreground: oklch(0.9551 0 0);
  --muted: oklch(0.294 0.013 272.9312);
  --muted-foreground: oklch(0.7155 0 0);
  --accent: oklch(0.342 0.0826 22.4427);
  --accent-foreground: oklch(0.8871 0.0542 256.13);
  --destructive: oklch(0.7106 0.1661 22.2162);
  --destructive-foreground: oklch(1 0 0);
  --border: oklch(0.3289 0.0092 268.3843);
  --input: oklch(0.3289 0.0092 268.3843);
  --ring: oklch(0.5186 0.2689 263.269);
  --chart-1: oklch(0.6686 0.1794 251.7436);
  --chart-2: oklch(0.6342 0.2516 22.4415);
  --chart-3: oklch(0.8718 0.1716 90.9505);
  --chart-4: oklch(11.492% 0.00001 271.152);
  --chart-5: oklch(0.8322 0.146 185.9404);
  --sidebar: oklch(0.1564 0.0688 261.2771);
  --sidebar-foreground: oklch(0.9551 0 0);
  --sidebar-primary: oklch(0.6048 0.2166 257.2136);
  --sidebar-primary-foreground: oklch(1 0 0);
  --sidebar-accent: oklch(0.2503 0.0763 24.5173);
  --sidebar-accent-foreground: oklch(0.6786 0.2095 24.6583);
  --sidebar-border: oklch(0.3289 0.0092 268.3843);
  --sidebar-ring: oklch(0.6048 0.2166 257.2136);
  --font-sans: 'Indivisa Sans', sans-serif;
  --font-serif: 'Indivisa Serif', serif;
  --font-mono: 'Indivisa Sans', monospace;
  --radius: 1.4rem;
  --shadow-x: 0px;
  --shadow-y: 2px;
  --shadow-blur: 3px;
  --shadow-spread: 0px;
  --shadow-opacity: 0.16;
  --shadow-color: hsl(0 0% 0%);
  --shadow-2xs: 0px 2px 3px 0px hsl(0 0% 0% / 0.08);
  --shadow-xs: 0px 2px 3px 0px hsl(0 0% 0% / 0.08);
  --shadow-sm:
    0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 1px 2px -1px hsl(0 0% 0% / 0.16);
  --shadow:
    0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 1px 2px -1px hsl(0 0% 0% / 0.16);
  --shadow-md:
    0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 2px 4px -1px hsl(0 0% 0% / 0.16);
  --shadow-lg:
    0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 4px 6px -1px hsl(0 0% 0% / 0.16);
  --shadow-xl:
    0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 8px 10px -1px hsl(0 0% 0% / 0.16);
  --shadow-2xl: 0px 2px 3px 0px hsl(0 0% 0% / 0.4);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--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);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);

  --font-sans: var(--font-sans);
  --font-mono: var(--font-mono);
  --font-serif: var(--font-serif);

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

  --shadow-2xs: var(--shadow-2xs);
  --shadow-xs: var(--shadow-xs);
  --shadow-sm: var(--shadow-sm);
  --shadow: var(--shadow);
  --shadow-md: var(--shadow-md);
  --shadow-lg: var(--shadow-lg);
  --shadow-xl: var(--shadow-xl);
  --shadow-2xl: var(--shadow-2xl);

  --tracking-tighter: calc(var(--tracking-normal) - 0.05em);
  --tracking-tight: calc(var(--tracking-normal) - 0.025em);
  --tracking-normal: var(--tracking-normal);
  --tracking-wide: calc(var(--tracking-normal) + 0.025em);
  --tracking-wider: calc(var(--tracking-normal) + 0.05em);
  --tracking-widest: calc(var(--tracking-normal) + 0.1em);
}

body {
  letter-spacing: var(--tracking-normal);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
}
