/* ============================================
   Oded Liphshitz Plays — Stylesheet
   Literary / Dark / Bilingual HE + EN
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Inter:wght@300;400;500&family=Frank+Ruhl+Libre:wght@300;400;500;700&display=swap');

:root {
  --ink:        #0E0B08;
  --ink-soft:   #1E1A14;
  --paper:      #F5F0E8;
  --paper-dark: #EDE7D9;
  --cream:      #FAF7F2;
  --gold:       #B8892A;
  --gold-light: #D4AA55;
  --gold-pale:  #F5E8CC;
  --red:        #7A1C1C;
  --gray:       #6B6058;
  --gray-light: #A09890;
  --white:      #FFFFFF;

  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans:  'Inter', -apple-system, sans-serif;
  --font-he:    'Frank Ruhl Libre', 'Arial Hebrew', serif;

  --max-width:   1100px;
  --section-pad: 100px 24px;
  --radius:      3px;
  --radius-lg:   8px;
  --shadow:      0 2px 20px rgba(14,11,8,0.1);
  --shadow-lg:   0 8px 40px rgba(14,11,8,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* RTL */
body[dir="rtl"] {
  font-family: var(--font-he);
  text-align: right;
}
body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4 { font-family: var(--font-he); }
body[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.88rem; }
body[dir="rtl"] .nav-links { flex-direction: row-reverse; }
body[dir="rtl"] .play-meta { flex-direction: row-reverse; }
body[dir="rtl"] .play-card-footer { flex-direction: row-reverse; }
body[dir="rtl"] .timeline-item { flex-direction: row-reverse; }
body[dir="rtl"] .contact-row { flex-direction: row-reverse; }
body[dir="rtl"] .bio-grid { direction: rtl; }
body[dir="rtl"] .footer-grid { direction: rtl; }
body[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
body[dir="rtl"] .filter-bar { flex-direction: row-reverse; }
body[dir="rtl"] .award-item { flex-direction: row-reverse; }
body[dir="rtl"] .blockquote { border-left: none; border-right: 3px solid var(--gold); padding-left: 0; padding-right: 28px; }

body[dir="ltr"] .he-only { display: none; }
body[dir="rtl"] .en-only { display: none; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--ink);
  font-weight: 400;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 300; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 400; }
h4 { font-size: 1rem; font-weight: 400; }

p { margin-bottom: 1.2em; color: var(--gray); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.85;
  font-weight: 300;
}
body[dir="rtl"] .lead { font-weight: 400; font-size: 1.1rem; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 28px;
  margin: 40px 0;
}
.blockquote p {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
  margin: 0;
}
body[dir="rtl"] .blockquote p { font-style: normal; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-pad); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
body[dir="rtl"] .btn { letter-spacing: 0; text-transform: none; font-family: var(--font-he); font-size: 0.9rem; }
.btn-ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-ink:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(14,11,8,0.35);
}
.btn-outline:hover { border-color: var(--ink); background: rgba(14,11,8,0.04); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover { background: #9A7220; border-color: #9A7220; }

/* ============================================
   LANG TOGGLE
   ============================================ */
.lang-toggle {
  display: flex;
  border: 1px solid rgba(14,11,8,0.2);
  border-radius: 2px;
  overflow: hidden;
}
.lang-btn {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--gray);
  transition: all 0.2s;
}
.lang-btn.active {
  background: var(--ink);
  color: var(--paper);
}
.nav-dark .lang-toggle { border-color: rgba(245,240,232,0.25); }
.nav-dark .lang-btn { color: rgba(245,240,232,0.5); }
.nav-dark .lang-btn.active { background: rgba(245,240,232,0.15); color: var(--paper); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(245,240,232,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(14,11,8,0.08);
}
.nav-dark {
  background: transparent;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--paper);
  transition: color 0.3s;
}
.nav.scrolled .nav-logo { color: var(--ink); }
.nav-logo em { font-style: italic; color: var(--gold-light); }
.nav.scrolled .nav-logo em { color: var(--gold); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s, opacity 0.2s;
}
body[dir="rtl"] .nav-links a { letter-spacing: 0; text-transform: none; font-size: 0.88rem; }
.nav-dark .nav-links a { color: rgba(245,240,232,0.7); }
.nav-dark .nav-links a:hover { color: var(--paper); }
.nav.scrolled .nav-links a { color: var(--gray); }
.nav.scrolled .nav-links a:hover { color: var(--ink); }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--paper); transition: all 0.3s;
}
.nav.scrolled .nav-burger span { background: var(--ink); }

