/* =========================================================================
   Almaia — design system v3: "Japandi Editorial"
   השראה: מינימליזם אדריכלי-מגזיני (units.gr) בפלטת Japandi רגועה —
   נייר-אורז חם, דיו פחם, מרווה עמומה וקווי חול דקים. RTL, mobile-first.
   טיפוגרפיה: Frank Ruhl Libre (תצוגה/שירה) · Assistant (גוף/ממשק).
   תנועה: איטית, מאופקת; transform/opacity בלבד; reduced-motion מכבה הכול.
   ========================================================================= */

:root {
  --bg: #f4f1ea;          /* נייר אורז חם */
  --surface: #faf8f3;
  --ink: #2b2926;         /* פחם חם */
  --muted: #8a847a;       /* אפור-חול */
  --line: #ddd6c9;        /* קו חול */
  --line-soft: #e8e2d6;
  --sage: #7d8471;        /* מרווה עמומה */
  --sage-deep: #5a6152;
  --clay: #b08968;        /* חימר/עץ — נגיעות בלבד */
  --dark: #262421;        /* פחם כהה — footer ופאנלים */
  --dark-ink: #ece7dc;
  --radius: 10px;
  --font-body: 'Assistant', 'Segoe UI', Arial, sans-serif;
  --font-display: 'Noto Serif Hebrew', 'David Libre', Georgia, serif;
  --font-poetry: 'David Libre', 'Noto Serif Hebrew', Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* תאימות לאחור לעמודים שנכתבו על משתני v2 (tarot_reading.php) —
     שמות ישנים ממופים לפלטת ה-Japandi החדשה. */
  --purple: var(--sage-deep);
  --purple-deep: var(--dark);
  --purple-night: var(--dark);
  --purple-soft: var(--sage);
  --purple-tint: var(--line-soft);
  --gold: var(--clay);
  --gold-soft: #d3b795;
  --gold-bright: #ddc4a4;
  --shadow: 0 6px 24px rgba(43, 41, 38, 0.07);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
::selection { background: var(--sage); color: #fff; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip-link {
  position: absolute; top: -60px; right: 10px; z-index: 200;
  background: var(--dark); color: var(--dark-ink); padding: 10px 18px;
  border-radius: 0 0 8px 8px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* תוויות-מטא קטנות (אינדקסים, קיקרים) — חתימת הסגנון */
.meta-label {
  font-size: 12px; font-weight: 600; letter-spacing: 2.5px;
  color: var(--muted); text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 241, 234, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s ease;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(43, 41, 38, 0.06); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
/* סימן מינימלי: עיגול קו דק עם נקודת מרווה — הד לאֶנסו */
.brand-mark {
  position: relative; width: 30px; height: 30px; flex-shrink: 0;
  border: 1.5px solid var(--ink); border-radius: 50%;
}
.brand-mark i {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage); top: 50%; right: 50%;
  transform: translate(50%, -50%);
  transition: transform .5s var(--ease-out);
}
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { display: none; }
.brand:hover .brand-mark i { transform: translate(50%, -50%) scale(1.35); }
.brand-text { font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.1; letter-spacing: 0.4px; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 10.5px; color: var(--muted); letter-spacing: 2px; }
.site-nav {
  display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* פס גלילה של הניווט — מוסתר */
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  position: relative; white-space: nowrap; text-decoration: none; color: var(--ink);
  font-size: 14.5px; font-weight: 500; padding: 8px 11px 10px;
}
.site-nav a::after {
  content: ""; position: absolute; right: 11px; left: 11px; bottom: 6px; height: 1px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: right center; transition: transform .35s var(--ease-out);
}
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { font-weight: 600; }
@media (max-width: 430px) {
  .brand-text { font-size: 18px; }
  .brand-text small { display: none; }
  .brand-mark { width: 26px; height: 26px; }
  .site-nav a { padding: 8px 8px 10px; font-size: 13.5px; }
  .site-nav a::after { right: 8px; left: 8px; }
}

/* ---------- Hero: טיפוגרפי, שקט, אדריכלי ---------- */
.hero {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  padding: 72px 0 64px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.hero-sky, .hero-notes { display: none; } /* שרידי v2 — מנוטרלים */
.hero .kicker {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 26px; font-size: 12px; font-weight: 600; letter-spacing: 2.5px;
  color: var(--muted);
  animation: fadeUp 1s var(--ease-out) .05s both;
}
.hero .kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(42px, 9.5vw, 96px); line-height: 1.12;
  letter-spacing: -0.5px; margin: 0 0 28px; max-width: 14em;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; animation: lineUp 1.1s var(--ease-out) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .15s; }
.hero h1 em {
  font-style: normal; font-weight: 300; color: var(--sage-deep);
  text-decoration: underline; text-decoration-color: var(--clay);
  text-decoration-thickness: 3px; text-underline-offset: 0.16em;
}
.hero p.sub {
  max-width: 34em; margin: 0 0 40px; font-size: clamp(16px, 3.4vw, 19px);
  font-weight: 400; color: var(--muted); line-height: 1.8;
  animation: fadeUp 1s var(--ease-out) .35s both;
}
.hero .search-box { margin: 0 0 10px; animation: fadeUp 1s var(--ease-out) .5s both; }

/* ---------- רצועת מילים נעה (marquee) ---------- */
.marquee {
  overflow: hidden; white-space: nowrap; user-select: none;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: var(--surface);
}
.marquee-track { display: inline-flex; align-items: baseline; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(17px, 3vw, 22px); color: var(--ink); padding: 0 14px;
}
.marquee-track i { font-style: normal; color: var(--sage); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0 24px; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.section-index {
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  color: var(--sage-deep); letter-spacing: 1px;
}
.section-title {
  font-family: var(--font-display); font-weight: 500; color: var(--ink);
  font-size: clamp(26px, 5.4vw, 40px); line-height: 1.2; margin: 0 0 8px;
  letter-spacing: -0.3px;
}
.section-title::after { content: none; } /* בלי קו זהב — שקט */
.section-sub { color: var(--muted); margin: 0 0 30px; font-size: 15.5px; max-width: 40em; }
.section-more { text-align: left; margin: 30px 0 8px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* כרטיס שיר — תא ברשת אדריכלית עם קווי הפרדה */
.song-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--surface);
  transition: background .4s ease;
}
.song-card:hover { background: var(--bg); }
.song-card .cover { position: relative; aspect-ratio: 1; background: var(--line-soft); overflow: hidden; }
.song-card .cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--ease-out), filter .8s ease;
  filter: saturate(0.88);
}
.song-card:hover .cover img { transform: scale(1.05); filter: saturate(1); }
.song-card .cover .ph { display: grid; place-items: center; height: 100%; font-size: 30px; color: var(--muted); }
.song-card .meaning-chip {
  position: absolute; bottom: 10px; right: 10px; max-width: calc(100% - 20px);
  background: rgba(244, 241, 234, 0.92); color: var(--sage-deep);
  border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.5px;
  padding: 3px 12px; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.song-card .body { padding: 14px 16px 18px; }
.song-card h3 { margin: 0 0 2px; font-family: var(--font-display); font-weight: 500; font-size: 17px; line-height: 1.35; }
.song-card .by { color: var(--muted); font-size: 13.5px; line-height: 1.4; }

/* פאנלי חוויות — אדריכליים, שטוחים */
.feature-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  position: relative; display: block; text-decoration: none; color: var(--ink);
  padding: 34px 26px 30px; min-height: 190px;
  background: var(--surface);
  transition: background .4s ease;
}
.feature-card::before { content: none; }
.feature-card:hover { background: var(--bg); }
.feature-card .icon { display: inline-block; font-size: 26px; animation: none; }
.feature-card h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 23px; margin: 14px 0 8px;
}
.feature-card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.feature-card .badge {
  position: absolute; top: 20px; left: 20px; font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; color: var(--muted);
  border: 1px solid var(--line); padding: 3px 12px; border-radius: 999px;
  background: transparent;
}
/* הפאנל הפעיל (קריאה בשירים) — פחם כהה, מובלט בשקט */
.feature-card.gold {
  background: var(--dark); color: var(--dark-ink);
  padding-bottom: 56px; /* מקום לחץ הפינה */
}
.feature-card.gold p { color: rgba(236, 231, 220, 0.72); }
.feature-card.gold:hover { background: #2e2b27; }
.feature-card.gold::after {
  content: "←"; position: absolute; bottom: 22px; left: 24px;
  font-size: 20px; color: var(--sage);
  transition: transform .4s var(--ease-out);
}
.feature-card.gold:hover::after { transform: translateX(-6px); }
.feature-card.soon { cursor: default; }
.feature-card.soon .icon { opacity: .55; }

/* שלבים — עמודות מערכת עם מספרים סדרתיים */
.steps { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.step { background: transparent; border: 0; border-radius: 0; padding: 26px 0 10px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; width: auto; height: auto; border-radius: 0; background: transparent;
  font-family: var(--font-display); font-weight: 400; font-size: 15px;
  color: var(--sage-deep); letter-spacing: 1px; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 500; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Search ---------- */
.search-box { position: relative; max-width: 560px; margin: 0 auto; }
.search-field {
  display: flex; background: var(--surface); border-radius: 999px; overflow: hidden;
  border: 1px solid var(--ink);
  transition: box-shadow .3s ease;
}
.search-field:focus-within { box-shadow: 0 0 0 3px rgba(125, 132, 113, 0.25); }
.search-field input {
  flex: 1; min-width: 0; border: 0; outline: none; padding: 14px 22px;
  font-size: 16px; font-family: var(--font-body); background: transparent; color: var(--ink);
}
.search-field input::placeholder { color: var(--muted); }
.search-field button {
  border: 0; cursor: pointer; padding: 0 28px; font-family: var(--font-body);
  font-size: 15px; font-weight: 600; color: var(--bg);
  background: var(--ink);
  transition: background .3s ease;
}
.search-field button:hover { background: var(--sage-deep); }
.search-box.search-inline { margin: 0; }
.search-box.search-inline .search-field { border-color: var(--line); }
.search-box.search-inline .search-field:focus-within { border-color: var(--ink); box-shadow: none; }
.suggest {
  position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 50;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(43, 41, 38, 0.1);
  overflow: hidden; text-align: right; max-height: 340px; overflow-y: auto;
  animation: suggestIn .3s var(--ease-out) both;
}
.suggest a {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-soft);
}
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a:focus { background: var(--bg); }
.suggest img, .suggest .thumb-ph {
  width: 42px; height: 42px; border-radius: 6px; object-fit: cover; flex-shrink: 0;
  display: grid; place-items: center; background: var(--line-soft); font-size: 18px;
}
.suggest strong { display: block; font-size: 15px; line-height: 1.35; font-weight: 600; }
.suggest small { color: var(--muted); font-size: 12.5px; }

/* ---------- עמוד שיר ---------- */
.page-head { padding: 44px 0 6px; }
.breadcrumbs { font-size: 12.5px; letter-spacing: 0.5px; color: var(--muted); margin: 0 0 4px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span[aria-hidden] { margin: 0 8px; color: var(--line); }

.song-hero { display: grid; gap: 26px; align-items: start; margin-top: 26px; }
@media (min-width: 720px) { .song-hero { grid-template-columns: 300px 1fr; gap: 48px; } }
.song-hero .cover {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line-soft); aspect-ratio: 1; max-width: 340px;
  transform: none;
  animation: fadeUp 1s var(--ease-out) .05s both;
}
.song-hero .cover:hover { transform: none; box-shadow: none; }
.song-hero .cover img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.9); transition: filter .6s ease; }
.song-hero .cover:hover img { filter: saturate(1); }
.song-hero .cover .ph { display: grid; place-items: center; height: 100%; font-size: 48px; color: var(--muted); }
.song-hero h1 {
  font-family: var(--font-display); font-weight: 500; color: var(--ink);
  font-size: clamp(34px, 7.5vw, 60px); line-height: 1.15; letter-spacing: -0.4px;
  margin: 0 0 10px;
  animation: fadeUp 1s var(--ease-out) .12s both;
}
.song-hero .credits { color: var(--muted); font-size: 15px; margin-bottom: 20px; animation: fadeUp 1s var(--ease-out) .2s both; }
.song-hero .credits a { color: var(--ink); font-weight: 600; text-decoration-color: var(--line); text-underline-offset: 3px; }
.essence-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 22px; }
.essence-chips .chip {
  background: transparent;
  border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 9px 22px;
  font-family: var(--font-poetry); font-size: 19px; font-weight: 500;
  animation: fadeUp .9s var(--ease-out) .3s both;
}
.essence-chips .chip:nth-child(2) { animation-delay: .42s; }
.essence-chips .chip small {
  display: block; font-family: var(--font-body);
  font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 1.5px;
}
.listen-links { display: flex; flex-wrap: wrap; gap: 10px; animation: fadeUp 1s var(--ease-out) .4s both; }
.listen-links a {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-size: 14px; font-weight: 600; color: var(--ink);
  background: transparent; border: 1px solid var(--ink); border-radius: 999px;
  padding: 8px 18px;
  transition: background .3s ease, color .3s ease;
}
.listen-links a:hover { background: var(--ink); color: var(--bg); }

