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

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

/*
 * Fabcon Dying Ltd. design system
 * Palette: deep navy, teal accent, warm off-white surfaces.
 */

@theme inline {
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);
  --radius-4xl: calc(var(--radius) + 16px);
  --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-navy: var(--navy);
  --color-navy-foreground: var(--navy-foreground);
  --color-teal: var(--teal);
  --color-teal-foreground: var(--teal-foreground);
  --color-sand: var(--sand);
  --color-sand-foreground: var(--sand-foreground);
}

@theme {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
}

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.004 95);
  --foreground: oklch(0.22 0.04 255);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.22 0.04 255);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.22 0.04 255);
  --primary: oklch(0.3 0.07 255);
  --primary-foreground: oklch(0.97 0.005 240);
  --secondary: oklch(0.94 0.01 240);
  --secondary-foreground: oklch(0.3 0.07 255);
  --muted: oklch(0.95 0.008 240);
  --muted-foreground: oklch(0.5 0.03 255);
  --accent: oklch(0.55 0.1 195);
  --accent-foreground: oklch(0.98 0.005 200);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.984 0.003 247.858);
  --border: oklch(0.9 0.01 250);
  --input: oklch(0.9 0.01 250);
  --ring: oklch(0.55 0.1 195);
  --navy: oklch(0.24 0.06 258);
  --navy-foreground: oklch(0.95 0.01 240);
  --teal: oklch(0.55 0.1 195);
  --teal-foreground: oklch(0.98 0.005 200);
  --sand: oklch(0.96 0.015 90);
  --sand-foreground: oklch(0.28 0.04 255);
}

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

  html {
    scroll-behavior: smooth;
  }

  body {
    background-color: var(--color-background);
    color: var(--color-foreground);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, .font-display {
    font-family: var(--font-display);
  }
}

@layer utilities {
  .container-site {
    margin-inline: auto;
    max-width: 72rem;
    padding-inline: 1.25rem;
  }

  @media (min-width: 768px) {
    .container-site {
      padding-inline: 2rem;
    }
  }

  .eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent);
  }

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

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-indicator {
    animation: scroll-bounce 2s ease-in-out infinite;
  }

  .texture-dots {
    background-image: radial-gradient(oklch(1 0 0 / 6%) 1px, transparent 1px);
    background-size: 22px 22px;
  }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(10px); opacity: 0.4; }
}
