/* Home: restructured news + publications blocks.
   Reuses the site's own values from landing.css: card head, rule, paddings (36px / 24px),
   article type (Tinos 700 16px / 1.55), date type (Manrope 700 10px, .06em), colors, breakpoints. */

.ps-home-blocks {
  display: grid;
  gap: 24px;
}

/* ---------- News ---------- */

.ps-news__body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px;
  padding: 24px 36px;
}

.ps-feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  overflow: hidden;
  color: var(--ps-text-inverse);
  text-decoration: none;
  isolation: isolate;
}

.ps-feature__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(13, 11, 9, 0.85), rgba(13, 11, 9, 0) 70%);
}

.ps-feature__text {
  display: block;
  padding: 28px 36px;
}

.ps-feature__date {
  display: block;
  font-family: var(--ps-font-sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ps-text-inverse-muted);
}

.ps-feature__title {
  margin: 8px 0 0;
  font-family: var(--ps-font-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.35;
  color: var(--ps-text-inverse);
}

.ps-feature:hover .ps-feature__title {
  text-decoration: underline;
}

.ps-news__list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.ps-news__rule {
  flex: none;
  height: 1px;
  background: var(--ps-border);
}

/* ---------- Item (news list + publications) ---------- */

.ps-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.ps-item__thumb {
  flex: 0 0 116px;
  width: 116px;
  height: 92px;
  object-fit: cover;
}

.ps-item__thumb-link {
  position: relative;
  z-index: 1;
  flex: 0 0 116px;
  width: 116px;
  height: 92px;
}

.ps-item__thumb-link .ps-item__thumb {
  display: block;
}

.ps-item__body {
  min-width: 0;
  flex: 1 1 auto;
}

.ps-item__date {
  display: block;
  margin: 0 0 4px;
  font-family: var(--ps-font-sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ps-text-secondary);
  white-space: nowrap;
}

.ps-item__title {
  margin: 0;
  font-family: var(--ps-font-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ps-text-primary);
}

.ps-item__title a {
  color: inherit;
  text-decoration: none;
}

.ps-item__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.ps-item__thumb {
  position: relative;
  z-index: 1;
}

.ps-item:hover .ps-item__title {
  color: var(--ps-accent);
}

/* ---------- Publications ---------- */

.ps-pubs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  padding: 0 36px;
}

.ps-item--pub {
  padding: 24px 0;
}

.ps-item--pub:nth-child(-n + 2) {
  border-top: 0;
}

.ps-item--pub:nth-child(n + 3) {
  border-top: 1px solid var(--ps-border);
}

/* Fallback when a post has no featured image. */
.ps-media {
  display: block;
  background: var(--ps-accent);
}

/* ---------- Responsive (same breakpoints as the site) ---------- */

@media (max-width: 960px) {
  .ps-news__body {
    grid-template-columns: 1fr;
  }

  .ps-feature {
    min-height: 340px;
  }

  .ps-pubs__grid {
    grid-template-columns: 1fr;
  }

  .ps-item--pub:nth-child(2) {
    border-top: 1px solid var(--ps-border);
  }
}

@media (max-width: 560px) {
  .ps-news__body {
    padding: 18px 20px;
  }

  .ps-pubs__grid {
    padding: 0 20px;
  }

  .ps-feature__text {
    padding: 20px;
  }

  .ps-item {
    gap: 16px;
  }

  .ps-item--pub {
    padding: 18px 0;
  }

  .ps-item__thumb {
    flex-basis: 88px;
    width: 88px;
    height: 72px;
  }

  .ps-item__thumb-link {
    flex-basis: 88px;
    width: 88px;
    height: 72px;
  }
}
