@import "tailwindcss" source(none);
@source "../src";
@import "tw-animate-css";

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

/* Brand fonts — The Sylver Voice */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Great+Vibes&family=Lato:wght@300;400;700&display=swap");

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

  --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-border-subtle: var(--border-subtle);
  --color-input: var(--input);
  --color-ring: var(--ring);

  /* Brand-specific tokens */
  --color-sylver: var(--sylver);
  --color-gold: var(--gold);
  --color-gold-light: var(--gold-light);
  --color-gold-dark: var(--gold-dark);
  --color-charcoal: var(--charcoal);
  --color-olive: var(--olive);
  --color-purity: var(--purity);

  --font-serif: "Cormorant Garamond", serif;
  --font-sans: "Lato", sans-serif;
  --font-script: "Great Vibes", cursive;
}

:root {
  --radius: 0.25rem;

  /* The Sylver Voice palette */
  --sylver: #c0c0c0;
  --gold: #d4af37;
  --gold-light: #f0d98a;
  --gold-dark: #a07d18;
  --charcoal: #1c1c1c;
  --charcoal-mid: #2a2a2a;
  --charcoal-soft: #3a3a3a;
  --purity: #fafafa;
  --olive: #556b2f;

  --background: #1c1c1c;
  --foreground: #e8e8e8;
  --card: #222222;
  --card-foreground: #e8e8e8;
  --popover: #1a1a0e;
  --popover-foreground: #e8e8e8;
  --primary: #d4af37;
  --primary-foreground: #1c1c1c;
  --secondary: #2a2a2a;
  --secondary-foreground: #e8e8e8;
  --muted: #2a2a2a;
  --muted-foreground: #999999;
  --accent: #d4af37;
  --accent-foreground: #1c1c1c;
  --destructive: #b3261e;
  --destructive-foreground: #fafafa;
  --border: rgba(212, 175, 55, 0.3);
  --border-subtle: rgba(192, 192, 192, 0.15);
  --input: rgba(192, 192, 192, 0.15);
  --ring: #d4af37;
}

@layer base {
  * {
    border-color: var(--border-subtle);
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    background-color: var(--charcoal);
    color: var(--foreground);
    font-family: var(--font-sans);
    overflow-x: hidden;
  }

  [id] {
    scroll-margin-top: 80px;
  }
}

@layer utilities {
  .font-serif {
    font-family: var(--font-serif);
  }
  .font-script {
    font-family: var(--font-script);
  }

  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
      opacity 0.7s ease,
      transform 0.7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .animate-fade-up {
    animation: fadeUp 0.8s ease both;
  }
}
