@import "tailwindcss";

/* Toranji magazine tokens — premium editorial */
@theme {
  --color-primary: #1C1917;
  --color-accent: #C45C26;
  --color-neutral: #E7E5E4;
  --color-surface: #FAF7F2;
  --color-ink: #0C0A09;
  --color-ink-muted: #57534E;
  --color-teal: #0F766E;
  --font-sans: "Vazirmatn", system-ui, sans-serif;
  --font-display: "Estedad", "Vazirmatn", system-ui, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --shadow-card: 0 1px 3px rgba(12, 10, 9, 0.06), 0 8px 24px rgba(12, 10, 9, 0.04);
  --shadow-lift: 0 12px 40px rgba(12, 10, 9, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-surface);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

#root {
  min-height: 100vh;
}

/* Persian: avoid letter-spacing on joined script body copy */
:lang(fa) p,
:lang(fa) li,
:lang(fa) label {
  letter-spacing: normal;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Utility helpers used by sections */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
