.origin {
  grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.historical-note {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: minmax(180px, .38fr) 1fr 1fr;
  gap: 28px;
  margin-top: 12px;
  padding: 28px 30px;
  border: 1px solid rgba(155, 114, 47, .35);
  background: rgba(155, 114, 47, .06);
  color: #596267;
  font-size: .92rem;
  line-height: 1.65;
}

.historical-note > strong {
  color: #8d672c;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.historical-note p { margin: 0; }
.historical-note b { color: #27343b; font-weight: 600; }

.legend {
  padding: clamp(90px, 11vw, 160px) clamp(24px, 6vw, 100px);
  background:
    radial-gradient(circle at 12% 5%, rgba(201, 154, 66, .13), transparent 28%),
    #061725;
}

.legend-heading {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: end;
  gap: clamp(28px, 5vw, 80px);
  max-width: 1320px;
  margin: 0 auto 64px;
}

.legend-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.2rem, 6vw, 6.3rem);
  font-weight: 600;
  line-height: .88;
  letter-spacing: -.035em;
}

.legend-heading > p {
  max-width: 470px;
  margin: 0 0 8px;
  color: #aeb9c0;
}

.chapters {
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.legend-chapter {
  border-bottom: 1px solid var(--line);
}

.legend-chapter summary {
  display: grid;
  grid-template-columns: 56px 1fr 24px;
  align-items: center;
  gap: 20px;
  min-height: 108px;
  cursor: pointer;
  list-style: none;
  color: var(--cream);
}

.legend-chapter summary::-webkit-details-marker { display: none; }
.legend-chapter summary > span { color: var(--gold); font-family: "Cormorant Garamond", serif; font-size: 1.15rem; }
.legend-chapter summary h3 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2rem, 3.3vw, 3.25rem); font-weight: 500; line-height: 1; }
.legend-chapter summary i { position: relative; width: 20px; height: 20px; }
.legend-chapter summary i::before,
.legend-chapter summary i::after { content: ""; position: absolute; top: 50%; left: 0; width: 20px; height: 1px; background: var(--gold-pale); transition: transform .25s; }
.legend-chapter summary i::after { transform: rotate(90deg); }
.legend-chapter[open] summary i::after { transform: rotate(0); }
.legend-chapter summary:hover h3,
.legend-chapter summary:focus-visible h3 { color: var(--gold-pale); }
.legend-chapter summary:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.chapter-body {
  max-width: 760px;
  margin-left: 76px;
  padding: 0 0 58px;
  color: #b9c2c8;
  font-size: 1.02rem;
  line-height: 1.8;
}

.chapter-body p { margin: 0 0 1.15em; }
.chapter-coda { padding: 20px 0 20px 24px; border-left: 2px solid var(--gold); color: var(--gold-pale); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.55rem; line-height: 1.38; }
.legend-signature { margin: 70px auto 0; text-align: center; color: var(--gold-pale); font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2rem, 3.4vw, 3.2rem); }

@media (max-width: 900px) {
  .origin { grid-template-columns: 40px 1fr; }
  .historical-note { grid-column: 2; grid-template-columns: 1fr; gap: 14px; }
  .legend-heading { grid-template-columns: 40px 1fr; }
  .legend-heading > p { grid-column: 2; margin-top: 2px; }
}

@media (max-width: 560px) {
  .origin { display: block; }
  .historical-note { display: block; margin-top: 52px; padding: 23px 20px; }
  .historical-note > strong { display: block; margin-bottom: 14px; }
  .historical-note p + p { margin-top: 14px; }
  .legend-heading { display: block; }
  .legend-heading .section-number { margin-bottom: 50px; }
  .legend-heading > p { margin-top: 30px; }
  .legend-heading h2 { font-size: 3.15rem; }
  .legend-chapter summary { grid-template-columns: 32px 1fr 20px; gap: 12px; min-height: 92px; }
  .legend-chapter summary h3 { font-size: 1.8rem; }
  .chapter-body { margin-left: 44px; padding-bottom: 42px; font-size: 1rem; }
  .chapter-coda { font-size: 1.35rem; padding-left: 18px; }
}
