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

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Noto Sans Hebrew', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #000;
  background: #fff;
  overflow-x: hidden;
}

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

/* ===== Layout: Aside + PageWrap ===== */
.site-aside {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: #000;
  color: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}

.aside-inner {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.25rem 1.5rem;
  height: 100%;
  gap: 2rem;
}

.aside-brand {
  border-bottom: 1px solid #333;
  padding-bottom: 1.25rem;
}

.brand-link {
  text-decoration: none;
  display: block;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.brand-logo {
  max-width: 140px;
  height: auto;
  display: block;
}

/* ===== Aside Nav ===== */
.aside-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aside-nav li {
  opacity: 0;
  transform: translateX(-12px);
  animation: slideInNav 0.4s forwards;
  animation-delay: calc(var(--i) * 0.07s + 0.2s);
}

@media (prefers-reduced-motion: reduce) {
  .aside-nav li {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@keyframes slideInNav {
  to { opacity: 1; transform: translateX(0); }
}

.nav-pill {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #ccc;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  background: #fff;
  color: #000;
  outline: none;
}

.nav-pill:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ===== Search ===== */
.aside-search {
  margin-top: auto;
}

.aside-search form {
  display: flex;
  align-items: center;
  border: 1px solid #444;
  border-radius: 4px;
  overflow: hidden;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.5rem 0.6rem;
  font-size: 0.82rem;
  outline: none;
  min-width: 0;
}

.search-input::placeholder { color: #666; }

.search-btn {
  background: transparent;
  border: none;
  color: #999;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 40px;
  transition: color 0.2s;
}

.search-btn:hover { color: #fff; }

/* ===== Aside Toggle (desktop hidden) ===== */
.aside-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem 0;
  min-height: 40px;
}

.aside-toggle span,
.mobile-nav-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: background 0.2s;
}

.mobile-nav-btn {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  background: #000;
  border: none;
  cursor: pointer;
  padding: 0.6rem 0.7rem;
  border-radius: 4px;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

/* ===== Page Wrap ===== */
.page-wrap {
  margin-left: 220px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

/* ===== Hero ===== */
.hero-section {
  min-height: 45vh;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 3px solid #000;
}

.hero-inner {
  padding: 3rem 4rem 2.5rem;
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-kicker {
  margin-bottom: 1rem;
}

.kicker-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: #000;
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #000;
  max-width: 640px;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: #333;
  max-width: 520px;
  line-height: 1.65;
}

.hero-deco {
  position: absolute;
  right: 4rem;
  bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 3;
}

.hero-slash {
  width: 3px;
  height: 80px;
  background: #000;
  transform: skewX(-12deg);
}

.hero-icon svg { display: block; }

.hero-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    #000 0px,
    #000 24px,
    #fff 24px,
    #fff 32px
  );
  z-index: 4;
}

/* ===== Content Body ===== */
.home-article {
  display: block;
}

.content-section {
  padding: 0;
}

.content-body {
  /* sections inside come from page.content */
}

/* ===== page.content div styling ===== */
.content-body div {
  padding: 3.5rem 4rem;
  border-bottom: 1px solid #e0e0e0;
  scroll-margin-top: 80px;
  position: relative;
}

.content-body div:nth-child(odd) {
  background: #fff;
}

.content-body div:nth-child(even) {
  background: #f7f7f7;
}

.content-body h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  color: #000;
}

.content-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #000;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: #1a1a1a;
  margin-bottom: 1rem;
  max-width: 720px;
}

.content-body ul,
.content-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  max-width: 720px;
}

.content-body li {
  font-size: 1rem;
  line-height: 1.75;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
}

.content-body a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s;
}

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

/* Drop cap for first div first paragraph */
.content-body div:first-child > p:first-of-type::first-letter {
  font-size: 3.5em;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin-right: 0.1em;
  margin-top: 0.1em;
  color: #000;
}

/* Pull quote styling */
.content-body blockquote {
  border-left: 4px solid #000;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: #f0f0f0;
  font-size: 1.15rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.01em;
  color: #000;
  max-width: 600px;
}

/* Section column layout for certain sections */
.content-body div:nth-child(3) .section-inner,
.content-body div:nth-child(5) .section-inner {
  column-count: 2;
  column-gap: 3rem;
}

/* Section header small eyebrow */
.content-body small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Reveal on scroll */
.content-body div {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.content-body div.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .content-body div {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* figure/figcaption */
.content-body figure {
  margin: 2rem 0;
  max-width: 700px;
}

.content-body figcaption {
  font-size: 0.82rem;
  color: #666;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.content-body img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ===== Footer ===== */
.site-footer {
  background: #000;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "brand links"
    "bottom bottom";
  gap: 0;
  border-top: 3px solid #000;
}

.site-footer > div {
  padding: 2.5rem 3rem;
}

.footer-brand {
  grid-area: brand;
  border-right: 1px solid #333;
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  color: #fff;
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: #aaa;
  line-height: 1.65;
  max-width: 280px;
}

.footer-links {
  grid-area: links;
  padding: 2.5rem 3rem;
}

.footer-eyebrow {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: #bbb;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
  display: inline-block;
  padding: 0.15rem 0;
  min-height: 32px;
  line-height: 2;
}

.footer-nav a:hover { color: #fff; }

.footer-bottom {
  grid-area: bottom;
  background: #111;
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.78rem;
  color: #555;
  border-top: 1px solid #222;
  grid-column: 1 / -1;
}

/* ===== Stagger hover micro on nav pills ===== */
.nav-pill {
  position: relative;
  overflow: hidden;
}

.nav-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 100px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s, transform 0.2s;
  z-index: -1;
}

.nav-pill:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* ===== Aside collapsed state ===== */
.site-aside.is-collapsed {
  transform: translateX(-220px);
}

.site-aside.is-collapsed + .page-wrap {
  margin-left: 0;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .site-aside {
    width: 240px;
    transform: translateX(-240px);
  }

  .site-aside.is-open {
    transform: translateX(0);
  }

  .mobile-nav-btn {
    display: flex;
  }

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

  .hero-inner {
    padding: 4rem 1.25rem 2rem;
  }

  .hero-deco {
    display: none;
  }

  .content-body div {
    padding: 2.5rem 1.25rem;
    scroll-margin-top: 64px;
  }

  .content-body div:nth-child(3) .section-inner,
  .content-body div:nth-child(5) .section-inner {
    column-count: 1;
  }

  .site-footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "links"
      "bottom";
  }

  .footer-brand {
    border-right: none;
    border-bottom: 1px solid #222;
    padding: 2rem 1.5rem;
  }

  .footer-links {
    padding: 2rem 1.5rem;
  }

  .footer-bottom {
    padding: 1rem 1.5rem;
  }

  .content-body p,
  .content-body ul,
  .content-body ol {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 1.75rem;
  }
}

/* ===== Overlay for mobile nav ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

.nav-overlay.is-active {
  display: block;
}

/* ===== Section scroll margin ===== */
div[id] {
  scroll-margin-top: 20px;
}

@media (max-width: 768px) {
  div[id] {
    scroll-margin-top: 60px;
  }
}

/* ===== Divider lines ===== */
.content-body div::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: #000;
  margin-bottom: 1.5rem;
}

button[aria-expanded]{min-width:44px;min-height:44px}
