/* ==========================================================================
   The Weekend Edition — Shared Styles
   ========================================================================== */

:root {
  --ink: #1a1a1a;
  --paper: #f4ede1;
  --paper-deep: #ebe1cf;
  --rust: #b8412a;
  --rust-dark: #8a2e1d;
  --olive: #4a5230;
  --gold: #c8932b;
  --sea: #2d5566;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Fraunces', serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(184, 65, 42, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(74, 82, 48, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

.poster {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 48px 80px;
  position: relative;
  z-index: 2;
}

/* ===== MASTHEAD ===== */
.masthead {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 56px;
  animation: fadeDown 0.8s ease-out;
}

.masthead a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.masthead a:hover { border-color: var(--rust); color: var(--rust); }

.masthead .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--rust);
  border-radius: 50%;
  margin: 0 10px;
  vertical-align: middle;
}

/* ===== HERO ===== */
.hero { margin-bottom: 64px; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.8s ease-out 0.1s both;
}

.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ink);
  opacity: 0.3;
}

.hero h1 {
  font-size: clamp(60px, 11.5vw, 138px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
  animation: fadeUp 0.9s ease-out 0.2s both;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--rust);
  display: block;
  font-size: 0.58em;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.hero-tagline {
  font-size: 19px;
  line-height: 1.5;
  max-width: 56ch;
  color: var(--ink);
  opacity: 0.78;
  font-style: italic;
  margin-bottom: 36px;
  animation: fadeUp 0.9s ease-out 0.3s both;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(26,26,26,0.2);
  padding-top: 24px;
  animation: fadeUp 0.9s ease-out 0.4s both;
}

.meta-item .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  margin-bottom: 6px;
}

.meta-item .value {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.meta-item .value em {
  font-style: italic;
  font-weight: 400;
  color: var(--rust);
}

/* ===== STOPS ===== */
.stops { position: relative; }

.stops::before {
  content: '';
  position: absolute;
  left: 38px;
  top: 60px;
  bottom: 60px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--ink) 0,
    var(--ink) 4px,
    transparent 4px,
    transparent 10px
  );
  opacity: 0.3;
}

.stop {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
  animation: fadeUp 0.7s ease-out both;
}

.stop:nth-of-type(1) { animation-delay: 0.5s; }
.stop:nth-of-type(2) { animation-delay: 0.65s; }
.stop:nth-of-type(3) { animation-delay: 0.8s; }
.stop:nth-of-type(4) { animation-delay: 0.95s; }
.stop:nth-of-type(5) { animation-delay: 1.1s; }
.stop:nth-of-type(6) { animation-delay: 1.25s; }

.stop-marker { position: relative; z-index: 2; }

.stop-num {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 900;
  font-style: italic;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stop:hover .stop-num {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--rust);
}

.stop-num.rust { background: var(--rust); color: var(--paper); border-color: var(--rust-dark); }
.stop-num.olive { background: var(--olive); color: var(--paper); border-color: #2e3320; }
.stop-num.sea { background: var(--sea); color: var(--paper); border-color: #1a3742; }
.stop-num.gold { background: var(--gold); color: var(--ink); border-color: #8a6618; }

.stop-content { padding-top: 4px; }

.stop-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stop-time .duration {
  color: var(--ink);
  opacity: 0.55;
}

.stop h2 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.stop .place {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  opacity: 0.6;
  margin-bottom: 14px;
  font-weight: 400;
}

.stop p {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.85;
  max-width: 60ch;
  margin-bottom: 14px;
}

.stop .pro-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--paper-deep);
  border-left: 3px solid var(--rust);
  padding: 12px 18px;
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 56ch;
}

.stop .pro-tip strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 500;
  white-space: nowrap;
  padding-top: 3px;
  flex-shrink: 0;
}

/* DRIVE LEG */
.drive-leg {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  margin: -28px 0 28px;
  position: relative;
  animation: fadeUp 0.7s ease-out both;
}

.drive-leg svg {
  width: 22px;
  height: 22px;
  color: var(--ink);
  opacity: 0.5;
  margin: 6px auto 0;
  display: block;
}

.drive-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
  padding-top: 8px;
}

/* ===== MAP SECTION ===== */
.map-section {
  margin: 64px 0;
  animation: fadeUp 0.9s ease-out 0.5s both;
}

.map-section .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.map-section .label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ink);
  opacity: 0.3;
}

.map-container {
  position: relative;
  width: 100%;
  height: 480px;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--paper-deep);
  overflow: hidden;
}

#leafletMap { width: 100%; height: 100%; }

.leaflet-container {
  background: var(--paper-deep) !important;
  font-family: 'Fraunces', serif !important;
}

.leaflet-popup-content-wrapper {
  background: var(--paper) !important;
  border: 2px solid var(--ink) !important;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0 var(--ink) !important;
  padding: 4px !important;
}

.leaflet-popup-content {
  font-family: 'Fraunces', serif !important;
  font-size: 14px !important;
  margin: 12px 14px !important;
  color: var(--ink) !important;
}

.leaflet-popup-content strong {
  font-weight: 900;
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}

.leaflet-popup-tip {
  background: var(--paper) !important;
  border: 2px solid var(--ink) !important;
}

.leaflet-popup-close-button {
  color: var(--ink) !important;
  font-size: 20px !important;
  padding: 6px 8px 0 0 !important;
}

.custom-marker {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--rust);
  color: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 900;
  font-size: 18px;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 3px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  animation: fadeUp 0.9s ease-out 1.25s both;
}

.footer-block .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 12px;
}

.footer-block ul { list-style: none; }

.footer-block li {
  font-size: 14.5px;
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}

.footer-block li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--rust);
  font-weight: 700;
}

.signoff {
  text-align: center;
  margin-top: 56px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  opacity: 0.65;
  animation: fadeUp 0.9s ease-out 1.45s both;
}

.signoff::before, .signoff::after {
  content: '✦';
  margin: 0 14px;
  color: var(--rust);
  font-style: normal;
}

/* ===== NAV BETWEEN DAYS ===== */
.day-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  animation: fadeUp 0.9s ease-out 1.4s both;
}

.day-nav a {
  display: block;
  padding: 20px 24px;
  border: 2px solid var(--ink);
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.25s ease;
  box-shadow: 4px 4px 0 var(--ink);
}

.day-nav a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--rust);
  background: var(--paper-deep);
}

.day-nav .nav-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 6px;
  display: block;
}

.day-nav .nav-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.day-nav .nav-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--rust);
}

.day-nav a.disabled {
  opacity: 0.35;
  pointer-events: none;
  box-shadow: none;
}

.day-nav a.next { text-align: right; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .poster { padding: 32px 24px 48px; }
  .masthead { font-size: 9px; flex-wrap: wrap; gap: 8px; }
  .stops::before { left: 28px; }
  .stop, .drive-leg { grid-template-columns: 58px 1fr; gap: 18px; }
  .stop-num { width: 56px; height: 56px; font-size: 24px; }
  .stop h2 { font-size: 30px; }
  .stop p { font-size: 15px; }
  .hero-meta { grid-template-columns: 1fr; gap: 14px; }
  .footer { grid-template-columns: 1fr; gap: 28px; }
  .day-nav { grid-template-columns: 1fr; }
  .day-nav a.next { text-align: left; }
  .map-container { height: 360px; }
}
