/* Quick one-off CSS tweaks for the website (loaded after theme.scss).
   Anything you want to apply to the book as well belongs in theme.scss,
   which both projects share. */

/* ---------- Space-art title banner ----------
   The image itself is set with `title-block-banner:` (see _quarto.yml and the
   section _metadata.yml files). These rules make it taller, darken the left
   side so white title text stays readable, and keep it sharp on all widths. */
.quarto-title-banner {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  /* ~50% taller than Quarto's default; min-height keeps short titles tall too. */
  padding-top: 8.5rem !important;
  padding-bottom: 7.5rem !important;
  min-height: 460px;
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem !important;
  isolation: isolate;
}
.quarto-title-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 4, 16, 0.78) 0%, rgba(4, 4, 16, 0.45) 45%, rgba(4, 4, 16, 0.05) 85%),
    linear-gradient(0deg, rgba(4, 4, 16, 0.55) 0%, rgba(4, 4, 16, 0) 40%);
}
.quarto-title-banner .title {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.quarto-title-banner .subtitle,
.quarto-title-banner .description {
  color: #fff !important;
  opacity: 0.9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.quarto-title-banner .quarto-categories .quarto-category {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 767.98px) {
  .quarto-title-banner { padding-top: 4rem !important; padding-bottom: 3.5rem !important; min-height: 300px; }
}

/* ---------- "Published" line under the banner ----------
   Quarto's default is a stacked label + date block with generous margins;
   this turns it into one small line: "PUBLISHED  November 19, 2026". */
#title-block-header.quarto-title-block { margin-bottom: 0 !important; }
#title-block-header .quarto-title-meta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0 0 0.25rem 0 !important;
  font-size: 0.82rem;
  opacity: 0.75;
}
#title-block-header .quarto-title-meta > div {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
#title-block-header .quarto-title-meta-heading {
  margin: 0 !important;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
#title-block-header .quarto-title-meta-contents,
#title-block-header .quarto-title-meta-contents p {
  margin: 0 !important;
}

/* ---------- Thumbnail cards in listings ---------- */
.quarto-grid-item.card {
  border: 1px solid rgba(127, 127, 160, 0.22);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quarto-grid-item.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(20, 10, 60, 0.22);
}
.quarto-grid-item .card-img-top {
  overflow: hidden;
  background: #05050f;
}
.quarto-grid-item .card-img-top img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.quarto-grid-item:hover .card-img-top img {
  transform: scale(1.05);
}
.quarto-grid-item .card-title { font-weight: 600; line-height: 1.3; }
.quarto-grid-item .card-text { font-size: 0.92rem; opacity: 0.85; }
.quarto-grid-item .listing-date { font-size: 0.8rem; opacity: 0.7; }

/* Less dead space between the title block and the start of the article. */
main.content.quarto-banner-title-block {
  margin-top: 0 !important;
  padding-top: 0.75rem !important;
}
