@font-face {
  font-family: Menu;
  src: url('assets/roboto-condensed-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Menu;
  src: url('assets/roboto-condensed-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Menu;
  src: url('assets/roboto-condensed-800.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
:root {
  font-family: Menu, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  color: #232422;
  background: #f8f6ef;
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid #a67b13;
  outline-offset: 5px;
  border-radius: 3px;
}
.legend-page {
  width: min(100% - 64px, 1000px);
  margin: 0 auto;
}
.legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid #ded9ce;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  min-height: 32px;
}
.back-link > span {
  font-size: 25px;
  font-weight: 400;
}
.back-link:hover {
  color: #dc1419;
}
.wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #dc1419;
}
.legend-intro {
  max-width: 640px;
  padding: 54px 0 40px;
}
.eyebrow {
  margin: 0 0 12px;
  color: #a3663c;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: 13px;
  font-weight: 600;
}
h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -1.2px;
}
html:lang(zh) h1 {
  line-height: 1.25;
  letter-spacing: 0;
}
.legend-intro > p:last-child {
  font-size: 19px;
  line-height: 1.5;
  color: #77746c;
  margin: 17px 0 0;
  max-width: 590px;
}
.number-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 38px;
  margin: 0;
}
.legend-entry {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 21px 14px 21px 0;
  min-height: 91px;
  border-top: 1px solid #ded9ce;
  scroll-margin-top: 24px;
}
.legend-entry dt {
  color: #dc1419;
  font-size: 35px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}
.legend-entry dd {
  font-size: 21px;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}
.legend-entry:target {
  background: #f1e9da;
  box-shadow: inset 3px 0 #dc1419;
  border-radius: 0 6px 6px 0;
}
.legend-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding: 26px 0 34px;
  border-top: 1px solid #ded9ce;
}
.legend-footer > span {
  font-size: 12px;
  letter-spacing: 1px;
  color: #86837c;
}
@media (max-width: 680px) {
  .legend-page {
    width: calc(100% - 36px);
  }
  .legend-header {
    padding: 19px 0;
    gap: 12px;
  }
  .back-link {
    font-size: 15px;
    gap: 8px;
  }
  .wordmark {
    font-size: 18px;
  }
  .legend-intro {
    padding: 34px 0 28px;
  }
  h1 {
    font-size: 38px;
    letter-spacing: -0.7px;
  }
  .legend-intro > p:last-child {
    font-size: 17px;
    margin-top: 13px;
  }
  .number-legend {
    grid-template-columns: minmax(0, 1fr);
  }
  .legend-entry {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    min-height: 79px;
    padding: 18px 10px 18px 0;
  }
  .legend-entry dt {
    font-size: 30px;
  }
  .legend-entry dd {
    font-size: 19px;
  }
  .legend-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: 28px;
    padding: 24px 0;
  }
}

.legend-jump-links,
.legend-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.legend-jump-links a,
.legend-legal-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.legend-note {
  color: #666258;
  font-size: 17px;
  line-height: 1.6;
  max-width: 720px;
  margin: 24px 0 40px;
}
.legend-page h2 {
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.3;
  margin: 40px 0 20px;
  scroll-margin-top: 24px;
}
@media (max-width: 420px) {
  .legend-header {
    flex-wrap: wrap;
  }
}
