/* A short chapter at a time, using the site's paper, type and violet accents. */
.history h2 {
  margin: 44px 0 32px;
}

.history-selector {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}

.history-years {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #d6c9df transparent;
  border-bottom: 1px solid #d6c9df;
}

.history-years button {
  flex: 1 0 70px;
  min-height: 56px;
  padding: 12px 10px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #7a6c85;
  font-size: 15px;
}

.history-years button:hover,
.history-years button[aria-selected=true] {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

.history-years button[aria-selected=true] {
  font-weight: 700;
}

.history-controls {
  display: flex;
  flex-shrink: 0;
  gap: 9px;
  color: var(--purple);
}

.history-controls .circle-button {
  width: 40px;
  height: 40px;
}

.history-controls button:disabled {
  opacity: .3;
  cursor: default;
}

.history-chapters {
  min-height: 420px;
}

.history-chapter {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 7%;
  margin: 0 0 36px;
}

.history-date {
  display: block;
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(52px, 6vw, 92px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--purple);
}

.history-chapter h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(25px, 2.4vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.045em;
}

.history-chapter p {
  margin: 0;
  max-width: 32em;
  font-size: 16px;
  line-height: 1.8;
  color: #675a6e;
}

.history-visual {
  min-width: 0;
  margin: 0;
}

.history-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: var(--history-photo-position, center);
  border-radius: 12px;
  background: #ebe7ef;
}

.history-visual figcaption {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: #786b82;
}

.history [hidden] {
  display: none;
}

@media (max-width: 760px) {
  .history h2 { margin: 32px 0 24px; }
  .history-selector { gap: 12px; margin-bottom: 28px; }
  .history-years button { flex-basis: 64px; font-size: 13px; }
  .history-controls { gap: 6px; }
  .history-controls .circle-button { width: 34px; height: 34px; }
  .history-chapters { min-height: 590px; }
  .history-chapter { grid-template-columns: 1fr; gap: 26px; }
  .history-date { font-size: 64px; margin-bottom: 16px; }
  .history-chapter h3 { font-size: clamp(25px, 7vw, 34px); }
  .history-chapter p { font-size: 14px; line-height: 1.75; }
}
