/* ============================================================
   ▶ START: BLOG PAGE (MASTER BLOCK)
   ============================================================
   SUMMARY: The look of blog.html, the page that lists every article.
   "Warm Ivory" design: the page melts from the banner's ivory into
   the Contact section's cream, with cards and buttons in the
   header's dark brown, a faint damask inside each card, matching
   vines down both edges and touches of crisp wine red. Top to bottom: photo title banner, category buttons + sort,
   one lead story with six thin cards, numbered pages.
   INSIDE: BLOG > Colors · BLOG > Backgrounds · BLOG > Title ·
           BLOG > Buttons and sort · BLOG > Cards ·
           BLOG > Numbered pages · BLOG > Laptops · BLOG > Tablets ·
           BLOG > Phones
   HOW TO EDIT: colors live in BLOG > Colors, so changing the wine
   red there changes it everywhere on this page. Breakpoints use em
   units so the layout still works when someone zooms in.
   ============================================================ */

/* ------------------------------------------------------------
   ▶ START: BLOG > Colors
   ------------------------------------------------------------
   SUMMARY: Named colors for this page only. --bl-page is the ivory
   that starts at the banner, and --bl-page-end is the cream the page
   melts into, matching the top of the Contact section. --bl-header
   is the same dark brown as the Caravan & Co menu bar, used on the
   cards and buttons, with --bl-on-dark, --bl-on-dark-soft and
   --bl-gold for the words on top of it. --bl-photo gently warms
   every article photo.
   ------------------------------------------------------------ */
