/* מגזין UNIQ — public magazine styles (RTL Hebrew, brand velvet) */
:root{
  --primary:#C94860; --accent:#9C8EC8; --plum:#5C3D7A; --cream:#FFF4F6;
  --ink:#2E1F38; --muted:#7A6882; --line:#efe6ec; --font-scale:1;
  --maxw:1080px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Rubik','Segoe UI',system-ui,sans-serif;
  color:var(--ink); background:#fff; line-height:1.7;
  font-size:calc(1rem * var(--font-scale));
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

/* ---- nav ---- */
.site-nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.9);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.nav-inner{max-width:var(--maxw);margin:0 auto;padding:.8rem 1.4rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:.55rem;color:var(--plum)}
.brand-mark{display:inline-flex;color:var(--primary)}
.brand-text{font-weight:800;font-size:1.15rem;letter-spacing:-.01em}
.nav-cats{display:flex;gap:.3rem;flex-wrap:wrap}
.nav-cats a{color:var(--muted);font-weight:500;font-size:.92rem;padding:.35rem .7rem;border-radius:2rem;transition:.15s}
.nav-cats a:hover{background:var(--cream);color:var(--plum)}

/* ---- layout ---- */
.site-main{max-width:var(--maxw);margin:0 auto;padding:2rem 1.4rem 4rem}
.hero-head{text-align:center;padding:2rem 0 1.4rem}
.hero-h1{font-size:clamp(1.9rem,5vw,3rem);font-weight:900;color:var(--plum);letter-spacing:-.02em}
.hero-tag{color:var(--muted);font-size:1.1rem;margin-top:.6rem;max-width:36ch;margin-inline:auto}
.crumb{color:var(--muted);font-size:.9rem;margin-bottom:.5rem}
.crumb a:hover{color:var(--primary)}

