@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/assistant-hebrew-wght-normal.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: "Assistant";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/assistant-latin-wght-normal.woff2") format("woff2");
  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;
}

:root {
  --stone: #f3eee4;
  --stone-2: #e7dfd2;
  --paper: #fffaf1;
  --white: #ffffff;
  --ink: #0b1117;
  --navy: #081421;
  --navy-2: #101d2a;
  --muted: #68707a;
  --line: rgba(11, 17, 23, 0.14);
  --gold: #b68a42;
  --copper: #9f6f3b;
  --copper-text: #855a2b;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  font-family: "Assistant", "Heebo", "Noto Sans Hebrew", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(11, 17, 23, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper), var(--stone));
  background-size: 96px 96px, auto;
  line-height: 1.75;
}

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

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

p {
  margin: 0 0 1rem;
  color: #2a3138;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.7rem, 10vw, 8rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  font-weight: 850;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  right: 16px;
  top: -60px;
  z-index: 20;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 20, 33, 0.94);
  color: var(--white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 48px;
  height: 48px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.brand small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 34px);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.main-nav a {
  padding-block: 8px;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--white);
  border-color: var(--gold);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 33, 0.08), rgba(8, 20, 33, 0.78) 54%, rgba(8, 20, 33, 0.92)),
    linear-gradient(180deg, rgba(8, 20, 33, 0.08), rgba(8, 20, 33, 0.35));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding-block: clamp(86px, 12vh, 160px);
  display: grid;
  justify-items: start;
}

.kicker,
.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0 0 18px;
}

.hero-subtitle {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 3vw, 2.7rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.94);
}

.hero-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-dark {
  background: var(--gold);
  color: var(--ink);
}

.btn-dark:hover,
.btn-dark:focus {
  background: #d1aa62;
}

.btn-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-light:hover,
.btn-light:focus {
  border-color: var(--gold);
}

.metrics {
  background: var(--navy);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metrics-grid div {
  padding: 28px 22px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.14);
}

.metrics-grid div:last-child {
  border-inline-start: 0;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  color: var(--gold);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.metrics span {
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding-block: clamp(72px, 9vw, 130px);
}

.two-col,
.split-grid,
.feature-grid,
.closing-grid,
.article-hero-grid,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}

.two-col > div,
.split-grid > div,
.feature-grid > div,
.closing-grid > div {
  min-width: 0;
}

.image-panel,
.wide-photo,
.feature-grid figure,
.closing-grid figure,
.article-hero figure {
  margin: 0;
  overflow: hidden;
  background: var(--stone-2);
}

.image-panel {
  position: relative;
}

.image-panel img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
}

.image-panel figcaption {
  position: absolute;
  inset-inline: 22px;
  bottom: 22px;
  background: rgba(8, 20, 33, 0.82);
  color: var(--white);
  padding: 14px 16px;
  border-inline-start: 3px solid var(--gold);
}

.stone-band {
  background: var(--stone);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 850px;
  margin-bottom: clamp(32px, 5vw, 60px);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-block: 1px solid var(--line);
}

.timeline article {
  padding: 28px 24px;
  border-inline-start: 1px solid var(--line);
}

.timeline article:last-child {
  border-inline-start: 0;
}

.timeline span {
  color: var(--gold);
  font-weight: 900;
  font-size: 1.7rem;
}

.timeline h3 {
  margin-block: 12px 8px;
}

.timeline p {
  font-size: 0.98rem;
}

.editorial-split {
  background: var(--white);
}

.split-card {
  min-height: 470px;
  padding: clamp(30px, 5vw, 60px);
  border: 1px solid var(--line);
  background: var(--paper);
}

