/* ============================================================
   ROCKY'S RIDE — STORY PAGE
   Layered on top of style.css. Reuses the same :root tokens
   (--char, --jacket, --offwhite, --ink, --line, --mute, fonts).
   Used by all story pages: Namibia, Lesotho, Malawi.
   ============================================================ */

/* ---------- STORY HERO ---------- */
.story-hero{
  position:relative;min-height:80vh;display:flex;align-items:flex-end;
  overflow:hidden;background:var(--char);
}
.story-hero-bg{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;z-index:0;
}
/* Per-photo focal tweak when cover crop clips the subject (e.g. heads). Tune the % as needed. */
.story-hero-bg--focus-high{object-position:center 38%;}
/* Malawi hero (20251203_073715_l7oty9) — raise bike into the crop on story + route pages */
.story-hero-bg--focus-malawi,
.story-hero-bg[src*="20251203_073715_l7oty9"]{object-position:center 56%;}
@media(max-width:720px){
  .story-hero-bg--focus-malawi,
  .story-hero-bg[src*="20251203_073715_l7oty9"]{object-position:center 60%;}
}
/* Lesotho hero — keep heads/sky in crop; trim foreground grass instead */
.story-hero-bg--focus-lesotho,
.story-hero-bg[src*="lesotho-hero-image-001"]{object-position:center 25%;}
@media(max-width:720px){
  .story-hero-bg--focus-lesotho,
  .story-hero-bg[src*="lesotho-hero-image-001"]{object-position:center 22%;}
}
/* Route guide: match story hero height so cover crop aligns */
.route-hero:has(.story-hero-bg--focus-malawi),
.route-hero:has(.story-hero-bg[src*="20251203_073715_l7oty9"]){min-height:80vh;}
@media(max-width:720px){
  .route-hero:has(.story-hero-bg--focus-malawi),
  .route-hero:has(.story-hero-bg[src*="20251203_073715_l7oty9"]){min-height:70vh;}
}
.story-hero-bg.placeholder{font-size:13px;}
.story-hero-grad{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(to top,rgba(20,17,15,.94) 0%,rgba(20,17,15,.65) 38%,rgba(20,17,15,.35) 58%,rgba(20,17,15,.12) 78%,transparent 100%);
}
.story-hero-content{position:relative;z-index:2;width:100%;padding-bottom:64px;}
.story-hero .standfirst{
  font-size:20px;color:#e3dfd3;max-width:620px;
  margin-bottom:18px;line-height:1.6;
}
.story-hero .byline{
  font-family:var(--label);text-transform:uppercase;letter-spacing:.15em;
  font-size:13px;font-weight:600;color:var(--jacket-light);
}

/* ---------- META STRIP ---------- */
.story-meta{
  background:var(--char);border-bottom:1px solid var(--char-soft);
  padding:8px 0 36px;
}
.meta-row{display:flex;gap:0;flex-wrap:wrap;}
.meta-item{
  flex:1;min-width:120px;text-align:center;padding:18px 10px;
  border-right:1px solid var(--char-soft);
}
.meta-item:last-child{border-right:none;}
.meta-num{
  display:block;font-family:var(--display);font-weight:700;
  font-size:34px;color:var(--offwhite);line-height:1;
}
.meta-lbl{
  display:block;margin-top:8px;
  font-family:var(--label);text-transform:uppercase;letter-spacing:.14em;
  font-size:12px;font-weight:600;color:var(--mute);
}

/* ---------- ARTICLE BODY ---------- */
.story-body{padding:72px 0 84px;background:var(--offwhite);}
.measure{max-width:720px;margin-inline:auto;}
.story-body .lede{
  font-family:var(--display);font-weight:600;font-style:italic;
  font-size:27px;line-height:1.35;color:var(--char);
  margin-bottom:28px;
}
.story-body p{
  font-size:18.5px;line-height:1.75;color:var(--ink);margin-bottom:22px;
}
.story-body p em{font-style:italic;}
.story-body h2{
  font-family:var(--display);font-weight:800;
  font-size:32px;line-height:1.15;color:var(--char);
  margin:50px 0 18px;
}
.story-body h2::before{
  content:"";display:block;width:48px;height:3px;
  background:var(--jacket);margin-bottom:20px;
}
.story-body h3{
  font-family:var(--display);font-weight:700;
  font-size:24px;line-height:1.25;color:var(--char);
  margin:36px 0 14px;
}
.story-date{
  font-family:var(--label);text-transform:uppercase;letter-spacing:.12em;
  font-size:13px;font-weight:600;color:var(--mute);
  margin:-8px 0 22px;
}
.story-note{
  font-size:16px;line-height:1.65;color:var(--mute);
  margin-top:36px;padding-top:22px;border-top:1px solid var(--line);
}
.story-end{
  font-family:var(--label);text-transform:uppercase;letter-spacing:.1em;
  font-size:15px;color:var(--mute);margin-top:40px;
  padding-top:26px;border-top:1px solid var(--line);
}
.story-end a{color:var(--jacket);text-decoration:none;border-bottom:1.5px solid var(--jacket);}