.bl {
  --bl-wine: #801826;
  --bl-wine-deep: #801826;
  --bl-page: #fbf8f2;
  --bl-page-end: #f6ebdb;
  --bl-header: linear-gradient(180deg, #24170d 0%, #1d1209 100%);
  --bl-card: #1d1209;
  --bl-on-dark: #fff8ec;
  --bl-on-dark-soft: #e9dfd0;
  --bl-gold: #f0cf8a;
  --bl-border: rgba(20, 18, 16, 0.7); /* outline around the article cards */
  --bl-edge: #1d1209; /* outline around the buttons */
  --bl-button-shadow: 0 0.125rem 0.5rem rgba(60, 40, 20, 0.18);
  --bl-ink: #141210;
  --bl-text: #2b2622;
  --bl-cream: #fff3e2;
  --bl-photo: sepia(0.14) saturate(1.1) brightness(1.04);
  background: var(--bl-page);
  color: var(--bl-ink);
}
.bl-sprite {
  position: absolute;
  width: 0;
  height: 0;
}
.bl-wrap {
  width: 100%;
  max-width: calc(max(80rem, 1280px) + var(--gutter) * 2); /* page width: kept the same on laptops (does not shrink with the laptop dial) */
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.bl-ic {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ------------------------------------------------------------
   ■ END: BLOG > Colors
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: BLOG > Backgrounds
   ------------------------------------------------------------
   SUMMARY: The title area is plain ivory, with its desk photo set
   up in BLOG > Title. The article area melts from that ivory into
   the Contact section's cream. On every screen (phone, tablet,
   laptop) the same faint bronze damask (::before, 8%) lies over
   the article area. On laptops bronze vines run down
   both edges (::after), and the right vine is a mirror image of
   the left. Those vines stay inside the empty side margin
   (--v is the margin's width), so they never sit behind words or
   buttons. The Contact rules swap its damask for the same vines;
   they live here so they only affect the Blog page.
   z-index: -1 keeps the background art behind the words.
   HOW TO EDIT: opacity sets how strong the vines and damask look;
   "16rem" is the size of one damask tile.
   ------------------------------------------------------------ */
.bl-list::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("images/patterns/damask-bronze.webp") repeat center top /
    16rem auto;
  opacity: 0.08;
  pointer-events: none;
}
.bl-title,
.bl-list {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.bl-title {
  background-color: var(--bl-page);
}
.bl-list {
  background: linear-gradient(180deg, var(--bl-page), var(--bl-page-end));
  scroll-margin-top: var(--nav-h);
}
.bl-list:focus {
  outline: none; /* only receives focus from the script after a page change */
}
.bl-list::after {
  --v: min(12rem, calc(max(var(--gutter), 50vw - 40rem) - 0.5rem));
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    url("images/patterns/vine-tall-bronze.webp") left calc(var(--v) - 13rem) top /
      13rem auto repeat-y,
    url("images/patterns/vine-tall-bronze-mirror.webp") right
      calc(var(--v) - 13rem) top / 13rem auto repeat-y;
  opacity: 0.75;
  pointer-events: none;
}
.bl-seam {
  height: 2px;
  background: #000;
}
.footer__contact::before {
  background: none;
  -webkit-mask-image: none;
  mask-image: none;
  opacity: 1;
}
@media (min-width: 64em) {
  .footer__contact::before {
    --v: calc(var(--gutter) - 0.75rem);
    /* -18rem lines up the leafy stretch of the artwork with this section */
    background:
      url("images/patterns/vine-tall-bronze.webp") left calc(var(--v) - 13rem)
        top -18rem / 13rem auto repeat-y,
      url("images/patterns/vine-tall-bronze-mirror.webp") right
        calc(var(--v) - 13rem) top -18rem / 13rem auto repeat-y;
    opacity: 0.75;
  }
}
/* ------------------------------------------------------------
   ■ END: BLOG > Backgrounds
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: BLOG > Title
   ------------------------------------------------------------
   SUMMARY: Label, headline with an italic wine "Found", and one
   plain line, centered up and down in a band about 279px tall.
   The desk photo sits on the right and behind the words. A soft
   ivory fade keeps the words easy to read while the photo still
   shows through. The fade ends before the book, and because it is
   drawn inside the photo box, it stays in that spot on every laptop.
   HOW TO EDIT: the "41.7%" stop in the fade is where it ends.
   ------------------------------------------------------------ */
.bl-title__photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  /* narrows on smaller laptops so the book stays clear of the headline */
  width: clamp(52.3125rem, 125.4vw - 25.625rem, 90rem);
  /* blends the photo's left edge into the ivory on wide screens */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%);
  mask-image: linear-gradient(90deg, transparent, #000 8%);
}
.bl-title__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 73%; /* shows the whole journal, books and cup */
}
.bl-title__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(251, 248, 242, 0.74) 0%,
    rgba(251, 248, 242, 0.72) 15%,
    rgba(251, 248, 242, 0.66) 26%,
    rgba(251, 248, 242, 0.5) 32%,
    rgba(251, 248, 242, 0.28) 36.5%,
    rgba(251, 248, 242, 0.1) 40%,
    rgba(251, 248, 242, 0) 41.7%
  );
}
.bl-title__in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
  min-height: 17.4375rem;
  padding-block: 1.75rem;
}
.bl-eyebrow {
  margin: 0;
  font: 600 0.75rem / 1.4 var(--font-body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bl-wine);
}
.bl-h1 {
  margin: 0;
  font: 500 clamp(2.25rem, 1.6rem + 2vw, 3.25rem) / 1.06 var(--font-head);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.bl-h1 em {
  font-style: italic;
  color: var(--bl-wine);
}
.bl-intro {
  max-width: 23.5em;
  margin: 0.375rem 0 0;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--bl-ink);
  text-wrap: pretty;
}
/* ------------------------------------------------------------
   ■ END: BLOG > Title
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: BLOG > Buttons and sort
   ------------------------------------------------------------
   SUMMARY: One row of raised rectangles in the header's dark brown:
   category buttons on the left, the Most Recent button and its small white menu on the
   right. blog.js makes them work. All nine buttons fit on laptops; on tablets and phones they
   slide sideways. On phones they turn into plain text tabs (see BLOG > Phones).
   ------------------------------------------------------------ */
