/*
Theme Name: Best Motorcycle Roads
Theme URI: https://bestmotorcycleroads.com/
Author: Tom Altman
Description: Iowa-based motorcycle road atlas. Child theme for GeneratePress. SEO-first regional publication for the upper Midwest.
Version: 0.2.0
Template: generatepress
License: GPL-2.0-or-later
Text Domain: bmr
Tags: travel, photography, custom-colors
*/

/* ============================================================
   Brand tokens
   ============================================================ */
:root {
  --bmr-bg-dark: #1d1d1d;
  --bmr-bg-dark-2: #262626;
  --bmr-bg-dark-3: #2e2e2e;
  --bmr-bg-light: #ffffff;
  --bmr-bg-light-2: #f6f4ef;
  --bmr-bg-light-3: #ece8e0;
  --bmr-text-on-dark: #ededed;
  --bmr-text-on-dark-mute: #a3a09b;
  --bmr-text-on-light: #161616;
  --bmr-text-on-light-mute: #6b6b6b;
  --bmr-rule-dark: #383838;
  --bmr-rule-light: #e6e3dc;
  --bmr-accent: #c9302c;
  --bmr-accent-2: #c8a04a;
  /* Display: Oswald (condensed sans), magazine masthead. Body: Inter. */
  --bmr-display: 'Oswald', 'Arial Narrow', sans-serif;
  --bmr-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --bmr-container: 1280px;
  --bmr-gutter: clamp(20px, 4vw, 56px);
}

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--bmr-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--bmr-text-on-light);
  background: var(--bmr-bg-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display family on every heading by default */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--bmr-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 .6em;
  color: var(--bmr-text-on-light);
}

a { color: var(--bmr-text-on-light); text-decoration: none; }
a:hover { color: var(--bmr-accent); }

img { max-width: 100%; height: auto; display: block; }

/* Utility classes used by templates */
.bmr-eyebrow {
  font-family: var(--bmr-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  font-weight: 600;
  color: var(--bmr-text-on-light-mute);
}
.bmr-eyebrow.on-dark { color: var(--bmr-text-on-dark-mute); }

.bmr-container {
  max-width: var(--bmr-container);
  margin: 0 auto;
  padding-left: var(--bmr-gutter);
  padding-right: var(--bmr-gutter);
}

.bmr-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bmr-accent);
  color: white;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  font-family: var(--bmr-body);
  transition: background .2s, transform .2s;
}
.bmr-cta:hover { background: #b32925; color: white; transform: translateY(-1px); }
.bmr-cta.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  color: white;
}
.bmr-cta.ghost:hover { background: rgba(255,255,255,0.05); color: white; }

