/* =========================================================
   base.css — Reset, typography, accessibility helpers
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  direction: ltr; /* keep scrollbar on the right in both languages */
  overflow-x: hidden; /* prevent dragged notes from expanding the page width */
  max-width: 100vw;
}

body {
  margin: 0;
  overflow-x: hidden;
  position: relative; /* anchor for absolute-placed sticky notes */
  background-color: var(--color-bg);
  background-attachment: fixed;
  background-blend-mode: soft-light;
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--fs-sm);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Language-specific fonts */
html[lang="en"] body {
  font-family: var(--font-en);
}

html[lang="he"] body {
  font-family: var(--font-base);
}

/* Hero text keeps the original Noto Sans font */
.hero-text {
  font-family: "Noto Sans Hebrew", "Inter", system-ui, sans-serif;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
}

h1 { font-size: var(--fs-xxl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--space-2); color: var(--color-text-muted); }

a {
  color: inherit;
  text-decoration: none;
}

ul { margin: 0; padding: 0; list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

