/*
Theme Name: VeeLane Journal Child
Theme URI: https://veelane.com/
Description: Durable customizations for VeeLane Journal, including native SEO metadata, a journal-first homepage, and responsive typography.
Author: Vee Lane
Template: veelane-journal
Version: 1.1.0
Text Domain: veelane-journal-child
*/

@import url("../veelane-journal/style.css");


/* Fluid heading scale: editorial on large screens, readable on phones. */
h1,
h2,
h3 {
  max-width: 100%;
  overflow-wrap: break-word;
  text-wrap: balance;
}

@media (max-width: 760px) {
  .vl-display {
    font-size: clamp(2.7rem, 12vw, 4.75rem);
    line-height: .99;
  }

  .vl-page-header .entry-title,
  .vl-dt-hero h1 {
    font-size: clamp(2.35rem, 10.5vw, 4.25rem);
    line-height: 1.02;
  }

  .vl-section-title,
  .vl-now__heading h2,
  .vl-note h2,
  .vl-dt-cta h2 {
    font-size: clamp(2rem, 8.5vw, 3.25rem);
    line-height: 1.08;
  }

  .entry-content h2,
  .vl-page-content h2 {
    font-size: clamp(1.7rem, 7vw, 2.45rem);
    line-height: 1.16;
  }

  .entry-content h3,
  .vl-page-content h3 {
    font-size: clamp(1.4rem, 5.8vw, 1.9rem);
    line-height: 1.2;
  }

  .vl-featured-slide h3,
  .vl-project h3 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    line-height: 1.08;
  }

  .vl-card h3 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.15;
  }
}

@media (max-width: 420px) {
  .vl-display {
    font-size: clamp(2.35rem, 11.5vw, 3rem);
  }

  .vl-page-header .entry-title,
  .vl-dt-hero h1 {
    font-size: clamp(2.15rem, 10.5vw, 3rem);
  }

  .vl-section-title,
  .vl-now__heading h2,
  .vl-note h2,
  .vl-dt-cta h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.5rem);
  }
}

/* Tighten the ticker-to-hero gap without changing the hero's lower spacing. */
.vl-home-hero__inner {
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

/* Journal cards must define the full section height at every desktop width. */
#latest-journal .vl-card__image,
#latest-journal .vl-card__image img {
  display: block;
}

#latest-journal .vl-post-grid {
  grid-auto-rows: max-content;
  align-items: start;
}

#latest-journal .vl-card {
  height: auto;
  min-width: 0;
}

/* Managed offer imagery: retain the editorial carousel while allowing each
   offer to supply its own featured image through VeeLane Offers. */
.vl-featured-slide--has-image {
  grid-template-columns: auto minmax(190px, 32%) minmax(0, 1fr) auto;
}

.vl-featured-slide__media {
  align-self: stretch;
  min-height: 220px;
  overflow: hidden;
}

.vl-featured-slide__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 900px) {
  .vl-featured-slide--has-image {
    grid-template-columns: minmax(160px, 38%) minmax(0, 1fr);
  }

  .vl-featured-slide--has-image .vl-featured-slide__number,
  .vl-featured-slide--has-image .vl-featured-slide__action {
    grid-column: 1 / -1;
  }

  .vl-featured-slide--has-image .vl-featured-slide__action {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .vl-featured-slide--has-image {
    grid-template-columns: 1fr;
  }

  .vl-featured-slide__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}