.bl-list__in {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-block: 1.25rem 2.5rem;
}
.bl-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.bl-pills {
  display: flex;
  flex: 1;
  gap: 0.375rem;
  min-width: 0;
  /* room for the button shadows, cancelled by the margin so nothing moves */
  margin: -0.25rem -0.125rem -0.5rem;
  padding: 0.25rem 0.125rem 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.bl-pills::-webkit-scrollbar {
  display: none;
}
.bl-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0 0.875rem;
  border: 1px solid var(--bl-edge);
  border-radius: 0.5rem;
  background: var(--bl-header);
  box-shadow: var(--bl-button-shadow);
  color: var(--bl-on-dark);
  font: 600 0.875rem / 1 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
}
.bl-pill .bl-ic {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--bl-gold);
}
.bl-pill:hover {
  border-color: var(--bl-gold);
}
.bl-pill[aria-pressed="true"] {
  border-color: var(--bl-wine-deep);
  background: var(--bl-wine-deep);
  color: #fff;
}
.bl-pill[aria-pressed="true"] .bl-ic {
  color: #fff;
}
.bl-pill:focus-visible,
.bl-sort__btn:focus-visible,
.bl-pg:focus-visible,
.bl-card__link:focus-visible {
  outline: 2px solid var(--bl-wine);
  outline-offset: 2px;
}
.bl-status {
  display: none;
  margin: 0;
  font-size: 0.875rem;
  color: var(--bl-text);
}
.bl-sort {
  position: relative;
  z-index: 20; /* keeps the open menu on top of the cards */
  display: flex;
  flex: none;
  align-items: center;
}
.bl-sort__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 0.875rem;
  border: 1px solid var(--bl-edge);
  border-radius: 0.5rem;
  background: var(--bl-header);
  box-shadow: var(--bl-button-shadow);
  color: var(--bl-on-dark);
  font: 600 0.875rem / 1 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
}
.bl-sort__btn .bl-ic {
  width: 0.75rem;
  height: 0.75rem;
  stroke-width: 2;
}
.bl-sort__menu {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  width: 11rem;
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.22);
}
.bl-sort__menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 0.625rem;
  background: transparent;
  color: var(--bl-ink);
  font: 500 0.9375rem / 1 var(--font-body);
  cursor: pointer;
}
.bl-sort__menu button:hover {
  background: #ececef;
}
.bl-sort__menu button:focus-visible {
  outline: 2px solid var(--bl-wine);
  outline-offset: -2px;
}
.bl-sort__menu .bl-ic {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.2;
  visibility: hidden; /* only the chosen row shows its check mark */
}
.bl-sort__menu [aria-checked="true"] {
  font-weight: 600;
}
.bl-sort__menu [aria-checked="true"] .bl-ic {
  visibility: visible;
}
/* ------------------------------------------------------------
   ■ END: BLOG > Buttons and sort
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: BLOG > Cards
   ------------------------------------------------------------
   SUMMARY: Nearly square-cornered cards with a thin border and a
   gentle shadow that lifts them off the page. The picture
   is 45% of a small card (40% on laptops and tablets, see BLOG >
   Compact cards) and 65% of the big lead card, and the
   words sit on the header's dark brown in cream and gold, lined up
   on the left in a slim size. A faint gold damask (::before on
   .bl-card__text) shows on the right of the brown panel and fades
   away toward the words on the left. Each photo's object-position in
   blog.html keeps its subject in view. The category name and "See our picks" are centered; the
   title and description stay on the left. The whole card is one
   link. The first article on each page gets "is-lead": a bigger
   layout and the Featured banner. Every category and page follows
   one pattern: on big screens "has-lead" (see the rule below) puts
   the lead on the left and six cards on the right. Cards keep their
   size when there are fewer articles, and unused spots stay empty
   until new articles fill them. Phones use a light, box-free
   version instead (see BLOG > Phones).
   HOW TO EDIT: in .bl-card__text::before, opacity sets how strong
   the damask looks, and "30%" is where it starts to appear.
   ------------------------------------------------------------ */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.bl-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bl-border);
  border-radius: 0.375rem;
  background: var(--bl-card);
  box-shadow: 0 0.25rem 1rem rgba(60, 40, 20, 0.18);
}
.bl-card[hidden] {
  display: none;
}
.bl-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.bl-card__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: var(--bl-photo);
}
/* When cards are wide, a minimum height keeps their photo from being
   squashed into a thin strip. cqw means a percent of the grid's width. */
