/* Rusty Camper — Light/Dark Editorial Theme */

:root, [data-theme="light"] {
  --bg: #fafaf8;
  --bg-card: #fff;
  --bg-hover: rgba(0,0,0,0.03);
  --bg-table-head: #f4f2ee;
  --bg-table-hover: #faf8f4;
  --text: #444;
  --text-heading: #333;
  --text-meta: #999;
  --text-excerpt: #777;
  --text-table-note: #777;
  --text-table-qty: #888;
  --text-table-link: #999;
  --link: #333;
  --link-hover: #000;
  --border: #e0ddd5;
  --border-light: #eee;
  --border-table: #f0eeea;
  --rule: #ccc;
  --shadow: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-list: 0 1px 8px rgba(0,0,0,0.08);
  --overlay: rgba(0,0,0,0.85);
  --dropcap: #333;
  --blockquote-border: #ddd;
  --blockquote-text: #666;
  --caption: #888;
  --toggle-bg: #e0ddd5;
  --toggle-dot: #fff;
}

[data-theme="dark"] {
  --bg: #1a1a1a;
  --bg-card: #242424;
  --bg-hover: rgba(255,255,255,0.04);
  --bg-table-head: #2a2a2a;
  --bg-table-hover: #2a2a2a;
  --text: #c8c8c8;
  --text-heading: #e0e0e0;
  --text-meta: #777;
  --text-excerpt: #888;
  --text-table-note: #888;
  --text-table-qty: #777;
  --text-table-link: #777;
  --link: #d0d0d0;
  --link-hover: #fff;
  --border: #333;
  --border-light: #2a2a2a;
  --border-table: #333;
  --rule: #444;
  --shadow: 0 1px 4px rgba(0,0,0,0.3);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-list: 0 1px 8px rgba(0,0,0,0.3);
  --overlay: rgba(0,0,0,0.92);
  --dropcap: #e0e0e0;
  --blockquote-border: #444;
  --blockquote-text: #aaa;
  --caption: #888;
  --toggle-bg: #444;
  --toggle-dot: #1a1a1a;
}

/* Reset & Base */
.preload *, .preload *::before, .preload *::after { transition: none !important; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Lora', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); transition: color 0.2s; }
a:hover { color: var(--link-hover); }

/* Layout */
.site-header {
  max-width: 42em;
  margin: 0 auto;
  padding: 3em 1.5em 2em;
  text-align: center;
  position: relative;
}
.site-badge {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-meta);
  margin-bottom: 0.5em;
}
.site-title {
  font-family: 'Lora', serif;
  font-size: 2.4em;
  font-style: italic;
  font-weight: 400;
  color: var(--text-heading);
  line-height: 1.1;
}
.site-title a { text-decoration: none; color: inherit; }
.site-header .rule {
  width: 2em;
  height: 1px;
  background: var(--rule);
  margin: 0.8em auto;
}
.site-tagline {
  font-family: 'Lora', serif;
  font-size: 1em;
  font-style: italic;
  color: var(--text-excerpt);
}
.site-main {
  max-width: 42em;
  margin: 0 auto;
  padding: 0 1.5em;
}
.site-footer {
  max-width: 42em;
  margin: 0 auto;
  padding: 2em 1.5em;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75em;
  color: var(--text-meta);
  text-align: center;
}