/* אנכי בלבד — לא לדרוס את ריווח הצדדים של .wrap שעל אותו אלמנט */
.song-sections { display: grid; gap: 0; padding-top: 34px; padding-bottom: 60px; }
.song-section { border-top: 1px solid var(--line); padding: 30px 0 26px; }
.song-sections .card { background: transparent; border: 0; border-radius: 0; padding: 0; }
.song-sections .card.song-section { border-top: 1px solid var(--line); padding: 30px 0 26px; }
.song-section h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 21px; color: var(--ink);
  margin: 0 0 16px; display: flex; align-items: center; gap: 10px;
}
.lead { font-family: var(--font-poetry); font-size: 21px; font-weight: 400; color: var(--ink); margin: 0 0 14px; line-height: 1.75; }
.longtext { font-size: 16px; color: var(--ink); max-width: 44em; }
.ai-note {
  font-size: 12.5px; color: var(--muted); margin-top: 16px; padding-top: 12px;
  border-top: 1px dashed var(--line);
  max-width: 44em;
}
.crowd-quote {
  background: transparent; border-right: 2px solid var(--sage);
  padding: 6px 20px 6px 0; border-radius: 0; color: var(--ink);
  font-family: var(--font-poetry); font-size: 18px; max-width: 42em;
}
.lyrics {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); padding: 28px 30px;
  border-radius: var(--radius);
  font-family: var(--font-poetry); font-size: 18px; line-height: 2.15;
  column-gap: 56px;
}
.lyrics::before { content: none; }
@media (min-width: 860px) { .lyrics.two-col { columns: 2; } }
.stories { list-style: none; padding: 0; margin: 0; }
.stories li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.stories li:last-child { border-bottom: 0; }
.stories a { color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 600; }
.stories a:hover { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 3px; }
.stories .host { color: var(--muted); font-size: 12.5px; margin-inline-start: 8px; letter-spacing: 0.5px; }
/* מקורות אצורים — פודקאסטים ואינסטגרם ("להעמקה") */
.curated-sources { display: flex; flex-direction: column; gap: 14px; }
.curated-sources .source-card {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; transition: border-color 0.15s ease;
}
.curated-sources .source-card:hover { border-color: var(--sage); }
.curated-sources .source-icon { font-size: 22px; }
.curated-sources .source-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.curated-sources .source-title { color: var(--ink); font-size: 15.5px; font-weight: 600; }
.curated-sources .attribution { color: var(--muted); font-size: 12.5px; letter-spacing: 0.3px; }
.curated-sources .curated-embed .attribution { margin-top: 6px; }
.video-container {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--dark);
  border: 1px solid var(--line);
}
.video-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.spotify-embed { border-radius: var(--radius); overflow: hidden; }
.empty {
  color: var(--muted); font-size: 14.5px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
}