.bl-grid {
  container-type: inline-size;
}
@media (max-width: 64em) {
  .bl-card:not(.is-lead) {
    min-height: 27cqw;
  }
}
/* Two rows, 45 parts picture and 55 parts words. The words decide how
   tall the card is, and the picture always takes its 45% share. */
.bl-card:not(.is-lead) .bl-card__link {
  display: grid;
  grid-template-rows: 45fr 55fr;
}
.bl-card:not(.is-lead) .bl-card__img {
  height: 0;
  min-height: 100%;
}
.bl-card__text {
  position: relative;
  isolation: isolate; /* keeps the damask above the brown, below the words */
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 0.875rem;
  background: var(--bl-header);
}
.bl-card__text::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("images/patterns/damask-gold.webp") repeat right top / 13rem;
  opacity: 0.22;
  /* a mask decides how see-through each part is: clear on the left
     where the words start, strongest at the right edge */
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  pointer-events: none;
}
.bl-card__kicker {
  font: 600 0.6875rem / 1.3 var(--font-body);
  text-align: left;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bl-gold);
}
.bl-card__title {
  margin: 0;
  font: 500 1.0625rem / 1.25 var(--font-head);
  color: var(--bl-on-dark);
  text-wrap: balance;
}
.bl-nowrap {
  white-space: nowrap; /* keeps words like Carry-On on one line */
}
.bl-card__blurb {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--bl-on-dark-soft);
}
.bl-card__read {
  margin-top: auto;
  padding-top: 0.375rem;
  font: 600 0.8125rem / 1.3 var(--font-body);
  text-align: left;
  color: var(--bl-gold);
}
.bl-card__link:hover .bl-card__title {
  color: #f6d891;
}
.bl-card__ribbon {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.625rem;
  border-radius: 0.25rem;
  background: var(--bl-wine-deep);
  box-shadow: 0 0 0 1px rgba(240, 207, 138, 0.45);
  color: var(--bl-cream);
  font: 600 0.75rem / 1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bl-card__ribbon::before {
  content: "★";
}
.bl-card.is-lead .bl-card__ribbon {
  display: flex;
}
.bl-card.is-lead {
  grid-column: 1 / -1;
  height: clamp(18rem, 31cqw, 22rem); /* same height whatever the photo's shape */
}
.bl-card.is-lead .bl-card__link {
  flex-direction: row;
}
.bl-card.is-lead .bl-card__img {
  flex: none;
  width: 65%;
  height: 100%;
  aspect-ratio: auto;
}
.bl-card.is-lead .bl-card__text {
  justify-content: center;
  gap: 0.375rem;
  padding: 1rem 1.25rem;
}
.bl-card.is-lead .bl-card__title {
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--bl-on-dark);
}
.bl-card.is-lead .bl-card__blurb {
  font-size: 0.9375rem;
}
.bl-card.is-lead .bl-card__read {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}
.bl-empty {
  margin: 0;
  padding-block: 2rem;
  text-align: center;
  color: var(--bl-text);
}
/* Big screens: lead on the left, six on the right. Two equal rows hold
   the same shape even when only one or two articles are showing. */
@media (min-width: 64.0625em) {
  .bl-grid.has-lead {
    grid-template-columns: minmax(0, 1.75fr) repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(18.625rem, 1fr));
  }
  .has-lead .bl-card.is-lead {
    grid-column: auto;
    grid-row: span 2;
    height: auto;
  }
  /* the link fills the card, so the small cards alone set the row height */
  .has-lead .bl-card.is-lead .bl-card__link {
    position: absolute;
    inset: 0;
    flex-direction: column;
    height: auto;
  }
  .has-lead .bl-card.is-lead .bl-card__img {
    flex: 0 0 65%;
    width: 100%;
    height: auto;
    min-height: 0;
  }
  .has-lead .bl-card.is-lead .bl-card__text {
    flex: 1;
    justify-content: center;
  }
}
/* ------------------------------------------------------------
   ■ END: BLOG > Cards
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: BLOG > Compact cards on laptops and tablets
   ------------------------------------------------------------
   SUMMARY: Between phones and large desktops (about 577px to
   1439px wide) the article section is a little tighter, so more
   of it fits on the screen: slightly smaller gaps, a slimmer brown
   text panel, and the photo takes 40% of each small card instead
   of 45%. Every word stays, so cards still read easily; on laptops
   the big lead card's photo shrinks first so its words never get
   cut off. Large
   desktops (1440px and up) and phones are not touched. Related
   numbers live in BLOG > Cards: the lead card's height (clamp
   18rem–22rem) and the small cards' minimum height (27cqw, and
   40cqw when two across in BLOG > Tablets).
   HOW TO EDIT: "40fr 60fr" is photo vs words; 16rem is the
   shortest a row of small cards may be on laptops.
   ------------------------------------------------------------ */