/* Theme Toggle */
.theme-toggle {
  position: absolute;
  top: 3em;
  right: 1.5em;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4em;
  line-height: 1;
  padding: 0.2em;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.theme-toggle:hover { opacity: 1; }
.theme-toggle::after { content: '☀️'; }
[data-theme="dark"] .theme-toggle::after { content: '🌙'; }

/* Homepage — Hero Post */
.hero {
  padding: 2em 0;
  border-bottom: 1px solid var(--border);
}
.hero-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  margin-bottom: 1em;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero .post-date {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7em;
  color: var(--text-excerpt);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero .post-title {
  font-size: 1.8em;
  font-style: italic;
  font-weight: 400;
  color: var(--text-heading);
  margin: 0.3em 0;
  line-height: 1.3;
}
.hero-link { text-decoration: none; color: inherit; display: block; }
.hero-link:hover .post-title { color: var(--link-hover); }
.hero .post-excerpt {
  font-size: 1em;
  color: var(--text-excerpt);
  line-height: 1.7;
  margin-top: 0.5em;
}

/* Homepage — Post List */
.post-list { list-style: none; }
.post-item {
  border-bottom: 1px solid var(--border-light);
}
.post-item:last-child { border-bottom: none; }
.post-item a.post-link {
  display: flex;
  align-items: flex-start;
  gap: 1.2em;
  padding: 1.5em 0.8em;
  margin: 0 -0.8em;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.post-item a.post-link:hover,
.post-item a.post-link:focus-visible {
  background-color: var(--bg-hover);
  box-shadow: var(--shadow-list);
}
.post-item a.post-link:hover .post-title,
.post-item a.post-link:focus-visible .post-title {
  color: var(--link-hover);
}
.post-thumb {
  width: 140px;
  height: 95px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 6px;
  margin-top: 1.4em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-info { flex: 1; min-width: 0; }
.post-date {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7em;
  color: var(--text-excerpt);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.post-title {
  font-size: 1.2em;
  font-style: italic;
  font-weight: 400;
  color: var(--text-heading);
  margin: 0.2em 0;
  line-height: 1.3;
}
.post-excerpt {
  font-size: 0.9em;
  color: var(--text-excerpt);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Post Page — Image Strip */
.image-strip-wrap {
  margin: 2em auto;
  max-width: 50em;
  padding: 0 1.5em;
  text-align: center;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.image-strip {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.image-strip:hover,
.hero-image:hover,
.article-body img:hover,
.post-thumb:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}
.image-strip-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--overlay);
  z-index: 100;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}
.image-strip-overlay.active {
  display: flex;
}
.image-strip-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

/* Post Page — Article */
.article-header {
  max-width: 42em;
  margin: 2em auto 0;
  padding: 0 1.5em;
}
.article-header .post-date {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7em;
  color: var(--text-excerpt);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.article-header .post-title {
  font-size: 2em;
  font-style: italic;
  font-weight: 400;
  color: var(--text-heading);
  margin: 0.3em 0 0.5em;
  line-height: 1.3;
}
.article-header .rule {
  width: 2em;
  height: 2px;
  background: var(--rule);
}
.lang-switch {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85em;
  margin-top: 0.8em;
  display: flex;
  gap: 0.6em;
  align-items: center;
}
.lang-switch a, .lang-switch span {
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 0.15s;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch .active { opacity: 1; font-weight: 500; }
/* Home page hero: unified block — map + caption + interactive stats + CTA */
.journey-hero {
  max-width: 52em;
  margin: 1.5em auto 3em;
  padding: 2.2em 1.5em 2em;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}
.journey-hero-image-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.journey-hero-image {
  display: block;
  max-width: 100%;
  max-height: 58vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  transition: transform 0.4s ease;
}
.journey-hero-image-link:hover .journey-hero-image {
  transform: scale(1.01);
}
.journey-hero-caption {
  font-family: 'Lora', serif;
  font-size: 1em;
  font-style: italic;
  color: var(--text-excerpt);
  margin-top: 1.3em;
  line-height: 1.6;
}

/* Integrated stats row inside the hero */
.journey-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 1.8em auto 0;
  max-width: 38em;
  border-top: 1px solid var(--border-light);
  padding-top: 1.4em;
}
.hero-stat {
  background: none;
  border: none;
  padding: 0.4em 0.6em 0.6em;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  text-align: center;
  transition: color 0.2s ease;
  border-bottom: 2px solid transparent;
}
.hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 22%;
  width: 1px;
  background: var(--border-light);
}
.hero-stat:hover .num { color: #ff006e; }
.hero-stat[aria-expanded="true"] { border-bottom-color: #ff006e; }
.hero-stat[aria-expanded="true"] .num { color: #ff006e; }
.hero-stat .num {
  font-family: 'Lora', serif;
  font-size: 2em;
  font-weight: 400;
  font-style: italic;
  color: var(--text-heading);
  line-height: 1;
  letter-spacing: -0.015em;
  transition: color 0.2s ease;
}
.hero-stat .num sup {
  font-size: 0.48em;
  vertical-align: 0.75em;
  color: #ff006e;
  font-style: normal;
  font-weight: 500;
}
.hero-stat .label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.58em;
  color: var(--text-excerpt);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 0.9em;
  line-height: 1.5;
  font-weight: 500;
}

/* Info panel that expands below stats */
.journey-hero-info {
  max-width: 34em;
  margin: 0 auto;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, margin-top 0.3s ease;
}
.journey-hero-info.open {
  max-height: 14em;
  margin-top: 1em;
}
.info-panel {
  display: none;
  padding: 1em 0.6em 0.4em;
  font-family: 'Lora', serif;
  font-size: 0.95em;
  font-style: italic;
  color: var(--text-excerpt);
  line-height: 1.7;
}
.info-panel.active { display: block; }
.info-panel strong {
  font-style: normal;
  font-weight: 500;
  color: var(--text-heading);
}

/* CTA pill */
.journey-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: 1.8em;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-heading);
  text-decoration: none;
  padding: 0.7em 1.4em;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  transition: all 0.2s ease;
}
.journey-hero-cta-arrow {
  font-size: 0.75em;
  color: #ff006e;
}
.journey-hero-cta:hover {
  border-color: var(--text-heading);
  background: var(--text-heading);
  color: var(--bg);
}
.journey-hero-cta:hover .journey-hero-cta-arrow {
  color: #ff006e;
}

@media (max-width: 640px) {
  .journey-hero {
    margin: 1em auto 2em;
    padding: 1.4em 0.6em 1.5em;
  }
  .journey-hero-image {
    max-height: 55vh;
  }
  .journey-hero-caption {
    font-size: 0.9em;
    margin-top: 1em;
    padding: 0 0.5em;
  }
  .journey-hero-stats {
    margin-top: 1.4em;
    padding-top: 1em;
    gap: 0;
  }
  .hero-stat { padding: 0.4em 0.3em 0.5em; }
  .hero-stat .num { font-size: 1.6em; }
  .hero-stat .label { font-size: 0.5em; letter-spacing: 0.1em; margin-top: 0.7em; }
  .journey-hero-info.open { max-height: 18em; }
  .info-panel { font-size: 0.88em; padding: 0.8em 0.4em 0.2em; }
  .journey-hero-cta {
    font-size: 0.65em;
    letter-spacing: 0.14em;
    padding: 0.65em 1.1em;
    margin-top: 1.3em;
  }
}

.journey-map {
  margin: 2em auto;
  text-align: center;
}
.journey-map-inner {
  position: relative;
  display: inline-block;
}
.journey-map-figure {
  position: relative;
  display: inline-block;
}
.journey-map-figure img {
  display: block;
  max-width: 100%;
  height: auto;
}
.route-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.route-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: 0;
  transition: none;
}
.route-path.playing { opacity: 1; }
.route-seg-1.drawing { animation: drive-seg-1 6s linear forwards; }
.route-seg-2.drawing { animation: drive-seg-2 3s linear forwards; }
.route-seg-3.drawing { animation: drive-seg-3 6s linear forwards; }
.route-seg-4.drawing { animation: drive-seg-4 3s linear forwards; }

/* Segment 1: fast highway miles through US, slower through Mexico, border stops */
@keyframes drive-seg-1 {
  0%   { stroke-dashoffset: 1000; }
  10%  { stroke-dashoffset: 870; }   /* fast out of NYC */
  13%  { stroke-dashoffset: 870; }   /* stop */
  24%  { stroke-dashoffset: 720; }   /* cruise US */
  28%  { stroke-dashoffset: 720; }   /* stop */
  36%  { stroke-dashoffset: 620; }   /* medium */
  40%  { stroke-dashoffset: 620; }   /* longer stop */
  54%  { stroke-dashoffset: 460; }   /* border → Mexico */
  58%  { stroke-dashoffset: 460; }   /* stop */
  72%  { stroke-dashoffset: 290; }   /* slow through Mexico */
  77%  { stroke-dashoffset: 290; }   /* stop */
  88%  { stroke-dashoffset: 140; }   /* Central America */
  92%  { stroke-dashoffset: 140; }   /* stop */
  100% { stroke-dashoffset: 0; }     /* arrive Cartagena */
}

/* Segment 2: shorter, 2 stops, steady coast */
@keyframes drive-seg-2 {
  0%   { stroke-dashoffset: 1000; }
  22%  { stroke-dashoffset: 730; }   /* medium */
  28%  { stroke-dashoffset: 730; }   /* stop */
  58%  { stroke-dashoffset: 420; }   /* slow winding */
  65%  { stroke-dashoffset: 420; }   /* stop */
  100% { stroke-dashoffset: 0; }     /* arrive Guayaquil */
}

/* Segment 4: FL → Boston, steady drive with a couple of stops */
@keyframes drive-seg-4 {
  0%   { stroke-dashoffset: 1000; }
  25%  { stroke-dashoffset: 750; }   /* fast I-95 */
  30%  { stroke-dashoffset: 750; }   /* stop */
  60%  { stroke-dashoffset: 400; }   /* cruise through Mid-Atlantic */
  65%  { stroke-dashoffset: 400; }   /* stop */
  100% { stroke-dashoffset: 0; }     /* arrive Boston */
}

/* Segment 3: slow Andes, faster Patagonia, frequent stops */
@keyframes drive-seg-3 {
  0%   { stroke-dashoffset: 1000; }
  8%   { stroke-dashoffset: 900; }   /* slow start, Peru coast */
  12%  { stroke-dashoffset: 900; }   /* stop */
  22%  { stroke-dashoffset: 780; }   /* slow Andes */
  28%  { stroke-dashoffset: 780; }   /* longer stop (La Paz?) */
  40%  { stroke-dashoffset: 630; }   /* medium */
  44%  { stroke-dashoffset: 630; }   /* stop */
  56%  { stroke-dashoffset: 470; }   /* Chile */
  60%  { stroke-dashoffset: 470; }   /* stop */
  74%  { stroke-dashoffset: 270; }   /* fast Patagonia */
  78%  { stroke-dashoffset: 270; }   /* stop (Ushuaia) */
  100% { stroke-dashoffset: 0; }     /* return to BA */
}

.flight-path {
  opacity: 0;
  transition: none;
  filter: drop-shadow(0 0 2px rgba(42, 76, 255, 0.4));
}
.flight-path.showing { opacity: 1; transition: opacity 0.6s ease; }
.plane {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.plane.flying { opacity: 1; }
.sea-path {
  opacity: 0;
  transition: opacity 0.6s ease;
  filter: drop-shadow(0 0 2px rgba(11, 143, 168, 0.35));
}
.sea-path.showing { opacity: 1; }
.ship {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ship.sailing { opacity: 1; }
.flag {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.flag.planted {
  opacity: 1;
}
.beach-party {
  opacity: 0;
  transform: scale(0.2);
  transform-origin: 0 0;
}
.beach-party.partying {
  animation: beach-party-pop 1.8s ease-out forwards;
}
@keyframes beach-party-pop {
  0%   { opacity: 0; transform: scale(0.2) rotate(-8deg); }
  15%  { opacity: 1; transform: scale(1.4) rotate(4deg); }
  25%  { transform: scale(0.9) rotate(-3deg); }
  35%  { transform: scale(1.1) rotate(2deg); }
  45%  { transform: scale(1) rotate(0deg); }
  80%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
.trip-stats .route-trigger { cursor: help; }

/* Home page only: map is hidden until a route-trigger stat is hovered */
.journey-map-reveal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 90;
  margin: 0;
  padding: 1.8em 2em 1.4em;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.35), 0 10px 30px -10px rgba(0,0,0,0.2);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.35s;
}
.journey-map-reveal img {
  max-height: 72vh;
  max-width: 90vw;
  height: auto;
  width: auto;
  display: block;
}
.journey-map-reveal .caption { margin-top: 1em; }
.site-main:has(.route-trigger:hover) .journey-map-reveal {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0s;
}
/* Optional dimmer behind the map while hovering */
.journey-map-reveal::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: -1;
  transition: background 0.35s ease;
  pointer-events: none;
}
.site-main:has(.route-trigger:hover) .journey-map-reveal::after {
  background: rgba(0,0,0,0.35);
}
.journey-map a { text-decoration: none; color: inherit; display: block; }
.journey-map img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.journey-map a:hover img { transform: scale(1.02); }
.journey-map .caption {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9em;
  color: var(--text-excerpt);
  margin-top: 0.8em;
  font-style: italic;
}
.trip-stats {
  max-width: 42em;
  margin: 2em auto 2.8em;
  padding: 2em 1.4em 1.8em;
  background: transparent;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}
a.trip-stats:hover { background: rgba(168, 87, 45, 0.04); }
a.trip-stats:hover .num { color: #a8572d; }
.trip-stats .num { transition: color 0.2s ease; }
.trip-stats .stat {
  position: relative;
  padding: 0 0.9em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.trip-stats .stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--border-light);
}
.trip-stats .stat-icon {
  width: 1.7em;
  height: 1.7em;
  margin: 0 auto 0.7em;
  color: #a8572d;
  display: block;
  opacity: 0.85;
}
.trip-stats .num {
  font-family: 'Lora', serif;
  font-size: 2.6em;
  font-weight: 400;
  font-style: italic;
  color: var(--text-heading);
  line-height: 1;
  letter-spacing: -0.015em;
}
.trip-stats .num sup {
  font-size: 0.48em;
  vertical-align: 0.75em;
  margin-left: 0.02em;
  color: #a8572d;
  font-style: normal;
  font-weight: 500;
}
.trip-stats .label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.58em;
  color: var(--text-excerpt);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 1em;
  line-height: 1.5;
  font-weight: 500;
  min-height: 3em;
}
@media (max-width: 640px) {
  .trip-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.8em;
    padding: 1.6em 0.4em 1.4em;
    margin: 1.5em auto 2em;
  }
  .trip-stats .stat { padding: 0 0.4em; min-width: 0; }
  .trip-stats .stat:nth-child(3)::before { display: none; }
  .trip-stats .stat-icon { width: 1.5em; height: 1.5em; margin-bottom: 0.5em; }
  .trip-stats .num { font-size: 2.1em; }
  .trip-stats .num sup { font-size: 0.45em; vertical-align: 0.85em; }
  .trip-stats .label {
    font-size: 0.6em;
    letter-spacing: 0.12em;
    min-height: 0;
    margin-top: 0.8em;
  }
}
@media (max-width: 380px) {
  .trip-stats { padding: 1.4em 0.2em 1.2em; }
  .trip-stats .stat { padding: 0 0.2em; }
  .trip-stats .num { font-size: 1.85em; }
  .trip-stats .label { font-size: 0.56em; letter-spacing: 0.1em; }
}

/* Reveal via JS (works on both hover and touch) */
.journey-map-reveal.revealed {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0s;
}
.journey-map-reveal.revealed::after { background: rgba(0,0,0,0.35); }
.trip-stats .route-trigger { cursor: pointer; }
@media (max-width: 640px) {
  .journey-map-reveal {
    padding: 0.8em 0.8em 0.6em;
    max-width: 94vw;
    max-height: 92vh;
    overflow: auto;
    border-radius: 10px;
  }
  .journey-map-reveal .journey-map-figure,
  .journey-map-reveal a { display: block; }
  .journey-map-reveal img {
    max-height: 70vh;
    max-width: 100%;
    width: auto;
    margin: 0 auto;
  }
  .journey-map-reveal .caption {
    font-size: 0.8em;
    margin-top: 0.6em;
    padding: 0 0.4em;
  }
}

/* Journey page — header dek, play button, controls */
.journey-header {
  text-align: center;
  margin: 2em auto 2.5em;
}
.journey-header .rule {
  margin: 0.8em auto 1.2em;
}
.journey-dek {
  font-family: 'Lora', serif;
  font-size: 1.05em;
  font-style: italic;
  color: var(--text-excerpt);
  line-height: 1.7;
  max-width: 28em;
  margin: 0 auto;
}
.journey-controls {
  text-align: center;
  margin-top: 2em;
}
.journey-play {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 1em 2em;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
  background: #ff006e;
  border: 1px solid #ff006e;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 16px -6px rgba(255, 0, 110, 0.5);
  transition: all 0.2s ease;
}
.journey-play:hover {
  background: #e6005f;
  border-color: #e6005f;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px rgba(255, 0, 110, 0.6);
}
.journey-play:active { transform: translateY(0); }
.journey-play.played {
  background: transparent;
  color: var(--text-excerpt);
  border-color: var(--border-light);
  box-shadow: none;
  letter-spacing: 0.18em;
}
.journey-play.played:hover {
  color: #ff006e;
  border-color: #ff006e;
  transform: none;
  box-shadow: none;
  background: rgba(255, 0, 110, 0.04);
}
.journey-play-icon {
  font-size: 0.9em;
  line-height: 1;
}
.journey-duration {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-excerpt);
  opacity: 0.6;
  margin-top: 1em;
}
@media (max-width: 600px) {
  .journey-header { margin: 1.5em auto 1.8em; }
  .journey-dek { font-size: 0.95em; padding: 0 1em; }
  .journey-play { padding: 0.9em 1.6em; font-size: 0.78em; letter-spacing: 0.16em; }
  .journey-play-label { /* full label still fits */ }
  .journey-controls { margin-top: 1.5em; }
}

/* On the journey page, the map needs the figure wrapper for SVG overlay */
.journey-map .journey-map-figure {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.journey-map .journey-map-figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

.journey-close {
  position: absolute;
  top: 0.7em;
  right: 0.7em;
  width: 2.2em;
  height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.25em;
  font-weight: 300;
  color: #2a2a2a;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background 0.15s, transform 0.15s;
  z-index: 100;
  line-height: 1;
}
.journey-close:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.06);
}
.article-body {
  max-width: 42em;
  margin: 1.5em auto;
  padding: 0 1.5em;
}
.article-body p { margin: 1.2em 0; }
.article-body .dropcap::first-letter {
  font-family: 'Lora', serif;
  font-size: 3.8em;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.08em 0 0;
  padding-top: 0;
  color: var(--dropcap);
}
.article-body blockquote {
  border-left: 3px solid var(--blockquote-border);
  padding-left: 1.2em;
  margin: 1.5em 0;
  color: var(--blockquote-text);
  font-style: italic;
}
.article-body figure {
  margin: 1.5em 0;
  text-align: center;
}
.article-body img {
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-body figcaption {
  font-size: 0.8em;
  color: var(--caption);
  margin-top: 0.5em;
  font-style: italic;
}
.packing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
  margin: 1.5em 0;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.packing-table th {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-excerpt);
  text-align: left;
  padding: 0.8em 1em;
  background: var(--bg-table-head);
  border-bottom: 2px solid var(--border);
}
.packing-table td {
  padding: 0.6em 1em;
  border-bottom: 1px solid var(--border-table);
  vertical-align: top;
}
.packing-table td:nth-child(2) {
  text-align: center;
  color: var(--text-table-qty);
  white-space: nowrap;
}
.packing-table td:nth-child(3) {
  font-size: 0.9em;
  color: var(--text-table-note);
  font-style: italic;
}
.packing-table tbody tr:last-child td { border-bottom: none; }
.packing-table tbody tr:hover { background: var(--bg-table-hover); }
.packing-table a {
  color: var(--text-table-link);
  font-size: 0.85em;
  text-decoration: none;
  border-bottom: 1px dotted var(--rule);
}
.packing-table a:hover { color: var(--link-hover); border-bottom-color: var(--text-meta); }
.article-body h1, .article-body h2, .article-body h3 {
  font-family: 'Lora', serif;
  font-weight: 700;
  color: var(--text-heading);
  margin: 1.5em 0 0.5em;
}

/* Comments */
.comments {
  max-width: 42em;
  margin: 3em auto;
  padding: 0 1.5em;
  border-top: 1px solid var(--border-light);
}
.comments h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-meta);
  margin: 1.5em 0 1em;
}
.comment {
  margin-bottom: 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid var(--border-light);
}
.comment:last-child { border-bottom: none; }
.comment-author {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8em;
  font-weight: 500;
  color: var(--text-heading);
}
.comment-date {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7em;
  color: var(--text-meta);
}
.comment-body { margin-top: 0.5em; font-size: 0.9em; }

