/* BeKa Studio — blog & article pages. Same tokens, fonts and shape language as the homepage. */
@font-face { font-family: "Fb Pekan"; font-weight: 400; font-display: block; src: url(fonts/pekan-Regular.woff2) format("woff2"); }
@font-face { font-family: "Fb Pekan"; font-weight: 700; font-display: block; src: url(fonts/pekan-Bold.woff2) format("woff2"); }
@font-face { font-family: "Fb Pekan"; font-weight: 900; font-display: block; src: url(fonts/pekan-Black.woff2) format("woff2"); }
:root {
  --grey: #f5f5f5; --white: #ffffff; --ink: #333333; --ink-2: #555350; --ink-3: #3d3d3d; --muted: #8a8780; --line: #e2e0dc;
  --coral: #ff6b6b; --mint: #4cd7c8; --yellow: #ffd74a; --green: #8bc59b; --peach: #edad73;
  --ai: linear-gradient(120deg, #ff6b6b, #edad73 28%, #ffd74a 50%, #8bc59b 72%, #4cd7c8);
  --logo: var(--coral); --logo-ink: var(--ink);
  --f-head: "Fb Pekan", "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  --f-body: "Noto Sans Hebrew", "Arial Hebrew", "Segoe UI", Arial, sans-serif;
  --f-en: "Urbanist", "Segoe UI", Arial, sans-serif;
  --wrap: 1240px; --gut: clamp(16px, 4vw, 40px); --head-h: 76px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grey); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; direction: rtl; overflow-x: clip; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); position: relative; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: 700; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.lab { font-family: var(--f-en); font-weight: 700; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 99; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding-inline: 26px; border-radius: 26px; font: 500 16px/1 var(--f-body); text-decoration: none; cursor: pointer; border: 0; transition: transform .25s cubic-bezier(.2,.7,.2,1), background-color .25s, color .25s; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--coral); color: var(--ink); }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-line:hover { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--ink); color: var(--white); }
.btn:active { transform: scale(.97); }

/* header */
.site-head { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--grey) 90%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.head-in { height: var(--head-h); display: flex; align-items: center; gap: 28px; }
.brand { display: block; width: 150px; flex: none; }
.brand svg { display: block; width: 100%; height: auto; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: 15.5px; font-weight: 500; position: relative; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.head-in .btn { height: 44px; padding-inline: 20px; font-size: 15px; }
.menu-btn { display: none; margin-inline-start: auto; height: 44px; padding-inline: 16px; border-radius: 22px; border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; font: 500 15px var(--f-body); color: inherit; cursor: pointer; }
.menu-panel { background: var(--ink); color: var(--white); }
.menu-panel nav { display: flex; flex-direction: column; padding-block: 12px 24px; }
.menu-panel a { padding-block: 13px; font: 700 26px/1.2 var(--f-head); text-decoration: none; border-bottom: 1px solid var(--ink-3); }
.progress { position: fixed; top: 0; inset-inline: 0; height: 4px; z-index: 70; background: transparent; }
.progress span { display: block; height: 100%; background: var(--c, var(--coral)); transform-origin: right; transform: scaleX(0); }

/* ---------------- article ---------------- */
.a-hero { position: relative; overflow: hidden; background: var(--c); color: var(--fg, var(--ink)); padding-block: clamp(44px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.a-hero .shapes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.a-hero .wrap { z-index: 2; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 500; margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; opacity: .75; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumbs i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.a-hero h1 { font-size: clamp(42px, 6.4vw, 96px); font-weight: 900; line-height: 1.02; max-width: 15ch; }
.a-hero h1 .w { display: inline-block; }
.a-meta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 30px; font-size: 15.5px; font-weight: 500; }
.a-meta .pill { background: color-mix(in srgb, var(--white) 70%, transparent); color: var(--ink); padding: 6px 14px; border-radius: 99px; }
.a-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }

.a-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 96px); padding-block: clamp(48px, 7vw, 96px); align-items: start; }
.a-body { max-width: 68ch; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.85; color: var(--ink); }
.a-body > * + * { margin-top: 1.1em; }
.a-body > p:first-child { font-size: 1.18em; line-height: 1.7; }
.a-body h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.12; margin-top: 1.8em; position: relative; padding-inline-start: 26px; }
.a-body h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .32em; width: 13px; height: 13px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--grey), 0 0 0 4.5px var(--ink); }
.a-body h3 { font-size: clamp(22px, 1.9vw, 27px); line-height: 1.2; margin-top: 1.5em; }
.a-body ul, .a-body ol { padding-inline-start: 1.3em; }
.a-body li + li { margin-top: .4em; }
.a-body a { text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.a-body strong { font-weight: 700; }
.a-side { position: sticky; top: calc(var(--head-h) + 28px); display: flex; flex-direction: column; gap: 18px; }
.side-card { background: var(--white); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.side-card h2 { font-size: 26px; font-weight: 900; }
.side-card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.side-card .btn { height: 46px; font-size: 15px; position: relative; }
.side-card .bubble { position: absolute; inset-inline-end: -44px; bottom: -44px; width: 110px; height: 110px; border-radius: 50%; background: var(--c); }
.toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; text-decoration: none; padding: 8px 12px; border-radius: 12px; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); transition: background-color .25s, color .25s; }
.toc a:hover, .toc a.on { background: var(--grey); color: var(--ink); }
.toc a.on { box-shadow: inset -3px 0 0 var(--c); }

