/* Blog / "Writing" — clone of generalintelligencecompany.com/writing, rebuilt
   in the Hoplo design system. Tokens: surface rgb(245,245,242), ink rgb(23,23,23),
   muted greys, accent rgb(0,126,199). Fonts via the shared CSS vars. */

.spb-page {
  --spb-ink: rgb(23, 23, 23);
  --spb-muted: rgba(38, 35, 35, 0.62);
  --spb-faint: rgba(38, 35, 35, 0.45);
  --spb-surface: rgb(245, 245, 242);
  --spb-line: rgb(231, 231, 227);
  --spb-accent: rgb(0, 126, 199);
  background: var(--spb-surface);
  padding-bottom: 24px;
}

/* ---- 1. Featured ----------------------------------------------------- */
.spb-featured {
  display: block;
  max-width: 1120px;
  margin: 0 auto;
  padding: 132px 24px 0;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.spb-featured .spb-featured-frame {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.spb-featured:hover .spb-featured-frame {
  transform: translateY(-3px);
  box-shadow: rgb(255, 255, 255) 0 2px 1px, rgba(20, 24, 22, 0.16) 0 22px 46px;
}
.spb-featured:hover .spb-featured-title {
  color: rgb(0, 126, 199);
}
.spb-featured-title {
  transition: color 0.18s ease;
}
.spb-eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-ibm-plex-mono, var(--font-mono, monospace));
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--spb-accent);
}
.spb-featured-title {
  margin: 0 auto;
  max-width: 18ch;
  font-family: var(--font-neoris);
  font-size: 44px;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--spb-ink);
}
.spb-featured-meta {
  margin: 14px 0 0;
  font-family: var(--font-neoris);
  font-size: 14px;
  color: var(--spb-muted);
}
.spb-featured-meta span {
  margin: 0 6px;
  color: var(--spb-faint);
}
.spb-featured-frame {
  position: relative;
  margin: 28px auto 0;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--spb-line);
  box-shadow: rgb(255, 255, 255) 0 2px 1px, rgba(20, 24, 22, 0.1) 0 18px 40px;
}
.spb-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* Partnership announcements keep the official marks intact inside a
   restrained editorial canvas instead of cropping them like photography. */
.spb-featured-frame.is-brand,
.spb-card-frame.is-brand {
  background-color: #eceee9;
}

.spb-featured-frame.is-brand-openai,
.spb-card-frame.is-brand-openai {
  background: #111a19;
}

.spb-featured-frame.is-brand-nvidia,
.spb-card-frame.is-brand-nvidia {
  background: #111511;
}

.spb-featured-img.is-brand-background {
  object-fit: cover;
  object-position: center;
}

.spb-brand-lockup {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transform: translate(-50%, -50%);
}

.spb-brand-lockup img {
  display: block;
  width: auto;
  object-fit: contain;
}

.spb-brand-hoplo {
  width: 132px !important;
}

.spb-brand-divider {
  width: 1px;
  height: 62px;
  background: rgba(255, 255, 255, 0.34);
}

.spb-brand-lockup.is-openai .spb-brand-partner {
  width: 176px;
}