/* ============================================
   HERO — DARK THEATRICAL
   ============================================ */
.hero {
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  position: relative;
  overflow: hidden;
}
/* Slideshow */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.38);
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
/* Dark gradient overlay on top of slides */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(14,11,8,0.35) 0%,
    rgba(14,11,8,0.15) 40%,
    rgba(14,11,8,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Ccircle cx='40' cy='40' r='1'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding-top: 80px;
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: 32px;
}
body[dir="rtl"] .hero-label { letter-spacing: 0; text-transform: none; font-family: var(--font-he); font-size: 0.85rem; }
.hero h1 {
  color: var(--paper);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
body[dir="rtl"] .hero h1 em { font-style: normal; }
.hero-sub {
  font-size: 1rem;
  color: rgba(245,240,232,0.55);
  letter-spacing: 0.04em;
  margin-bottom: 48px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
body[dir="rtl"] .hero-sub { flex-direction: row-reverse; letter-spacing: 0; }
.hero-sub span { display: flex; align-items: center; gap: 8px; }
.hero-sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold-light); flex-shrink: 0; }
.hero-actions { display: flex; gap: 12px; justify-content: center; }

.hero-scroll {
  position: absolute;
  bottom: 40px; right: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(245,240,232,0.3);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 56px;
  background: rgba(245,240,232,0.2);
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 20px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(14,11,8,0.18);
  background: transparent;
  color: var(--gray);
  border-radius: 2px;
  transition: all 0.2s;
}
body[dir="rtl"] .filter-btn { letter-spacing: 0; text-transform: none; font-family: var(--font-he); font-size: 0.85rem; }
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================
   PLAYS GRID
   ============================================ */
.plays-section { background: var(--paper); }
.plays-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(14,11,8,0.08);
}
.play-card {
  background: var(--paper);
  padding: 36px 32px;
  transition: background 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.play-card:hover { background: var(--paper-dark); }
.play-card.featured { background: var(--ink); }
.play-card.featured:hover { background: var(--ink-soft); }
.play-card.featured .play-he,
.play-card.featured .play-en,
.play-card.featured .play-desc { color: var(--paper); }
.play-card.featured .play-genre { color: var(--gold-light); }
.play-card.featured .play-card-footer { border-top-color: rgba(245,240,232,0.12); }
.play-card.featured .play-year { color: rgba(245,240,232,0.45); }
.play-card.featured .play-award { color: var(--gold-light); }

.play-he {
  font-family: var(--font-he);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.play-en {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--gray);
}
/* English mode: flip prominence */
body[dir="ltr"] .play-he {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gray);
}
body[dir="ltr"] .play-en {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  order: -1;
}
.play-genre {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
body[dir="rtl"] .play-genre { letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.play-desc { font-size: 0.88rem; color: var(--gray); line-height: 1.65; }
.play-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(14,11,8,0.08);
  margin-top: auto;
}
.play-year { font-size: 0.78rem; color: var(--gray-light); }
.play-award {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 500;
}

/* Play card photo */
.play-card-img {
  margin: -36px -32px 20px;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.play-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.play-card:hover .play-card-img img { transform: scale(1.04); }
.play-card.featured .play-card-img { margin: -36px -32px 20px; }

/* ============================================
   SHORT TEXTS
   ============================================ */
.texts-section { background: var(--ink); padding: var(--section-pad); }
.texts-section .eyebrow { color: var(--gold-light); }
.texts-section h2 { color: var(--paper); }
.texts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(245,240,232,0.08);
  margin-top: 48px;
}
.text-card {
  background: var(--ink);
  padding: 32px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.text-card:hover {
  background: rgba(245,240,232,0.04);
  border-color: rgba(245,240,232,0.1);
}
.text-card-type {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 12px;
  display: block;
}
body[dir="rtl"] .text-card-type { letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.text-card-title {
  font-family: var(--font-he);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 8px;
  line-height: 1.4;
}
.text-card-excerpt {
  font-size: 0.88rem;
  color: rgba(245,240,232,0.5);
  line-height: 1.7;
}

/* ============================================
   BIO SECTION
   ============================================ */
.bio-section { background: var(--paper-dark); padding: var(--section-pad); }
.bio-grid { display: grid; grid-template-columns: 340px 1fr; gap: 80px; align-items: start; }
.bio-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--ink-soft);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.bio-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 25%, rgba(184,137,42,0.12) 0%, transparent 55%);
}
.bio-content h2 { margin-bottom: 24px; }
.bio-content .lead { margin-bottom: 28px; }
.bio-content p { margin-bottom: 1.3em; }

