/* A History of Excellence (history.astro): the narrative, the timeline, two archival documents, and a
   note from the Director of Historical Records. */
.hero-deck {
  font-style: italic;
}

/* The narrative: three chapters, the heading beside the text */
.history-narrative {
  padding: 40px 0 36px;
}
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  padding: 48px 0 52px;
}
.chapter + .chapter {
  border-top: 1px solid var(--line);
}
.chapter-head {
  position: sticky;
  top: 32px;
  align-self: start;
}
.chapter-head .section-kicker,
.history-head .section-kicker,
.accuracy-note .section-kicker {
  color: var(--gold-ink);
}
.chapter h2 {
  margin: 6px 0 0;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1.02;
}
.chapter-text {
  max-width: 660px;
}
.chapter-text p {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.5;
}
.chapter-text .history-lead {
  margin-bottom: 20px;
  font: 500 clamp(26px, 2.3vw, 31px) / 1.22 var(--serif);
}

/* Section heads shared by the timeline and the documents */
.history-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.history-head.centered {
  margin-inline: auto;
  text-align: center;
}
.history-head h2 {
  margin: 8px 0 14px;
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1;
}
.history-head p:not(.eyebrow) {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.5;
  color: #4d5560;
}

/* The Official Institutional Timeline: laid out like a chapter, the heading beside the record; the year
   in the margin, a fine gold rule, the milestone beside it */