@media (min-width: 36.0625em) and (max-width: 99.99em) {
  .bl-list__in {
    gap: 1rem;
    padding-block: 1rem 2.25rem;
  }
  .bl-grid {
    gap: 0.875rem;
  }
  .bl-card:not(.is-lead) .bl-card__link {
    grid-template-rows: 40fr 60fr;
  }
  .bl-card__text {
    padding: 0.625rem 0.875rem 0.75rem;
  }
}
@media (min-width: 64.0625em) and (max-width: 99.99em) {
  .bl-grid.has-lead {
    grid-template-rows: repeat(2, minmax(16rem, 1fr));
  }
  /* the lead's words always fit; its photo takes whatever is left */
  .has-lead .bl-card.is-lead .bl-card__img {
    flex: 1 1 0;
  }
  .has-lead .bl-card.is-lead .bl-card__text {
    flex: none;
  }
}
/* ------------------------------------------------------------
   ■ END: BLOG > Compact cards on laptops and tablets
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: BLOG > Numbered pages
   ------------------------------------------------------------
   SUMMARY: Back, page numbers and Next as separate raised rectangles
   in the header's dark brown, matching the category buttons. Back
   and Next stay fully visible even when there is no page to go to.
   blog.js builds these. If everything fits on one page, the script hides them.
   ------------------------------------------------------------ */
.bl-pager {
  display: flex;
  flex-wrap: wrap;
  align-self: center;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
}
.bl-pager[hidden] {
  display: none;
}
.bl-pg {
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid var(--bl-edge);
  border-radius: 0.5rem;
  background: var(--bl-header);
  box-shadow: var(--bl-button-shadow);
  color: var(--bl-on-dark);
  font: 600 0.875rem / 1 var(--font-body);
  cursor: pointer;
}
.bl-pg:hover:not(:disabled):not([aria-current]) {
  background: #3a2818;
}
.bl-pg[aria-current="page"] {
  padding: 0;
  border-color: var(--bl-wine-deep);
  background: var(--bl-wine-deep);
  color: #fff;
}
.bl-pg:disabled {
  cursor: default;
}
/* ------------------------------------------------------------
   ■ END: BLOG > Numbered pages
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: BLOG > Laptops
   ------------------------------------------------------------
   SUMMARY: Slightly smaller category and sort buttons so all nine
   still fit side by side. From landscape tablets down, the sort and
   page buttons grow to a finger-friendly size.
   ------------------------------------------------------------ */
