.history {
  color: var(--body);
  padding-block: clamp(24px, 3.4vw, 52px) clamp(56px, 8vw, 120px);
}

.history h1,
.history h2,
.history h3 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.history p { margin: 0; }
.history p.history-back { margin-block-end: clamp(16px, 3vw, 40px); }
.history-back a {
  align-items: center;
  color: var(--blue);
  display: inline-flex;
  gap: 8px;
  min-block-size: 44px;
  text-decoration: none;
}
.history-back a:hover { text-decoration: underline; text-underline-offset: 4px; }

.history-hero {
  align-items: center;
  border-block-end: 1px solid var(--line);
  display: grid;
  gap: 18px clamp(24px, 4vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "heading visual" "intro visual";
  padding-block-end: clamp(32px, 5vw, 76px);
}

.history-heading { align-self: end; grid-area: heading; }
.history-intro { align-self: start; grid-area: intro; }
.history-visual {
  grid-area: visual;
  margin: 0;
}
.history-visual img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, transparent, #000 4% 96%, transparent),
    linear-gradient(0deg, transparent, #000 3% 97%, transparent);
  mask-composite: intersect;
}
.history h1 { font-size: clamp(31px, 4.15vw, 62px); letter-spacing: -.045em; }
.history h2 { font-size: clamp(26px, 2.9vw, 41px); letter-spacing: -.035em; }
.history h3 { font-size: clamp(20px, 2vw, 28px); letter-spacing: -.02em; }
.history .history-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .055em;
  margin-block-end: 12px;
  text-transform: uppercase;
}

.history-byline { font-size: .9375rem; }
.history-document {
  display: grid;
  grid-template-columns: minmax(145px, .24fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 76px);
  padding-block-start: clamp(30px, 5vw, 70px);
}
.history-contents {
  position: sticky;
  inset-block-start: 24px;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 16px;
}
.history .history-contents > p {
  margin-block-end: 8px;
  color: var(--ink);
  font-weight: 600;
}
.history-contents ol { list-style: none; padding: 0; margin: 0; }
.history-contents a {
  display: block;
  padding-block: 7px;
  font-size: .9375rem;
  color: var(--blue);
  text-underline-offset: 4px;
}
.history-contents a:hover, .history-overview-card a:hover { text-decoration: underline; }
.history-article { min-inline-size: 0; }
.history-section {
  scroll-margin-block-start: 24px;
  line-height: 1.6;
}
.history-section + .history-section {
  border-block-start: 1px solid var(--line);
  margin-block-start: clamp(34px, 5vw, 66px);
  padding-block-start: clamp(26px, 4vw, 52px);
}
.history-section h2 { margin-block-end: 20px; text-wrap: pretty; }
.history-section > p, .history-phase > p { max-inline-size: 78ch; }
.history-section > p + p, .history-phase > p + p { margin-block-start: 14px; }
.history-section strong { color: var(--ink); font-weight: 600; }
.history-summary { padding-block: 0; }
.history-summary > p:first-of-type { font-size: 1.125rem; }
.history-phase {
  scroll-margin-block-start: 24px;
  margin-block-start: 26px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--line);
}
.history-phase h3 { margin-block-end: 12px; text-wrap: pretty; }
.history-points, .history-events, .history-procedure { margin-block: 14px; padding-inline-start: 1.55em; }
.history-points li + li, .history-events li + li, .history-procedure li + li { margin-block-start: 10px; }
.history-points li::marker, .history-events li::marker, .history-procedure li::marker { color: var(--blue); }
.history p.history-subheading { margin-block-start: 22px; color: var(--ink); font-weight: 600; }
.history p.history-caveat {
  margin-block-start: 18px;
  padding: 12px 16px;
  border-inline-start: 2px solid var(--blue);
  background: #eaf2febd;
}

.history-overview {
  margin: 0 0 20px;
  padding: clamp(14px, 2.8vw, 34px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(ellipse at 94% 0%, #e5effd, transparent 70%), #fbfdff;
}
.history-overview h3 { text-wrap: pretty; }
.history p.history-overview-intro { margin-block-start: 8px; }
.history-overview-list {
  --date-column: 115px;
  position: relative;
  display: grid;
  gap: 12px;
  margin: 20px 0 14px;
  padding: 0;
  list-style: none;
}
.history-overview-list::before {
  content: "";
  position: absolute;
  inset-block: 23px 34px;
  inset-inline-start: var(--date-column);
  border-inline-start: 1px solid #9fb9e3;
}
.history-overview-list li {
  position: relative;
  display: grid;
  grid-template-columns: var(--date-column) minmax(0, 1fr);
  gap: 16px;
}
.history-overview-list li::before {
  content: "";
  position: absolute;
  inset-block-start: 17px;
  inset-inline-start: calc(var(--date-column) - 5px);
  inline-size: 11px;
  block-size: 11px;
  border: 2px solid #f5f8fe;
  border-radius: 50%;
  background: #6491d2;
}
.history-overview-date { padding-block-start: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.history-overview-date strong, .history-overview-date span { display: block; }
.history-overview-date span { color: var(--body); font-size: .875rem; }
.history-overview-card {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffffb8;
}
.history-overview-card h4 { margin: 0 0 4px; color: var(--ink); font-size: 1.025rem; }
.history-overview-card a { text-underline-offset: 4px; }
.history-overview-card p { font-size: .9375rem; }
.history-overview-card p + p { margin-block-start: 3px; }
.history-overview-list li:last-child .history-overview-card {
  border-color: #8eb1e4;
  background: #e8f2ff;
}
.history-overview-list li:last-child::before { background: var(--blue); }
.history-overview figcaption { color: var(--body); font-size: .875rem; }

.history-table {
  margin-block: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfdff;
}
.history-table table { inline-size: 100%; border-collapse: collapse; table-layout: fixed; font-size: .9375rem; }
.history-table :is(th, td) {
  padding: 10px clamp(8px, 1.5vw, 19px);
  border-block-end: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.history-table th { color: var(--ink); font-weight: 600; }
.history-table thead th { background: #eaf2fe; }
.history-table :is(th, td):first-child { inline-size: 32%; border-inline-end: 1px solid var(--line); }
.history-table tbody tr:nth-child(even) { background: #f2f7fd; }
.history-table tbody tr:last-child > * { border-block-end: 0; }

@media (max-width: 800px) {
  .history-hero {
    grid-template-areas: "heading" "visual" "intro";
    grid-template-columns: minmax(0, 1fr);
  }
  .history-document { grid-template-columns: minmax(0, 1fr); }
  .history-contents { position: static; }
  .history-contents ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
}
@media (max-width: 520px) {
  .history-overview-list { padding-inline-start: 15px; }
  .history-overview-list::before { inset-inline-start: 4px; inset-block: 20px 35px; }
  .history-overview-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .history-overview-list li::before { inset-inline-start: -16px; }
  .history-overview-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
}
