/* Fonts on our own domain (OFL, from Fontsource): Fredoka for titles, Rubik for text. Hebrew and Latin only. */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/fonts/fredoka-hebrew-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/fonts/fredoka-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/rubik-hebrew-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/rubik-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html { background: #1b1840; color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: #1b1840; }
a { color: #1b1840; }
a:hover { color: #3a3580; }
[hidden] { display: none !important; }
.site * { box-sizing: border-box; }
.site :focus-visible { outline: 3px solid #1b1840; outline-offset: 2px; }
.on-ink :focus-visible { outline-color: #ffc533; }
.site section[id], .site article[id] { scroll-margin-top: 80px; }
.fr { font-family: 'Fredoka', 'Rubik', system-ui, sans-serif; }
.skip { position: absolute; top: -80px; inset-inline-start: 16px; z-index: 50; background: #fff; color: #1b1840; padding: 12px 18px; border-radius: 22px; font-weight: 500; }
.skip:focus { top: 12px; }
.mascot { display: block; height: auto; max-width: 100%; object-fit: contain; object-position: center bottom; }
.bg-tzabi { background-color: #fdecd0; }
.bg-duki { background-color: #e4edf6; }
.bg-zeiti { background-color: #ecefde; }
.bg-rimoni { background-color: #fbe3df; }
.bg-shafi { background-color: #efe8de; }
.bg-kalanit { background-color: #e9f1e2; }
.bg-gali { background-color: #f6ebd7; }
.bg-kovi { background-color: #eee8f4; }
.bg-matko { background-color: #e0f0ef; }
.bg-yaeli { background-color: #f7e6cc; }
.sticker { filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff); }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
@keyframes livedot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.bob { animation: bob 3.6s ease-in-out infinite; }
.bob.d2 { animation-delay: -0.9s; }
.bob.d3 { animation-delay: -1.8s; }
.bob.d4 { animation-delay: -2.7s; }
.live { animation: livedot 1.8s ease-in-out infinite; }
.anim-off .bob, .anim-off .live { animation-play-state: paused; }
.when-paused { display: none; }
.anim-off .when-paused { display: block; }
.anim-off .when-playing { display: none; }
.btn { transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.navl a:hover { background: #2b2763; color: #fff; }
.cov { transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.cov.pv { transform: rotate(7deg); }
.cov.nx { transform: rotate(-7deg); }
.cov.pv:hover { transform: rotate(3deg) translateY(-8px); }
.cov.nx:hover { transform: rotate(-3deg) translateY(-8px); }
.tile { background: #fff; color: #1b1840; box-shadow: -3px 3px 0 #1b1840; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s; }
.tile:hover { transform: translateY(-3px); }
.tile.on { background: #1b1840; color: #fff; box-shadow: -3px 3px 0 #ffc533; }
.screen { border: 4px solid #ffc533; }
.screen.ctrl { border-color: #ff7a59; }
.strip { scrollbar-width: thin; scrollbar-color: #8f8aa3 transparent; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.chev { transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
details[open] .chev { transform: rotate(45deg); }
@media (max-width: 880px) {
  .navl { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bob, .live { animation: none; }
  .btn, .cov, .tile, .chev { transition: none; }
}
