/* ==========================================================================
   Base: reset, טיפוגרפיה, נגישות, תנועה
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* כותרות: שילוב משקל 800 ו־300 הוא חתימה עיצובית.
   <h1>מדריכים <span class="thin">שכתבו מדפיסים.</span></h1> */
h1, h2, h3 { font-weight: 800; letter-spacing: var(--track-head); line-height: var(--lh-tight); text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.03em; }
h4 { font-size: var(--fs-h4); font-weight: 700; }
.thin { font-weight: 300; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -100px; inset-inline-start: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 16px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* LTR בתוך טקסט עברי: מספרים, אימיילים, שמות מוצרים באנגלית */
.ltr { direction: ltr; unicode-bidi: isolate; }

[hidden] { display: none !important; }

/* אנימציות עדינות. כולן מושבתות עבור prefers-reduced-motion */
@keyframes fp-drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-28px,6px,0); } }
@keyframes fp-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fp-rise  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fp-fade  { from { opacity: 0; } to { opacity: 1; } }
.drift { animation: fp-drift 24s ease-in-out infinite alternate; }
.float { animation: fp-float 9s ease-in-out infinite; }
.float-slow { animation: fp-float 12s ease-in-out -4s infinite; }
.rise { animation: fp-rise .9s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