/* Topbar */
.bmr-topbar {
  background: var(--bmr-bg-dark);
  color: var(--bmr-text-on-dark);
  border-bottom: 1px solid var(--bmr-rule-dark);
  position: sticky; top: 0; z-index: 50;
}
.bmr-topbar-inner {
  max-width: var(--bmr-container);
  margin: 0 auto;
  padding: 14px var(--bmr-gutter);
  display: flex; align-items: center; gap: 36px;
}
.bmr-brand {
  font-family: var(--bmr-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0;
  display: flex; align-items: baseline; gap: 8px;
  color: var(--bmr-text-on-dark);
  text-transform: uppercase;
}
.bmr-brand:hover { color: var(--bmr-text-on-dark); }
.bmr-brand .dot { color: var(--bmr-accent); }
.bmr-nav { display: flex; gap: 28px; margin-left: auto; }
.bmr-nav a {
  font-family: var(--bmr-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--bmr-text-on-dark);
  letter-spacing: 0.04em;
  opacity: 0.8;
  text-transform: uppercase;
}
.bmr-nav a:hover { opacity: 1; color: var(--bmr-text-on-dark); }

/* HERO */
.bmr-hero {
  position: relative;
  background: var(--bmr-bg-dark);
  color: var(--bmr-text-on-dark);
  overflow: hidden;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bmr-hero-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 55%;
  transform: scale(1.02);
  animation: bmrHeroDrift 18s ease-in-out infinite alternate;
}
@keyframes bmrHeroDrift {
  from { transform: scale(1.02); }
  to   { transform: scale(1.06) translate3d(-1%, -1%, 0); }
}
.bmr-hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.50) 0%,
    rgba(0,0,0,0.05) 35%,
    rgba(0,0,0,0.05) 55%,
    rgba(29,29,29,0.95) 100%);
}
.bmr-hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 var(--bmr-gutter);
  text-align: center;
}
.bmr-hero-inner { max-width: 920px; margin: 0 auto; }
.bmr-hero-mark {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 26px;
  color: var(--bmr-accent-2);
  opacity: 0.85;
}
.bmr-hero-mark .line { width: 38px; height: 1px; background: var(--bmr-accent-2); opacity: 0.6; }
.bmr-hero-mark svg { width: 16px; height: 16px; }
.bmr-hero-eyebrow {
  font-family: var(--bmr-body);
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  margin-bottom: 22px;
}
.bmr-hero-title {
  font-family: var(--bmr-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 134px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  color: white;
  margin: 0 0 26px;
}
.bmr-hero-kicker {
  font-family: var(--bmr-display);
  font-weight: 300;
  font-size: clamp(20px, 1.7vw, 24px);
  color: rgba(255,255,255,0.92);
  max-width: 60ch;
  margin: 0 auto 36px;
  line-height: 1.45;
}
.bmr-hero-cta-row {
  display: inline-flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 44px;
}
.bmr-hero-handwritten {
  font-family: var(--bmr-display);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.bmr-hero-scroll {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  font-family: var(--bmr-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.36em;
  color: rgba(255,255,255,0.55);
  z-index: 2;
}
.bmr-hero-scroll::after {
  content: '';
  display: block;
  width: 1px; height: 28px;
  background: rgba(255,255,255,0.4);
  margin: 10px auto 0;
}

/* PODCAST SECTION */
.bmr-podcast {
  background: var(--bmr-bg-dark);
  color: var(--bmr-text-on-dark);
  padding: 96px 0;
  border-top: 1px solid var(--bmr-rule-dark);
  border-bottom: 1px solid var(--bmr-rule-dark);
}
.bmr-podcast .section-head {
  border-bottom: 1px solid var(--bmr-rule-dark);
  padding-bottom: 24px;
  margin-bottom: 48px;
}
.bmr-podcast .section-head .eyebrow {
  font-family: var(--bmr-body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  font-weight: 600;
  color: var(--bmr-accent-2);
  margin-bottom: 12px;
}
.bmr-podcast .section-head h2 {
  font-family: var(--bmr-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.0;
  margin: 0 0 12px;
  color: var(--bmr-text-on-dark);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.bmr-podcast .section-head p {
  font-family: var(--bmr-display);
  font-weight: 300;
  color: var(--bmr-text-on-dark-mute);
  font-size: 18px;
  margin: 0;
  max-width: 56ch;
}
.bmr-podcast .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.bmr-podcast .feature .pill {
  background: var(--bmr-accent);
  color: white;
  font-size: 11px;
  font-family: var(--bmr-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 14px;
}
.bmr-podcast .feature h3 {
  font-family: var(--bmr-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--bmr-text-on-dark);
  letter-spacing: -0.005em;
}
.bmr-podcast .feature p { color: var(--bmr-text-on-dark-mute); margin: 0 0 24px; max-width: 50ch; }
.bmr-podcast .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.bmr-podcast .actions a {
  font-family: var(--bmr-body);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--bmr-rule-dark);
  color: var(--bmr-text-on-dark);
}
.bmr-podcast .actions a.primary {
  background: var(--bmr-accent-2);
  color: var(--bmr-bg-dark);
  border-color: var(--bmr-accent-2);
  font-weight: 700;
}
.bmr-podcast .side {
  background: var(--bmr-bg-dark-2);
  border: 1px solid var(--bmr-rule-dark);
  border-radius: 4px;
  padding: 20px;
}
.bmr-podcast .side h4 {
  margin: 0 0 14px;
  font-family: var(--bmr-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bmr-text-on-dark-mute);
  font-weight: 600;
}
.bmr-podcast .side .ep {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--bmr-rule-dark);
  align-items: center;
}
.bmr-podcast .side .ep:first-of-type { border-top: 0; padding-top: 0; }
.bmr-podcast .side .ep .cover {
  width: 56px; height: 56px;
  background: #333 no-repeat center / cover;
  border-radius: 3px;
}
.bmr-podcast .side .ep .num {
  font-family: var(--bmr-body);
  font-size: 10px; color: var(--bmr-text-on-dark-mute);
  text-transform: uppercase; letter-spacing: 0.16em;
}
.bmr-podcast .side .ep .title {
  font-family: var(--bmr-display);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  margin: 2px 0 0;
  color: var(--bmr-text-on-dark);
}

/* FIND A ROAD STRIP */
.bmr-finder {
  background: var(--bmr-bg-light-2);
  border-bottom: 1px solid var(--bmr-rule-light);
  padding: 28px 0;
}
.bmr-finder-inner {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
}
.bmr-finder .label {
  font-family: var(--bmr-display);
  font-weight: 700;
  font-size: 22px;
  margin-right: 8px;
  text-transform: uppercase;
}
.bmr-finder select, .bmr-finder input {
  font-family: var(--bmr-body);
  font-size: 14px;
  padding: 11px 16px;
  border: 1px solid var(--bmr-rule-light);
  background: white;
  border-radius: 999px;
  min-width: 160px;
}
.bmr-finder .search-btn {
  background: var(--bmr-accent);
  color: white;
  border: 0;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--bmr-body);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.bmr-finder .count {
  font-family: var(--bmr-body);
  font-size: 12px;
  color: var(--bmr-text-on-light-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: auto;
}

/* CARDS GRID */
.bmr-cards-section { background: var(--bmr-bg-light); padding: 80px 0; }
.bmr-section-head {
  display: flex; justify-content: space-between; align-items: end;
  border-bottom: 1px solid var(--bmr-rule-light);
  padding-bottom: 16px;
  margin-bottom: 36px;
}
.bmr-section-head h2 {
  font-family: var(--bmr-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.bmr-section-head .eyebrow {
  font-family: var(--bmr-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 600;
  color: var(--bmr-text-on-light-mute);
  margin-bottom: 6px;
}
.bmr-section-head .more {
  font-family: var(--bmr-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--bmr-accent);
}
.bmr-cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bmr-card .photo {
  width: 100%; aspect-ratio: 16/9;
  background: #ddd no-repeat center / cover;
  border-radius: 3px;
  margin-bottom: 14px;
  transition: transform .25s ease;
}
.bmr-card:hover .photo { transform: translateY(-2px); }
.bmr-card .crumb {
  font-family: var(--bmr-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bmr-text-on-light-mute);
  margin-bottom: 6px;
}
.bmr-card h3 {
  font-family: var(--bmr-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.05;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.bmr-card .stats {
  font-family: var(--bmr-body);
  font-size: 12px;
  color: var(--bmr-text-on-light-mute);
}
.bmr-card .stats .sep { opacity: .35; padding: 0 6px; }

/* STORIES GRID */
.bmr-stories-section { background: var(--bmr-bg-light); padding: 80px 0; }
.bmr-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.bmr-story-card .photo { aspect-ratio: 4/3; }
.bmr-story-card .crumb { color: var(--bmr-accent); }
.bmr-story-card h3 { font-size: 24px; }
.bmr-story-card .excerpt {
  font-family: var(--bmr-body);
  font-size: 14px;
  color: var(--bmr-text-on-light-mute);
  line-height: 1.55;
  margin: 0 0 12px;
}

/* NEWSLETTER CALLOUT */
.bmr-newsletter {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--bmr-rule-dark);
  border-bottom: 1px solid var(--bmr-rule-dark);
  background: var(--bmr-bg-dark);
}
.bmr-newsletter .photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 60%;
  filter: grayscale(0.2);
}
.bmr-newsletter .photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,29,29,0.85), rgba(29,29,29,0.92));
}
.bmr-newsletter-inner {
  position: relative; z-index: 2;
  max-width: 760px;
  padding: 96px var(--bmr-gutter) 88px;
  text-align: center;
  margin: 0 auto;
  color: white;
}
.bmr-newsletter .badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  font-family: var(--bmr-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--bmr-accent-2);
  background: rgba(0,0,0,0.25);
  margin-bottom: 26px;
}
.bmr-newsletter h2 {
  font-family: var(--bmr-display);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 0.98;
  margin: 0 0 22px;
  color: white;
  text-transform: uppercase;
}
.bmr-newsletter p {
  font-family: var(--bmr-display);
  font-weight: 300;
  font-size: 19px;
  max-width: 50ch;
  margin: 0 auto 32px;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
}
.bmr-newsletter form { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.bmr-newsletter input {
  flex: 1; max-width: 360px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 16px 22px;
  font-family: var(--bmr-body);
  font-size: 15px;
  border-radius: 999px;
  min-width: 280px;
}
.bmr-newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.bmr-newsletter button {
  background: var(--bmr-accent);
  color: white; border: 0;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--bmr-body);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.bmr-newsletter .micro {
  font-family: var(--bmr-body);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin: 0;
  font-weight: normal;
  letter-spacing: 0.04em;
}

/* FOOTER */
.bmr-footer {
  background: var(--bmr-bg-dark-2);
  color: var(--bmr-text-on-dark-mute);
  padding: 56px 0 32px;
}
.bmr-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.bmr-footer h4 {
  color: var(--bmr-text-on-dark);
  font-family: var(--bmr-body);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  margin: 0 0 14px;
  font-weight: 600;
}
.bmr-footer ul { list-style: none; padding: 0; margin: 0; }
.bmr-footer li { margin-bottom: 8px; font-size: 13px; }
.bmr-footer .brand-blurb {
  font-family: var(--bmr-display);
  font-weight: 300;
  font-size: 17px;
  color: var(--bmr-text-on-dark);
  line-height: 1.4;
  max-width: 38ch;
  margin: 0 0 16px;
}
.bmr-footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--bmr-rule-dark);
  font-size: 12px;
  display: flex; justify-content: space-between;
  color: #6e6c68;
}

/* ROAD DETAIL TEMPLATE */
.bmr-crumbs { background: var(--bmr-bg-light); border-bottom: 1px solid var(--bmr-rule-light); padding: 14px 0; font-size: 12px; color: var(--bmr-text-on-light-mute); text-transform: uppercase; letter-spacing: 0.14em; }
.bmr-crumbs .sep { padding: 0 8px; opacity: .5; }
.bmr-road-hero { position: relative; background: var(--bmr-bg-dark); color: var(--bmr-text-on-dark); }
.bmr-road-hero .photo { width: 100%; aspect-ratio: 16/9; background-size: cover; background-position: center 38%; position: relative; }
.bmr-road-hero .photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.55) 75%, rgba(29,29,29,1) 100%), linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 55%); }
.bmr-road-hero .overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--bmr-gutter) 56px; z-index: 2; }
.bmr-road-hero .overlay-inner { max-width: var(--bmr-container); margin: 0 auto; }
.bmr-road-hero .state-badge { display: inline-block; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; font-family: var(--bmr-body); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; }
.bmr-road-hero h1 { font-family: var(--bmr-display); font-weight: 700; font-size: clamp(48px, 7vw, 96px); line-height: 0.95; letter-spacing: -0.005em; color: white; margin: 0 0 16px; max-width: 18ch; text-transform: uppercase; }
.bmr-road-hero .kicker { font-family: var(--bmr-display); font-weight: 300; font-size: clamp(18px, 2vw, 22px); color: rgba(255,255,255,0.9); max-width: 60ch; margin: 0; line-height: 1.45; }