@media (max-width: 64em) {
  .bl-pills {
    gap: 0.3125rem;
  }
  .bl-pill {
    gap: 0.25rem;
    padding: 0 0.625rem;
    font-size: 0.8125rem;
  }
  .bl-pill .bl-ic {
    width: 1rem;
    height: 1rem;
  }
  .bl-sort__btn {
    padding: 0 0.75rem;
    font-size: 0.8125rem;
  }
}
@media (max-width: 64em) {
  .bl-pills {
    gap: 0.25rem;
  }
  .bl-pill {
    gap: 0.1875rem;
    min-height: 2.75rem; /* easy to tap on landscape tablets */
    padding: 0 0.4375rem;
  }
  .bl-pill .bl-ic {
    width: 0.9375rem;
    height: 0.9375rem;
  }
  .bl-sort__btn {
    min-height: 2.75rem;
  }
  .bl-pg {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
}
/* ------------------------------------------------------------
   ■ END: BLOG > Laptops
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: BLOG > Tablets
   ------------------------------------------------------------
   SUMMARY: The title banner stacks: words on top with the sunlit
   wall showing softly behind them (::before is the wall, ::after is
   the ivory over it), and the desk photo melting in below. Vines
   leave the edges because there is no spare space, so the Contact
   section gets one small vine in its top-right corner. Buttons get
   bigger for fingers and slide sideways, with a soft fade at the
   right that hints there are more. Below 56em the cards go to two
   across.
   ------------------------------------------------------------ */
@media (max-width: 63.9375em) {
  .bl-title::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: -2;
    height: 16rem;
    /* zoomed in so only the wall, never the books, is behind the words */
    background: url("images/hero/blog-desk.webp") left top / max(60rem, 210%)
      auto no-repeat;
  }
  .bl-title::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(251, 248, 242, 0.72);
  }
  .bl-title__in {
    min-height: 0;
    padding-block: 1.75rem 0.5rem;
  }
  .bl-title__photo {
    position: relative;
    z-index: 0;
    width: auto;
    height: clamp(12.5rem, 30vw, 15rem);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 34%);
    mask-image: linear-gradient(180deg, transparent, #000 34%);
  }
  .bl-title__photo::after {
    display: none;
  }
  .bl-title__photo img {
    object-position: right 72%;
  }
  .bl-list::after {
    display: none;
  }
  .footer__contact::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    width: 7.5rem;
    height: 5rem; /* ends above the headline so words stay clear */
    background: url("images/patterns/vine-climb-bronze.webp") right top / auto
      11rem no-repeat;
    opacity: 0.42;
    pointer-events: none;
  }
  .bl-pills {
    gap: 0.375rem;
    padding-right: 2rem;
    -webkit-mask-image: linear-gradient(
      90deg,
      #000 calc(100% - 2rem),
      transparent
    );
    mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent);
  }
  .bl-pill {
    gap: 0.375rem;
    min-height: 2.75rem;
    padding: 0 0.875rem;
    font-size: 0.875rem;
  }
  .bl-pill .bl-ic {
    width: 1.125rem;
    height: 1.125rem;
  }
}
@media (max-width: 56em) {
  .bl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bl-card:not(.is-lead) {
    min-height: 40cqw;
  }
}
/* ------------------------------------------------------------
   ■ END: BLOG > Tablets
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: BLOG > Phones
   ------------------------------------------------------------
   SUMMARY: EDITORIAL LOOK (FIX #6, mockup option A, like Apple
   Newsroom). On phones (up to 767px) the blog drops the dark boxes:
   - Category buttons become plain text tabs on one line that slides
     sideways, with a thin line under the row and a wine underline
     under the chosen one. "Page 1 of 2" and "Most Recent ⌄" sit
     under the tabs as plain text.
   - Each article is a big photo with rounded corners, and the words
     sit on the ivory page underneath: wine category name, dark
     Playfair title, wine "See our picks →". Only the lead story keeps
     its short description and the Featured banner on its photo.
   - Lots of room between stories: 32px down, 24px across.
   Up to 576px it's one story per row; from 577px to 767px, two side
   by side, with the lead story across the full width.
   - DAMASK & VINES (mockup option 2): a faint bronze damask behind
     the whole article area (::before), kept extra faint behind the
     tabs so they stay easy to read, plus thin bronze vines climbing
     the very edges (::after), inside the side margin, never behind
     words.
   - BRAND LETTERS: the tabs, the category name and "Read the
     guide →" use Cinzel, the CARAVAN & CO logo letters. Tabs are
     bold and dark so they read clearly; titles stay Playfair and
     the reading text stays Inter.
   Tablets, laptops and desktops are not touched.
   HOW TO EDIT: "16 / 10" is the photo shape; --s7 is the gap
   between stories; the two "opacity" lines set how strong the
   damask and vines look.
   ------------------------------------------------------------ */
