@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@300;400;500;700&display=swap');

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

:root {
  --c-white: #ffffff;
  --c-light: #f5f5f5;
  --c-dark: #1f1f1f;
  --c-mid: #6b6b6b;
  --c-border: #e0e0e0;
  --c-accent: #2d2d2d;
  --c-tag-bg: #1f1f1f;
  --c-tag-text: #ffffff;
  --sidebar-w: 240px;
  --radius-card: 28px;
  --radius-pill: 999px;
  --radius-sm: 12px;
  --font-main: 'Noto Sans Hebrew', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --shadow-card: 0 2px 0 0 var(--c-border);
  --transition: 0.22s ease;
}

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--c-light);
  color: var(--c-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

/* ── App Shell ── */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--c-white);
  border-right: 1.5px solid var(--c-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  padding-bottom: 24px;
}

.sidebar-brand {
  padding: 28px 20px 20px;
  border-bottom: 1.5px solid var(--c-border);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-dark);
  letter-spacing: 0.01em;
}

.brand-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-dark);
}

.sidebar-nav {
  padding: 20px 14px;
  flex: 1;
}

.sidebar-nav dl {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav dt,
.sidebar-nav dd {
  margin: 0;
}

.nav-link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-mid);
  transition: background var(--transition), color var(--transition);
  line-height: 1.4;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  background: var(--c-light);
  color: var(--c-dark);
}

.nav-link.active {
  background: var(--c-dark);
  color: var(--c-white);
  font-weight: 700;
}

/* ── Main Wrap ── */
.main-wrap {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

main {
  flex: 1;
}

/* ── Grid Dots Background ── */
.grid-dots {
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle, #c8c8c8 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
}

/* ── Hero Section (Home) ── */
.hero-section {
  position: relative;
  min-height: 45vh;
  background: var(--c-white);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  overflow: hidden;
  border-bottom: 1.5px solid var(--c-border);
  padding: 0;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 64px 48px 48px;
  max-width: 680px;
}

.hero-aside {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: var(--c-dark);
  color: var(--c-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

.hero-h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-dark);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--c-mid);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-pill {
  display: inline-block;
  padding: 8px 18px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-dark);
  background: var(--c-white);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.cat-pill:hover {
  background: var(--c-dark);
  color: var(--c-white);
  border-color: var(--c-dark);
}

/* ── Bento Section ── */
.bento-section {
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  background: var(--c-light);
}

.section-aside {
  position: sticky;
  top: 24px;
  align-self: start;
}

.section-aside h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 8px 0 12px;
  line-height: 1.3;
}

.section-aside p {
  font-size: 0.9rem;
  color: var(--c-mid);
  line-height: 1.7;
}

/* ── Bento Grid ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.bento-card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--c-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition);
  text-decoration: none;
  color: var(--c-dark);
}

.bento-card:hover {
  transform: scale(1.02);
  border-color: var(--c-dark);
}

.bento-card.bento-wide {
  grid-column: span 2;
}

.bento-card.bento-tall {
  grid-row: span 2;
}

.bento-inner {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--c-dark);
  color: var(--c-white);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.bento-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.bento-desc {
  font-size: 0.82rem;
  color: var(--c-mid);
  line-height: 1.5;
}

/* ── Eyebrow ── */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-mid);
  margin-bottom: 6px;
}

/* ── Content Section (shared) ── */
.content-section {
  padding: 48px 40px;
  background: var(--c-white);
  border-top: 1.5px solid var(--c-border);
}

.content-figure {
  margin: 0;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.content-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-dark);
}

.content-body h2,
.content-body h3 {
  margin-top: 2em;
  margin-bottom: 0.7em;
  font-weight: 700;
  line-height: 1.3;
}

.content-body h2 { font-size: 1.35rem; }
.content-body h3 { font-size: 1.1rem; }

.content-body p {
  margin-bottom: 1.2em;
}

.content-body ul, .content-body ol {
  margin-bottom: 1.2em;
  padding-left: 1.4em;
  list-style: disc;
}

.content-body ol { list-style: decimal; }

.content-body a {
  color: var(--c-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-body a:hover {
  opacity: 0.65;
}

/* ── Breadcrumb ── */
.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.83rem;
  color: var(--c-mid);
  padding: 8px 0;
  transition: color var(--transition);
  min-height: 40px;
}

.breadcrumb-link:hover {
  color: var(--c-dark);
}

/* ── Category Page ── */
.page-hero {
  position: relative;
  min-height: 45vh;
  background: var(--c-white);
  border-bottom: 1.5px solid var(--c-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cat-hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 48px 48px;
  max-width: 680px;
}

.cat-h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

.cat-desc {
  font-size: 1rem;
  color: var(--c-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.cat-date {
  font-size: 0.82rem;
  color: var(--c-mid);
}

.cat-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 48px 40px;
  background: var(--c-light);
  align-items: start;
}

.cat-list-figure {
  margin: 0;
  background: var(--c-white);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--c-border);
  padding: 32px;
}

.cat-list-wrap h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 8px 0 24px;
}

/* ── Entry List ── */
.entry-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: none;
  list-style: none;
}