.spb-brand-lockup.is-nvidia {
  width: min(440px, 58%);
  padding: 16px 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 11px;
  background: rgba(251, 251, 248, 0.94);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.spb-brand-lockup.is-nvidia .spb-brand-partner {
  width: 100%;
}

/* ---- 2. Filter pills ------------------------------------------------- */
.spb-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.spb-pill {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-ibm-plex-mono, var(--font-mono, monospace));
  font-size: 12px;
  letter-spacing: 0.01em;
  padding: 8px 15px;
  border-radius: 100px;
  border: 1px solid var(--spb-line);
  background: rgb(251, 251, 248);
  color: var(--spb-muted);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.spb-pill:hover {
  color: var(--spb-ink);
  border-color: rgba(38, 35, 35, 0.24);
}
.spb-pill.is-active {
  background: rgb(23, 23, 23);
  border-color: rgb(23, 23, 23);
  color: #fff;
}

/* ---- 3. Article grid ------------------------------------------------- */
.spb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  /* match .spb-featured / .spb-filters so all three share the same edges */
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.spb-card {
  display: block;
  margin: 0;
  text-decoration: none;
  color: inherit;
}
.spb-card[hidden] {
  display: none;
}
.spb-card-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--spb-line);
  box-shadow: rgb(255, 255, 255) 0 2px 1px, rgba(20, 24, 22, 0.08) 0 10px 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.spb-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.spb-card-img.is-brand-background {
  object-fit: cover;
  object-position: center;
}
.spb-card-frame.is-ai-act .spb-card-img {
  filter: saturate(0.86) brightness(0.82) contrast(1.04);
}
.spb-ai-act-lockup {
  position: absolute;
  z-index: 2;
  top: 19%;
  left: 50%;
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 1px 7px;
  transform: translateX(-50%);
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}
.spb-ai-act-lockup small {
  font: 500 9px/1 var(--font-ibm-plex-mono, monospace);
  letter-spacing: 0.1em;
}
.spb-ai-act-lockup strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  font: 450 34px/0.86 var(--font-neoris);
  letter-spacing: -0.05em;
}
.spb-ai-act-lockup em {
  font: 500 6px/1 var(--font-ibm-plex-mono, monospace);
  letter-spacing: 0.11em;
  font-style: normal;
}
.spb-card-scrim {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 18, 0.12) 0%, rgba(10, 14, 18, 0) 34%, rgba(10, 14, 18, 0.14) 58%, rgba(10, 14, 18, 0.62) 100%);
}
.spb-card-over {
  position: absolute;
  z-index: 3;
  left: 22px;
  right: 22px;
  bottom: 22px;
  text-align: center;
  color: #fff;
}
.spb-card-cat {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-ibm-plex-mono, var(--font-mono, monospace));
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  /* darkening tint + shadow so the chip stays legible over bright photo areas
     (it sits high in the card, in the weak part of the scrim) */
  background: rgba(10, 14, 18, 0.42);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  padding: 3px 9px;
  border-radius: 100px;
}
.spb-card-title {
  margin: 0;
  font-family: var(--font-neoris);
  font-size: 19px;
  line-height: 1.22;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.spb-card-meta {
  margin: 8px 0 0;
  font-family: var(--font-neoris);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
}
.spb-card-meta span {
  margin: 0 5px;
  opacity: 0.7;
}

.spb-card-frame .spb-brand-lockup {
  top: 36%;
  gap: 9px;
}

.spb-card-frame .spb-brand-hoplo {
  width: 70px !important;
}

.spb-card-frame .spb-brand-divider {
  height: 32px;
}

.spb-card-frame .spb-brand-lockup.is-openai .spb-brand-partner {
  width: 88px;
}

.spb-card-frame .spb-brand-lockup.is-nvidia {
  width: 64%;
  padding: 8px 11px;
  border-radius: 8px;
}
.spb-card:hover .spb-card-frame {
  transform: translateY(-3px);
  box-shadow: rgb(255, 255, 255) 0 2px 1px, rgba(20, 24, 22, 0.16) 0 18px 36px;
}
.spb-card:hover .spb-card-img {
  transform: scale(1.04);
}

.spb-card:hover .spb-card-img.is-brand-background {
  transform: scale(1.025);
}
.spb-card:hover .spb-card-frame.is-ai-act .spb-card-img {
  transform: scale(1.04);
}

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 900px) {
  .spb-featured-title {
    font-size: 34px;
  }
  .spb-featured-frame {
    height: 300px;
  }
  .spb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .spb-featured-title {
    font-size: 28px;
  }
  .spb-featured-frame {
    height: 210px;
  }
  .spb-grid {
    grid-template-columns: 1fr;
  }
  .spb-card-title {
    font-size: 18px;
  }
  .spb-brand-hoplo {
    width: 86px !important;
  }
  .spb-brand-divider {
    height: 42px;
  }
  .spb-brand-lockup.is-openai .spb-brand-partner {
    width: 116px;
  }
  .spb-brand-lockup.is-nvidia {
    width: min(310px, 72%);
    padding: 12px 16px;
  }
}
