@import "tailwindcss";

@theme {
  --font-display: "Noto Serif Bengali", "Noto Serif", Georgia, serif;
  --font-sans: "Hind Siliguri", "Noto Sans Bengali", ui-sans-serif, system-ui, sans-serif;

  --color-bg: #f3efe8;
  --color-bg-warm: #ebe4d8;
  --color-surface: #faf8f4;
  --color-ink: #1a1714;
  --color-ink-soft: #3f3a34;
  --color-muted: #7a736a;
  --color-faint: #a39b91;
  --color-line: #ddd6cb;
  --color-accent: #3a4638;
  --color-accent-2: #2c362b;
  --color-accent-fg: #f6f3ee;
  --color-spice: #8b3a2a;

  --aspect-dish: 4 / 3;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-border: 0 0 0 1px rgb(26 23 20 / 0.06), 0 1px 2px -1px rgb(26 23 20 / 0.06),
    0 2px 4px 0 rgb(26 23 20 / 0.04);
  --shadow-border-hover: 0 0 0 1px rgb(26 23 20 / 0.1), 0 1px 2px -1px rgb(26 23 20 / 0.08),
    0 8px 20px -8px rgb(26 23 20 / 0.12);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-quick: 150ms;
  --motion-fast: 250ms;
  --motion-slow: 400ms;
}

@layer base {
  html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  html,
  body,
  #root {
    min-height: 100%;
    background: var(--color-bg);
    color: var(--color-ink);
  }

  body {
    font-family: var(--font-sans);
    line-height: 1.55;
  }

  h1,
  h2,
  h3 {
    font-family: var(--font-display);
    text-wrap: balance;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  p {
    text-wrap: pretty;
  }

  button:not(:disabled),
  [role="button"]:not(:disabled) {
    cursor: pointer;
  }

  img {
    outline: 1px solid rgb(26 23 20 / 0.08);
    outline-offset: -1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes heshel-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.heshel-enter {
  animation: heshel-enter var(--motion-slow) var(--ease-smooth-out) both;
}

.heshel-stagger > * {
  animation: heshel-enter var(--motion-slow) var(--ease-smooth-out) both;
}
.heshel-stagger > *:nth-child(1) {
  animation-delay: 0ms;
}
.heshel-stagger > *:nth-child(2) {
  animation-delay: 60ms;
}
.heshel-stagger > *:nth-child(3) {
  animation-delay: 120ms;
}
.heshel-stagger > *:nth-child(4) {
  animation-delay: 180ms;
}
.heshel-stagger > *:nth-child(5) {
  animation-delay: 240ms;
}
.heshel-stagger > *:nth-child(6) {
  animation-delay: 300ms;
}
.heshel-stagger > *:nth-child(n + 7) {
  animation-delay: 360ms;
}
