@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

@import "tailwindcss";

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

@theme inline {
  --color-background: hsl(var(--background));
  --color-foreground: hsl(var(--foreground));
  --color-border: hsl(var(--border));
  --color-input: hsl(var(--input));
  --color-ring: hsl(var(--ring));

  --color-card: hsl(var(--card));
  --color-card-foreground: hsl(var(--card-foreground));
  --color-card-border: hsl(var(--card-border));

  --color-popover: hsl(var(--popover));
  --color-popover-foreground: hsl(var(--popover-foreground));
  --color-popover-border: hsl(var(--popover-border));

  --color-primary: hsl(var(--primary));
  --color-primary-foreground: hsl(var(--primary-foreground));
  --color-primary-border: var(--primary-border);

  --color-secondary: hsl(var(--secondary));
  --color-secondary-foreground: hsl(var(--secondary-foreground));
  --color-secondary-border: var(--secondary-border);

  --color-muted: hsl(var(--muted));
  --color-muted-foreground: hsl(var(--muted-foreground));
  --color-muted-border: var(--muted-border);

  --color-accent: hsl(var(--accent));
  --color-accent-foreground: hsl(var(--accent-foreground));
  --color-accent-border: var(--accent-border);

  --color-destructive: hsl(var(--destructive));
  --color-destructive-foreground: hsl(var(--destructive-foreground));
  --color-destructive-border: var(--destructive-border);

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

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

:root, .dark {
  --button-outline: rgba(255,255,255, .10);
  --badge-outline: rgba(255,255,255, .05);
  --opaque-button-border-intensity: -8;
  --elevate-1: rgba(255,255,255, .03);
  --elevate-2: rgba(255,255,255, .08);

  /* Deep charcoal background #0a0a0a */
  --background: 0 0% 4%;
  /* Ivory foreground #f5f0e8 */
  --foreground: 36 33% 94%;
  /* Border #222222 */
  --border: 0 0% 13%;

  /* Card #111111 */
  --card: 0 0% 7%;
  --card-foreground: 36 33% 94%;
  --card-border: 0 0% 13%;

  --sidebar: 0 0% 4%;
  --sidebar-foreground: 36 33% 94%;
  --sidebar-border: 0 0% 13%;
  --sidebar-primary: 46 65% 52%;
  --sidebar-primary-foreground: 0 0% 4%;
  --sidebar-accent: 0 0% 10%;
  --sidebar-accent-foreground: 36 33% 94%;
  --sidebar-ring: 46 65% 52%;

  --popover: 0 0% 7%;
  --popover-foreground: 36 33% 94%;
  --popover-border: 0 0% 13%;

  /* Gold #d4af37 */
  --primary: 46 65% 52%;
  --primary-foreground: 0 0% 4%;

  /* Beige/Ivory accent #ede8dc */
  --secondary: 42 27% 90%;
  --secondary-foreground: 0 0% 4%;

  /* Obsidian muted #1a1a1a */
  --muted: 0 0% 10%;
  --muted-foreground: 42 27% 70%;

  /* Gold accent variant #c9a96e */
  --accent: 46 45% 61%;
  --accent-foreground: 0 0% 4%;

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

  --input: 0 0% 15%;
  --ring: 46 65% 52%;
  --chart-1: 46 65% 52%;
  --chart-2: 42 27% 90%;
  --chart-3: 0 0% 7%;
  --chart-4: 0 0% 13%;
  --chart-5: 0 0% 10%;

  --app-font-sans: 'Cormorant Garamond', sans-serif;
  --app-font-serif: 'Playfair Display', serif;
  --app-font-mono: Menlo, monospace;
  --radius: 0.25rem;
  
  --shadow-2xs: 0px 2px 0px 0px rgba(0,0,0,0.5);
  --shadow-xs: 0px 2px 0px 0px rgba(0,0,0,0.5);
  --shadow-sm: 0px 2px 0px 0px rgba(0,0,0,0.5), 0px 1px 2px -1px rgba(0,0,0,0.5);
  --shadow: 0px 2px 0px 0px rgba(0,0,0,0.5), 0px 1px 2px -1px rgba(0,0,0,0.5);
  --shadow-md: 0px 2px 0px 0px rgba(0,0,0,0.5), 0px 2px 4px -1px rgba(0,0,0,0.5);
  --shadow-lg: 0px 2px 0px 0px rgba(0,0,0,0.5), 0px 4px 6px -1px rgba(0,0,0,0.5);
  --shadow-xl: 0px 2px 0px 0px rgba(0,0,0,0.5), 0px 8px 10px -1px rgba(0,0,0,0.5);
  --shadow-2xl: 0px 2px 0px 0px rgba(0,0,0,0.5);
  --tracking-normal: 0em;
  --spacing: 0.25rem;

  --sidebar-primary-border: hsl(var(--sidebar-primary));
  --sidebar-accent-border: hsl(var(--sidebar-accent));
  --primary-border: hsl(var(--primary));
  --secondary-border: hsl(var(--secondary));
  --muted-border: hsl(var(--muted));
  --accent-border: hsl(var(--accent));
  --destructive-border: hsl(var(--destructive));
}

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

  body {
    @apply font-sans antialiased bg-background text-foreground selection:bg-primary/30 selection:text-primary-foreground;
  }
  
  h1, h2, h3, h4, h5, h6 {
    @apply font-serif font-normal;
  }
}
