/* Blog / Journal — Style A editorial archive + single.
   Scoped to .nsi-blog; site chrome provides header/footer. */

.nsi-blog {
  --blog-pad: clamp(1.25rem, 4vw, 3.5rem);
  --blog-max: 52rem;
  --blog-wide: 92rem;
  --blog-gutter: 0.5rem;
  --blog-ink: var(--color-ink);
  --blog-muted: rgba(42, 38, 35, 0.72);
  --blog-rule: rgba(42, 38, 35, 0.14);
  color: var(--blog-ink);
  background: var(--color-canvas);
}

.nsi-blog a {
  color: inherit;
  text-decoration: none;
}

/* Legacy bar — hidden; site chrome is primary nav */
.nsi-blog__bar,
.nsi-blog__site-foot {
  display: none;
}

.nsi-blog__intro {
  max-width: var(--blog-wide);
  margin: 0 auto;
  padding: clamp(2.75rem, 8vh, 5rem) var(--blog-pad) clamp(2rem, 5vh, 3rem);
}

.nsi-blog__eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blog-ink);
}

.nsi-blog__eyebrow a:hover,
.nsi-blog__eyebrow a:focus-visible {
  opacity: 0.55;
}

.nsi-blog__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.nsi-blog__title::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 1px;
  margin: 1.05rem 0 0;
  background: var(--blog-ink);
}

.nsi-blog__lede {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--blog-muted);
}

.nsi-blog__list {
  max-width: var(--blog-wide);
  margin: 0 auto;
  padding: 0 var(--blog-pad) clamp(3rem, 8vh, 5.5rem);
  display: grid;
  gap: clamp(1.5rem, 3vh, 2.5rem);
}

.nsi-blog__list--has-feature {
  gap: clamp(2rem, 4vh, 3rem);
}

.nsi-blog__entry {
  margin: 0;
}

.nsi-blog__entry-link {
  display: grid;
  gap: 1rem;
  color: inherit;
  transition: opacity 220ms var(--ease-out);
}

.nsi-blog__entry-link:hover,
.nsi-blog__entry-link:focus-visible {
  opacity: 0.82;
}

.nsi-blog__entry-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ebe4da;
}

.nsi-blog__entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nsi-blog__entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(42, 38, 35, 0.55);
}

.nsi-blog__entry-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.15;
}

.nsi-blog__entry-excerpt {
  margin: 0.7rem 0 0;
  max-width: 36rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--blog-muted);
}

.nsi-blog__entry-cta {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blog-ink);
  border-bottom: 1px solid var(--blog-ink);
  padding-bottom: 0.12rem;
}

/* Featured lead story */
.nsi-blog__entry--feature .nsi-blog__entry-link {
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.nsi-blog__entry--feature .nsi-blog__entry-media {
  aspect-ratio: 16 / 10;
}

.nsi-blog__entry--feature .nsi-blog__entry-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
}

.nsi-blog__entry--feature .nsi-blog__entry-excerpt {
  font-size: 1rem;
  max-width: 40rem;
}

/* Card grid for remaining posts */
.nsi-blog__list--has-feature .nsi-blog__entry--card {
  /* collected into a subgrid via parent after first child */
}

.nsi-blog__empty {
  max-width: var(--blog-max);
  margin: 0 auto;
  padding: 0 var(--blog-pad) 4rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--blog-muted);
}

.nsi-blog__pagination {
  max-width: var(--blog-wide);
  margin: 0 auto;
  padding: 0 var(--blog-pad) 3.5rem;
}

.nsi-blog__pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nsi-blog__pagination a {
  color: rgba(42, 38, 35, 0.55);
}

.nsi-blog__pagination a:hover,
.nsi-blog__pagination a:focus-visible,
.nsi-blog__pagination .current {
  color: var(--blog-ink);
}

/* —— Single —— */
.nsi-blog__article {
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

.nsi-blog--single .nsi-blog__shell {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(2.25rem, 6vh, 3.75rem) var(--blog-pad) 0;
}

.nsi-blog--single .nsi-blog__article-head,
.nsi-blog--single .nsi-blog__content,
.nsi-blog--single .nsi-blog__article-foot,
.nsi-blog--single .nsi-blog__hero {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.nsi-blog__article-head {
  padding: 0 0 1.35rem;
}

.nsi-blog__article-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.35rem, 4.2vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.nsi-blog__article-meta {
  margin: 1rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(42, 38, 35, 0.55);
}

.nsi-blog__hero {
  margin: 0 0 1.75rem;
}

.nsi-blog__hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #ebe4da;
}

.nsi-blog__content {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.5vw, 1.32rem);
  line-height: 1.6;
  color: rgba(28, 25, 23, 0.88);
}

.nsi-blog__content > *:first-child {
  margin-top: 0;
}

.nsi-blog__content p {
  margin: 0 0 1.15em;
}

.nsi-blog__content .has-text-align-center {
  text-align: left !important;
}

.nsi-blog__content h2,
.nsi-blog__content h3 {
  margin: 1.75em 0 0.55em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nsi-blog__content a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.nsi-blog__content ul,
.nsi-blog__content ol {
  margin: 0 0 1.15em;
  padding-left: 1.25rem;
}

.nsi-blog__content figure {
  margin: 1.75rem 0;
}

.nsi-blog__content img {
  width: 100%;
}

.nsi-blog__article-foot {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--blog-rule);
}

.nsi-blog__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(42, 38, 35, 0.55);
}

.nsi-blog__back:hover,
.nsi-blog__back:focus-visible {
  color: var(--blog-ink);
}

@media (min-width: 820px) {
  .nsi-blog__entry--feature .nsi-blog__entry-link {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    align-items: center;
  }

  .nsi-blog__list--has-feature {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 1.75rem) var(--blog-gutter);
  }

  .nsi-blog__list--has-feature .nsi-blog__entry--feature {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .nsi-blog__list--has-feature {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .nsi-blog__entry-link {
    transition: none;
  }
}
