@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/heebo-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/heebo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #59626b;
  --border: #e3e6ea;
  --accent: #1a5fd0;
  --accent-text: #ffffff;
  --tag-bg: #f1f3f5;
  --shadow: 0 1px 2px rgb(60 64 67 / 0.12), 0 2px 8px rgb(60 64 67 / 0.08);
  --shadow-hover: 0 2px 4px rgb(60 64 67 / 0.14), 0 8px 24px rgb(60 64 67 / 0.14);
  --radius: 16px;
  color-scheme: light;
}
:root:not([data-theme="light"]) { }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121316;
    --surface: #1b1d22;
    --text: #eceef1;
    --muted: #a5adb7;
    --border: #2d3037;
    --accent: #8ab4ff;
    --accent-text: #0b1220;
    --tag-bg: #262930;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 2px 8px rgb(0 0 0 / 0.35);
    --shadow-hover: 0 2px 4px rgb(0 0 0 / 0.55), 0 8px 24px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121316;
  --surface: #1b1d22;
  --text: #eceef1;
  --muted: #a5adb7;
  --border: #2d3037;
  --accent: #8ab4ff;
  --accent-text: #0b1220;
  --tag-bg: #262930;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 2px 8px rgb(0 0 0 / 0.35);
  --shadow-hover: 0 2px 4px rgb(0 0 0 / 0.55), 0 8px 24px rgb(0 0 0 / 0.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-block-size: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
img { max-inline-size: 100%; block-size: auto; }

.visually-hidden {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -4rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { inset-block-start: 1rem; }

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  max-inline-size: 72rem;
  inline-size: 100%;
  margin-inline: auto;
}
.brand { inline-size: 5.5rem; block-size: auto; }
.controls { display: flex; gap: 0.5rem; align-items: center; }
.ctl {
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  min-block-size: 2.5rem;
  cursor: pointer;
}
.ctl:hover { border-color: var(--muted); }

main { flex: 1; inline-size: 100%; max-inline-size: 72rem; margin-inline: auto; padding-inline: 1rem; }

.hero { text-align: center; padding-block: clamp(2rem, 8vw, 5rem) clamp(1.5rem, 5vw, 3rem); }
.hero-logo { inline-size: min(22rem, 80%); block-size: auto; }
.tagline { margin: 1rem 0 0; font-size: clamp(1.1rem, 3.5vw, 1.5rem); font-weight: 400; color: var(--muted); }

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
  padding-block-end: 3rem;
}
.grid-item { display: flex; }
.error { color: var(--muted); text-align: center; grid-column: 1 / -1; }

.card {
  display: flex;
  flex-direction: column;
  inline-size: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-link:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card-link:hover { transform: none; }
}

.shot { aspect-ratio: 16 / 10; background: var(--tag-bg); overflow: hidden; display: grid; place-items: center; }
.shot img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: top; }
.shot-empty { color: #fff; }
.shot-initial { font-size: 4rem; font-weight: 800; line-height: 1; }
.c0 { background: #6a4be0; }
.c1 { background: #00806c; }
.c2 { background: #b85f00; }
.c3 { background: #c2325f; }
.c4 { background: #1f62d6; }

.card-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 1.25rem 1.25rem; flex: 1; }
.card-title { margin: 0; font-size: 1.2rem; font-weight: 700; }
.card-desc { margin: 0; color: var(--muted); font-size: 0.95rem; }

.tags { list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { background: var(--tag-bg); color: var(--muted); border-radius: 999px; padding: 0.1rem 0.65rem; font-size: 0.8rem; }

.cta, .badge {
  margin-block-start: auto;
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.35rem 1rem;
}
.cta { background: var(--accent); color: var(--accent-text); }
.badge { border: 1px solid var(--border); color: var(--muted); font-weight: 500; }

.footer { text-align: center; padding: 1.5rem 1rem; color: var(--muted); border-block-start: 1px solid var(--border); }

@media (max-width: 420px) {
  .brand { inline-size: 4.5rem; }
  .ctl { padding-inline: 0.7rem; }
}
