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

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

/*
 * Eva Shii Jason design system.
 * Jungle Green #0F3D2E · Champagne Gold #C6A75E · Ivory #F6F2E9 ·
 * Terracotta #B5654B · Charcoal #1F1F1F (converted to oklch).
 * Fonts: Playfair Display (display), Montserrat (body), Great Vibes (script).
 */

@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);

  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;

  --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);

  /* Brand tokens */
  --color-jungle: var(--jungle);
  --color-jungle-deep: var(--jungle-deep);
  --color-gold: var(--gold);
  --color-gold-light: var(--gold-light);
  --color-terra: var(--terra);
  --color-terra-soft: var(--terra-soft);
  --color-charcoal: var(--charcoal);
  --color-ivory: var(--ivory);
  --color-ivory-dark: var(--ivory-dark);
}

:root {
  --radius: 0.625rem;
  --background: oklch(0.962 0.013 86.8); /* Ivory #F6F2E9 */
  --foreground: oklch(0.239 0 89.9); /* Charcoal #1F1F1F */
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.239 0 89.9);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.239 0 89.9);
  --primary: oklch(0.324 0.056 167.5); /* Jungle Green #0F3D2E */
  --primary-foreground: oklch(0.962 0.013 86.8);
  --secondary: oklch(0.926 0.023 87.2); /* darker ivory */
  --secondary-foreground: oklch(0.239 0 89.9);
  --muted: oklch(0.926 0.023 87.2);
  --muted-foreground: oklch(0.45 0.02 90);
  --accent: oklch(0.740 0.099 86.9); /* Champagne Gold #C6A75E */
  --accent-foreground: oklch(0.258 0.042 169.1);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.984 0.003 247.858);
  --border: oklch(0.740 0.099 86.9 / 28%);
  --input: oklch(0.740 0.099 86.9 / 28%);
  --ring: oklch(0.740 0.099 86.9 / 60%);

  --jungle: oklch(0.324 0.056 167.5);
  --jungle-deep: oklch(0.258 0.042 169.1);
  --gold: oklch(0.740 0.099 86.9);
  --gold-light: oklch(0.854 0.071 87.4);
  --terra: oklch(0.592 0.11 38.7);
  --terra-soft: oklch(0.592 0.11 38.7 / 14%);
  --charcoal: oklch(0.239 0 89.9);
  --ivory: oklch(0.962 0.013 86.8);
  --ivory-dark: oklch(0.926 0.023 87.2);
}

.dark {
  --background: oklch(0.258 0.042 169.1);
  --foreground: oklch(0.962 0.013 86.8);
  --card: oklch(0.324 0.056 167.5);
  --card-foreground: oklch(0.962 0.013 86.8);
  --popover: oklch(0.324 0.056 167.5);
  --popover-foreground: oklch(0.962 0.013 86.8);
  --primary: oklch(0.854 0.071 87.4);
  --primary-foreground: oklch(0.258 0.042 169.1);
  --secondary: oklch(0.324 0.056 167.5);
  --secondary-foreground: oklch(0.962 0.013 86.8);
  --muted: oklch(0.324 0.056 167.5);
  --muted-foreground: oklch(0.75 0.03 88);
  --accent: oklch(0.854 0.071 87.4);
  --accent-foreground: oklch(0.258 0.042 169.1);
  --destructive: oklch(0.704 0.191 22.216);
  --destructive-foreground: oklch(0.984 0.003 247.858);
  --border: oklch(0.854 0.071 87.4 / 22%);
  --input: oklch(0.854 0.071 87.4 / 22%);
  --ring: oklch(0.854 0.071 87.4 / 50%);
}

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

  body {
    background-color: var(--color-background);
    color: var(--color-foreground);
    font-family: var(--font-sans);
    /* Subtle paper texture over the ivory canvas */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.5 0 0 0 0 0.42 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  }

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

  ::selection {
    background: var(--gold);
    color: var(--jungle-deep);
  }
}

/* ---- Brand utilities ---- */

@utility hairline {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  border: none;
}

@utility eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

@utility gold-text {
  background: linear-gradient(115deg, var(--gold) 0%, var(--gold-light) 48%, var(--gold) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@utility arch {
  border-radius: 999px 999px 1.5rem 1.5rem;
  overflow: hidden;
}

@utility arch-sm {
  border-radius: 999px 999px 1rem 1rem;
  overflow: hidden;
}

@utility leaf-glow {
  background:
    radial-gradient(42% 60% at 18% 30%, var(--jungle) 0%, transparent 70%),
    radial-gradient(38% 55% at 82% 68%, var(--jungle) 0%, transparent 70%);
  opacity: 0.05;
  filter: blur(2px);
  pointer-events: none;
}

@utility section-pad {
  padding-block: clamp(3.5rem, 9vw, 5.5rem);
}

/* Scroll reveal */
@utility reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

@utility reveal-in {
  opacity: 1;
  transform: translateY(0);
}

/* Gold underline sweep for links */
@utility link-gold {
  position: relative;

  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 1px;
    width: 100%;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  &:hover::after,
  &[data-active="true"]::after {
    transform: scaleX(1);
  }
}

/* Oversized script monogram watermark */
@utility monogram-watermark {
  font-family: var(--font-script);
  color: var(--gold);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* Preloader */
@keyframes monogram-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.985);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@utility animate-monogram-pulse {
  animation: monogram-pulse 1.6s ease-in-out infinite;
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@utility animate-float-slow {
  animation: float-slow 7s ease-in-out infinite;
}

/* Card hover lift */
@utility card-lift {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);

  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -18px oklch(0.324 0.056 167.5 / 35%);
  }
}
