/* ===== Standalone News page (Framer-style lobby) ===== */
/* Same idea as body.projects-page: global header uses white text for the dark hero — force dark chrome here */
body.news-page {
  background: #fff;
  color: #050505;
  min-height: 100vh;
}

.news-page .header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.news-page .logo,
.news-page .nav a {
  color: #050505;
}

.news-page .nav a:hover {
  color: rgba(5, 5, 5, 0.55);
}

/* Clear fixed header */
.news-page main {
  padding-top: 5.5rem;
}

.news-page-top {
  --projects-pad-x: clamp(1.25rem, 4vw, 1.5rem);
  --projects-max: min(100vw - 2 * var(--projects-pad-x), 1580px);

  padding: clamp(4.5rem, 9vw, 6.75rem) 0 clamp(2rem, 4vw, 2.75rem);
}

.news-page-top .projects-hero {
  margin-bottom: 0;
}

/* Nudge headline + subtitle right vs. date column (same rhythm as Projects page) */
.news-page-top .projects-hero__main {
  padding-left: clamp(2.65rem, 8.25vw, 7.5rem);
}

@media (max-width: 640px) {
  .news-page-top .projects-hero__main {
    padding-left: 0;
  }
}

.news-page-articles {
  /* Same custom properties as .news-section so card styles resolve off-homepage */
  --news-text: rgb(20, 20, 20);
  --news-text-soft: rgba(20, 20, 20, 0.6);
  --news-accent-arrow: rgb(91, 240, 158);
  --news-radius-outer: clamp(22px, 2.5vw, 28px);
  --news-radius-img: clamp(18px, 2vw, 24px);
  --news-font: var(--font-sans, 'General Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  --news-gutter: clamp(1.5rem, 5vw, 3.5rem);

  padding: 0 0 clamp(4rem, 9vw, 6.5rem);
  font-family: var(--news-font);
}

/* Re-use .news-container from news-section.css; ensure readable width on white */
.news-page-articles .news-container {
  max-width: 1580px;
}

/* Second row: three equal columns (Framer “more posts” row) */
.news-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  margin-top: clamp(12px, 1.5vw, 20px);
  align-items: start;
}

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

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