/* درون — طراحیِ سایت. دو تم: تیره‌ی برند و کاغذِ کاهی. فونت: پیدا. */
@import url('fonts.css');

:root{
  --bg:#0f1011; --surface:#161719; --surface-2:#1e2023; --line:#242629; --line-2:#2e3033;
  --text:#e9e9ea; --muted:#93959a; --faint:#65676b; --inv:#0f1011;
  --shadow:0 1px 0 rgba(255,255,255,.02), 0 18px 40px -24px rgba(0,0,0,.8);
  --maxw:1060px; --radius:16px; --gut:22px;
}
:root[data-theme="paper"]{
  --bg:#e7dcc1; --surface:#f2e9d6; --surface-2:#ece1c8; --line:#d6c7a4; --line-2:#cbbb95;
  --text:#2a2520; --muted:#6f6451; --faint:#9a8c70; --inv:#f2e9d6;
  --shadow:0 1px 0 rgba(255,255,255,.5), 0 16px 34px -26px rgba(80,64,32,.55);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg); color:var(--text);
  font-family:'Peyda',system-ui,'Segoe UI',Tahoma,sans-serif; font-weight:500;
  direction:rtl; line-height:1.85; font-size:16.5px;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  transition:background .4s ease, color .4s ease;
  padding-bottom:0; overflow-x:hidden;
}
body::selection,::selection{background:var(--text);color:var(--bg)}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{max-width:var(--maxw);margin:0 auto;padding-inline:var(--gut)}

/* ——— هدر ——— */
.site-head{position:sticky;top:0;z-index:50;
  background:color-mix(in srgb,var(--bg) 82%,transparent);
  backdrop-filter:saturate(1.4) blur(14px); -webkit-backdrop-filter:saturate(1.4) blur(14px);
  border-bottom:1px solid var(--line);}
.site-head .bar{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px}
.brand{display:flex;align-items:center;gap:11px;color:var(--text)}
.brand .mark{width:86px;color:var(--text)} .brand .mark svg{width:100%;height:auto;display:block}
.brand .dot{width:34px;color:var(--text)} .brand .dot svg{width:100%;height:auto;display:block}
.nav{display:flex;align-items:center;gap:6px}
.nav a{color:var(--muted);font-size:14.5px;padding:8px 12px;border-radius:10px;transition:.2s}
.nav a:hover{color:var(--text);background:var(--surface-2)}
.tgl{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;
  border:1px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer;transition:.2s}
.tgl:hover{border-color:var(--line-2);transform:translateY(-1px)}
.tgl svg{width:18px;height:18px}

/* ——— هیرو ——— */
.hero{padding:72px 0 30px;position:relative}
.hero .kick{color:var(--faint);font-size:13.5px;font-weight:600;letter-spacing:.5px;margin-bottom:16px}
.hero h1{font-size:clamp(40px,9vw,92px);font-weight:700;line-height:1.12;letter-spacing:-.5px}
.hero .lead{font-size:clamp(17px,2.4vw,22px);color:var(--muted);font-weight:500;
  max-width:40ch;margin-top:22px;line-height:1.7}
.hero .say{font-size:clamp(20px,3.2vw,30px);font-weight:600;margin-top:30px;line-height:1.5}
.hero .say b{font-weight:700}
.hero .say .m{color:var(--muted);font-weight:500}
.spacer-line{height:1px;background:var(--line);margin:52px 0}

/* ——— بخش‌ها ——— */
section{scroll-margin-top:84px}
.eyebrow{display:flex;align-items:center;gap:14px;margin:0 0 26px}
.eyebrow h2{font-size:13px;font-weight:600;color:var(--faint);letter-spacing:1.6px;white-space:nowrap}
.eyebrow .rule{flex:1;height:1px;background:var(--line)}
.eyebrow .count{color:var(--faint);font-size:12.5px;font-family:ui-monospace,Menlo,monospace}

/* قاعده‌ها */
.rules{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:8px}
.rule{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px 22px;transition:.25s}
.rule:hover{border-color:var(--line-2);transform:translateY(-2px);box-shadow:var(--shadow)}
.rule .n{font-family:ui-monospace,Menlo,monospace;font-size:12px;color:var(--faint);direction:ltr;text-align:left}
.rule h3{font-size:20px;font-weight:700;margin:10px 0 8px}
.rule p{font-size:15px;color:var(--muted);line-height:1.8}

.concept{background:var(--surface);border:1px solid var(--line);border-radius:22px;
  padding:40px 38px;font-size:clamp(16px,2vw,19px);line-height:2;color:var(--text);
  text-align:justify;text-align-last:right}

