/* Academia — 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=Bona+Nova:wght@700&family=Frank+Ruhl+Libre:wght@400;500;700&display=swap");
@import "tailwindcss";

@theme {
  --color-bg: #F3EBDD;
  --color-surface: #FAF5EC;
  --color-surface-2: #EADFCB;
  --color-fg: #2A1F1A;
  --color-muted: #5A4A3F;
  --color-primary: #7A1F2B;
  --color-on-primary: #FAF5EC;
  --color-accent: #2F4F3A;
  --color-on-accent: #FAF5EC;
  --color-line: #C9B79C;
  --color-success: #2F5D3A;
  --color-warning: #85540F;
  --color-danger: #9B1C1C;

  --font-display: "Bona Nova", "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: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --radius-button: 3px;
  --radius-input: 3px;

  --shadow-card: 0 1px 2px rgba(42,31,26,0.08);
  --shadow-raised: 0 2px 4px rgba(42,31,26,0.08), 0 10px 24px rgba(42,31,26,0.10);
  --shadow-button: none;
}

@layer base {
  html { direction: rtl; }
  body {
    background-color: var(--color-bg);
    color: var(--color-fg);
    font-family: var(--font-sans);
    line-height: 1.75;
  }
  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
  }
  :focus-visible { outline: 3px solid #7A1F2B; 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 */
