/* Journal Hub — /journal and /journal/* pages */

:root {
  --jrnl-cream: #FDF6E9;
  --jrnl-mahogany: #2C1810;
  --jrnl-brass: #C4956A;
  --jrnl-ink: #1A0F0A;
  --jrnl-ink-muted: #5C3D2E;
  --jrnl-white: #FFFFFF;
}

/* ─── Index Page ──────────────────────────────────────────────────────────── */

/* Page shell */
.journal-page {
  background: var(--jrnl-cream);
  min-height: 100vh;
}

/* Sticky filter bar */
.jrnl-filters {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--jrnl-cream);
  border-bottom: 1px solid rgba(44, 24, 16, 0.12);
  padding: 0 40px;
}

.jrnl-filters-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.jrnl-filters-inner::-webkit-scrollbar { display: none; }

.tag-filter {
  padding: 14px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--jrnl-ink-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tag-filter:hover { color: var(--jrnl-mahogany); border-color: var(--jrnl-brass); }
.tag-filter.active { color: var(--jrnl-mahogany); font-weight: 500; border-color: var(--jrnl-brass); }

/* Intro */
.jrnl-intro {
  text-align: center;
  padding: 72px 40px 56px;
  border-bottom: 1px solid rgba(196, 149, 106, 0.25);
}

.jrnl-intro h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--jrnl-mahogany);
  line-height: 1.15;
  margin: 0 0 20px;
}

.jrnl-intro p {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  color: var(--jrnl-ink-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Card grid */
.jrnl-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (max-width: 640px) {
  .jrnl-grid {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 32px;
  }
  .jrnl-filters { padding: 0 20px; }
  .jrnl-intro { padding: 56px 20px 40px; }
}

/* Card */
.jrnl-card {
  border: 1px solid var(--jrnl-mahogany);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--jrnl-cream);
}

.jrnl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44, 24, 16, 0.12);
}

.jrnl-card-img {
  aspect-ratio: 16 / 9;
  background: var(--jrnl-mahogany);
  display: flex;
  align-items: center;
  justify-content: center;
}

.jrnl-card-img span {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(245, 239, 230, 0.6);
  text-align: center;
  padding: 16px;
  line-height: 1.5;
}

.jrnl-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.jrnl-card-tag {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jrnl-brass);
  margin-bottom: 10px;
}

.jrnl-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--jrnl-mahogany);
  line-height: 1.25;
  margin: 0 0 10px;
}

.jrnl-card-dek {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--jrnl-ink-muted);
  line-height: 1.55;
  margin: 0 0 20px;
  flex: 1;
}

.jrnl-card-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--jrnl-ink-muted);
  opacity: 0.7;
  border-top: 1px solid rgba(196, 149, 106, 0.25);
  padding-top: 14px;
}

/* Brass divider above newsletter CTA */
.jrnl-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--jrnl-brass), transparent);
  max-width: 900px;
  margin: 0 auto;
}

/* Newsletter CTA */
.jrnl-cta {
  text-align: center;
  padding: 56px 40px 80px;
  background: var(--jrnl-mahogany);
}

.jrnl-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--jrnl-cream);
  margin: 0 0 12px;
}

.jrnl-cta p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: rgba(245, 239, 230, 0.7);
  margin: 0 0 28px;
}

.jrnl-cta a, .jrnl-cta-btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  background: var(--jrnl-brass);
  color: var(--jrnl-mahogany);
  padding: 12px 28px;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.jrnl-cta a:hover, .jrnl-cta-btn:hover {
  background: #d4aa85;
}

/* Subtle RSS subscribe line below the main CTA */
.jrnl-rss-link {
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(245, 239, 230, 0.45);
}

.jrnl-rss-link a {
  display: inline;
  background: none;
  color: rgba(245, 239, 230, 0.45);
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 400;
  text-decoration: underline;
  letter-spacing: 0;
  transition: color 0.2s;
}

.jrnl-rss-link a:hover {
  background: none;
  color: rgba(245, 239, 230, 0.75);
}

/* ─── Post Page ───────────────────────────────────────────────────────────── */

.post-page {
  background: var(--jrnl-cream);
  min-height: 100vh;
}

.post-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--jrnl-cream);
  border-bottom: 1px solid rgba(44, 24, 16, 0.1);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-nav-back {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--jrnl-ink-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.post-nav-back:hover { color: var(--jrnl-mahogany); }

/* Post hero */
.post-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 40px 48px;
  text-align: center;
}

.post-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jrnl-brass);
  margin-bottom: 16px;
}

.post-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  color: var(--jrnl-mahogany);
  line-height: 1.15;
  margin: 0 0 20px;
}

.post-dek {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: var(--jrnl-ink-muted);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 28px;
}

.post-byline {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--jrnl-ink-muted);
  opacity: 0.7;
}

/* Post hero image placeholder */
.post-hero-img {
  max-width: 860px;
  margin: 0 auto 0;
  padding: 0 40px;
}

