import type { Config } from "tailwindcss";

const config: Config = {
  darkMode: ["class"],
  content: ["./src/**/*.{ts,tsx,mdx}"],
  theme: {
    container: {
      center: true,
      padding: { DEFAULT: "1.25rem", md: "2.5rem", xl: "3.5rem" },
      screens: { "2xl": "1440px" },
    },
    extend: {
      colors: {
        border: "#D9CEBD",
        input: "#B4A690",
        ring: "#8A6F3F",
        background: "#F7F3EB",
        foreground: "#24221D",
        primary: { DEFAULT: "#24221D", foreground: "#F7F3EB" },
        secondary: { DEFAULT: "#EDE5D6", foreground: "#24221D" },
        destructive: { DEFAULT: "#9B3B2E", foreground: "#FFFDF8" },
        muted: { DEFAULT: "#EFE9DD", foreground: "#6F6A60" },
        accent: { DEFAULT: "#B99A64", foreground: "#24221D" },
        popover: { DEFAULT: "#FFFDF8", foreground: "#24221D" },
        card: { DEFAULT: "#FFFDF8", foreground: "#24221D" },
        ivory: "#F7F3EB",
        cream: "#FFFDF8",
        sand: "#D8C5A5",
        charcoal: "#24221D",
        terracotta: "#A85F45",
        olive: "#59624A",
        gold: "#B99A64",
        "gold-ink": "#7A6339",
        walnut: "#5D5447",
        pebble: "#746A5C",
        line: "#D9CEBD",
        "line-strong": "#B4A690",
        parchment: "#F1EADF",
        ink: "#24221D",
      },
      fontFamily: {
        serif: ["var(--font-cormorant)", "Georgia", "Times New Roman", "serif"],
        sans: ["var(--font-manrope)", "ui-sans-serif", "system-ui", "sans-serif"],
        arabic: ["var(--font-noto-arabic)", "var(--font-manrope)", "sans-serif"],
      },
      fontSize: {
        xs: ["0.8125rem", { lineHeight: "1.2rem" }],
        sm: ["0.9375rem", { lineHeight: "1.45rem" }],
        base: ["1.0625rem", { lineHeight: "1.6rem" }],
        lg: ["1.1875rem", { lineHeight: "1.8rem" }],
        xl: ["1.3125rem", { lineHeight: "1.9rem" }],
        "2xl": ["1.5625rem", { lineHeight: "2.05rem" }],
      },
      letterSpacing: {
        luxe: "0.24em",
        wider: "0.14em",
        widest: "0.3em",
      },
      borderRadius: {
        none: "0",
        sm: "2px",
        DEFAULT: "3px",
        md: "4px",
        lg: "6px",
        xl: "8px",
      },
      boxShadow: {
        soft: "0 20px 60px -30px rgba(36, 34, 29, 0.35)",
        card: "0 1px 0 rgba(36, 34, 29, 0.04)",
        panel: "0 1px 2px rgba(36, 34, 29, 0.05), 0 12px 28px -24px rgba(36, 34, 29, 0.28)",
      },
      keyframes: {
        "fade-up": {
          "0%": { opacity: "0", transform: "translateY(18px)" },
          "100%": { opacity: "1", transform: "translateY(0)" },
        },
        "fade-in": {
          "0%": { opacity: "0" },
          "100%": { opacity: "1" },
        },
        marquee: {
          "0%": { transform: "translateX(0)" },
          "100%": { transform: "translateX(-50%)" },
        },
        "accordion-down": {
          from: { height: "0" },
          to: { height: "var(--radix-accordion-content-height)" },
        },
        "accordion-up": {
          from: { height: "var(--radix-accordion-content-height)" },
          to: { height: "0" },
        },
      },
      animation: {
        "fade-up": "fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both",
        "fade-in": "fade-in 1.2s ease both",
        marquee: "marquee 40s linear infinite",
        "accordion-down": "accordion-down 0.25s ease-out",
        "accordion-up": "accordion-up 0.25s ease-out",
      },
      aspectRatio: {
        portrait: "3 / 4",
        editorial: "4 / 5",
        wide: "16 / 9",
      },
    },
  },
  plugins: [],
};

export default config;