.awards-list { margin: 36px 0; }
.award-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(14,11,8,0.08);
}
.award-item:last-child { border-bottom: none; }
.award-icon-box {
  width: 36px; height: 36px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.award-item strong { display: block; font-weight: 600; color: var(--ink); font-size: 0.9rem; margin-bottom: 2px; }
.award-item p { font-size: 0.82rem; color: var(--gray); margin: 0; }

.education-timeline { margin-top: 36px; }
.timeline-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(14,11,8,0.07);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-year {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  min-width: 64px;
  padding-top: 2px;
}
.timeline-item strong { display: block; color: var(--ink); font-size: 0.92rem; }
.timeline-item p { font-size: 0.82rem; color: var(--gray); margin: 4px 0 0; }

/* ============================================
   ARTICLES / PRESS
   ============================================ */
.press-section { background: var(--paper); padding: var(--section-pad); }
.press-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid rgba(14,11,8,0.1); margin-top: 48px; }
.press-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(14,11,8,0.08);
  transition: background 0.15s;
}
.press-item:hover { background: rgba(14,11,8,0.02); margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
body[dir="rtl"] .press-item { flex-direction: row-reverse; }
.press-year { font-size: 0.78rem; color: var(--gray-light); min-width: 44px; flex-shrink: 0; }
.press-source { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); min-width: 100px; flex-shrink: 0; }
body[dir="rtl"] .press-source { letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.press-title { font-family: var(--font-serif); font-size: 1.05rem; color: var(--ink); flex: 1; }
body[dir="rtl"] .press-title { font-family: var(--font-he); font-size: 0.95rem; }

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  background: var(--ink);
  padding: var(--section-pad);
}
.contact-section .eyebrow { color: var(--gold-light); }
.contact-section h2 { color: var(--paper); margin-bottom: 16px; }
.contact-section .lead { color: rgba(245,240,232,0.65); margin-bottom: 56px; }
.contact-row {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.contact-block { flex: 1; min-width: 200px; }
.contact-block h4 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.35);
  margin-bottom: 12px;
  font-weight: 500;
}
body[dir="rtl"] .contact-block h4 { font-family: var(--font-he); letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.contact-block a,
.contact-block p {
  color: var(--paper);
  font-size: 1.05rem;
  font-family: var(--font-serif);
  margin: 0;
}
body[dir="rtl"] .contact-block a,
body[dir="rtl"] .contact-block p { font-family: var(--font-he); font-size: 0.95rem; }
.contact-block a:hover { color: var(--gold-light); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: rgba(5,4,3,1);
  padding: 40px 32px 28px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(245,240,232,0.4);
  font-weight: 400;
}
.footer-logo em { font-style: italic; color: rgba(184,137,42,0.6); }
.footer-copy {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.25);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
body[dir="rtl"] .footer-links a { letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.footer-links a:hover { color: rgba(245,240,232,0.6); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background: var(--ink);
  padding: 140px 32px 72px;
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 { color: var(--paper); max-width: 700px; }
.page-hero .lead { color: rgba(245,240,232,0.65); max-width: 560px; margin-top: 20px; }

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header { margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header .lead { max-width: 560px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .plays-grid { grid-template-columns: repeat(2, 1fr); }
  .bio-grid { grid-template-columns: 1fr; gap: 48px; }
  .bio-photo { aspect-ratio: 1; max-width: 320px; }
  .texts-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  :root { --section-pad: 72px 20px; }
  .plays-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--paper); padding: 24px;
    box-shadow: var(--shadow); gap: 20px;
    text-transform: none; letter-spacing: 0;
  }
  .nav.nav-dark .nav-links.open { background: var(--ink); }
  .nav.nav-dark .nav-links.open a { color: var(--paper); }
  .nav-burger { display: flex; }
  .contact-row { flex-direction: column; gap: 32px; }
  .hero { padding: 0 20px 64px; }
  .press-item { flex-direction: column; gap: 4px; }
  body[dir="rtl"] .press-item { flex-direction: column; }
}

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(245,240,232,0.15);
}

.blog-card {
  background: var(--ink);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
}

.blog-card:hover { background: var(--ink-soft); }

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

body[dir="rtl"] .blog-card-meta { flex-direction: row-reverse; }

.blog-date {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-family: var(--font-sans);
}

body[dir="rtl"] .blog-date { letter-spacing: 0; font-size: 0.78rem; }

.blog-num {
  font-size: 0.7rem;
  color: rgba(245,240,232,0.3);
  font-family: var(--font-sans);
}

.blog-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--paper);
  line-height: 1.3;
}

