/* הון בעצמי - דף הקישורים לביו (R5-LINKTREE-1)
   ----------------------------------------------------------------
   מובייל-first ממש: כמעט כל התנועה מגיעה מאינסטגרם בטלפון.
   הצבעים והטיפוגרפיה נלקחים מ-tokens.css, אותם ערכים בדיוק כמו
   באתר הנחיתה ובאפליקציה, כדי שהקו יהיה אחיד.
   נטען אחרי tokens.css ולפני a11y.css. אין תלות חיצונית.
   ----------------------------------------------------------------*/

/* ============================ fonts ============================ */
@font-face {
  font-family: 'Discovery FS';
  src: url('/קישורים/fonts/Discovery_Fs-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Talent FS';
  src: url('/קישורים/fonts/Talent_FS-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Talent FS';
  src: url('/קישורים/fonts/Talent_FS-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ============================ base ============================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Talent FS', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  /* הילה רכה בראש העמוד, במקום באנר. גוללת עם הדף ומסתיימת מעל
     הכרטיסים, כדי שאף טקסט חוץ מה-hero לא יישב על רקע מוכהה. */
  background-color: var(--cream);
  background-image:
    radial-gradient(120% 100% at 50% 0%, rgba(58, 90, 124, .16) 0%, rgba(58, 90, 124, 0) 72%),
    radial-gradient(90% 78% at 84% 6%, rgba(201, 149, 107, .14) 0%, rgba(201, 149, 107, 0) 70%);
  background-repeat: no-repeat;
  background-size: 100% 420px;
  background-position: top center;
}
img, svg, picture { max-width: 100%; display: block; }
h1, h2 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -70px; z-index: 120;
  background: var(--blue-dark); color: var(--cream);
  padding: 10px 18px; border-radius: 10px; font-weight: 700;
  transition: top .2s var(--ease-out-expo);
}
.skip-link:focus { top: 12px; }

/* ============================ layout ============================ */
.page {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 7vw, 3rem) clamp(1.1rem, 5vw, 1.75rem) 5.5rem;
}

/* ============================= hero ============================= */
.hero { text-align: center; }
/* העיגול הקטן של R5-LINKTREE-1. הכלל נשאר כאן בכוונה: הוא הדרך לחזור
   למצב הקודם בלי לשחזר קובץ, והנכסים avatar-leah-160/320 נשארו במקומם. */
.hero-avatar {
  width: 104px; height: 104px;
  margin-inline: auto;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 12px 30px -14px rgba(44, 70, 96, .55);
}

/* ---------------- R5-LINKTREE-IMG-1: הדיוקן, שתי אפשרויות ----------------
   שתי האפשרויות חולקות את אותה שרשרת נכסים (leah-portrait-450/810),
   ולכן המתג הוא מחלקה אחת על ה-header ב-index.html:
       hero-rect   אפשרות A, דיוקן מלבני (פעילה)
       hero-round  אפשרות B, עיגול גדול
   הרקע הבהיר מתחת לתמונה קיים כדי שהמסגרת לא תקפוץ לפני שהקובץ הגיע. */
.hero-portrait {
  margin-inline: auto;
  object-fit: cover;
  background-color: var(--blue-pale);
}

/* אפשרות A: מלבן ביחס 9:10, ברוח הדיוקן שיש ללאה היום ברב-מסר.
   min(100%, 320px) ולא רוחב קבוע, כדי שב-320 פיקסלים התמונה תיכנס
   בתוך הריפוד של העמוד במקום לחרוג ממנו. */
.hero-rect .hero-portrait {
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 9 / 10;
  border-radius: 26px;
  border: 5px solid var(--white);
  box-shadow: 0 20px 44px -20px rgba(44, 70, 96, .55);
  object-position: 50% 18%;
}

/* אפשרות B: עיגול של 200 פיקסלים, כמעט פי שניים מהעיגול הקודם.
   ה-object-position גבוה מהמרכז, כי חיתוך ריבועי מתוך מלבן 9:10
   בלי ההיסט הזה מוריד את הפנים אל תחתית העיגול. */
.hero-round .hero-portrait {
  width: 200px;
  height: 200px;
  aspect-ratio: auto;
  border-radius: 50%;
  border: 5px solid var(--white);
  box-shadow: 0 16px 36px -16px rgba(44, 70, 96, .55);
  object-position: 50% 22%;
}
.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1rem;
  padding: .3rem .85rem .3rem .7rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-family: 'Discovery FS', 'Talent FS', system-ui, sans-serif;
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .01em;
  color: var(--blue-dark);
}
.hero-mark { width: 20px; height: auto; }
.hero-name {
  margin-top: .65rem;
  font-family: 'Discovery FS', 'Talent FS', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 1.4rem + 2.2vw, 2.5rem);
  color: var(--blue-dark);
}
.hero-tagline {
  margin-top: .4rem;
  margin-inline: auto;
  max-width: 26ch;
  /* בכוונה --text ולא --text-soft: המשפט הזה יושב על ההילה שבראש
     העמוד, ו--text-soft על רקע מוכהה יורד מתחת ליחס 4.5:1. */
  color: var(--text);
  font-size: 1rem;
}