/* ---------- PULL QUOTE ---------- */
.pull-quote{
  font-family:var(--display);font-weight:700;font-style:italic;
  font-size:30px;line-height:1.3;color:var(--jacket);
  margin:42px 0;padding:6px 0 6px 30px;
  border-left:4px solid var(--jacket);
}

/* ---------- FIGURES ---------- */
.story-figure{margin:40px 0;}
.story-figure .placeholder{
  width:100%;aspect-ratio:3/2;
}
.story-figure .story-frame{
  width:100%;
  aspect-ratio:3/2;
  overflow:hidden;
  background:#101010;
}
.story-figure.wide .story-frame{
  aspect-ratio:16/9;
}
.story-figure-duo .story-figure-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.story-figure-duo .story-frame{
  aspect-ratio:4/5;
}
.story-figure .story-frame img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
.story-figure .story-frame video{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  background:#101010;
}
.story-figure--portrait .story-frame{
  aspect-ratio:9/16;
  width:100%;
  max-width:min(360px,78vw);
  margin-left:auto;
  margin-right:auto;
}
.story-figure--portrait .story-frame video{
  object-fit:contain;
}
.story-figure--portrait figcaption{
  text-align:center;
  max-width:min(360px,78vw);
  margin-left:auto;
  margin-right:auto;
}
.story-figure img{width:100%;height:auto;}
.story-figure figcaption{
  font-family:var(--label);text-transform:uppercase;letter-spacing:.08em;
  font-size:12.5px;color:var(--mute);margin-top:10px;line-height:1.5;
}
/* wide figure breaks the text measure for emphasis */
.story-figure.wide{
  width:min(1100px, 92vw);
  max-width:none;
  margin-left:50%;
  transform:translateX(-50%);
  margin-right:0;
}
@media(max-width:1180px){
  .story-figure.wide{
    width:100%;
    max-width:100%;
    margin-left:0;
    margin-right:0;
    transform:none;
  }
}
@media(max-width:680px){
  .story-figure-duo .story-figure-grid{
    grid-template-columns:1fr;
  }
}

/* ---------- MORE STORIES ---------- */
.more-stories{padding:84px 0;background:var(--offwhite);}

/* ---------- people gallery (story inline) ---------- */
.story-people{
  margin:36px 0 40px;
}
.story-people-title{
  font-family:var(--label);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:12.5px;
  font-weight:700;
  color:var(--mute);
  text-align:center;
  margin-bottom:16px;
}
.story-people-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}
.story-people-item{
  display:block;
  aspect-ratio:1;
  overflow:hidden;
  border:1px solid var(--line);
  background:#101010;
  transition:border-color .2s ease, transform .2s ease;
}
.story-people-item:hover{
  border-color:var(--jacket);
  transform:translateY(-2px);
}
.story-people-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
@media(max-width:720px){
  .story-people-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }
}
@media(max-width:420px){
  .story-people-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* wider 3×2 people gallery — breaks text measure for larger tiles */
.story-people--wide{
  width:min(1100px,92vw);
  max-width:none;
  margin:48px auto;
  margin-left:50%;
  transform:translateX(-50%);
}
.story-people--wide .story-people-title{
  margin-bottom:20px;
}
.story-people--wide .story-people-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.story-people--wide .story-people-item{
  aspect-ratio:4/3;
}
.story-people-item--focus-market img{
  object-position:center 62%;
}
@media(max-width:1180px){
  .story-people--wide{
    width:100%;
    margin-left:0;
    transform:none;
  }
}
@media(max-width:720px){
  .story-people--wide .story-people-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
}
@media(max-width:480px){
  .story-people--wide .story-people-grid{
    grid-template-columns:1fr;
  }
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:920px){
  .story-hero h1{font-size:52px;}
}
@media(max-width:720px){
  .story-hero{min-height:70vh;}
  .story-hero h1{font-size:38px;}
  .story-hero .standfirst{font-size:16px;}
  .meta-num{font-size:26px;}
  .story-body .lede{font-size:21px;}
  .story-body p{font-size:17px;}
  .story-body h2{font-size:26px;}
  .pull-quote{font-size:23px;padding-left:20px;}
}
