:root {
  --bg-color: #f7f1e7;
  --paper: #fffaf0;
  --paper-strong: #efe3cf;
  --text-color: #1e2624;
  --muted: #66706b;
  --accent-color: #b9472f;
  --accent-dark: #7c2d20;
  --forest: #183a37;
  --gold: #d8a348;
  --border-color: #dccbb1;
  --shadow: 0 24px 70px rgba(41, 34, 24, 0.14);
  --type-display: clamp(1.65rem, 2.8vw, 2.45rem);
  --type-section: clamp(1.15rem, 1.7vw, 1.45rem);
  --type-card-title: clamp(1.05rem, 1.35vw, 1.28rem);
  --type-body-lg: clamp(0.92rem, 1vw, 1rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(216, 163, 72, 0.22), transparent 26rem),
    radial-gradient(circle at 86% 18%, rgba(24, 58, 55, 0.14), transparent 24rem),
    linear-gradient(180deg, #fbf4e6 0%, var(--bg-color) 42%, #f3eadc 100%);
  color: var(--text-color);
  font-family: "Avenir Next", "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 58, 55, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 58, 55, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

.blog-content img[data-lightbox-image],
.blog-content img[role="button"] {
  cursor: zoom-in;
}

.blog-content img[data-lightbox-image]:focus-visible,
.blog-content img[role="button"]:focus-visible {
  outline: 3px solid rgba(185, 71, 47, 0.78);
  outline-offset: 4px;
}

body.has-photo-lightbox {
  overflow: hidden;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.photo-lightbox--open {
  opacity: 1;
  pointer-events: auto;
}

.photo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 13, 0.88);
}

.photo-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  justify-items: center;
}

.photo-lightbox__image {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

.photo-lightbox__caption {
  max-width: 920px;
  margin: 0;
  color: #fffaf0;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.photo-lightbox__close {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 999px;
  background: rgba(24, 58, 55, 0.9);
  color: #fffaf0;
  cursor: pointer;
  font: 400 2rem/1 Georgia, "Times New Roman", serif;
}

.photo-lightbox__close:hover,
.photo-lightbox__close:focus-visible {
  background: var(--accent-dark);
}

a {
  color: inherit;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.site-nav {
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(24, 58, 55, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 12px 40px rgba(41, 34, 24, 0.08);
  backdrop-filter: blur(14px);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--forest);
}

.nav-brand-mark {
  width: 42px;
  height: 26px;
  border-radius: 8px;
  box-shadow: 0 5px 14px rgba(24, 58, 55, 0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(24, 58, 55, 0.1);
  color: var(--forest);
}

main {
  width: min(1040px, calc(100% - 32px));
  margin: 22px auto 0;
}

.home-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  padding: clamp(14px, 2.2vw, 22px);
  border: 1px solid rgba(24, 58, 55, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.94), rgba(239, 227, 207, 0.9)),
    url("https://images.thebeautifulusa.com/trips/2025/amtrak-tour/banner.avif") center/cover;
  box-shadow: 0 14px 42px rgba(41, 34, 24, 0.11);
}

.home-hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow,
.log-eyebrow,
.panel-label {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--text-color);
}

h1 {
  max-width: 520px;
  margin: 0;
  font-size: var(--type-display);
}

.hero-lede {
  max-width: 620px;
  margin: 7px 0 0;
  color: #3e4b47;
  font-size: var(--type-body-lg);
  line-height: 1.4;
}

.hero-link,
.read-more {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 10px;
  color: var(--paper);
  background: var(--forest);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-link:hover,
.read-more:hover,
.hero-link:focus-visible,
.read-more:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.hero-panel {
  align-self: stretch;
  width: 180px;
  padding: 10px;
  border: 1px solid rgba(24, 58, 55, 0.16);
  border-radius: 12px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 10px 30px rgba(41, 34, 24, 0.1);
}

.hero-brand-mark {
  width: 82px;
  height: auto;
  margin-bottom: 6px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(24, 58, 55, 0.14);
}

.hero-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.12;
}

.hero-panel span:last-child {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.28;
}

.trip-stats {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 18px;
}

.stat-card {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(24, 58, 55, 0.12);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.72);
}