.post-hero-img .img-placeholder {
  aspect-ratio: 21 / 9;
  background: var(--jrnl-mahogany);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-hero-img .img-placeholder span {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(245, 239, 230, 0.5);
  text-align: center;
  padding: 20px;
}

/* Brass rule below hero */
.post-rule {
  height: 2px;
  max-width: 860px;
  margin: 40px auto 0;
  background: linear-gradient(90deg, transparent 0%, var(--jrnl-brass) 40%, var(--jrnl-brass) 60%, transparent 100%);
  opacity: 0.3;
}

/* Photo credit line beneath hero image */
.post-photo-credit {
  max-width: 860px;
  margin: 8px auto 0;
  padding: 0 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #999;
  text-align: right;
}
.post-photo-credit a {
  color: #bbb;
  text-decoration: none;
}
.post-photo-credit a:hover {
  color: var(--jrnl-brass);
}

/* Post article body */
.post-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 40px 72px;
}

.post-section {
  margin-bottom: 56px;
}

.post-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--jrnl-mahogany);
  margin: 0 0 16px;
  line-height: 1.2;
}

.post-section h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--jrnl-mahogany);
  margin: 0 0 12px;
  line-height: 1.3;
}

.post-section p {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  color: var(--jrnl-ink);
  line-height: 1.75;
  margin: 0 0 18px;
}

.post-section p:last-child { margin-bottom: 0; }

.post-section a {
  color: var(--jrnl-mahogany);
  text-decoration: underline;
  text-decoration-color: var(--jrnl-brass);
  text-underline-offset: 2px;
}

.post-section a:hover { color: var(--jrnl-brass); }

/* Inline CTA box */
.inline-cta {
  background: var(--jrnl-mahogany);
  border-radius: 4px;
  padding: 24px 28px;
  margin: 36px 0;
}

.inline-cta p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--jrnl-cream);
  margin: 0 0 12px;
  line-height: 1.6;
}

.inline-cta a {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  background: var(--jrnl-brass);
  color: var(--jrnl-mahogany);
  padding: 10px 22px;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.inline-cta a:hover { background: #d4aa85; }

/* Image placeholder block */
.img-placeholder {
  border-radius: 4px;
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid rgba(44, 24, 16, 0.15);
}

.img-placeholder.captioned {
  margin-bottom: 10px;
}

.img-placeholder img {
  width: 100%;
  display: block;
}

.img-placeholder-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #4a2e1e 0%, #2c1810 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.img-placeholder-placeholder span {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(245, 239, 230, 0.5);
  text-align: center;
  padding: 24px;
  line-height: 1.5;
}

.img-caption {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--jrnl-ink-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
  opacity: 0.75;
}

/* In-article figure block */
.post-figure {
  margin: 28px 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(44, 24, 16, 0.15);
}

.post-caption {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--jrnl-ink-muted);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
  opacity: 0.8;
}

/* Closing aside note */
.post-closing-note {
  border-left: 3px solid var(--jrnl-brass);
  padding-left: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--jrnl-ink-muted);
  line-height: 1.7;
}

/* Itinerary table */
.post-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
}

.post-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(196, 149, 106, 0.25);
  vertical-align: top;
  color: var(--jrnl-ink);
  line-height: 1.55;
}

.post-table tr:last-child td { border-bottom: none; }

.post-table td:first-child {
  white-space: nowrap;
  font-weight: 500;
  color: var(--jrnl-mahogany);
  min-width: 120px;
}

/* Walking route stops */
.walk-stops {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  border-left: 2px solid var(--jrnl-brass);
  padding-left: 24px;
}

.walk-stops li {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--jrnl-ink);
  margin-bottom: 20px;
  line-height: 1.6;
}

.walk-stops li strong {
  color: var(--jrnl-mahogany);
  font-weight: 600;
}

.walk-stops li em {
  color: var(--jrnl-ink-muted);
  font-size: 13px;
}

/* Post footer CTA */
.post-cta {
  text-align: center;
  padding: 56px 40px 72px;
  border-top: 1px solid rgba(44, 24, 16, 0.1);
}

.post-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--jrnl-mahogany);
  margin: 0 0 12px;
}

.post-cta p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--jrnl-ink-muted);
  margin: 0 0 28px;
}

.post-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.post-cta a {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.post-cta a.primary {
  background: var(--jrnl-mahogany);
  color: var(--jrnl-cream);
}

.post-cta a.primary:hover { background: #3e2518; }

.post-cta a.secondary {
  border: 1px solid var(--jrnl-mahogany);
  color: var(--jrnl-mahogany);
  background: transparent;
}

.post-cta a.secondary:hover { background: rgba(44, 24, 16, 0.05); }

/* Mobile responsive */
@media (max-width: 640px) {
  .post-nav { padding: 16px 20px; }
  .post-hero { padding: 48px 20px 32px; }
  .post-hero-img { padding: 0 20px; }
  .post-body { padding: 32px 20px 56px; }
  .post-section h2 { font-size: 24px; }
  .post-section p { font-size: 16px; }
  .post-cta { padding: 40px 20px 56px; }
}