/* המזכירות — עיצוב משותף לכל העמודים */
/* גופן: פלוני (Ploni AAA), כל המשקלים */
@font-face{font-family:"Ploni";font-weight:500;font-style:normal;font-display:swap;src:url("fonts/ploni-aaa-500.otf") format("opentype")}
@font-face{font-family:"Ploni";font-weight:700;font-style:normal;font-display:swap;src:url("fonts/ploni-aaa-700.otf") format("opentype")}
@font-face{font-family:"Ploni";font-weight:800;font-style:normal;font-display:swap;src:url("fonts/ploni-aaa-800.otf") format("opentype")}
@font-face{font-family:"Ploni";font-weight:900;font-style:normal;font-display:swap;src:url("fonts/ploni-aaa-900.otf") format("opentype")}

:root{
  /* הפלטה של דבורי */
  --cream:#F3EADB;      /* נייר */
  --walnut:#6B4226;     /* עץ כהה */
  --honey:#A8743F;      /* עץ דבש */
  --glow:#F5D9A0;       /* גוון חם עדין מאוד, לא כמילוי */
  --ink:#2C2A3A;        /* דיו */
  /* גוונים נגזרים מאותה פלטה */
  --cream-2:#ebdfca;
  --walnut-2:#4a2c17;
  --honey-deep:#8B5A2B; /* דבש כהה: טקסט שמנת עליו עומד ב־4.5:1 */
  --brick:#8a3b2a;
  --ink-soft:#4f4a55;   /* טקסט משני על נייר (≈7:1) */
  --line:rgba(107,66,38,.22);
  --shadow:0 1px 0 rgba(255,255,255,.6) inset,0 10px 26px -12px rgba(75,45,22,.45),0 2px 6px rgba(75,45,22,.12);
  --radius:12px;
  --spring:cubic-bezier(.2,1.5,.4,1);
  --soft:cubic-bezier(.2,.8,.2,1);
  --on-wood-shadow:0 1px 1px rgba(30,15,5,.65),0 0 6px rgba(30,15,5,.25);
  /* טקסטורות אמיתיות */
  --tex-paper:url("img/tex-paper.webp");
  --tex-wood:url("img/tex-wood.webp");
  --tex-kraft:url("img/tex-kraft.webp");
  /* לוחות זהב מוברש: שלטים, תגים וכפתורים ממתכת עם חריטה, ברגים ופאטינה */
  --gold:#B8954A; --gold-hi:#E2C27A; --gold-lo:#7A5F2A; --olive:#2F3A22;
  --engrave:#1f1604;                      /* טקסט חרוט על הזהב (ניגודיות של 6:1 ומעלה, גם על הכתמים הכהים במרקם) */
  --tex-gold:url("img/tex-gold.webp");
  --screw:url("img/ui-screw.webp");
  /* אור סטודיו רך וחם: בוהק עליון, ירידה עדינה לכיוון התחתית */
  --plate-light:linear-gradient(180deg,rgba(255,240,200,.36),rgba(255,236,190,.08) 38%,rgba(120,70,10,0) 58%,rgba(90,50,8,.08));
  /* קצוות משופעים: פס אור דק מלמעלה ומשמאל, פס צל מלמטה ומימין, ושפה כהה של הלוח */
  --plate-shadow:inset 0 2px 0 rgba(255,248,222,.75),inset 0 -2px 0 rgba(96,66,20,.6),inset 2px 0 0 rgba(255,242,210,.32),inset -2px 0 0 rgba(96,66,20,.32),
    inset 0 0 0 4px rgba(255,236,190,.08),inset 0 0 14px rgba(110,70,15,.18),0 0 0 1px rgba(104,74,24,.7),0 2px 0 #6a4e1e,0 10px 18px -8px rgba(60,40,10,.55);
  --engrave-shadow:0 1px 0 rgba(255,246,220,.65),0 -1px 0 rgba(40,28,8,.3);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;font-synthesis:none}
html,body{margin:0}
body{
  font-family:"Ploni",sans-serif;font-weight:500;color:var(--ink);line-height:1.5;font-synthesis:none;
  /* שולחן קרפט רך מתחת לפתקים, כדי שהנייר יבלוט (ולא שמנת על שמנת) */
  background:linear-gradient(rgba(240,226,203,.5),rgba(240,226,203,.5)),#c8a57a var(--tex-kraft) 0 0/420px;
  min-height:100dvh;overflow-x:hidden;
}
body::after{ /* צל עדין בשולי הדף, כמו שולחן עץ מתחת לנייר */
  content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
  box-shadow:inset 0 0 110px rgba(107,66,38,.16);
}
b,strong{font-weight:700}
a{color:var(--walnut)}
h1,h2,h3{margin:0;font-weight:800;line-height:1.25}
button,input,textarea,select{font-family:inherit}
::placeholder{font-family:inherit}

/* כפתורים: לוח זהב מוברש, הטקסט חרוט לתוך המתכת */
.btn,.plate{
  color:var(--engrave);text-shadow:var(--engrave-shadow);background-color:var(--gold);
  background-image:var(--plate-light),var(--tex-gold);background-size:auto,320px;box-shadow:var(--plate-shadow);
}
.btn{
  font:800 18px/1 "Ploni";border:0;border-radius:10px;padding:16px 22px;cursor:pointer;min-height:48px;
  transition:transform .18s var(--spring),box-shadow .12s,filter .15s;-webkit-tap-highlight-color:transparent;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;
}
/* לוח גדול: שלט פליז אמיתי (תמונה) עם שני ברגים, נמתח בשיטת 9 חלקים בלי לעוות את הברגים.
   היחס בין רוחב הצד לגובה השוליים שומר על אותו קנה מידה (50:130) */