/* ============================= cards ============================= */
.links { margin-top: clamp(1.6rem, 6vw, 2.25rem); }
.card-list { display: flex; flex-direction: column; gap: .75rem; }

.card {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 76px;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: 0 10px 24px -20px rgba(44, 70, 96, .8);
  transition: transform .18s var(--ease-out-expo), border-color .18s ease, box-shadow .18s ease;
}
.card:hover {
  border-color: var(--blue);
  box-shadow: 0 16px 30px -20px rgba(44, 70, 96, .9);
  transform: translateY(-2px);
}
.card:active { transform: translateY(0); }

.card-chip {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--blue-pale);
  color: var(--blue-dark);
}
.card-body { flex: 1 1 auto; min-width: 0; }
.card-badge {
  display: inline-block;
  margin-bottom: .2rem;
  padding: .1rem .5rem;
  border-radius: 999px;
  /* גלולה בהירה על הכרטיס הנייבי. הצמד caramel-pale/caramel-hover
     נותן 4.95:1, בניגוד לזהב-על-נייבי שנפל מתחת לסף בגודל הזה. */
  background: var(--caramel-pale);
  color: var(--caramel-hover);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.card-title {
  display: block;
  font-family: 'Discovery FS', 'Talent FS', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.25;
  color: var(--blue-dark);
}
.card-note {
  display: block;
  margin-top: .15rem;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--text-soft);
}
.card-arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  color: var(--caramel-action);
  transition: transform .18s var(--ease-out-expo);
}
.card:hover .card-arrow { transform: translateX(-3px); }

/* הפריט הראשון: הפלטפורמה עצמה. כרטיס נייבי, הכי בולט בעמוד. */
.card-platform {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  box-shadow: 0 18px 34px -22px rgba(44, 70, 96, 1);
}
.card-platform .card-chip { background: rgba(250, 247, 242, .14); color: var(--cream); }
.card-platform .card-title { color: var(--cream); }
.card-platform .card-note { color: rgba(250, 247, 242, .82); }
.card-platform .card-arrow { color: var(--gold-on-navy-text); }
.card-platform:hover { border-color: var(--caramel); }

/* הוואטסאפ: מסגרת קרמל, כדי שיהיה ברור שזו פנייה אישית ולא עוד מדריך */
.card-talk { border-color: rgba(201, 149, 107, .55); background: var(--caramel-pale); }
.card-talk .card-chip { background: var(--white); color: var(--caramel-hover); }
/* --text-soft על caramel-pale נותן 4.59:1, גבולי. --text נותן 12:1. */
.card-talk .card-note { color: var(--text); }
.card-talk:hover { border-color: var(--caramel-action); }

