/* Vintage Analog / Retro Film — Tailwind CSS v4 theme, Hebrew / RTL.
   Put this in your main CSS file (instead of a bare @import "tailwindcss").
   In RTL use logical utilities: ms-* me-* ps-* pe-* start-* end-* text-start text-end. */
@import url("https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@400;500;700&display=swap");
@import "tailwindcss";

@theme {
  --color-bg: #F3E6CC;
  --color-surface: #FBF4E4;
  --color-surface-2: #EEDDBD;
  --color-fg: #3A2A1C;
  --color-muted: #634C36;
  --color-primary: #8A4B2A;
  --color-on-primary: #FBF4E4;
  --color-accent: #4A7B7C;
  --color-on-accent: #FFFFFF;
  --color-line: #CBB08A;
  --color-success: #3F6B3A;
  --color-warning: #8A5A12;
  --color-danger: #9C2F2A;

  --font-display: "Frank Ruhl Libre", "Times New Roman", serif;
  --font-sans: "Frank Ruhl Libre", "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", "Frank Ruhl Libre", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --text-display: 52px;
  --text-h1: 42px;
  --text-h2: 33px;
  --text-h3: 27px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-button: 6px;
  --radius-input: 6px;

  --shadow-card: -2px 3px 0 rgba(90,60,30,0.10), -6px 12px 24px rgba(90,60,30,0.14);
  --shadow-raised: -3px 5px 0 rgba(90,60,30,0.12), -10px 20px 36px rgba(90,60,30,0.20);
  --shadow-button: -1px 2px 0 rgba(58,42,28,0.25);
}

@layer base {
  html { direction: rtl; }
  body {
    background-color: var(--color-bg);
    background-image: repeating-radial-gradient(circle at 17% 32%, rgba(58,42,28,0.035) 0 1px, transparent 1px 3px), repeating-radial-gradient(circle at 73% 61%, rgba(58,42,28,0.03) 0 1px, transparent 1px 4px), radial-gradient(700px 500px at 100% 0%, rgba(232,140,80,0.22), transparent 60%), radial-gradient(1200px 900px at 50% 50%, transparent 60%, rgba(90,60,30,0.18) 100%);
    background-attachment: fixed;
    color: var(--color-fg);
    font-family: var(--font-sans);
    line-height: 1.7;
  }
  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
  }
  :focus-visible { outline: 3px solid #4A7B7C; outline-offset: 2px; }
}

/* Card / button recipes for this style:
   card:    bg-surface border-[1px] border-line rounded-lg shadow-card p-6
   button:  bg-primary text-on-primary rounded-button shadow-button px-5 min-h-11 font-semibold border-[1px] border-primary
   input:   bg-surface border-[1px] border-line rounded-input px-3 min-h-11 */