.history-record {
  padding: 0 0 88px;
}
.history-record .container-wide {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  padding-top: 52px;
  border-top: 1px solid var(--line);
}
.history-record .history-head {
  position: sticky;
  top: 32px;
  align-self: start;
  margin: 0;
}
.history-record .history-head h2 {
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.02;
}
.history-record .history-head p:not(.eyebrow) {
  font-size: 18px;
}
.milestones {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 980px;
}
.milestone {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  scroll-margin-top: 24px;
}
.milestone-year {
  margin: 0;
  padding: 2px 26px 0 0;
  text-align: right;
  font: 500 42px / 1 var(--serif);
  font-variant-numeric: lining-nums;
  color: var(--gold-ink);
}
.milestone-text {
  position: relative;
  max-width: 640px;
  padding: 4px 0 40px 34px;
  border-left: 1px solid var(--gold);
}
.milestone:last-child .milestone-text {
  padding-bottom: 0;
}
/* A small gold diamond on the rule at each year */
.milestone-text:before {
  content: '';
  position: absolute;
  top: 17px;
  left: -5px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
}
.milestone h3 {
  margin: 0 0 10px;
  font-size: clamp(26px, 2.4vw, 31px);
  font-weight: 500;
  line-height: 1.1;
}
.sr-year {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.milestone p:not(.milestone-year) {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.5;
}

/* Selected Archival Documents: a memorandum and an address, on the paper-toned frame of the Hall's letters */
.history-documents {
  padding: 80px 16px 92px;
  background: #ebe4d6;
}
.documents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  width: min(100%, 1180px);
  margin: 0 auto;
  align-items: start;
}
.doc-number {
  margin: 0 0 12px;
  font: 700 11px var(--sans);
  letter-spacing: 0.2em;
  color: var(--gold-ink);
}
.memo {
  padding: 40px 44px 36px;
  background: #fbf8f1;
  border: 1px solid #ddd3c3;
  box-shadow:
    0 22px 60px #0b162526,
    0 2px 6px #0b16251a;
}
.memo-head {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 3px double #c5baa8;
}
.memo-house {
  margin: 0;
  font: 700 12px var(--sans);
  letter-spacing: 0.2em;
}
.memo-office {
  margin: 6px 0 14px;
  font-size: 18px;
  font-style: italic;
  color: #4d5560;
}
.memo-kind {
  margin: 0;
  font: 700 12px var(--sans);
  letter-spacing: 0.24em;
  color: var(--gold-ink);
}
.memo-meta {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid #e0d7c8;
}
.memo-meta div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  padding: 3px 0;
}
.memo-meta dt {
  padding-top: 4px;
  font: 700 11px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-ink);
}
.memo-meta dd {
  margin: 0;
  font-size: 18px;
}
.memo-body {
  padding-top: 20px;
}
.memo-body p {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.55;
}
.memo-action {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e0d7c8;
  font-size: 18px;
  font-weight: 600;
}
.memo-action strong {
  margin-right: 6px;
  font: 700 11px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* The Chairman's address: on navy, in the Hall's quotation style */
.address {
  margin: 0;
  padding: 40px 44px 38px;
  background: radial-gradient(ellipse at 80% 10%, #28405b, #111f32 60%, #091626);
  color: #f5f1e8;
  text-align: center;
  box-shadow:
    0 22px 60px #0b162540,
    0 2px 6px #0b162526;
}
.address-office {
  margin: 0;
  font: 700 12px var(--sans);
  letter-spacing: 0.2em;
  color: var(--gold-light);
}
.address-source {
  margin: 6px 0 0;
  font-size: 18px;
  font-style: italic;
  color: #d6c8b4;
}
.address-mark {
  display: block;
  margin-top: 20px;
  font: 400 88px / 0.7 var(--serif);
  color: var(--gold);
}
.address blockquote {
  margin: 12px auto 0;
  max-width: 460px;
}
.address blockquote p {
  margin: 0 0 14px;
  font: italic 400 clamp(23px, 2vw, 26px) / 1.3 var(--serif);
}
.address-rule {
  display: block;
  width: 36px;
  height: 1px;
  margin: 24px auto 18px;
  background: var(--gold);
}
.address figcaption a {
  display: inline-block;
}
.address figcaption strong {
  font: 700 11px var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f5f1e8;
  border-bottom: 1px solid #d4b57c80;
}
.address figcaption a:hover strong {
  color: var(--gold-light);
}
.address figcaption em {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  color: #d6c8b4;
}

/* A Note on Historical Accuracy */
.accuracy-note {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 84px 0 92px;
}
.note-portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  box-shadow:
    0 18px 44px #0b162530,
    0 2px 6px #0b162520;
}
.note-text {
  max-width: 640px;
}
.note-text h2 {
  margin: 8px 0 20px;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1.02;
}
.note-text p:not(.eyebrow) {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.5;
}
.note-text p.note-last {
  margin-top: 24px;
}
.note-text p.note-by {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  font-style: italic;
  color: var(--muted-ink);
}
.note-link {
  margin-top: 14px;
}
.note-by a {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
}
.note-by a:hover {
  color: var(--gold-deep);
}

@media (max-width: 1050px) {
  .documents-grid {
    gap: 28px;
  }
  .memo,
  .address {
    padding: 34px 32px 32px;
  }
}
@media (max-width: 900px) {
  .history-record .container-wide {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .history-record .history-head {
    position: static;
  }
  .chapter {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 40px 0 44px;
  }
  .chapter-head {
    position: static;
  }
  .documents-grid {
    grid-template-columns: 1fr;
    width: min(100%, 680px);
  }
  .accuracy-note {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 36px;
  }
}
@media (max-width: 700px) {
  .history-narrative {
    padding: 16px 0 20px;
  }
  .chapter-text p {
    font-size: 18px;
  }
  .history-record {
    padding: 0 0 60px;
  }
  .history-record .container-wide {
    padding-top: 40px;
  }
  .milestone {
    grid-template-columns: 1fr;
  }
  .milestone-year {
    padding: 0 0 8px 0;
    text-align: left;
    font-size: 34px;
  }
  .milestone-text {
    padding: 2px 0 34px 22px;
  }
  .milestone-text:before {
    top: 14px;
  }
  .milestone:last-child .milestone-text {
    padding-bottom: 4px;
  }
  .milestone p:not(.milestone-year) {
    font-size: 17px;
  }
  .history-documents {
    padding: 52px 12px 60px;
  }
  .memo,
  .address {
    padding: 28px 22px 26px;
  }
  .memo-meta div {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .accuracy-note {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 52px 0 60px;
  }
  .note-portrait {
    width: 160px;
  }
  .note-text p:not(.eyebrow) {
    font-size: 18px;
  }
}