.entry-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.entry-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  transition: border-color var(--transition), background var(--transition);
  min-height: 64px;
}

.entry-link:hover {
  border-color: var(--c-dark);
  background: var(--c-light);
}

.entry-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-mid);
  font-variant-numeric: tabular-nums;
  min-width: 28px;
  flex-shrink: 0;
}

.entry-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.entry-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-dark);
  line-height: 1.3;
}

.entry-desc {
  font-size: 0.8rem;
  color: var(--c-mid);
  line-height: 1.4;
  display: block;
}

.entry-date {
  font-size: 0.78rem;
  color: var(--c-mid);
  flex-shrink: 0;
  white-space: nowrap;
}

.no-items {
  color: var(--c-mid);
  font-size: 0.9rem;
  padding: 24px 0;
}

/* ── Sidebar (aside card) ── */
.cat-sidebar,
.entry-sidebar,
.about-sidebar,
.privacy-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
  position: sticky;
  top: 24px;
}

.aside-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.aside-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 6px 0 16px;
  line-height: 1.3;
}

.aside-card p {
  font-size: 0.87rem;
  color: var(--c-mid);
  line-height: 1.7;
}

.aside-card--info {
  background: var(--c-dark);
  border-color: var(--c-dark);
  color: var(--c-white);
}

.aside-card--info .eyebrow,
.aside-card--info h3,
.aside-card--info p {
  color: rgba(255,255,255,0.9);
}

.aside-card--info strong {
  color: var(--c-white);
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}

.aside-nav-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-nav-list a {
  font-size: 0.87rem;
  color: var(--c-dark);
  padding: 8px 10px;
  border-radius: 8px;
  display: block;
  transition: background var(--transition), color var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-nav-list a:hover {
  background: var(--c-light);
}

.aside-card--info .aside-nav-list a {
  color: rgba(255,255,255,0.85);
}

.aside-card--info .aside-nav-list a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--c-white);
}

.aside-nav-list small {
  font-size: 0.75rem;
  color: var(--c-mid);
  padding: 0 10px 6px;
  line-height: 1.4;
  display: block;
}

/* ── Entry Page ── */
.entry-header-section {
  position: relative;
  background: var(--c-white);
  border-bottom: 1.5px solid var(--c-border);
  overflow: hidden;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.entry-hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  overflow: hidden;
}

.entry-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

.entry-hero-grid {
  position: absolute;
  inset: 0;
}

.entry-meta-aside {
  position: relative;
  z-index: 1;
  padding: 28px 48px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.entry-dates {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--c-mid);
}

.meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-mid);
  letter-spacing: 0.05em;
}

.entry-title-block {
  position: relative;
  z-index: 1;
  padding: 24px 48px 48px;
  max-width: 760px;
}

.entry-h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

.entry-lead {
  font-size: 1rem;
  color: var(--c-mid);
  line-height: 1.7;
}

.entry-body-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 48px 40px;
  background: var(--c-light);
  align-items: start;
}

.entry-content-figure {
  margin: 0;
  background: var(--c-white);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--c-border);
  padding: 36px;
}

/* ── About Page ── */
.about-hero-section {
  position: relative;
  min-height: 45vh;
  background: var(--c-white);
  border-bottom: 1.5px solid var(--c-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 48px 48px;
  max-width: 700px;
}

.about-h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 8px 0 14px;
}

.about-lead {
  font-size: 1rem;
  color: var(--c-mid);
  line-height: 1.7;
  margin-bottom: 14px;
}

.about-date {
  font-size: 0.82rem;
  color: var(--c-mid);
}

.about-body-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 48px 40px;
  background: var(--c-light);
  align-items: start;
}

.about-content-figure {
  margin: 0;
  background: var(--c-white);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--c-border);
  padding: 36px;
}

/* ── Privacy Page ── */
.privacy-header-section {
  position: relative;
  min-height: 45vh;
  background: var(--c-white);
  border-bottom: 1.5px solid var(--c-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.privacy-title-block {
  position: relative;
  z-index: 1;
  padding: 60px 48px 48px;
  max-width: 700px;
}

.privacy-h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 8px 0 14px;
}

.privacy-lead {
  font-size: 1rem;
  color: var(--c-mid);
  line-height: 1.7;
  margin-bottom: 14px;
}

.privacy-date {
  font-size: 0.82rem;
  color: var(--c-mid);
}

.privacy-body-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 48px 40px;
  background: var(--c-light);
  align-items: start;
}

.privacy-content-figure {
  margin: 0;
  background: var(--c-white);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--c-border);
  padding: 36px;
}

