/* ── STORY PAGE ────────────────────────────────────────────────── */
/* Owns: /story page layout, hero, sections, timeline, CTA.        */
/* Does NOT own: global nav (.bg-nav), footer, or theme variables. */

.story-page {
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}

/* ── HERO ── */
.story-hero {
  background: var(--mahogany);
  padding: 120px 40px 100px;
  position: relative;
  overflow: hidden;
}

/* Railroad track texture overlay */
.story-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(196,149,106,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(196,149,106,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Horizontal rail lines — visual nod to railroad tracks */
.story-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--brass) 0px,
    var(--brass) 48px,
    transparent 48px,
    transparent 64px
  );
  opacity: 0.3;
}

.story-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.story-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 24px;
  display: block;
}

.story-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.story-hero-lede {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(245,239,230,0.65);
  line-height: 1.75;
  font-weight: 300;
  max-width: 560px;
}

/* ── SECTION SCAFFOLDING ── */
.st-section {
  padding: 88px 40px;
}

.cream-bg       { background: var(--cream); }
.cream-deep-bg  { background: var(--cream-deep); }
.mahogany-bg    { background: var(--mahogany); }

/* Soft brass accent for "The Connection" section */
.brass-accent-bg {
  background: var(--cream-deep);
  border-top: 3px solid rgba(196,149,106,0.2);
  border-bottom: 3px solid rgba(196,149,106,0.2);
}

.st-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* Two-column layout: narrow label on left, body on right */
.st-two-col {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

.st-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── SECTION TYPOGRAPHY ── */
.st-section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 12px;
  display: block;
}

.st-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 34px);
  color: var(--mahogany);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0;
}

.st-label-col {
  position: sticky;
  top: 88px;
}

.st-body-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.st-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.8;
  font-weight: 300;
}

/* Pull quote — cream-bordered callout */
.st-pull-quote {
  margin-top: 8px;
  padding: 20px 28px;
  border-left: 2px solid var(--brass);
  background: var(--cream-deep);
  border-radius: 0 6px 6px 0;
}

.st-pull-quote p {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--mahogany);
  line-height: 1.5;
  margin: 0;
}

/* Railroad compass ornament (mahogany section) */
.st-rail-ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.rail-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(196,149,106,0.35), transparent);
}

/* Building detail cards */
.st-detail-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.st-detail-card {
  padding: 20px;
  background: var(--white);
  border: 1px solid rgba(44,24,16,0.08);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.st-detail-year {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--brass);
  line-height: 1;
}

.st-detail-text {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* The Connection section layout */
.connection-title {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
}

.connection-text {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* ── TIMELINE ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 32px 1fr;
  gap: 0 24px;
  align-items: start;
}

.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: rgba(245,239,230,0.5);
  text-align: right;
  padding-top: 2px;
  line-height: 1.2;
}

.brass-year {
  color: var(--brass);
}

.timeline-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brass);
  opacity: 0.5;
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline-dot-active {
  opacity: 1;
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 3px rgba(196,149,106,0.25);
}

.timeline-line {
  flex: 1;
  width: 1px;
  background: rgba(196,149,106,0.25);
  min-height: 64px;
  margin: 6px 0;
}

.timeline-content {
  padding-bottom: 48px;
}

.timeline-item-last .timeline-content {
  padding-bottom: 0;
}

.timeline-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 8px;
  line-height: 1.3;
}

.timeline-drink-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(196,149,106,0.4);
  transition: color 0.2s, border-color 0.2s;
}

.timeline-drink-link:hover {
  color: var(--brass);
  border-color: var(--brass);
}

.timeline-text {
  font-size: 14px;
  color: rgba(245,239,230,0.6);
  line-height: 1.75;
  font-weight: 300;
}

/* ── CLOSING CTA ── */
.st-cta-section {
  background: var(--cream-deep);
  text-align: center;
}

.st-cta-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  color: var(--mahogany);
  margin-bottom: 12px;
  line-height: 1.2;
}

.st-cta-sub {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  font-weight: 300;
  margin-bottom: 40px;
}

.st-cta-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
}

.st-cta-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--mahogany);
  color: var(--cream);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.st-cta-btn:hover {
  background: var(--mahogany-light);
}

.st-cta-link {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  font-weight: 400;
  border-bottom: 1px solid rgba(92,61,46,0.3);
  padding-bottom: 1px;
  transition: color 0.2s;
}

.st-cta-link:hover {
  color: var(--mahogany);
}

/* ── "A PALACE ON WHEELS" PULL QUOTE — railroad car section ── */
/* Displayed on mahogany background; quote is large Playfair italic */
.st-pull-quote-palace {
  padding: 24px 32px;
  border-left: 2px solid var(--brass);
  background: rgba(196,149,106,0.08);
  border-radius: 0 6px 6px 0;
  margin-bottom: 8px;
}

.st-palace-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 32px);
  font-style: italic;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
  margin: 0 0 8px;
}

.st-palace-attr {
  font-size: 11px;
  color: rgba(245,239,230,0.5);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin: 0;
  font-style: normal;
}

.st-cite-link {
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid rgba(196,149,106,0.4);
  transition: opacity 0.2s;
}
.st-cite-link:hover { opacity: 0.75; }

/* ── CITATIONS STRIP — small mahogany serif text, unobtrusive ── */
.st-citations {
  margin-top: 8px;
  padding: 16px 20px;
  border: 1px solid rgba(196,149,106,0.15);
  border-radius: 6px;
  background: rgba(0,0,0,0.12);
}

.st-citations-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  margin: 0 0 10px;
}

.st-citations-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.st-citations-list li {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  color: rgba(245,239,230,0.45);
  line-height: 1.5;
}

.st-citations-list a {
  color: rgba(245,239,230,0.45);
  text-decoration: none;
  border-bottom: 1px solid rgba(196,149,106,0.2);
  transition: color 0.2s, border-color 0.2s;
}
.st-citations-list a:hover {
  color: var(--brass);
  border-color: rgba(196,149,106,0.5);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .story-hero { padding: 80px 24px 72px; }
  .st-section { padding: 56px 24px; }

  .st-two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .st-label-col {
    position: static;
  }

  .st-detail-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline {
    max-width: 100%;
  }

  .timeline-item {
    grid-template-columns: 60px 24px 1fr;
    gap: 0 16px;
  }

  .timeline-year { font-size: 16px; }
  .timeline-line { min-height: 48px; }

  .st-cta-actions {
    flex-direction: column;
    gap: 20px;
  }

  .connection-title, .connection-text {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .story-hero-title { font-size: 32px; }
  .st-section-title { font-size: 22px; }
  .st-cta-headline { font-size: 28px; }
}