/* ——— شبکه‌ی قسمت‌ها ——— */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.ep{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;transition:.28s cubic-bezier(.2,.7,.3,1)}
.ep:hover{border-color:var(--line-2);transform:translateY(-4px);box-shadow:var(--shadow)}
.ep .cov{position:relative;aspect-ratio:1/1;background:var(--surface-2);overflow:hidden}
.ep .cov img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.ep:hover .cov img{transform:scale(1.045)}
.ep .num{position:absolute;top:10px;right:10px;background:color-mix(in srgb,var(--bg) 78%,transparent);
  backdrop-filter:blur(6px);color:var(--text);font-family:ui-monospace,Menlo,monospace;font-size:11.5px;
  padding:3px 9px;border-radius:20px;border:1px solid var(--line-2)}
.ep .pi{padding:16px 16px 18px}
.ep .work{font-size:17.5px;font-weight:700;line-height:1.45;margin-bottom:7px}
.ep .hook{font-size:13.5px;color:var(--muted);line-height:1.7;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ep .meta{margin-top:13px;display:flex;align-items:center;gap:10px;color:var(--faint);font-size:12px}
.ep .meta .d{font-family:ui-monospace,Menlo,monospace}
.ep .meta .go{margin-inline-start:auto;color:var(--muted);transition:.2s}
.ep:hover .meta .go{transform:translateX(-4px);color:var(--text)}

/* ——— دکمه‌های پادگیر ——— */
.listen{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.plat{display:flex;align-items:center;gap:13px;background:var(--surface);border:1px solid var(--line);
  border-radius:14px;padding:16px 18px;transition:.22s}
.plat:hover{border-color:var(--line-2);transform:translateY(-2px);box-shadow:var(--shadow)}
.plat .ic{width:26px;height:26px;flex:none;display:grid;place-items:center;color:var(--text)}
.plat .ic svg{width:100%;height:100%}
.plat .tx b{display:block;font-size:15px;font-weight:600}
.plat .tx span{font-size:12px;color:var(--faint)}
.plat .go{margin-inline-start:auto;color:var(--faint)}

/* ——— صفحه‌ی قسمت ——— */
.back{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:14px;margin:28px 0 22px;transition:.2s}
.back:hover{color:var(--text)}
.detail{display:grid;grid-template-columns:300px 1fr;gap:36px;align-items:start}
.detail .cover{border-radius:18px;overflow:hidden;border:1px solid var(--line);position:sticky;top:84px;box-shadow:var(--shadow)}
.detail .cover img{width:100%;aspect-ratio:1/1;object-fit:cover}
.dhead .num{font-family:ui-monospace,Menlo,monospace;font-size:12.5px;color:var(--faint)}
.dhead h1{font-size:clamp(26px,4vw,40px);font-weight:700;line-height:1.28;margin:8px 0 6px}
.dhead .hook{font-size:clamp(16px,2.2vw,20px);color:var(--muted);font-weight:500;line-height:1.6}
.dmeta{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0 26px;color:var(--faint);font-size:13px}
.dmeta span{background:var(--surface-2);border:1px solid var(--line);border-radius:20px;padding:5px 13px}
.player{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px;margin-bottom:8px}
.player audio{width:100%;display:block}
.player .warn{font-size:12.5px;color:var(--faint);margin-top:9px;line-height:1.6}
.chapters{margin:26px 0}
.chapters h3,.body h3{font-size:13px;font-weight:600;color:var(--faint);letter-spacing:1.4px;margin-bottom:14px}
.chapters ol{list-style:none;display:flex;flex-direction:column;gap:2px}
.chapters li button{width:100%;display:flex;align-items:center;gap:14px;background:none;border:0;
  color:inherit;font:inherit;text-align:right;cursor:pointer;padding:10px 12px;border-radius:10px;transition:.15s}
.chapters li button:hover{background:var(--surface-2)}
.chapters .tc{font-family:ui-monospace,Menlo,monospace;font-size:12.5px;color:var(--faint);direction:ltr;min-width:52px}
.chapters .lb{font-size:15px}
.body{font-size:16.5px;line-height:2;color:var(--text);text-align:justify;text-align-last:right}
.body p{margin:0 0 14px}
.body strong{font-weight:700}
.body em{color:var(--muted);font-style:normal}
.detail .listen{grid-template-columns:1fr 1fr;margin-top:26px}

/* ——— فوتر ——— */
.site-foot{border-top:1px solid var(--line);margin-top:80px;padding:46px 0 60px;color:var(--faint)}
.site-foot .in{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap}
.site-foot .mark{width:120px;color:var(--text);margin-bottom:14px}
.site-foot .mark svg{width:100%;height:auto}
.site-foot .sig{width:190px;color:var(--line-2);margin-top:10px}
.site-foot .sig svg{width:100%;height:auto}
.site-foot .links{display:flex;gap:18px;font-size:14px}
.site-foot .links a{color:var(--muted);transition:.2s}.site-foot .links a:hover{color:var(--text)}
.site-foot .cr{font-size:12.5px;margin-top:16px}
.site-foot .cr b{color:var(--muted);font-weight:600}

@media (max-width:760px){
  :root{--gut:16px}
  .hero{padding:48px 0 20px}
  .rules{grid-template-columns:1fr}
  .concept{padding:28px 22px}
  .detail{grid-template-columns:1fr;gap:22px}
  .detail .cover{position:static;max-width:260px}
  .detail .listen{grid-template-columns:1fr}
  .nav .hide-sm{display:none}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* ——— نشانه‌ی صفحه‌ی فعال در نو ——— */
.nav a.on{color:var(--text)}

/* ——— هیروِ زیرصفحه و بردکرامب ——— */
.hero.sub{padding:40px 0 8px}
.hero.sub h1{font-size:clamp(34px,7vw,66px)}
.crumb{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:14px;margin-top:24px;transition:.2s}
.crumb:hover{color:var(--text)}
.crumb svg{width:16px;height:16px}

/* ——— بلوکِ ویژه‌ی بخش (درون شمش در صفحه‌ی اصلی) ——— */
.feature{display:grid;grid-template-columns:300px 1fr;gap:0;background:var(--surface);
  border:1px solid var(--line);border-radius:20px;overflow:hidden;transition:.28s cubic-bezier(.2,.7,.3,1);color:inherit}
.feature:hover{border-color:var(--line-2);transform:translateY(-3px);box-shadow:var(--shadow)}
.feature-media{position:relative;background:var(--surface-2);min-height:220px;overflow:hidden}
.feature-media img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;transition:transform .5s ease}
.feature:hover .feature-media img{transform:scale(1.04)}
.feature-body{padding:30px 30px 28px;display:flex;flex-direction:column;justify-content:center}
.tag{display:inline-block;align-self:flex-start;font-size:11px;font-weight:600;letter-spacing:1px;
  color:var(--faint);background:var(--surface-2);border:1px solid var(--line);border-radius:20px;padding:3px 11px;margin-bottom:14px}
.feature-body h3{font-size:clamp(26px,4vw,38px);font-weight:700;line-height:1.2;margin-bottom:12px}
.feature-body p{font-size:15.5px;color:var(--muted);line-height:1.85;max-width:52ch}
.feature-body .meta{font-size:12.5px;color:var(--faint);margin-top:14px;font-family:ui-monospace,Menlo,monospace;direction:rtl}
.cta{display:inline-flex;align-items:center;gap:8px;margin-top:20px;font-size:15px;font-weight:600;color:var(--text)}
.cta svg{width:18px;height:18px;transition:transform .2s}
.feature:hover .cta svg{transform:translateX(-5px)}

/* ——— بخش‌های ثانویه ——— */
.part-row{display:grid;grid-template-columns:1fr;gap:14px;margin-top:14px}
.part{display:flex;align-items:center;gap:16px;background:var(--surface);border:1px solid var(--line);
  border-radius:16px;padding:20px 22px;transition:.22s;color:inherit}
.part:hover{border-color:var(--line-2);transform:translateY(-2px);box-shadow:var(--shadow)}
.part .pt-ic{width:30px;height:30px;flex:none;color:var(--text)}
.part .pt-ic svg{width:100%;height:100%}
.part h3{font-size:17px;font-weight:700;margin-bottom:3px}
.part p{font-size:13.5px;color:var(--muted);line-height:1.7}
.part .go{margin-inline-start:auto;color:var(--faint);flex:none}
.part .go svg{width:20px;height:20px}

/* ——— کارتِ تازه‌ترین قسمت (افقی) ——— */
.ep-wide{flex-direction:row;align-items:stretch}
.ep-wide .cov{width:180px;flex:none;aspect-ratio:1/1}
.ep-wide .pi{display:flex;flex-direction:column;justify-content:center;padding:20px 22px}
.ep-wide .tag{margin-bottom:10px}
.ep-wide .work{font-size:20px}
.ep-wide .hook{-webkit-line-clamp:3}
@media (max-width:640px){ .ep-wide{flex-direction:column} .ep-wide .cov{width:100%} }

@media (max-width:720px){
  .feature{grid-template-columns:1fr}
  .feature-media{min-height:0;aspect-ratio:16/10}
  .feature-media img{position:static;height:100%}
  .feature-body{padding:24px 22px}
}
