:root {
  --ink: #191a1e;
  --ink-soft: #5c5f6a;
  --ink-faint: #8b8e99;
  --bg: #faf9f7;
  --surface: #ffffff;
  --border: #e8e6e1;
  --border-soft: #f0efec;

  --accent: #c2410c;
  --accent-ink: #9a3412;
  --accent-soft: #fdf0e7;

  --green: #15803d;
  --green-bg: #e9f7ee;
  --red: #b91c1c;
  --red-bg: #fdedec;
  --amber: #b45309;
  --amber-bg: #fef3e2;

  --max-width: 880px;
  --radius: 16px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(25, 26, 30, .04), 0 1px 1px rgba(25, 26, 30, .03);
  --shadow-md: 0 8px 24px rgba(25, 26, 30, .07), 0 2px 6px rgba(25, 26, 30, .04);

  --font: 'Fraunces', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
a { color: var(--accent); text-decoration-color: rgba(194, 65, 12, .35); text-underline-offset: .15em; }
a:hover { color: var(--accent-ink); }

.preview-banner {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 500;
  padding: .55rem;
  letter-spacing: .02em;
}

/* Header */
.site-header {
  background: rgba(250, 249, 247, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.site-name {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--ink);
}
.site-nav { display: flex; gap: 1.5rem; font-size: .92rem; font-weight: 500; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--ink-soft); transition: color .15s ease; }
.site-nav a:hover { color: var(--accent); }

main { max-width: var(--max-width); margin: 0 auto; padding: 3rem 1.5rem 5rem; }
main > .photo-hero:first-child { margin-top: -3rem; }

/* Full-bleed photo hero */
.bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.photo-hero {
  position: relative;
  height: min(64vh, 520px);
  min-height: 380px;
  overflow: hidden;
  margin-bottom: 3rem;
  display: flex;
  align-items: flex-end;
}
.photo-hero-sm { height: 260px; min-height: 220px; margin-bottom: 2.5rem; }
.photo-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
}
.photo-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 14, 10, .1) 0%, rgba(18, 14, 10, .78) 100%);
}
.photo-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: .3rem .8rem;
  border-radius: 99px;
  margin-bottom: 1.1rem;
}
.eyebrow-light { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); }
.photo-hero-content h1 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 2.6rem;
  letter-spacing: -.02em;
  margin-bottom: .6rem;
  color: #fff;
}
.photo-hero-sm .photo-hero-content h1 { font-size: 2.1rem; margin-bottom: 0; }
.tagline { color: var(--ink-soft); font-size: 1.1rem; }
.tagline-light { color: rgba(255, 255, 255, .88); }

.intro { color: var(--ink-soft); margin-bottom: 2rem; font-size: 1.02rem; max-width: 62ch; }

/* Home page link cards */
.home-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-bottom: 3rem;
}
.home-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.home-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #ddd8d0; }
.home-card-icon { font-size: 1.6rem; display: block; margin-bottom: .75rem; }
.home-card h2 { font-family: var(--font); font-weight: 600; font-size: 1.15rem; margin-bottom: .45rem; color: var(--ink); }
.home-card p { font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }

.home-news h2, .journal-list h2 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--border);
  padding-bottom: .6rem;
  margin-bottom: 1rem;
}
.news-list-compact { list-style: none; font-size: .95rem; }
.news-list-compact li { padding: .65rem 0; border-bottom: 1px solid var(--border-soft); }
.news-list-compact .news-date { color: var(--ink-faint); margin-right: .7rem; font-size: .82rem; font-variant-numeric: tabular-nums; }
.news-list-compact a { color: var(--ink); font-weight: 500; text-decoration: none; }
.news-list-compact a:hover { color: var(--accent); }

/* Route grid + status badges */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}
.route-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.route-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #ddd8d0; }
.route-card-head { display: flex; justify-content: space-between; align-items: start; gap: .6rem; margin-bottom: .6rem; }
.route-card h2 { font-family: var(--font); font-weight: 600; font-size: 1.1rem; color: var(--ink); line-height: 1.3; }
.route-card p { font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .3rem .7rem;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-dot { width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.status-open { background: var(--green-bg); color: var(--green); }
.status-verified { background: var(--green-bg); color: var(--green); }
.status-closed { background: var(--red-bg); color: var(--red); }
.status-uncertain, .status-pending_research { background: var(--amber-bg); color: var(--amber); }

.route-header { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; margin-bottom: 1rem; }
.route-header h1 { font-size: 1.9rem; }
.status-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
}
.status-note p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.status-note p + p { margin-top: .5rem; }
.last-verified { font-size: .8rem; color: var(--ink-faint); }
.breadcrumb { font-size: .88rem; margin-bottom: 1.5rem; }
.breadcrumb a { text-decoration: none; color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--accent); }

