/* ================================================================
   BANO STUDIOS — BLOG PAGE CSS (D03)
   Page-specific styles for blog-d03.php.
   Ported verbatim from
   Website Resources/BANO STUDIOS/d03-site/blog.html lines 11–34.
   Loaded via $pageCSSFile = 'blog-d03.css' by blog-d03.php.
   Sits alongside the base tokens/chrome from assets/css/d03-theme.css.
   ================================================================ */

/* HERO ---------------------------------------------------------- */
.b-hero {
  padding: clamp(40px,6vw,96px) clamp(20px,5vw,56px);
  border-bottom: 2px solid var(--d03-ink);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 32px;
}
.b-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.88;
  font-size: clamp(56px, 10vw, 144px);
  margin: 0;
}
@media (max-width: 600px) {
  .b-hero { grid-template-columns: 1fr; align-items: flex-start; }
}

/* FEATURED POST SPLIT ------------------------------------------- */
.b-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-bottom: 2px solid var(--d03-ink);
}
.b-featured > .img {
  min-height: 460px;
  background: var(--d03-ink);
  overflow: hidden;
  border-right: 2px solid var(--d03-ink);
  position: relative;
}
.b-featured > .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
}
.b-featured > .img .tag {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--d03-red);
  color: #fff;
  padding: 8px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.b-featured > .info {
  padding: clamp(32px,5vw,72px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}
.b-featured h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4vw, 56px);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.b-featured .featured-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  opacity: 0.6;
  text-transform: uppercase;
}
.b-featured .featured-excerpt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.75;
  margin: 0;
  max-width: 520px;
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.b-featured .featured-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .b-featured { grid-template-columns: 1fr; }
  .b-featured > .img {
    border-right: none;
    border-bottom: 2px solid var(--d03-ink);
    min-height: 300px;
  }
}

/* POST GRID ----------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 2px solid var(--d03-ink);
}
.post {
  border-right: 2px solid var(--d03-ink);
  border-bottom: 2px solid var(--d03-ink);
  background: var(--d03-paper);
  display: flex;
  flex-direction: column;
  min-height: 440px;
  cursor: pointer;
  transition: background 120ms ease;
  text-decoration: none;
  color: inherit;
}
.post:hover { background: var(--d03-paper2); }
.post:nth-child(3n) { border-right: none; }
.post:nth-last-child(-n+3) { border-bottom: none; }
.post .img {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 2px solid var(--d03-ink);
  background: var(--d03-ink);
}
.post .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
  transition: filter 220ms ease, transform 400ms ease;
}
@media (hover: hover) {
  .post:hover .img img {
    filter: grayscale(0);
    transform: scale(1.03);
  }
}
.post .body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.post .meta {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.6;
  text-transform: uppercase;
}
.post h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.1;
  margin: 0;
}
.post .excerpt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
  opacity: 0.75;
  letter-spacing: 0.04em;
}
.post .read {
  margin-top: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--d03-red);
}
@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post:nth-child(3n) { border-right: 2px solid var(--d03-ink); }
  .post:nth-child(2n) { border-right: none; }
  .post:nth-last-child(-n+3) { border-bottom: 2px solid var(--d03-ink); }
  .post:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .post,
  .post:nth-child(2n),
  .post:nth-child(3n) { border-right: none; border-bottom: 2px solid var(--d03-ink); }
  .post:last-child { border-bottom: none; }
}

/* NEWSLETTER CTA ------------------------------------------------ */
.b-newsletter {
  background: var(--d03-red);
  color: #fff;
  padding: clamp(48px,7vw,96px) clamp(20px,5vw,56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: flex-end;
  border-bottom: 2px solid var(--d03-ink);
}
.b-newsletter h3 { margin: 0; }
.b-newsletter p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.75;
  margin: 0 0 28px;
  max-width: 440px;
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .b-newsletter { grid-template-columns: 1fr; gap: 32px; }
}
