/* ============================================================
   travel-journal.css — TRAVEL JOURNAL page-specific styles.
   Shared chrome + hero + primitives live in /site.css.
   ============================================================ */

/* Taller hero photo than the default 840 (mockup photo runs ~981px), and the
   journal hero title is larger than the standard h1 (mockup measured ~106px against
   the old 80px token — GLOB-02 keeps that ~1.33 ratio against the new 64px: 84px). */
.hero { height: 980px; }
.hero-content h1 { font-size: 84px; line-height: 88px; }

/* ---- JOURNAL SPLIT: single Featured card left, two-column article grid right ---- */
.journal-split { display: grid; grid-template-columns: 470px 1fr; gap: 0 48px; align-items: start; }
.picks-col { display: flex; flex-direction: column; gap: 28px; }
/* QA TJ-03: the featured rail pins once its top meets the stuck nav bar and the
   article grid keeps scrolling past it. The stuck header (site.css .header--stuck)
   is ~70px tall (12px padding + 46px pills), so 96px leaves breathing room below it.
   Works because .journal-split has align-items:start — the rail's grid area spans
   the full row height, giving the sticky box room to travel. Gated to the widths
   where the split is actually side-by-side; at ≤900px the rail stacks above the
   grid (rule further down) and must scroll away normally. */
@media (min-width: 901px) {
  .picks-col { position: sticky; top: 96px; }
}
/* "Featured" + the category chips share one row above the split, so the featured
   card and the first grid card start on the same line. */
.journal-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.picks-title {
  font-family: var(--sans); font-weight: 600;
  font-size: 28px; line-height: 34px; letter-spacing: -0.03em;
  color: var(--ink); margin: 0 auto 0 0;
}
.pick-card { position: relative; display: block; overflow: hidden; isolation: isolate; }
.pick-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pick-card img { transition: scale .8s cubic-bezier(.16, 1, .3, 1); }
  .pick-card:hover img { scale: 1.05; }
}
.pick-overlay {
  position: absolute; inset: auto 0 0 0; padding: 130px 26px 26px;
  background: linear-gradient(to top, rgba(15,15,15,.92), rgba(15,15,15,.55) 55%, rgba(15,15,15,0));
  color: var(--white);
}
.pick-card-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 30px; line-height: 37px; letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.pick-card .read-more { color: var(--white); font-size: 15px; }
.journal-main .post-grid { grid-template-columns: repeat(2, 1fr); }
/* .read-more is shared in site.css */

/* ---- CATEGORY FILTER ---- */
.category { padding: 30px 0 34px; }
.category-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.category-label { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); margin-right: auto; }
.chips { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sand); color: var(--ink);
  font-size: 15px; letter-spacing: -0.02em;
  border-radius: 8px; padding: 11px 18px; white-space: nowrap;
  /* colour delay: the label waits for the navy sweep panel (site.css .chip::before)
     to arrive underneath before flipping white */
  transition: background .15s ease, color .18s ease .1s, box-shadow .25s ease;
}
.chip:hover { background: #efe6d6; }
.chip.active { background: var(--navy); color: var(--white); }
.chip .diamond { width: 9px; height: 9px; transform: rotate(45deg); background: var(--white); border-radius: 1px; }

/* ---- POST GRID (cards shared in site.css; just this page's section padding) ---- */
.posts { padding: 40px 0 30px; }
.posts .posts-more { padding-bottom: 70px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1180px) {
  .journal-split { grid-template-columns: 390px 1fr; gap: 0 36px; }
}
@media (max-width: 1024px) {
  .category-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  /* stacked: filters first, then the Featured title */
  .journal-head { flex-direction: column-reverse; align-items: flex-start; gap: 18px; }
  .chips { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .hero { height: 680px; }
  /* featured card moves above the grid, full width */
  .journal-split { grid-template-columns: 1fr; gap: 36px 0; }
  .journal-main .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .journal-main .post-grid { grid-template-columns: 1fr; }
}

/* fetch-swap loading state for the results region */
.pjax-loading { opacity: .45; pointer-events: none; transition: opacity .15s ease; }

/* The one featured card fills the 470px rail: a taller portrait than the grid
   cards (the "Featured" rail heading is its badge — no on-image flag). */
.pick-card-featured img { aspect-ratio: 2 / 3; }
.pick-card-featured .pick-overlay {
  padding-top: 280px;
  background: linear-gradient(to top, rgba(15,15,15,.94), rgba(15,15,15,.62) 42%, rgba(15,15,15,0));
}
.pick-card-featured .pick-card-title { font-size: 48px; line-height: 56px; }
@media (max-width: 900px) {
  /* stacked full-width above the grid: back to the shorter portrait */
  .pick-card-featured img { aspect-ratio: 4 / 5; }
}
@media (max-width: 760px) {
  .pick-card-featured .pick-card-title { font-size: 32px; line-height: 39px; }
}

/* all journal imagery carries a 2px radius (cards + their zoom wrappers) */
.pick-card, .pick-card img,
.post-media, .post-media img,
.post-grid .post > img { border-radius: 2px; }

/* ============================================================
   GLOB-03 — MOBILE SECTION RHYTHM (journal). The page is already compact;
   only the grid's 30px bottom + the load-more row's 70px = 100px stack
   before the footer needed the standard-seam trim. Additive only.
   ============================================================ */
@media (max-width: 900px) {
  .posts .posts-more { padding-bottom: 56px; }
}