.noscript-note {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--text);
  text-align: center;
}
.noscript-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: .6rem;
  padding: .4rem 1rem;
  border-radius: var(--radius-button);
  background: var(--blue-dark);
  color: var(--cream);
  font-weight: 700;
}

/* ============================= footer ============================= */
.foot {
  margin-top: 2.25rem;
  text-align: center;
  font-size: .875rem;
  color: var(--text-soft);
}
.foot-line { font-weight: 700; color: var(--blue-dark); }
.foot-link {
  /* יעד מגע של 44 פיקסלים לפחות, גם כשהטקסט עצמו נמוך יותר */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  margin-top: .25rem;
  padding: .35rem .75rem;
  /* --caramel-action על קרם נותן 4.47:1 בגודל 14 פיקסלים, כלומר נופל
     מתחת ל-4.5:1. דווקא כאן זה קריטי: זה הקישור להצהרת הנגישות.
     --caramel-hover נותן 5.64:1 על אותו רקע. */
  color: var(--caramel-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot-link:hover { color: var(--blue-dark); }

/* ============================= wide ============================= */
@media (min-width: 768px) {
  .card { min-height: 84px; padding: 1rem 1.2rem; }
  .card-title { font-size: 1.125rem; }
  .card-note { font-size: .9375rem; }
  /* R5-LINKTREE-IMG-1: במסך רחב יש מקום לדיוקן גדול יותר. שני הערכים
     תואמים לערכי ה-sizes שב-index.html, אחרת הדפדפן בוחר מדרגה לא נכונה. */
  .hero-rect .hero-portrait { width: min(100%, 360px); }
  .hero-round .hero-portrait { width: 220px; height: 220px; }
}

/* ============================= motion ============================= */
@media (prefers-reduced-motion: reduce) {
  .card, .card-arrow, .skip-link { transition: none; }
  .card:hover { transform: none; }
  .card:hover .card-arrow { transform: none; }
}

/* ניגודיות גבוהה מ-a11y.js: הצללות רכות מאבדות משמעות, המסגרות מתחזקות */
html.a11y-contrast .card { border-width: 2px; box-shadow: none; }
/* --border המוכהה של מצב הניגודיות עדיין נותן רק 2.49:1 על קרם.
   --text-soft נותן שם 10.52:1 ולא 5.38:1, כי a11y.css מגדיר אותו מחדש
   כ-#3F3A35 בתוך אותה מחלקה. הכרטיס הנייבי מקבל גבול בקרם, אחרת הגבול
   הכהה נופל על מילוי כהה ונעלם. */
html.a11y-contrast .card { border-color: var(--text-soft); }
html.a11y-contrast .card-platform { border-color: var(--cream); }
html.a11y-contrast .card-platform .card-note { color: #f8f3ec; }
html.a11y-contrast .foot-link { text-decoration-thickness: 2px; }

/* ---------- תיקונים מקומיים לרכיב הנגישות המשותף ----------
   js/a11y.js ו-styles/a11y.css הם עותק מדויק (byte-identical) של
   הרכיב שכבר רץ באתר ובאפליקציה, ולכן אסור לשנות אותם מכאן: תיקון
   שם נוגע בשלושה משטחים והוא כרטיס נפרד. התיקון היחיד שהדף הזה
   צריך עכשיו נעשה כאן, כדריסה מקומית: הקישור להצהרת הנגישות היה
   בגובה 22.5 פיקסלים, מתחת לרצפת 24 של WCAG 2.5.8.
   הבורר מוגבה בכוונה ל-(0,2,0): היום אין התנגשות, כי a11y.css לא מצהיר
   על אף אחת מהתכונות כאן. אבל links.css נטען לפניו, ולכן ברגע שמישהו
   יוסיף שם display או padding, הוא ינצח והתיקון ייעלם בשקט. */
.a11y-panel .a11y-statement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 8px;
}