body[dir="rtl"] .blog-title { font-family: var(--font-he); font-size: 1.2rem; }

.blog-excerpt {
  font-size: 0.88rem;
  color: rgba(245,240,232,0.5);
  line-height: 1.7;
  flex: 1;
}

body[dir="rtl"] .blog-excerpt { font-size: 0.85rem; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { padding: 28px 20px; }
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ============================================
   DESIGN UPGRADES
   ============================================ */

/* Page fade-in */
body { animation: pageFadeIn 0.5s ease; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Eyebrow decorative underline */
.eyebrow {
  position: relative;
  padding-bottom: 14px;
}
.eyebrow::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 1px;
  background: var(--gold);
}
body[dir="rtl"] .eyebrow::after { left: auto; right: 0; }
.texts-section .eyebrow::after,
.page-hero .eyebrow::after,
.contact-section .eyebrow::after { background: var(--gold-light); }

/* Hero — the background-image with photo is set in the main .hero rule above */
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(14,11,8,0.6), transparent);
  pointer-events: none;
}

/* Hero name — dramatic display */
.hero h1 {
  letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}

/* Hero scroll — pulse animation */
.hero-scroll::after {
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

/* Navigation — active page indicator */
.nav.scrolled .nav-links a { position: relative; }
.nav.scrolled .nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav.scrolled .nav-links a:hover::after { transform: scaleX(1); }

/* Play cards — category color accent on top */
.play-card {
  border-top: 3px solid transparent;
  position: relative;
}
.play-card[data-cat="drama"]    { border-top-color: var(--gold); }
.play-card[data-cat="comedy"]   { border-top-color: #5A8A6A; }
.play-card[data-cat="political"]{ border-top-color: var(--red); }
.play-card.featured             { border-top-color: var(--gold-light); }

/* Play cards — stronger hover */
.play-card {
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.play-card:hover {
  background: var(--paper-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(14,11,8,0.1);
  z-index: 1;
}
.play-card.featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14,11,8,0.35);
}

/* Play card — clickable cursor */
.play-card { cursor: pointer; }

/* Play card — title size bump */
.play-he { font-size: 1.45rem; }

/* Play card — description line clamp */
.play-desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Text cards — hover lift */
.text-card {
  transition: background 0.2s, transform 0.2s;
}
.text-card:hover {
  background: rgba(245,240,232,0.06);
  transform: translateY(-2px);
}

/* Text card excerpt — poetry-style line spacing */
.text-card-excerpt {
  line-height: 1.9;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: rgba(245,240,232,0.55);
}
body[dir="rtl"] .text-card-excerpt { font-family: var(--font-he); }

/* Section header — decorative rule */
.section-header::before {
  content: '';
  display: block;
  width: 48px; height: 1px;
  background: var(--gold);
  margin-bottom: 32px;
}

/* Bio photo — gold ring overlay on hover */
.bio-photo {
  transition: box-shadow 0.3s;
}
.bio-photo:hover {
  box-shadow: 0 0 0 4px var(--gold-pale), var(--shadow-lg);
}

/* Blog card — number badge style */
.blog-num {
  background: rgba(245,240,232,0.08);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.68rem;
}

/* Blog card — title hover color */
.blog-card:hover .blog-title { color: var(--gold-light); }

/* Blog card — read more indicator */
.blog-card::after {
  content: '→';
  display: block;
  color: rgba(245,240,232,0.2);
  font-size: 1.2rem;
  transition: color 0.2s, transform 0.2s;
  margin-top: auto;
}
body[dir="rtl"] .blog-card::after { content: '←'; }
.blog-card:hover::after {
  color: var(--gold-light);
  transform: translateX(4px);
}
body[dir="rtl"] .blog-card:hover::after { transform: translateX(-4px); }

/* Press items — source label size */
.press-source { font-size: 0.78rem; font-weight: 600; }

/* Press item — title hover */
.press-item:hover .press-title { color: var(--gold); }
a.press-title:hover { color: var(--gold); }

/* Contact section — link hover */
.contact-block a:hover {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer — top border accent */
.footer {
  border-top: 1px solid rgba(184,137,42,0.2);
}

/* Buttons — stronger hover */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.06);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.btn:hover::before { transform: translateX(0); }

/* Award icon — hover glow */
.award-icon-box { transition: background 0.2s, box-shadow 0.2s; }
.award-item:hover .award-icon-box {
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-pale);
}

/* Timeline — hover highlight */
.timeline-item {
  transition: background 0.15s;
  border-radius: 3px;
  padding-left: 8px; padding-right: 8px;
  margin-left: -8px; margin-right: -8px;
}
.timeline-item:hover { background: rgba(14,11,8,0.03); }
.timeline-year { letter-spacing: 0.04em; }

/* Page hero — stronger gradient */
.page-hero {
  background:
    radial-gradient(ellipse at 80% 100%, rgba(122,28,28,0.18) 0%, transparent 55%),
    var(--ink);
}

/* Rights/licensing box on plays.html */
.plays-section > .container > div[style*="paper-dark"] {
  border: 1px solid rgba(14,11,8,0.1);
}

/* Blockquote — larger and more theatrical */
.blockquote p {
  font-size: 1.4rem;
  line-height: 1.6;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .blog-grid { gap: 1px; }
  .plays-grid { gap: 1px; }
  .texts-grid { gap: 1px; }
  .hero h1 { letter-spacing: -0.01em; }
  .section-header::before { display: none; }
}
.divider { width: 40px; height: 2px; background: var(--gold); border-radius: 1px; margin: 24px 0; }

/* ============================================
   CINEMA-POSTER PLAY CARDS (cards with photos)
   ============================================ */
.play-card:has(.play-card-img) {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  padding: 0;
  justify-content: flex-end;
  gap: 6px;
  border-top: none !important;
}
.play-card:has(.play-card-img) .play-card-img {
  position: absolute;
  inset: 0;
  margin: 0;
  height: 100%;
  z-index: 0;
}
.play-card:has(.play-card-img) .play-card-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition: filter 0.7s ease, transform 0.8s ease;
}
.play-card:has(.play-card-img):hover .play-card-img img {
  filter: brightness(0.28);
  transform: scale(1.07);
}
.play-card:has(.play-card-img)::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(14,11,8,1) 0%,
    rgba(14,11,8,0.82) 28%,
    rgba(14,11,8,0.35) 60%,
    rgba(14,11,8,0.08) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.play-card:has(.play-card-img) > *:not(.play-card-img) {
  position: relative;
  z-index: 2;
  padding-left: 28px;
  padding-right: 28px;
}
.play-card:has(.play-card-img) > .play-genre { padding-top: 0; }
.play-card:has(.play-card-img) > .play-card-footer { padding-bottom: 28px; }
.play-card:has(.play-card-img) .play-genre { color: var(--gold-light); }
.play-card:has(.play-card-img) .play-he {
  color: var(--paper);
  font-size: 1.85rem;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.play-card:has(.play-card-img) .play-en {
  color: rgba(245,240,232,0.5);
  font-size: 0.95rem;
}
.play-card:has(.play-card-img) .play-desc {
  color: rgba(245,240,232,0.82);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  transition: opacity 0.35s ease, max-height 0.45s ease;
}
.play-card:has(.play-card-img):hover .play-desc {
  opacity: 1;
  max-height: 120px;
}
.play-card:has(.play-card-img) .play-card-footer {
  border-top-color: rgba(245,240,232,0.15);
}
.play-card:has(.play-card-img) .play-year { color: rgba(245,240,232,0.38); }
.play-card:has(.play-card-img) .play-award { color: var(--gold-light); }
.play-card:has(.play-card-img):hover {
  transform: none;
  box-shadow: inset 0 0 0 2px rgba(184,137,42,0.5);
}

/* ============================================
   PLAY MODAL
   ============================================ */
.play-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8,6,4,0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}
.play-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.play-modal {
  background: var(--paper);
  max-width: 860px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 320px 1fr;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  position: relative;
}
.play-modal-overlay.open .play-modal {
  transform: translateY(0) scale(1);
}
.play-modal-img {
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.play-modal-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.play-modal-img-placeholder {
  width: 100%; height: 100%;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.play-modal-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
}
.play-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  background: rgba(14,11,8,0.12);
  border: 1px solid rgba(14,11,8,0.12);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}