.stat-number {
  color: var(--accent-color);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-section {
  margin-bottom: 44px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0 8px;
  border-bottom: 1px solid rgba(24, 58, 55, 0.18);
}

.section-summary {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.section-summary a {
  color: var(--forest);
  text-decoration-color: rgba(24, 58, 55, 0.35);
  text-underline-offset: 3px;
}

.section-heading h2,
h2 {
  margin: 0 0 8px;
  font-size: var(--type-section);
}

.index-grid {
  display: grid;
  gap: 14px;
  scroll-margin-top: 18px;
}

.log-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid rgba(24, 58, 55, 0.14);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 12px 34px rgba(41, 34, 24, 0.075);
}

.log-image-link {
  min-height: 118px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper-strong);
}

.log-image {
  width: 100%;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.log-card:hover .log-image {
  transform: scale(1.04);
}

.log-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6px 0 0;
}

.log-route {
  width: fit-content;
  margin-bottom: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(185, 71, 47, 0.24);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(185, 71, 47, 0.08);
  font-size: 0.68rem;
  font-weight: 800;
}

.log-details h3 {
  margin: 0;
  font-size: var(--type-card-title);
  line-height: 1.12;
}

.log-details h3 a {
  text-decoration: none;
}

.log-details h3 a:hover,
.log-details h3 a:focus-visible {
  color: var(--accent-dark);
}

.log-excerpt {
  max-width: 650px;
  margin: 5px 0 0;
  color: #4e5a55;
  font-size: 0.82rem;
  line-height: 1.35;
}

.topic-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid rgba(24, 58, 55, 0.16);
  border-radius: 999px;
  background: rgba(24, 58, 55, 0.07);
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.topic-chip:hover,
.topic-chip:focus-visible {
  border-color: rgba(185, 71, 47, 0.34);
  background: rgba(185, 71, 47, 0.1);
  color: var(--accent-dark);
}

.post-topic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 900px;
  margin: 0 auto 8px;
  padding: 0 12px;
}

.topic-page {
  margin-bottom: 58px;
}

.topic-index-list,
.topic-post-list {
  display: grid;
  gap: 14px;
}

.topic-row,
.topic-post {
  border: 1px solid rgba(24, 58, 55, 0.14);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.82);
}

.topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: var(--text-color);
  text-decoration: none;
}

.topic-row:hover,
.topic-row:focus-visible {
  border-color: rgba(185, 71, 47, 0.32);
  background: rgba(239, 227, 207, 0.72);
}

.topic-row span:first-child {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.topic-row span:last-child {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.topic-post {
  padding: 22px;
}

.topic-post h2 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.topic-post h2 a {
  text-decoration: none;
}

.topic-post h2 a:hover,
.topic-post h2 a:focus-visible {
  color: var(--accent-dark);
}

.topic-post p:not(.log-eyebrow) {
  max-width: 720px;
  margin: 0;
  color: #4e5a55;
}

.topic-empty {
  color: var(--muted);
}

footer,
.site-footer {
  width: min(1040px, calc(100% - 32px));
  margin: 48px auto 0;
  padding: 30px 0 42px;
  border-top: 1px solid rgba(24, 58, 55, 0.16);
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
}

.footer-disclaimer {
  max-width: 660px;
  margin: 8px auto 0;
  color: #7b837f;
  font-size: 0.76rem;
  line-height: 1.45;
}

header {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.blog-meta {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tagline {
  max-width: 600px;
  margin: 20px auto;
  color: #555;
  font-style: italic;
}

.post-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 900px;
  margin: 24px auto 0;
  padding: 0 20px;
}

.pagination-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background-color: rgba(255, 250, 240, 0.82);
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pagination-card:hover {
  background-color: #efe3cf;
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.pagination-prev {
  text-align: left;
}

.pagination-next {
  text-align: right;
}

.pagination-direction {
  margin-bottom: 6px;
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pagination-part {
  margin-bottom: 4px;
  color: #777;
  font-size: 0.85rem;
}

.pagination-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
}

@media (max-width: 760px) {
  .site-nav {
    align-items: flex-start;
    border-radius: 24px;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }

  main {
    margin-top: 16px;
  }

  .home-hero,
  .log-card {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding: 18px;
    border-radius: 18px;
  }

  .hero-panel {
    display: none;
  }

  .trip-stats {
    grid-template-columns: 1fr;
    margin-bottom: 16px;
  }

  .section-heading {
    display: block;
  }

  .section-summary {
    margin-top: -4px;
  }

  .topic-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .log-details {
    padding: 0 4px 4px;
  }

  .post-pagination {
    grid-template-columns: 1fr;
  }

  .post-topic-strip {
    margin-bottom: 6px;
    padding: 0 4px;
  }
}