/* Navigation */
.post-nav {
  max-width: 42em;
  margin: 0 auto;
  padding: 2em 1.5em;
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8em;
  border-top: 1px solid var(--border-light);
}
.post-nav a { text-decoration: none; color: var(--text-excerpt); }
.post-nav a:hover { color: var(--text-heading); }

/* Responsive */
@media (max-width: 600px) {
  body { font-size: 18px; }
  .site-header { padding: 2em 2.8em 1.5em; }
  .site-title { font-size: 2em; }
  .site-tagline { font-size: 1.05em; }
  .site-main { padding: 0 1em; }
  .site-footer { padding: 2em 1em; }
  .hero-image { height: 200px; }
  .hero .post-title { font-size: 1.3em; }
  .post-item a.post-link { flex-direction: column; gap: 0.8em; padding: 1.2em 0.5em; margin: 0 -0.5em; }
  .post-thumb { width: 100%; height: 180px; margin-top: 0; }
  .image-strip-wrap { width: auto; position: static; left: auto; transform: none; padding: 0; }
  .image-strip { height: auto; }
  .article-header { padding: 0 1em; }
  .article-header .post-title { font-size: 1.5em; }
  .article-body { padding: 0 1em; line-height: 1.7; }
  .article-body h1 { font-size: 1.3em; }
  .article-body h2 { font-size: 1.15em; }
  .article-body h3 { font-size: 1.05em; }
  .article-body .dropcap::first-letter { font-size: 3.2em; }
  .article-body figure { margin: 1.2em -0.4em; }
  .comments { padding: 0 1em; }
  .post-excerpt { font-size: 1em; line-height: 1.4; }
  .post-date { font-size: 0.75em; }
  .post-nav {
    padding: 2em 1em;
    font-size: 0.8em;
    gap: 1em;
    flex-wrap: wrap;
  }
  .post-nav span { flex: 1 1 45%; }
  .post-nav span:last-child { text-align: right; }
  .theme-toggle {
    top: 1.4em;
    right: 0.8em;
    font-size: 1.3em;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .lang-switch { font-size: 1em; gap: 0.9em; }
  .lang-switch a, .lang-switch span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2em;
    min-height: 2em;
  }
  .packing-table { font-size: 0.78em; display: block; overflow-x: auto; }
  .packing-table th, .packing-table td { padding: 0.55em 0.6em; }
  .journey-map-inner { display: block; }
  .journey-map-inner img { width: 100%; height: auto; }
  .journey-close {
    top: 0.5em;
    right: 0.5em;
    width: 1.9em;
    height: 1.9em;
    font-size: 1.15em;
  }
}