.play-modal-close:hover {
  background: var(--ink);
  color: var(--paper);
}
.play-modal-genre {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}
body[dir="rtl"] .play-modal-genre { letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.play-modal-he {
  font-family: var(--font-he);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
}
.play-modal-en {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gray);
  margin-bottom: 28px;
}
.play-modal-desc {
  color: var(--gray);
  line-height: 1.8;
  font-size: 0.95rem;
  flex: 1;
}
.play-modal-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(14,11,8,0.1);
  flex-wrap: wrap;
}
.play-modal-year { font-size: 0.8rem; color: var(--gray-light); }
.play-modal-award { font-size: 0.8rem; color: var(--gold); font-weight: 600; }
@media (max-width: 700px) {
  .play-modal { grid-template-columns: 1fr; }
  .play-modal-img { min-height: 240px; height: 240px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .play-modal-body { padding: 28px 24px; }
}

/* ============================================
   EXPANDABLE TEXT CARDS
   ============================================ */
.text-card { cursor: pointer; }
.text-card-full {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  font-size: 0.88rem;
  color: rgba(245,240,232,0.55);
  line-height: 1.9;
  font-family: var(--font-serif);
}
body[dir="rtl"] .text-card-full { font-family: var(--font-he); }
.text-card.expanded .text-card-full { max-height: 600px; }
.text-card-toggle {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 14px;
  font-family: var(--font-sans);
  transition: color 0.2s;
  font-weight: 500;
}
body[dir="rtl"] .text-card-toggle { letter-spacing: 0; text-transform: none; font-size: 0.78rem; }
.text-card:hover .text-card-toggle { color: var(--gold); }

/* ============================================
   HERO — SPLIT LAYOUT ENHANCEMENT
   ============================================ */
.hero-portrait {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 38%;
  overflow: hidden;
  z-index: 0;
}
.hero-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%) brightness(0.75);
}
.hero-portrait::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(14,11,8,1) 0%, rgba(14,11,8,0.4) 50%, transparent 100%);
  z-index: 1;
}
body[dir="rtl"] .hero-portrait { right: auto; left: 0; }
body[dir="rtl"] .hero-portrait::before {
  background: linear-gradient(to left, rgba(14,11,8,1) 0%, rgba(14,11,8,0.4) 50%, transparent 100%);
}
@media (max-width: 768px) {
  .hero-portrait { width: 0; display: none; }
}

/* ============================================
   PAGE HEROES — production photo stripe
   ============================================ */
.page-hero {
  border-bottom: 2px solid var(--gold);
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
}

/* ============================================
   TYPOGRAPHY UPGRADES
   ============================================ */
.plays-section .section-header h2,
.texts-section h2,
.bio-content h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

/* Section divider — theatrical rule */
.section-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 48px;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.section-rule::before, .section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(14,11,8,0.12);
}

/* Gold separator dot in hero sub */
.hero-sub .dot { background: var(--gold); opacity: 0.8; }

/* Nav — gold underline on active page */
.nav-links a.active { color: var(--gold) !important; }

/* Entrance animation — JS adds .fade-in, then .visible when in viewport */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
