/* history.css — the reading pages (pad #15). One column, generous measure,
   the same midnight-plum and gold as the standalone shell, no new dependencies.
   Long prose deserves to be readable before it is pretty. */

.hist-page {
  max-width: 760px;
  padding-bottom: 4rem;
}

.hist-back {
  margin: 1.4rem 0 0;
  font-size: 0.86rem;
}

.hist-back a {
  color: #c8a94a;
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 169, 74, 0.35);
}

.hist-back a:hover,
.hist-back a:focus-visible {
  color: #f0d489;
  border-bottom-color: #f0d489;
}

.hist-head {
  margin: 1rem 0 1.4rem;
}

.hist-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8f83a6;
}

.hist-title {
  margin: 0 0 0.5rem;
  font-family: 'Pirata One', 'Liberation Serif', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  line-height: 1.08;
  color: #f0e2b8;
  text-shadow: 0 0 22px rgba(212, 175, 55, 0.2);
}

.hist-sub {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
  color: #b9adcb;
}

.hist-hero {
  margin: 1.6rem 0 2rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 12px;
  overflow: hidden;
  background: #0b0714;
}

.hist-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hist-section {
  margin: 0 0 1.9rem;
}

.hist-section h2 {
  margin: 0 0 0.55rem;
  font-family: 'Pirata One', 'Liberation Serif', serif;
  font-weight: 400;
  font-size: 1.42rem;
  letter-spacing: 0.01em;
  color: #e8d9a8;
}

.hist-section p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.72;
  color: #d7cfe4;
}

.hist-reading ul {
  margin: 0.4rem 0 1rem;
  padding-left: 1.1rem;
  color: #d7cfe4;
  line-height: 1.6;
}

.hist-reading li {
  margin-bottom: 0.4rem;
}

.hist-reading cite {
  color: #f0e2b8;
  font-style: normal;
}

.hist-note {
  font-size: 0.9rem !important;
  color: #a99dbd !important;
  border-left: 2px solid rgba(212, 175, 55, 0.35);
  padding-left: 0.9rem;
}

.hist-back-foot {
  margin-top: 2.4rem;
}

.hist-foot {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  text-align: center;
  font-size: 0.8rem;
  color: #8f83a6;
}

.hist-foot a {
  color: #b9adcb;
}

/* the link a module page carries to its own history */
.module-history-link {
  max-width: 980px;
  margin: 0.9rem auto 0;
  padding: 0 1.2rem;
  font-size: 0.86rem;
}

.module-history-link a {
  color: #c8a94a;
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 169, 74, 0.35);
}

.module-history-link a:hover,
.module-history-link a:focus-visible {
  color: #f0d489;
  border-bottom-color: #f0d489;
}

/* the hub's reserved history door now points at a real page */
.hub-history-slot {
  cursor: pointer;
}

@media (max-width: 520px) {
  .hist-section p { font-size: 1rem; line-height: 1.68; }
  .hist-hero img { aspect-ratio: 4 / 3; }
}