/* ---- featured ---- */
.hero-feature{
  display:block;border-radius:1.8rem;padding:2.6rem 2.2rem;margin:1rem 0 2.4rem;color:#fff;position:relative;overflow:hidden;
  background:linear-gradient(135deg,var(--plum),var(--cover,var(--primary)) 70%,var(--accent));
  box-shadow:0 18px 50px -20px rgba(92,61,122,.5);transition:.2s;
}
.hero-feature:hover{transform:translateY(-3px);box-shadow:0 26px 60px -22px rgba(92,61,122,.6)}
.hero-feature.has-img{padding:0;min-height:340px;display:flex;align-items:flex-end}
.feature-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hero-feature.has-img::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(46,31,56,.82) 0%,rgba(46,31,56,.15) 60%,rgba(46,31,56,.05) 100%);z-index:1}
.hero-feature.has-img .feature-copy{position:relative;z-index:2;padding:2.6rem 2.2rem}
.feature-cat{display:inline-block;background:rgba(255,255,255,.2);padding:.3rem .9rem;border-radius:2rem;font-size:.85rem;font-weight:600;margin-bottom:1rem}
.feature-title{font-size:clamp(1.6rem,4vw,2.4rem);font-weight:800;line-height:1.25;max-width:22ch}
.feature-sub{margin-top:.9rem;font-size:1.1rem;opacity:.94;max-width:48ch}
.feature-cta{display:inline-block;margin-top:1.4rem;background:#fff;color:var(--plum);font-weight:700;padding:.6rem 1.4rem;border-radius:2rem}

/* ---- cards ---- */
.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.4rem}
.card{background:#fff;border:1px solid var(--line);border-radius:1.4rem;overflow:hidden;display:flex;flex-direction:column;transition:.2s}
.card:hover{transform:translateY(-3px);box-shadow:0 16px 40px -20px rgba(92,61,122,.4);border-color:transparent}
.card-cover{position:relative;height:150px;background:linear-gradient(135deg,var(--cover,var(--primary)),var(--accent));display:flex;align-items:flex-end;padding:1rem;overflow:hidden}
.card-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.card-cat{position:relative;z-index:2;background:rgba(60,40,70,.42);backdrop-filter:blur(4px);color:#fff;font-size:.8rem;font-weight:600;padding:.25rem .75rem;border-radius:2rem}
.card-body{padding:1.2rem 1.3rem 1.4rem;display:flex;flex-direction:column;gap:.55rem;flex:1}
.card-title{font-size:1.2rem;font-weight:700;color:var(--plum);line-height:1.35}
.card-excerpt{color:var(--muted);font-size:.95rem;flex:1}
.card-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:.82rem;padding-top:.4rem;border-top:1px solid var(--line)}

/* ---- article ---- */
.article-banner{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--plum),var(--cover,var(--primary)) 75%,var(--accent));color:#fff;border-radius:0 0 2rem 2rem;margin:-2rem -1.4rem 0;padding:3rem 1.4rem 2.6rem}
.article-banner.has-img{padding-top:4.5rem;padding-bottom:3rem}
.article-banner-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.article-banner.has-img::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(46,31,56,.9) 0%,rgba(46,31,56,.55) 55%,rgba(46,31,56,.35) 100%);z-index:1}
.article-head{position:relative;z-index:2;max-width:720px;margin:0 auto}
.article-banner .crumb{color:rgba(255,255,255,.8)}
.article-banner .crumb a:hover{color:#fff}
.article-title{font-size:clamp(1.8rem,4.5vw,2.7rem);font-weight:900;line-height:1.2;letter-spacing:-.01em}
.article-sub{margin-top:.9rem;font-size:1.15rem;opacity:.95;max-width:52ch}
.article-meta{display:flex;gap:.5rem;align-items:center;margin-top:1.3rem;font-size:.9rem;opacity:.9;flex-wrap:wrap}
.article-body{max-width:680px;margin:2.4rem auto 0;font-size:1.12rem}
.article-body h2{color:var(--plum);font-size:1.6rem;font-weight:800;margin:2.2rem 0 .8rem;line-height:1.3}
.article-body h3{color:var(--primary);font-size:1.25rem;font-weight:700;margin:1.6rem 0 .6rem}
.article-body p{margin:1rem 0;color:#38293f}
.article-body ul{margin:1rem 0;padding-inline-start:1.3rem;display:flex;flex-direction:column;gap:.5rem}
.article-body li{padding-inline-start:.2rem}
.article-body li::marker{color:var(--primary)}
.article-body blockquote{margin:1.6rem 0;padding:1.1rem 1.4rem;background:var(--cream);border-inline-start:4px solid var(--primary);border-radius:.4rem 1rem 1rem .4rem;color:var(--plum);font-size:1.18rem;font-weight:500}
.article-body strong{color:var(--plum)}
.article-body .fig{margin:1.8rem 0}
.article-body .fig img{width:100%;border-radius:1rem;box-shadow:0 12px 34px -18px rgba(92,61,122,.5)}
.article-body .fig figcaption{margin-top:.6rem;text-align:center;color:var(--muted);font-size:.92rem}

.related{max-width:var(--maxw);margin:3.5rem auto 0}
.related-title{color:var(--plum);font-size:1.4rem;font-weight:800;margin-bottom:1.2rem}

/* ---- misc ---- */
.empty-state{text-align:center;padding:4rem 1rem;color:var(--muted)}
.empty-state h1{font-size:3rem;color:var(--plum)}
.empty-state a{color:var(--primary);font-weight:600}
.site-footer{border-top:1px solid var(--line);background:var(--cream)}
.footer-inner{max-width:var(--maxw);margin:0 auto;padding:2.4rem 1.4rem;text-align:center;color:var(--muted)}
.footer-brand{font-weight:800;color:var(--plum);font-size:1.2rem;margin-bottom:.4rem;letter-spacing:.02em}

/* ---- audience hub chips (magazine index) ----
   Four links to the /for/ pages. Chips, not a sentence: the first attempt put
   plain links inside .hero-tag, which caps at 36ch, so the labels broke across
   lines and looked broken. Flex-wrap handles any width; colours come from the
   tokens above, never inline. */
/* Bottom margin is load-bearing: the visible label above the chips was removed,
   and without it the row sat flush against the cards grid (measured gap 0). */
.aud-nav{max-width:var(--maxw);margin:2rem auto 1.8rem;padding:0 1.4rem;text-align:center}
.aud-chips{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center}
.aud-chip{
  display:inline-flex;align-items:center;
  padding:.55rem 1.15rem;border-radius:2rem;
  border:1px solid var(--line);background:#fff;
  color:var(--plum);font-weight:600;font-size:.95rem;
  text-decoration:none;transition:.15s;
}
.aud-chip:hover{border-color:var(--primary);color:var(--primary);background:var(--cream)}
.aud-chip:focus-visible{outline:3px solid var(--plum);outline-offset:3px}
/* On a phone, free-flowing wrap packed these 2/1/1 because the labels differ in
   width. A fixed 2x2 grid is predictable regardless of how the labels change. */
@media(max-width:600px){
  .aud-chips{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
  .aud-chip{justify-content:center;padding:.55rem .6rem;font-size:.9rem}
}

/* ---- category intro ----
   The lead paragraphs that sit between a category's H1 and its card grid.
   Reason it exists: the category pages used to be a heading plus a list of
   links and nothing else — measured on the live server 2026-08-02, three of
   them were 90 words. Google had crawled two and refused to index them. A
   category page has to say something on its own to deserve a place in the
   index. Deliberately narrower and quieter than .article-body: this is an
   introduction to a section, not an article competing with the ones below. */
.cat-intro{max-width:660px;margin:0 auto 2.4rem;font-size:1.06rem}
.cat-intro p{margin:1rem 0;color:#38293f;line-height:1.75}
.cat-intro p:first-child{margin-top:0}
.cat-intro strong{color:var(--plum)}

/* ---- end-of-article CTA ----
   Injected into every article by scripts/magazine-add-cta.mjs. The copy varies
   by category on purpose — see that script's header. */
.article-cta{
  max-width:var(--maxw);margin:2.6rem auto 0;padding:1.8rem 1.6rem;
  border:1px solid var(--line);border-radius:18px;
  background:linear-gradient(135deg,var(--cream) 0%,#F7F4FB 100%);
  text-align:center;
}
.article-cta-title{color:var(--plum);font-size:1.25rem;font-weight:800;margin-bottom:.5rem}
.article-cta-text{color:var(--ink);margin-bottom:1.1rem}
.article-cta-btn{
  display:inline-block;padding:.7rem 1.7rem;border-radius:2rem;
  background:var(--primary);color:#fff;font-weight:700;text-decoration:none;
  transition:transform .15s ease,box-shadow .15s ease;
}
.article-cta-btn:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(201,72,96,.35)}
.article-cta-btn:focus-visible{outline:3px solid var(--plum);outline-offset:3px}

@media(max-width:600px){
  .article-banner{margin:-2rem -1.4rem 0}
  .hero-feature{padding:2rem 1.4rem}
  .article-cta{margin-top:2rem;padding:1.5rem 1.2rem}
}