.dark-card {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.dark-card p {
  color: rgba(255, 255, 255, 0.78);
}

.magazine-feature figure,
.wide-photo,
.closing-grid figure,
.article-hero figure {
  border: 1px solid var(--line);
}

.magazine-feature img,
.wide-photo img,
.closing-grid img,
.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.renewal-section {
  background: linear-gradient(180deg, var(--paper), var(--white));
}

.reverse {
  direction: ltr;
}

.reverse > * {
  direction: rtl;
}

.projects-section {
  background: var(--navy);
  color: var(--white);
}

.projects-section p {
  color: rgba(255, 255, 255, 0.78);
}

.projects-magazine {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.projects-magazine article {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 22px;
  align-items: stretch;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.projects-magazine .project-large {
  grid-row: span 2;
  grid-template-columns: 1fr;
  padding-block-start: 0;
}

.projects-magazine img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.projects-magazine span {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.9rem;
}

.projects-magazine h3 {
  margin: 8px 0 12px;
}

.field-section {
  background: var(--paper);
}

.knowledge-section {
  background: var(--white);
}

.knowledge-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.knowledge-list a {
  display: block;
  min-height: 260px;
  padding: 28px;
  background: var(--paper);
}

.knowledge-list a:hover,
.knowledge-list a:focus {
  background: var(--stone);
}

.knowledge-list span {
  color: var(--gold);
  font-weight: 900;
}

.knowledge-list h3 {
  margin-block: 12px;
}

.closing-section {
  background: var(--stone);
}

.closing-grid {
  grid-template-columns: 0.85fr 1.15fr;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-block: 60px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 1fr;
  gap: 42px;
}

.footer-grid p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 8px;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 34px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.article-hero {
  padding-block: clamp(58px, 8vw, 110px);
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  color: var(--white);
}

.article-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.article-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 24px;
}

.article-body {
  padding-block: 76px;
  background: var(--paper);
}

.article-layout {
  grid-template-columns: 280px minmax(0, 820px);
  align-items: start;
}

.article-aside {
  position: sticky;
  top: 106px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
}

.article-aside strong,
.article-aside a {
  display: block;
}

.article-aside strong {
  margin-bottom: 14px;
}

.article-aside a {
  padding-block: 8px;
  color: #424a52;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

.article-content {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 64px);
}

.article-content section + section {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.article-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  margin-bottom: 16px;
}

.note-box {
  background: var(--stone);
  padding: 28px;
}

.article-cta {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 2px solid var(--gold);
}

.not-found {
  min-height: 60vh;
}

@media (max-width: 980px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(8, 20, 33, 0.2), rgba(8, 20, 33, 0.86));
  }

  .metrics-grid,
  .timeline,
  .two-col,
  .split-grid,
  .feature-grid,
  .closing-grid,
  .article-hero-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .timeline article,
  .metrics-grid div {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .projects-magazine,
  .projects-magazine article {
    grid-template-columns: 1fr;
  }

  .knowledge-list {
    grid-template-columns: 1fr 1fr;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, var(--max));
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.8rem);
  }

  .hero {
    min-height: 700px;
  }

  .hero-actions,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .metrics-grid,
  .knowledge-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-card,
  .article-content,
  .note-box {
    padding: 24px;
  }
}

/* ---------- v1.1: blog, posts, pages ---------- */

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

.main-nav a[aria-current="page"] {
  color: var(--white);
  border-color: var(--gold);
}

.btn-outline {
  color: var(--ink);
  border-color: rgba(11, 17, 23, 0.4);
}

.btn-outline:hover,
.btn-outline:focus {
  border-color: var(--gold);
  background: rgba(182, 138, 66, 0.12);
}

.text-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--copper-text);
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.text-link:hover,
.text-link:focus {
  color: var(--ink);
}

.dark-card .text-link,
.projects-section .text-link {
  color: var(--gold);
}

.dark-card .text-link:hover,
.projects-section .text-link:hover {
  color: var(--white);
}

.section-cta {
  margin: 40px 0 0;
}

.footer-grid .footer-title {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 850;
  line-height: 1.2;
}

.footer-grid .footer-heading {
  margin: 0 0 12px;
  color: var(--white);
  font-weight: 800;
}

.page-hero {
  padding-block: clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  color: var(--white);
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  line-height: 1.12;
}

.page-hero p,
.page-hero-intro p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.8);
}