.route-body h2 { font-family: var(--font); font-weight: 600; font-size: 1.35rem; margin: 2rem 0 .75rem; color: var(--ink); }
.route-body h3 { font-family: var(--font); font-weight: 600; font-size: 1.12rem; margin: 1.5rem 0 .5rem; color: var(--ink); }
.route-body p, .route-body li { margin-bottom: .75rem; }
.route-body ul, .route-body ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }

.route-body figure, .page-body figure {
  margin: 1.75rem 0;
}
.route-body figure img, .page-body figure img,
.route-body video, .page-body video {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  width: 100%;
}
.route-body figcaption, .page-body figcaption {
  font-size: .85rem;
  color: var(--ink-faint);
  margin-top: .6rem;
  text-align: center;
}
.source-list {
  list-style: none;
  padding: 1rem 1.2rem !important;
  font-size: .88rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.source-list li { margin-bottom: .4rem; }
.source-list li:last-child { margin-bottom: 0; }

/* News */
.news-list { list-style: none; }
.news-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.news-item .news-date { font-size: .8rem; color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.news-item h2 { font-family: var(--font); font-weight: 600; font-size: 1.3rem; margin: .4rem 0 .6rem; }
.news-item h2 a { text-decoration: none; color: var(--ink); }
.news-item h2 a:hover { color: var(--accent); }
.news-item p { color: var(--ink-soft); font-size: .97rem; }
.affects { font-size: .85rem; margin-top: .7rem; color: var(--ink-faint); }

article.page h1, .route-header h1 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -.01em;
  font-size: 2rem;
  margin-bottom: 1.4rem;
  line-height: 1.25;
  color: var(--ink);
}
.page-body p { margin-bottom: 1.15rem; }
.page-body h2 { font-family: var(--font); font-weight: 600; font-size: 1.3rem; margin: 1.75rem 0 .7rem; }
.page-body ul { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.page-body li { margin-bottom: .5rem; }
.page-body img { margin: 1.25rem 0; }

/* Photo gallery */
.gallery-album { margin-bottom: 2.75rem; }
.gallery-album h2 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .6rem;
}
.gallery-thumb {
  display: block;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--border-soft);
  aspect-ratio: 1 / 1;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  transition: transform .2s ease;
}
.gallery-thumb:hover img { transform: scale(1.06); }

#lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15, 12, 9, .92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}
#lightbox.open { display: flex; }
#lightbox figure { max-width: min(90vw, 1100px); max-height: 90vh; margin: 0; text-align: center; }
#lightbox img { max-width: 100%; max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
#lightbox figcaption { color: rgba(255,255,255,.85); font-size: .92rem; margin-top: 1rem; }
#lightbox-close, #lightbox-prev, #lightbox-next {
  position: fixed;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
#lightbox-close:hover, #lightbox-prev:hover, #lightbox-next:hover { background: rgba(255,255,255,.22); }
#lightbox-close { top: 1.25rem; right: 1.25rem; }
#lightbox-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
#lightbox-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* Homepage video */
.home-video {
  margin-bottom: 3rem;
}
.home-video video {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: block;
}
.home-video figcaption {
  text-align: center;
  color: var(--ink-soft);
  font-size: .9rem;
  margin-top: .75rem;
}

.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: .85rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  html { font-size: 16px; }
  .photo-hero { height: 60vh; min-height: 320px; }
  .photo-hero-sm { height: 200px; min-height: 180px; }
  .photo-hero-content h1 { font-size: 2rem; }
  .photo-hero-sm .photo-hero-content h1 { font-size: 1.6rem; }
  .site-nav { gap: .9rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .4rem; }
  #lightbox-prev, #lightbox-next { width: 38px; height: 38px; }
  #lightbox-prev { left: .5rem; }
  #lightbox-next { right: .5rem; }
  #lightbox-close { top: .75rem; right: .75rem; }
}