/* ---------- רשימות (יוצרים, תוצאות, קטלוג) — שורות מערכת ---------- */
.person-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .person-grid { grid-template-columns: repeat(3, 1fr); } }
.person-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 0; border-radius: 0;
  padding: 24px 22px; box-shadow: none;
  transition: background .4s ease;
}
.person-card:hover { background: var(--bg); transform: none; box-shadow: none; }
.person-card .quill { display: inline-block; font-size: 18px; opacity: .5; transition: none; }
.person-card:hover .quill { transform: none; }
.person-card h3 { margin: 10px 0 2px; font-size: 19px; font-family: var(--font-display); font-weight: 500; }
.person-card .count { color: var(--muted); font-size: 13px; letter-spacing: 0.5px; }

.result-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.result-item {
  display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: 16px 10px; box-shadow: none;
  transition: background .35s ease, padding .35s var(--ease-out);
}
.result-item:hover { background: var(--surface); border-color: var(--line); transform: none; padding-inline-start: 14px; }
.result-item img, .result-item .thumb-ph {
  width: 52px; height: 52px; border-radius: 6px; object-fit: cover; flex-shrink: 0;
  display: grid; place-items: center; background: var(--line-soft); font-size: 20px;
}
.result-item img { filter: saturate(0.88); }
.result-item:hover img { filter: saturate(1); }
.result-item h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 17.5px; }
.result-item .by { color: var(--muted); font-size: 13.5px; }
.result-item .meaning {
  color: var(--sage-deep); font-size: 12.5px; font-weight: 600;
  white-space: nowrap; margin-inline-start: auto; padding-inline-start: 12px;
}