@media (max-width: 47.9375em) {
  .bl-intro {
    font-size: 1.0625rem;
  }

  /* Buttons and sort: plain text tabs */
  .bl-list__in {
    gap: var(--s5);
    padding-block: var(--s5) var(--s7);
  }
  .bl-tools {
    flex-wrap: wrap;
    gap: var(--s1) var(--s4);
  }
  .bl-pills {
    flex: 1 0 100%;
    gap: var(--s5);
    margin: 0;
    padding: 0 2rem 0 0;
    box-shadow: inset 0 -1px 0 rgba(20, 18, 16, 0.12); /* thin line under the row */
  }
  .bl-pill,
  .bl-pill:hover {
    min-height: var(--tap);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #4a4038; /* dark warm grey: clear on the damask */
    font: 700 0.8125rem / 1 "Cinzel", Georgia, serif; /* logo letters */
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .bl-pill .bl-ic {
    display: none;
  }
  .bl-pill[aria-pressed="true"] {
    background: none;
    box-shadow: inset 0 -2px 0 var(--bl-wine); /* wine underline */
    color: var(--bl-ink);
  }
  .bl-status {
    display: block;
    font-size: var(--t-md);
    color: #6b625a;
  }
  .bl-sort {
    margin-left: auto;
  }
  .bl-sort__btn {
    min-height: var(--tap);
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--bl-ink);
    font-size: var(--t-md);
  }

  /* Articles: big photo, words on the page underneath */
  .bl-grid {
    gap: var(--s7) var(--s5);
  }
  .bl-grid .bl-card {
    height: auto;
    min-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .bl-grid .bl-card .bl-card__link {
    display: flex;
    flex-direction: column;
  }
  .bl-grid .bl-card .bl-card__img {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 0.875rem;
  }
  .bl-grid .bl-card .bl-card__text {
    justify-content: flex-start;
    gap: var(--s2);
    padding: var(--s4) 0 0;
    background: none;
  }
  .bl-grid .bl-card__text::before {
    display: none; /* no gold damask on the light page */
  }
  .bl-grid .bl-card .bl-card__kicker {
    font: 700 0.75rem / 1.3 "Cinzel", Georgia, serif;
    letter-spacing: 0.14em;
    color: var(--bl-wine);
  }
  .bl-grid .bl-card .bl-card__title {
    font-size: 1.25rem;
    line-height: 1.25;
    color: var(--bl-ink);
  }
  .bl-grid .bl-card.is-lead .bl-card__title {
    font-size: 1.5rem;
  }
  .bl-grid .bl-card__link:hover .bl-card__title {
    color: var(--bl-wine);
  }
  .bl-grid .bl-card__blurb {
    font-size: var(--t-base);
    color: var(--bl-text);
  }
  .bl-grid .bl-card:not(.is-lead) .bl-card__blurb {
    display: none;
  }
  .bl-grid .bl-card .bl-card__read {
    margin-top: 0;
    padding-top: var(--s1);
    font: 700 0.75rem / 1.3 "Cinzel", Georgia, serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bl-wine);
  }

  /* The damask itself is set in BLOG > Backgrounds; on phones it
     fades to extra faint behind the tabs so they stay easy to read */
  .bl-list::before {
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 6rem, #000 9rem);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 6rem, #000 9rem);
  }
  /* Thin bronze vines climbing both edges, inside the side margin */
  .bl-list::after {
    display: block;
    background:
      url("images/patterns/vine-tall-bronze.webp") left
        calc(var(--gutter) - 6rem) top 2rem / 6rem auto repeat-y,
      url("images/patterns/vine-tall-bronze-mirror.webp") right
        calc(var(--gutter) - 6rem) top 20rem / 6rem auto repeat-y;
    opacity: 0.45;
  }
}
@media (max-width: 36em) {
  .bl-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 22.5em) {
  .bl-pg {
    padding: 0 0.5rem;
  }
}
/* ------------------------------------------------------------
   ■ END: BLOG > Phones
   ------------------------------------------------------------ */
/* ============================================================
   ■ END: BLOG PAGE (MASTER BLOCK)
   ============================================================ */