.page-hero-intro {
  margin-top: 18px;
}

.page-hero-intro a {
  color: var(--gold);
  border-bottom: 1px solid currentColor;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
  color: var(--white);
}

.breadcrumbs [aria-current="page"] {
  color: rgba(255, 255, 255, 0.92);
}

.post-section {
  background: var(--paper);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.chip {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.chip:hover,
.chip:focus,
.chip[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease;
}

.post-card:hover,
.post-card:focus-within {
  border-color: var(--gold);
}

.post-card-media {
  display: block;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: var(--stone-2);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.03);
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
}

.post-card-cat {
  color: var(--copper-text);
  font-weight: 800;
  font-size: 0.88rem;
}

.post-card .post-card-title {
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.3;
}

.post-card .post-card-title a:hover,
.post-card .post-card-title a:focus {
  color: var(--copper-text);
}

.post-card-body p {
  margin: 0;
  color: #424a52;
  font-size: 0.98rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  margin-top: auto;
  padding-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.post-card-featured {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1.15fr 1fr;
}

.post-card-featured .post-card-media {
  aspect-ratio: auto;
  min-height: 340px;
}

.post-card-featured .post-card-body {
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
}

.post-card-featured .post-card-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.post-card-featured .post-card-body p {
  font-size: 1.05rem;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-numbers {
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 700;
}

.page-numbers.current,
a.page-numbers:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.article-hero .eyebrow a {
  border-bottom: 1px solid currentColor;
}

.article-lead {
  font-size: 1.15rem;
}

.article-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.article-meta span {
  margin-inline: 6px;
}

.article-hero figure img {
  aspect-ratio: 1200 / 630;
}

.article-aside .aside-back {
  margin-top: 6px;
  font-weight: 800;
  color: var(--copper-text);
}

.entry-content > * + * {
  margin-top: 0;
}

.entry-content p {
  margin-bottom: 1.15rem;
  line-height: 1.9;
}

.entry-content h2 {
  margin: 2.4rem 0 1rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  scroll-margin-top: 100px;
}

.entry-content > p:first-child + p + h2,
.entry-content > h2:first-child {
  margin-top: 2rem;
}

.entry-content a,
.page-content-wrap .article-content a {
  color: var(--copper-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content a:hover,
.entry-content a:focus {
  color: var(--ink);
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.15rem;
  padding-inline-start: 1.4rem;
  line-height: 1.9;
}

.article-content .note-box,
.article-content .author-box {
  margin-top: 36px;
}

.note-box p {
  margin: 0;
  font-size: 0.98rem;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.author-box img {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box p {
  margin: 0 0 4px;
  font-size: 1rem;
}

.author-box a {
  color: var(--copper-text);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.author-label {
  color: var(--muted);
  font-size: 0.85rem !important;
  font-weight: 800;
}

.author-name {
  font-size: 1.25rem !important;
  font-weight: 900;
}

.related-section {
  background: var(--stone);
  border-top: 1px solid var(--line);
}

.page-content-wrap {
  max-width: 900px;
}

.not-found-sub {
  margin: 56px 0 24px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

@media (max-width: 980px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-card-featured {
    grid-template-columns: 1fr;
  }

  .post-card-featured .post-card-media {
    aspect-ratio: 1200 / 630;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr;
  }

  .author-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .article-hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}

.section h2 {
  margin-bottom: 0.4em;
}

.related-section .section-head h2,
.post-section h2.not-found-sub {
  margin-bottom: 0.2em;
}

.article-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1.15;
}

@media (max-width: 640px) {
  .article-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }
}


/* v1.1.2: articles without a featured image, aside without table of contents */
.article-hero-grid.is-solo {
  grid-template-columns: minmax(0, 1fr);
}

.article-hero-grid.is-solo > div {
  max-width: 860px;
}

.article-aside:not(:has(strong)) {
  padding: 0;
  border: 0;
  background: none;
}

.article-aside:not(:has(strong)) .aside-back {
  border-top: 0;
  padding-block: 0;
}
