/* Our Story page. Tokens live in base.css. One column at every width:
   the story reads down the page, photos between paragraphs. */

.story > .container,
.story .closing > .container { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.story section { margin-bottom: var(--space-8); }
.story p, .story li { font-size: var(--text-base); }

.story-summary__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-lg);
  line-height: 1.55;
}
.scan-thumbs {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (min-width: 640px) { .scan-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.scan-thumbs a { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-sm); }
.story .scan-thumbs li { font-size: var(--text-sm); }
/* The typed history pages and the archive photos: shown as they are, on a
   paper mount (the same frame as the archive albums in gallery.css). */
.scan-thumbs img, .era__photo img {
  width: 100%;
  height: auto;
  padding: var(--space-2);
  background: var(--color-paper);
  border: var(--border-width) solid var(--color-paper-edge);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.scan-thumbs img { aspect-ratio: 1 / 1; object-fit: cover; object-position: top; }

.era-index ol {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
  border-top: var(--border-width) solid var(--color-border);
}
.era-index li { border-bottom: var(--border-width) solid var(--color-border); }
.era-index a {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-3);
  align-items: baseline;
  min-height: var(--tap-target);
  padding: var(--space-2) 0;
  text-decoration: none;
  color: var(--color-text);
}
.era-index a:hover { color: var(--color-link); }
.era-index span { color: var(--color-wood); font-size: var(--text-sm); font-weight: 700; flex-basis: 100%; }
@media (min-width: 768px) {
  .era-index span { flex-basis: 8.5em; }
}

.era__years {
  margin: 0 0 var(--space-1);
  color: var(--color-wood);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-lg);
}
.era h2 { padding-bottom: var(--space-3); border-bottom: 3px solid var(--color-wood); }
.era__photo { margin: var(--space-5) 0; }


/* Pulled quote: the blockquote in an era's text, styled once in site.css.
   Its last paragraph says who said it. */

/* Timeline */
.jump-link { font-weight: 700; }
.timeline__list { list-style: none; padding: 0; margin: 0; }
.timeline__row {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: var(--border-width) solid var(--color-border);
  scroll-margin-top: var(--space-5);
}
.timeline__year {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-wood);
}
.timeline__text p { margin: 0; }
.timeline__text img {
  margin-top: var(--space-2);
  max-width: 16rem;
  padding: var(--space-1);
  background: var(--color-paper);
  border: var(--border-width) solid var(--color-paper-edge);
  border-radius: var(--radius-sm);
}
#today { border-bottom: 3px solid var(--color-wood); }

/* Founders, longevity, credits */
.name-list {
  list-style: none;
  padding: 0;
  columns: 2 11rem;
  column-gap: var(--space-5);
}
.name-list li { break-inside: avoid; padding: var(--space-1) 0; }
.name-list--directors li { font-weight: 700; }
.scan-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.scan-list a { display: inline-flex; align-items: center; min-height: var(--tap-target); }

.longevity__line {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-lg);
}
.longevity__list { list-style: none; padding: 0; }
.longevity__list li { padding: var(--space-2) 0; border-bottom: var(--border-width) solid var(--color-border); }
.longevity__name { font-weight: 700; }
.longevity__years { color: var(--color-muted); }

.credits { color: var(--color-muted); }

/* "Today, and tomorrow": a dark water band */
.story .closing {
  padding: var(--space-7) 0;
  margin-bottom: 0;
  background: var(--color-hero-mid);
  color: var(--color-hero-text);
}
.closing h2 { color: inherit; }
.closing a:not(.button) { color: var(--color-hero-text); }
.closing .button--secondary { color: var(--color-hero-text); }
.closing :focus-visible { outline-color: var(--color-focus-on-dark); }
.closing .button-row { margin-top: var(--space-5); }
/* The band meets the footer when there is no memory section below it. */
.story .closing:last-child { margin-bottom: calc(-1 * var(--space-8)); }
.story .memory { margin: var(--space-7) auto 0; }


.era__draft { color: var(--color-muted); font-style: italic; }