.btn.big,.plate.screws{
  border-style:solid;border-color:transparent;border-width:12px 31px;
  border-image:url("img/ui-plate.webp") 50 130 fill / 12px 31px stretch;
  background:none;box-shadow:none;padding:5px 14px;
  filter:drop-shadow(0 7px 7px rgba(60,40,10,.38));
}
.btn.big:hover{filter:drop-shadow(0 9px 9px rgba(60,40,10,.4)) brightness(1.05)}
.btn.big:active{box-shadow:none;filter:drop-shadow(0 2px 3px rgba(60,40,10,.45))}
html.lite .btn.big,html.lite .plate.screws{border-image:none;border-color:var(--gold-lo);border-width:1px;border-radius:10px;background:var(--gold);padding:16px 30px}
.btn:hover{filter:brightness(1.06) saturate(1.05);transform:translateY(-1px)}
.btn:active{transform:translateY(2px) scale(.98);box-shadow:inset 0 1px 0 rgba(255,250,225,.6),inset 0 -1px 0 rgba(95,70,22,.6),0 0 0 1px rgba(110,82,30,.6),0 1px 0 #6e5322}
/* פליז מעט מיושן: אותו לוח עם פאטינה עמוקה יותר */
.btn.honey{background-image:var(--plate-light),var(--tex-gold);background-size:auto,320px}
/* ניגודיות גבוהה: זהב אחיד וטקסט שחור */
html.hc{--tex-gold:none;--plate-light:none;--engrave:#000;--engrave-shadow:none}
html.hc .btn.big,html.hc .plate.screws,html.hc .jstats div,html.hc .drawer{border-image:none!important;border:2px solid #000!important;border-radius:8px;background:#E2C27A!important;filter:none!important}
.btn.ink{background-color:var(--ink);background-image:linear-gradient(180deg,rgba(255,255,255,.1),rgba(0,0,0,.2));box-shadow:0 3px 0 #15141c,0 8px 16px -8px rgba(20,20,30,.6)}
.btn.ghost{background:none;color:var(--walnut);text-shadow:none;box-shadow:none;text-decoration:underline;text-underline-offset:4px;padding:10px;font-weight:700}
.btn:focus-visible{outline:3px solid var(--honey);outline-offset:3px}

/* כרטיס נייר: פתק עם קרעים טבעיים (תמונה אמיתית), נמתח בשיטת 9 חלקים. הקרעים בשוליים חוזרים (round), כך שלא מתעוותים */
.card{
  position:relative;
  border:20px solid transparent;border-image:url("img/ui-torn.webp") 48 fill / 20px round;
  background:none;box-shadow:none;
  filter:drop-shadow(0 7px 9px rgba(74,46,18,.22)) drop-shadow(0 1px 1px rgba(74,46,18,.2));
}
html.lite .card{border-image:none;border:1px solid var(--line);border-radius:var(--radius);background:#f7efe2;filter:none;box-shadow:var(--shadow)}

/* עמודי תוכן: הרבה אוויר, איור קטן לכל פרק */
.page{position:relative;z-index:1;max-width:640px;margin:0 auto;padding:22px 18px 44px}
.page header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:26px}
.page .logo{height:52px;display:block;filter:drop-shadow(0 2px 2px rgba(107,66,38,.25))}
.page .wordmark{font:800 30px "Ploni";color:var(--walnut);text-decoration:none}
.page article{padding:12px 8px 10px}
.page article h1{font-size:32px;margin-bottom:14px;color:var(--walnut);font-weight:900}
.page article .lead{font-size:19px;line-height:1.6}
.page article section{display:grid;grid-template-columns:64px 1fr;gap:4px 16px;align-items:start;margin-top:34px;padding-top:30px;border-top:1px dashed var(--line)}
.page article section>img{grid-row:1/span 9;width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 4px 4px rgba(75,45,22,.28))}
.page article section>*:not(img){grid-column:2}
.page article h2{font-size:22px;margin:4px 0 8px;color:var(--walnut)}
.page article p,.page article li{font-size:17px;line-height:1.7}
.page article p{margin:0 0 12px}
.page article ul{padding-inline-start:20px;margin:0 0 12px}
.page article li{margin-bottom:6px}
.page nav.more{display:flex;gap:18px;flex-wrap:wrap;justify-content:center;margin-top:34px;font-size:15px;font-weight:700}
@media (max-width:420px){.page article{padding:24px 18px}.page article section{grid-template-columns:44px 1fr;gap:4px 12px}.page article section>img{width:44px;height:44px}}
.foot{position:relative;z-index:1;color:var(--ink-soft);font-size:13px;text-align:center;padding:18px 16px 22px}
.foot a{color:inherit}
.credit{margin-top:4px;font-size:11.5px}
.credit a{text-decoration:none}
.tier-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0 18px}
.tier-row figure{margin:0;text-align:center;font-size:14px;line-height:1.25}
.tier-row img{width:100%;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 6px 6px rgba(75,45,22,.25));transition:transform .3s var(--spring)}
.tier-row figure:hover img{transform:translateY(-4px) rotate(-2deg)}
.tier-row b{display:block;font-size:20px;color:var(--walnut);font-weight:900}
@media (min-width:600px){.tier-row{grid-template-columns:repeat(6,1fr)}}
.page article,.page header{animation:pageIn .45s var(--soft) both}
.page article{animation-delay:.06s}
@keyframes pageIn{from{opacity:0;transform:translateY(12px)}}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