/* ---------- עימוד ---------- */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; margin: 40px 0 8px;
}
.page-numbers { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.page-btn, .page-num {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 14.5px;
  background: transparent; border: 0; border-radius: 0;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, color .3s ease;
}
.page-btn { border: 1px solid var(--line); border-radius: 999px; padding: 0 20px; }
.page-btn:hover { border-color: var(--ink); transform: none; }
.page-num:hover { border-bottom-color: var(--ink); transform: none; }
.page-num.current {
  background: transparent; border-bottom: 1px solid var(--sage-deep);
  color: var(--sage-deep); font-weight: 700; cursor: default;
}
.page-btn.disabled { color: var(--muted); opacity: .4; cursor: default; pointer-events: none; }
.page-gap { color: var(--muted); padding: 0 4px; }
.page-status { text-align: center; color: var(--muted); font-size: 12.5px; letter-spacing: 1px; margin: 6px 0 0; }

/* ---------- טקסט משפטי / אודות ---------- */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: 23px; margin: 36px 0 10px; }
.prose p, .prose li { font-size: 15.5px; }
.prose .note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; font-size: 14px; }

/* ---------- כפתורים ---------- */
.btn {
  position: relative; overflow: visible;
  display: inline-block; text-decoration: none; cursor: pointer; border: 1px solid var(--ink);
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 11px 30px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  transition: background .3s ease, color .3s ease;
}
.btn::after { content: none; }
.btn:hover { background: var(--sage-deep); border-color: var(--sage-deep); filter: none; transform: none; }
.btn.gold { background: var(--ink); color: var(--bg); }
.btn.ghost { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- Footer: פחם כהה, וורדמארק ענק ---------- */
.site-footer {
  margin-top: 80px; background: var(--dark); color: var(--dark-ink);
  border-top: 0; border-image: none;
  overflow: hidden;
}
.footer-grid { display: grid; gap: 28px; padding-top: 52px; padding-bottom: 10px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .brand-text { color: var(--dark-ink); }
.footer-brand .brand-text small { color: rgba(236, 231, 220, 0.5); }
.footer-brand p { font-size: 14px; color: rgba(236, 231, 220, 0.65); max-width: 320px; }
.footer-nav { display: grid; gap: 8px; align-content: start; font-size: 14px; }
.footer-nav strong {
  color: rgba(236, 231, 220, 0.5); font-size: 11.5px; letter-spacing: 2px;
  margin-bottom: 6px; font-weight: 600;
}
.footer-nav a { color: var(--dark-ink); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 4px; }
.footer-nav .soon { color: rgba(236, 231, 220, 0.4); }
.footer-nav .soon em { font-style: normal; font-size: 10.5px; letter-spacing: 1px; border: 1px solid rgba(236, 231, 220, 0.2); border-radius: 999px; padding: 1px 9px; margin-inline-start: 6px; }
.footer-legal { border-top: 1px solid rgba(236, 231, 220, 0.14); padding-top: 16px; padding-bottom: 8px; }
.footer-legal p { font-size: 12.5px; color: rgba(236, 231, 220, 0.45); margin: 6px 0; }
/* וורדמארק ענק בתחתית — טון על טון */
.footer-word {
  font-family: var(--font-display); font-weight: 500; text-align: center;
  font-size: clamp(72px, 18vw, 220px); line-height: 0.95; letter-spacing: 1px;
  color: rgba(236, 231, 220, 0.07); user-select: none; pointer-events: none;
  margin: 10px 0 -0.18em;
}

/* ---------- Scroll reveal (JS + תנועה מותרת בלבד) ---------- */
html.js-reveal .reveal { opacity: 0; transform: translateY(18px); }
html.js-reveal .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}

/* ---------- Keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes suggestIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   אלמנטים חתומים — v3.1
   ========================================================================= */

/* מרקם נייר עדין על כל העמוד — חומריות Japandi */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* פס התקדמות קריאה — קו מרווה דק בראש העמוד */
.scroll-progress {
  position: fixed; top: 0; right: 0; height: 2px; width: 0;
  background: var(--sage-deep); z-index: 150;
}

/* מילת-רפאים ענקית בקו-מתאר מאחורי ה-hero, עם פרלקסה עדינה */
.hero { overflow: hidden; }
.hero-ghost {
  position: absolute; bottom: -0.28em; left: -0.06em; z-index: 0;
  font-family: var(--font-display); font-weight: 500; line-height: 1;
  font-size: clamp(130px, 26vw, 320px);
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  text-stroke: 1px var(--line);
  user-select: none; pointer-events: none; white-space: nowrap;
  will-change: transform;
}
.hero-content { position: relative; z-index: 1; }

/* רמז גלילה — קו אנכי עם נקודה יורדת */
.hero-cue {
  position: absolute; bottom: 20px; left: 32px; z-index: 1;
  width: 1px; height: 56px; background: var(--line);
}
.hero-cue::after {
  content: ""; position: absolute; top: 0; right: -2px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--sage-deep);
  animation: cueDrop 2.2s var(--ease-out) infinite;
}
@media (max-width: 719px) { .hero-cue { display: none; } }