.a-cta { background: var(--coral); border-radius: 32px; padding: clamp(32px, 5vw, 64px); position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.a-cta h2 { font-size: clamp(34px, 4.4vw, 64px); font-weight: 900; max-width: 14ch; position: relative; }
.a-cta p { margin-top: 14px; font-size: 18px; max-width: 40ch; position: relative; }
.a-cta .acts { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.a-cta svg { position: absolute; inset-inline-end: -60px; top: -80px; width: 340px; opacity: .9; pointer-events: none; }

.related { padding-block: clamp(56px, 8vw, 104px); background: var(--yellow); }
.related h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 900; margin-bottom: 32px; }

/* cards (shared by index + related) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.card { background: var(--white); border-radius: 26px; padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; text-decoration: none; min-height: 230px; box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(51,51,51,.05); isolation: isolate; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(51,51,51,.12); z-index: 1; }
.card .bubble { position: absolute; inset-inline-end: -46px; bottom: -46px; width: 120px; height: 120px; border-radius: 50%; background: var(--c); transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.card:hover .bubble { transform: scale(1.5); }
.card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.card .tag { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--ink-2); }
.card .tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.card h3 { font-size: 25px; line-height: 1.15; position: relative; }
.card .more { margin-top: auto; font-weight: 500; font-size: 15px; position: relative; }

/* ---------------- index ---------------- */
.b-hero { background: var(--yellow); position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 100px) clamp(40px, 5vw, 72px); }
.b-hero .shapes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.b-hero .wrap { z-index: 2; }
.b-hero h1 { font-size: clamp(64px, 11vw, 168px); font-weight: 900; line-height: .95; }
.b-hero h1 .dot { color: var(--coral); }
.b-hero p { font-size: clamp(18px, 1.6vw, 22px); max-width: 44ch; margin-top: 18px; }
.filters { position: sticky; top: var(--head-h); z-index: 20; background: var(--grey); border-bottom: 1px solid var(--line); box-shadow: 0 10px 18px -12px rgba(51,51,51,.18); }
.filters .wrap { display: flex; gap: 10px; align-items: center; padding-block: 14px; overflow-x: auto; scrollbar-width: none; }
.filters .wrap::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; padding-inline: 16px; border-radius: 20px; border: 0; background: var(--white); color: var(--ink); font: 500 15px var(--f-body); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .25s, box-shadow .25s, color .25s; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.chip b { font-family: var(--f-en); font-weight: 700; font-size: 12.5px; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: none; }
.chip[aria-pressed="true"] b { color: color-mix(in srgb, var(--white) 60%, var(--ink)); }
.search { flex: none; margin-inline-start: auto; height: 40px; width: 220px; border-radius: 20px; border: 0; padding-inline: 16px; font: 400 15px var(--f-body); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.search:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.b-list { padding-block: 40px clamp(64px, 8vw, 112px); }
.b-count { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.empty { padding: 60px 0; text-align: center; font-size: 18px; color: var(--ink-2); }


  /* social buttons (the studio's own icons): floating stack + rows */
  .soc { width: 50px; height: 50px; display: block; text-decoration: none; transition: transform .35s cubic-bezier(.2,.7,.2,1), filter .35s; }
  .soc svg { width: 100%; height: 100%; display: block; overflow: visible; }
  .soc:hover, .soc:focus-visible { transform: translateY(-3px) rotate(-8deg) scale(1.08); }
  .soc:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 50%; }
  .soc-float { position: fixed; z-index: 80; left: 16px; right: auto; bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
  .soc-float .soc { filter: drop-shadow(0 6px 12px rgba(51,51,51,.22)); }
  .soc-row { display: flex; gap: 10px; direction: ltr; }
  .soc-row .soc { width: 42px; height: 42px; }
  @media (max-width: 560px) { .soc-float { left: 10px; bottom: 12px; } .soc-float { gap: 8px; } .soc-float .soc { width: 42px; height: 42px; } }

/* footer */
.site-foot { padding-block: 48px 36px; background: var(--grey); border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-in .brand { width: 170px; }
.foot-meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink-2); font-size: 15px; }
.foot-meta span[dir="ltr"] { unicode-bidi: isolate; font-family: var(--f-en); font-weight: 500; }
.legal-links { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 14.5px; width: 100%; }
.legal-links a, .legal-links button { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .nav, .head-in > .btn { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .brand { width: 124px; }
  .a-layout { grid-template-columns: minmax(0, 1fr); }
  .a-side { position: static; }
  .a-side .toc-card { display: none; }
  .a-cta { grid-template-columns: minmax(0, 1fr); }
  .a-cta svg { width: 220px; top: -60px; inset-inline-end: -50px; }
  .search { width: 160px; }
}
@media (max-width: 620px) { .cards { grid-template-columns: minmax(0, 1fr); } .card { min-height: 0; } .card h3 { font-size: 23px; } }
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation: none !important; } }
