@import "tailwindcss";

@theme {
  --color-canvas: #f4efe6;
  --color-surface: #fbf7f0;
  --color-cream: #fffdf8;
  --color-ink: #1c1915;
  --color-muted: #6e665c;
  --color-subtle: #8a8176;
  --color-sage: #4f5d4e;
  --color-sage-fg: #f6f2ea;
  --color-line: #ddd4c6;
  --color-scrim: #161410;
  --color-ring: #4f5d4e;

  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;

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

  --shadow-soft: 0 18px 40px -28px rgb(28 25 21 / 0.35);
  --aspect-photo: 4 / 3;
  --aspect-wide: 16 / 10;
}

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

  body {
    background-color: var(--color-canvas);
    color: var(--color-ink);
    font-family: var(--font-sans);
  }

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

  h1,
  h2,
  h3 {
    text-wrap: balance;
  }

  p {
    text-wrap: pretty;
  }

  ::selection {
    background: color-mix(in oklab, var(--color-sage) 28%, transparent);
    color: var(--color-ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.menu-panel[data-state="open"] {
  animation: menu-in 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-overlay[data-state="open"] {
  animation: overlay-in 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .menu-panel[data-state="open"],
  .menu-overlay[data-state="open"] {
    animation: none;
  }
}