/* ── Footer ── */
.site-footer {
  background: var(--c-white);
  border-top: 1.5px solid var(--c-border);
  margin-top: auto;
}

.footer-cta {
  background: var(--c-dark);
  color: var(--c-white);
  padding: 52px 48px;
  text-align: center;
}

.footer-cta-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--c-white);
}

.footer-cta-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  line-height: 1.6;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--c-white);
  color: var(--c-dark);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
  min-height: 48px;
}

.cta-btn:hover {
  background: var(--c-light);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 48px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-dark);
}

.footer-brand-desc {
  font-size: 0.87rem;
  color: var(--c-mid);
  line-height: 1.7;
}

.footer-links-col nav dl {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-links-col dt,
.footer-links-col dd {
  margin: 0;
}

.footer-links-col a {
  display: inline-flex;
  align-items: center;
  font-size: 0.87rem;
  color: var(--c-mid);
  padding: 8px 0;
  min-height: 40px;
  transition: color var(--transition);
}

.footer-links-col a:hover {
  color: var(--c-dark);
}

.footer-links-col dt a {
  font-weight: 600;
  color: var(--c-dark);
}

.footer-bottom {
  border-top: 1.5px solid var(--c-border);
  padding: 20px 48px;
  text-align: center;
}

.copyright {
  font-size: 0.8rem;
  color: var(--c-mid);
}

/* ── Scroll Reveal ── */
@media (prefers-reduced-motion: no-preference) {
  .bento-card,
  .entry-item,
  .aside-card,
  .cat-list-figure {
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 0.5s ease forwards;
  }

  .bento-card:nth-child(1) { animation-delay: 0.05s; }
  .bento-card:nth-child(2) { animation-delay: 0.1s; }
  .bento-card:nth-child(3) { animation-delay: 0.15s; }
  .bento-card:nth-child(4) { animation-delay: 0.2s; }
  .bento-card:nth-child(5) { animation-delay: 0.25s; }
  .bento-card:nth-child(6) { animation-delay: 0.3s; }
  .bento-card:nth-child(7) { animation-delay: 0.35s; }
  .bento-card:nth-child(8) { animation-delay: 0.4s; }

  .entry-item:nth-child(1) { animation-delay: 0.05s; }
  .entry-item:nth-child(2) { animation-delay: 0.1s; }
  .entry-item:nth-child(3) { animation-delay: 0.15s; }
  .entry-item:nth-child(4) { animation-delay: 0.2s; }
  .entry-item:nth-child(5) { animation-delay: 0.25s; }
  .entry-item:nth-child(6) { animation-delay: 0.3s; }

  @keyframes revealUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .bento-card,
  .entry-item,
  .aside-card,
  .cat-list-figure {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root {
    --sidebar-w: 200px;
  }

  .bento-section {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-body,
  .entry-body-section,
  .about-body-section,
  .privacy-body-section {
    grid-template-columns: 1fr 220px;
    gap: 24px;
    padding: 36px 28px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1.5px solid var(--c-border);
    padding-bottom: 0;
  }

  .sidebar-brand {
    padding: 16px 20px;
    border-bottom: none;
    border-right: 1.5px solid var(--c-border);
  }

  .sidebar-nav {
    flex: 1;
    padding: 12px 14px;
    overflow-x: auto;
  }

  .sidebar-nav dl {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .nav-link {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  .app-shell {
    flex-direction: column;
  }

  .main-wrap {
    margin-left: 0;
  }

  .hero-content {
    padding: 40px 24px 36px;
  }

  .hero-h1 {
    font-size: 1.6rem;
  }

  .hero-aside {
    top: 16px;
    right: 20px;
  }

  .bento-section {
    padding: 28px 20px;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }

  .bento-card.bento-wide {
    grid-column: span 2;
  }

  .bento-card.bento-tall {
    grid-row: span 1;
  }

  .content-section {
    padding: 32px 20px;
  }

  .cat-hero-content,
  .about-hero-content,
  .privacy-title-block,
  .entry-title-block {
    padding: 36px 24px 32px;
  }

  .entry-meta-aside {
    padding: 20px 24px 0;
    flex-wrap: wrap;
  }

  .cat-body,
  .entry-body-section,
  .about-body-section,
  .privacy-body-section {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .cat-sidebar,
  .entry-sidebar,
  .about-sidebar,
  .privacy-sidebar {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
  }

  .footer-cta {
    padding: 40px 24px;
  }

  .footer-bottom {
    padding: 16px 24px;
  }

  .footer-cta-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 140px;
  }

  .bento-card.bento-wide {
    grid-column: span 1;
  }

  .hero-cats {
    gap: 8px;
  }

  .cat-pill {
    font-size: 0.8rem;
    padding: 8px 14px;
  }

  .entry-link {
    gap: 12px;
    padding: 14px 14px;
  }
}