.bmr-meta-strip { background: var(--bmr-bg-dark); color: var(--bmr-text-on-dark); border-top: 1px solid var(--bmr-rule-dark); }
.bmr-meta-strip-inner { max-width: var(--bmr-container); margin: 0 auto; padding: 22px var(--bmr-gutter); display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; align-items: center; }
.bmr-stat .label { font-family: var(--bmr-body); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--bmr-text-on-dark-mute); margin-bottom: 4px; }
.bmr-stat .val { font-family: var(--bmr-display); font-size: 26px; font-weight: 700; letter-spacing: -0.005em; }
.bmr-stat .val .unit { font-size: 13px; color: var(--bmr-text-on-dark-mute); margin-left: 4px; font-family: var(--bmr-body); font-weight: normal; }
.bmr-stat .stars { color: var(--bmr-accent-2); letter-spacing: 0.05em; font-size: 18px; }
.bmr-stat .stars .empty { color: #4a4a4a; }
.bmr-meta-strip .actions { grid-column: 6/7; display: flex; gap: 8px; justify-content: flex-end; }
.bmr-btn-action { background: transparent; color: var(--bmr-text-on-dark); border: 1px solid var(--bmr-rule-dark); padding: 9px 14px; border-radius: 999px; font-family: var(--bmr-body); font-size: 12px; font-weight: 500; cursor: pointer; letter-spacing: 0.02em; text-decoration: none; }
.bmr-btn-action.primary { background: var(--bmr-accent); border-color: var(--bmr-accent); color: white; }
.bmr-btn-action:hover { border-color: #555; color: var(--bmr-text-on-dark); }

.bmr-road-main { max-width: var(--bmr-container); margin: 0 auto; padding: 80px var(--bmr-gutter); display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 80px; }
.bmr-story h2 { font-family: var(--bmr-display); font-weight: 700; font-size: 32px; margin: 56px 0 18px; text-transform: uppercase; letter-spacing: -0.005em; }
.bmr-story h2:first-child { margin-top: 0; }
.bmr-story .lede { font-family: var(--bmr-body); font-size: 22px; line-height: 1.5; font-weight: 400; margin: 0 0 32px; }
.bmr-story p { font-family: var(--bmr-body); font-size: 17px; line-height: 1.7; margin: 0 0 22px; max-width: 64ch; }
.bmr-byline { display: flex; align-items: center; gap: 12px; margin: 0 0 40px; font-family: var(--bmr-body); font-size: 14px; color: var(--bmr-text-on-light-mute); }
.bmr-byline .avatar { width: 36px; height: 36px; border-radius: 999px; background: #ddd no-repeat center / cover; }
.bmr-byline strong { color: var(--bmr-text-on-light); font-weight: 600; }

.bmr-sidebar-card { background: var(--bmr-bg-light-2); border: 1px solid var(--bmr-rule-light); border-radius: 4px; padding: 22px; margin-bottom: 28px; }
.bmr-sidebar-card h3 { margin: 0 0 16px; font-family: var(--bmr-display); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: -0.005em; }
.bmr-glance dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.bmr-glance dt { font-family: var(--bmr-body); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--bmr-text-on-light-mute); align-self: center; }
.bmr-glance dd { margin: 0; font-family: var(--bmr-display); font-weight: 700; font-size: 17px; text-align: right; }
.bmr-glance .gpx-row { border-top: 1px solid var(--bmr-rule-light); margin-top: 14px; padding-top: 14px; display: flex; gap: 8px; }
.bmr-glance .gpx-row a { flex: 1; display: block; text-align: center; padding: 9px 12px; background: var(--bmr-text-on-light); color: white; font-family: var(--bmr-body); font-size: 12px; font-weight: 600; border-radius: 4px; letter-spacing: 0.04em; }
.bmr-glance .gpx-row a.alt { background: white; color: var(--bmr-text-on-light); border: 1px solid var(--bmr-rule-light); }


/* HERO TEXT CONTRAST - guarantee readability over any photo background */
.bmr-hero-title {
  text-shadow:
    0 2px 18px rgba(0,0,0,0.55),
    0 4px 32px rgba(0,0,0,0.45),
    0 0 1px rgba(0,0,0,0.6);
  -webkit-text-stroke: 0.5px rgba(0,0,0,0.25);
}
.bmr-hero-eyebrow {
  text-shadow: 0 1px 4px rgba(0,0,0,0.7), 0 2px 12px rgba(0,0,0,0.5);
}
.bmr-hero-kicker {
  text-shadow: 0 1px 8px rgba(0,0,0,0.6), 0 2px 16px rgba(0,0,0,0.4);
}
.bmr-hero-handwritten,
.bmr-hero-scroll {
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.bmr-road-hero h1 {
  text-shadow:
    0 2px 18px rgba(0,0,0,0.55),
    0 4px 32px rgba(0,0,0,0.4);
  -webkit-text-stroke: 0.5px rgba(0,0,0,0.25);
}
.bmr-road-hero .kicker {
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.bmr-road-hero .state-badge {
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
}


/* MOBILE NAV - hamburger button + slide-out menu */
.bmr-nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  width: 36px; height: 36px;
  padding: 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.bmr-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--bmr-text-on-dark);
  transition: transform .2s, opacity .2s;
}
.bmr-nav-toggle-open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.bmr-nav-toggle-open span:nth-child(2) { opacity: 0; }
.bmr-nav-toggle-open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

@media (max-width: 980px) {
  .bmr-nav-toggle { display: flex !important; }
  .bmr-nav {
    display: none !important;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bmr-bg-dark-2);
    border-bottom: 1px solid var(--bmr-rule-dark);
    padding: 8px 0;
    margin-left: 0;
  }
  .bmr-nav.bmr-nav-open { display: flex !important; }
  .bmr-nav a {
    padding: 14px var(--bmr-gutter);
    border-top: 1px solid var(--bmr-rule-dark);
    font-size: 14px;
    opacity: 1;
  }
  .bmr-nav a:first-child { border-top: 0; }
  .bmr-topbar { position: relative; }
  .bmr-topbar-inner { gap: 12px; }
}


/* ROUTE MAP placeholder block on road detail */
.bmr-map-block {
  margin: 48px 0;
  border: 1px solid var(--bmr-rule-light);
  border-radius: 6px;
  overflow: hidden;
}
.bmr-map-block img { width: 100%; display: block; }
.bmr-map-placeholder {
  background:
    repeating-linear-gradient(45deg, var(--bmr-bg-light-2) 0 12px, var(--bmr-bg-light-3) 12px 24px);
  padding: 64px 32px;
  text-align: center;
  color: var(--bmr-text-on-light-mute);
}
.bmr-map-placeholder svg { color: var(--bmr-accent); margin-bottom: 16px; opacity: 0.9; }
.bmr-map-placeholder-title {
  font-family: var(--bmr-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--bmr-text-on-light);
  margin: 0 0 8px;
}
.bmr-map-placeholder-sub {
  font-family: var(--bmr-body);
  font-size: 14px;
  max-width: 50ch;
  margin: 0 auto;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .bmr-nav { display: none; }
  .bmr-cards4 { grid-template-columns: repeat(2, 1fr); }
  .bmr-podcast .grid { grid-template-columns: 1fr; gap: 32px; }
  .bmr-cards3 { grid-template-columns: 1fr; }
  .bmr-footer-inner { grid-template-columns: 1fr 1fr; }
  .bmr-finder .count { margin-left: 0; }
  .bmr-road-main { grid-template-columns: 1fr; gap: 60px; padding: 56px var(--bmr-gutter); }
}
@media (max-width: 640px) {
  .bmr-cards4 { grid-template-columns: 1fr; }
}


/* ========================================================================
   MOBILE TYPOGRAPHY OVERRIDES (≤640px)
   Aggressive fixes for narrow phone viewports.
   ===================================================================== */
@media (max-width: 640px) {
  :root {
    --bmr-gutter: 18px;
  }

  /* Topbar */
  .bmr-topbar-inner { gap: 8px; padding: 10px 18px; }
  .bmr-brand { font-size: 16px; letter-spacing: 0; }
  .bmr-brand .dot { font-size: 16px; }

  /* Hero */
  .bmr-hero { min-height: 600px; height: 100svh; }
  .bmr-hero-content { padding: 0 18px; }
  .bmr-hero-mark { margin-bottom: 18px; gap: 10px; }
  .bmr-hero-mark .line { width: 24px; }
  .bmr-hero-eyebrow {
    font-size: 9px;
    letter-spacing: 0.22em;
    margin-bottom: 14px;
    line-height: 1.5;
  }
  .bmr-hero-title {
    font-size: clamp(38px, 11.5vw, 60px) !important;
    line-height: 0.96;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
  }
  .bmr-hero-kicker {
    font-size: 15px !important;
    line-height: 1.45;
    margin: 0 auto 26px;
    max-width: 38ch;
  }
  .bmr-hero-cta-row {
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-bottom: 28px;
  }
  .bmr-hero-cta { padding: 13px 18px; font-size: 13px; justify-content: center; width: 100%; }
  .bmr-hero-handwritten { font-size: 13px; }
  .bmr-hero-scroll { font-size: 9px; letter-spacing: 0.24em; bottom: 18px; }

  /* Podcast */
  .bmr-podcast { padding: 56px 0; }
  .bmr-podcast .section-head { padding-bottom: 18px; margin-bottom: 32px; }
  .bmr-podcast .section-head h2 { font-size: 26px !important; line-height: 1.05; }
  .bmr-podcast .section-head p { font-size: 15px; }
  .bmr-podcast .grid { gap: 24px; }
  .bmr-podcast .feature h3 { font-size: 22px !important; line-height: 1.1; }
  .bmr-podcast .feature p { font-size: 15px; }
  .bmr-podcast .actions { gap: 6px; }
  .bmr-podcast .actions a { font-size: 12px; padding: 8px 12px; }
  .bmr-podcast .side { padding: 16px; }
  .bmr-podcast .side .ep .title { font-size: 14px; }

  /* Finder */
  .bmr-finder { padding: 18px 0; }
  .bmr-finder-inner { gap: 10px; }
  .bmr-finder .label { font-size: 18px; flex-basis: 100%; margin-right: 0; }
  .bmr-finder select { width: 100%; min-width: 0; font-size: 14px; padding: 10px 14px; }
  .bmr-finder .search-btn { width: 100%; padding: 12px; }
  .bmr-finder .count { font-size: 10px; margin-left: 0; flex-basis: 100%; }

  /* Cards sections */
  .bmr-cards-section, .bmr-stories-section { padding: 56px 0; }
  .bmr-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 28px;
  }
  .bmr-section-head h2 { font-size: 24px !important; line-height: 1.05; }
  .bmr-cards4 { grid-template-columns: 1fr !important; gap: 20px; }
  .bmr-cards3 { grid-template-columns: 1fr !important; gap: 20px; }
  .bmr-card h3 { font-size: 18px; }

  /* Newsletter */
  .bmr-newsletter-inner { padding: 56px 18px 48px; }
  .bmr-newsletter .badge { font-size: 10px; letter-spacing: 0.18em; padding: 5px 12px; margin-bottom: 18px; }
  .bmr-newsletter h2 { font-size: 30px !important; line-height: 1.05; margin-bottom: 16px; }
  .bmr-newsletter p { font-size: 15px; line-height: 1.45; }
  .bmr-newsletter form { flex-direction: column; gap: 10px; }
  .bmr-newsletter input { width: 100%; min-width: 0; max-width: none; padding: 14px 18px; font-size: 14px; }
  .bmr-newsletter button { width: 100%; padding: 14px; }

  /* Road detail hero */
  .bmr-road-hero h1 {
    font-size: clamp(34px, 9vw, 52px) !important;
    line-height: 0.98;
    max-width: 100%;
  }
  .bmr-road-hero .kicker { font-size: 15px; line-height: 1.4; }
  .bmr-road-hero .state-badge { font-size: 10px; padding: 5px 10px; margin-bottom: 12px; }
  .bmr-road-hero .overlay { padding: 0 18px 32px; }

  /* Meta strip */
  .bmr-meta-strip-inner {
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    padding: 18px;
  }
  .bmr-stat .label { font-size: 9px; letter-spacing: 0.14em; }
  .bmr-stat .val { font-size: 18px !important; }
  .bmr-meta-strip .actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    flex-wrap: wrap;
    gap: 6px;
  }
  .bmr-btn-action { flex: 1 1 auto; text-align: center; font-size: 11px; padding: 9px 10px; }

  /* Story */
  .bmr-road-main { padding: 40px 18px; gap: 36px; }
  .bmr-story h2 { font-size: 22px !important; margin: 32px 0 12px; }
  .bmr-story .lede { font-size: 18px; line-height: 1.45; }
  .bmr-story p { font-size: 16px; line-height: 1.65; }
  .bmr-byline { font-size: 13px; }
  .bmr-sidebar-card { padding: 18px; }
  .bmr-sidebar-card h3 { font-size: 15px; }
  .bmr-glance dd { font-size: 15px; }

  /* Crumbs */
  .bmr-crumbs-inner { font-size: 10px; letter-spacing: 0.10em; }
  .bmr-crumbs .sep { padding: 0 5px; }

  /* Map block placeholder */
  .bmr-map-placeholder { padding: 40px 18px; }
  .bmr-map-placeholder-title { font-size: 18px; }
  .bmr-map-placeholder-sub { font-size: 13px; }

  /* Footer */
  .bmr-footer { padding: 40px 0 24px; }
  .bmr-footer-inner { grid-template-columns: 1fr !important; gap: 28px; }
  .bmr-footer .brand-blurb { font-size: 15px; }
  .bmr-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    margin-top: 28px;
    padding-top: 18px;
  }

  /* Generic h1/h2 safety net */
  h1 { word-break: break-word; overflow-wrap: anywhere; }
  h2 { word-break: break-word; overflow-wrap: anywhere; }
}