/* רשת מגזין א-סימטרית: הכרטיס הראשון בפריסת השירים גדול פי ארבעה */
@media (min-width: 720px) {
  .card-grid .song-card:first-child { grid-column: span 2; grid-row: span 2; }
  .card-grid .song-card:first-child h3 { font-size: 24px; }
  .card-grid .song-card:first-child .by { font-size: 15px; }
  .card-grid .song-card:first-child .meaning-chip { font-size: 13px; padding: 5px 16px; }
}

/* סימוני-פינה אדריכליים בריחוף על כרטיס שיר */
.song-card { position: relative; }
.song-card::before, .song-card::after {
  content: ""; position: absolute; width: 16px; height: 16px; z-index: 2;
  opacity: 0; transition: opacity .45s ease, transform .45s var(--ease-out);
}
.song-card::before {
  top: 10px; right: 10px;
  border-top: 1.5px solid var(--sage); border-right: 1.5px solid var(--sage);
  transform: translate(4px, -4px);
}
.song-card::after {
  bottom: 10px; left: 10px;
  border-bottom: 1.5px solid var(--sage); border-left: 1.5px solid var(--sage);
  transform: translate(-4px, 4px);
}
.song-card:hover::before, .song-card:hover::after { opacity: 1; transform: translate(0, 0); }

/* קו תחתי נמתח לקישורי תוכן */
.stories a, .prose a, .longtext a {
  text-decoration: none;
  background-image: linear-gradient(var(--sage-deep), var(--sage-deep));
  background-repeat: no-repeat; background-position: 100% 100%;
  background-size: 0% 1px;
  transition: background-size .45s var(--ease-out);
  padding-bottom: 2px;
}
.stories a:hover, .prose a:hover, .longtext a:hover {
  text-decoration: none; background-size: 100% 1px;
}

@keyframes cueDrop {
  0% { top: 0; opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { top: calc(100% - 5px); opacity: 0; }
}

/* ---------- Focus & motion ---------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  html.js-reveal .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
}
@media print {
  html.js-reveal .reveal { opacity: 1 !important; transform: none !important; }
  .site-footer .footer-word, body::after, .scroll-progress, .hero-ghost, .hero-cue { display: none; }
}
