.cover-header,
.cover-footer-navigation {
  --nav-gold: #f3d696;
  --nav-rule: #b48b50;
  --nav-jade: #153d32;
  color: var(--nav-gold);
  background: repeating-linear-gradient(130deg, #e2c78b07 0 1px, transparent 1px 9px),
    linear-gradient(105deg, #102e27, var(--nav-jade) 48%, #102e27);
  font-family: "Songti SC", SimSun, "Microsoft YaHei", serif;
}

.cover-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem clamp(.6rem, 1.4vw, 1.5rem);
  min-height: 54px;
  padding: .15rem clamp(.65rem, 3vw, 3.1rem);
  border-block-end: 3px double var(--nav-rule);
}

.cover-header nav,
.cover-nav-actions,
.cover-nav-home {
  display: flex;
  align-items: center;
}

.cover-nav-home {
  flex: 0 0 auto;
  gap: .5rem;
  min-height: 44px;
  color: var(--nav-gold);
}

.cover-nav-home span {
  color: inherit;
  font: 700 clamp(1.3rem, 2.15vw, 2.25rem)/1 "KaiTi", "STKaiti", SimSun, serif;
  white-space: nowrap;
}

.cover-header .cover-nav-button,
.cover-footer-navigation .cover-nav-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .38em;
  min-height: 44px;
  padding: .2rem clamp(.35rem, .85vw, .9rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--nav-gold);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.cover-nav-button svg,
.cover-nav-home svg {
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cover-nav-primary {
  justify-content: center;
  flex: 1 1 auto;
}

.cover-nav-primary .cover-nav-button {
  font-size: clamp(.8rem, 1.18vw, 1.22rem);
}

.cover-nav-primary .cover-nav-button + .cover-nav-button::before,
.cover-footer-navigation .cover-nav-button + .cover-nav-button::before {
  position: absolute;
  left: 0;
  height: 43%;
  border-left: 1px solid #c4a46b80;
  content: "";
}

.cover-nav-utility .cover-nav-button {
  min-width: 44px;
  padding-inline: .35rem;
  font-size: .88rem;
}

.cover-nav-utility .cover-nav-symbol span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.cover-header .cover-nav-button:hover,
.cover-footer-navigation .cover-nav-button:hover,
.cover-header .cover-nav-button[aria-expanded="true"] {
  background: #ead09723;
  box-shadow: inset 0 0 0 1px #e0bb68a0;
}

.cover-header .cover-nav-button:focus-visible,
.cover-footer-navigation .cover-nav-button:focus-visible,
.cover-nav-home:focus-visible {
  z-index: 1;
  outline: 2px solid #fff1c1;
  outline-offset: -2px;
}

.cover-header .cover-menu-toggle,
.cover-header .cover-nav-mobile {
  display: none;
}

.cover-footer-navigation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 68px;
  margin: .7rem clamp(.7rem, 1vw, 1.15rem) 1rem;
  padding: .2rem .4rem;
  border: 5px double var(--nav-rule);
  border-radius: .65rem .2rem;
  box-shadow: 0 1px 2px #76572d66;
}

.cover-footer-navigation .cover-nav-button {
  gap: .7em;
  font-size: clamp(1rem, 1.4vw, 1.45rem);
}

.cover-footer-navigation .cover-nav-button svg {
  width: 1.5em;
  height: 1.5em;
}

.cover-navigation-dialog {
  width: min(32rem, calc(100vw - 2rem));
  max-height: min(80vh, 32rem);
  padding: 1.3rem;
  border: 4px double #a9864b;
  border-radius: .5rem;
  color: #21352c;
  background: #faf2dd;
  box-shadow: 0 .6rem 2rem #132a2380;
}

.cover-navigation-dialog::backdrop {
  background: #102e27a0;
}

.cover-navigation-content {
  display: grid;
  gap: .5rem;
  margin-block: .75rem 1rem;
}

.cover-navigation-content ul {
  margin: 0;
  padding-inline-start: 1.25rem;
}

.cover-navigation-content a {
  color: #143e32;
  text-underline-offset: .2em;
}

.cover-navigation-characters a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (1150px < width <= 1320px) {
  .cover-header {
    padding-inline: .85rem;
  }

  .cover-header .cover-nav-primary .cover-nav-button {
    padding-inline: .45rem;
  }
}

@media (max-width: 1150px) {
  .cover-header {
    padding-inline: .65rem;
  }

  .cover-header .cover-nav-primary,
  .cover-header .cover-nav-utility button:first-child {
    display: none;
  }

  .cover-header .cover-menu-toggle {
    display: inline-flex;
  }

  .cover-header .cover-nav-mobile {
    display: grid;
    flex: 1 0 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .25rem;
    padding: .3rem 0 .5rem;
    border-top: 1px solid #c4a46b80;
  }

  .cover-nav-utility .cover-nav-settings span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (max-width: 620px) {
  .cover-footer-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-footer-navigation .cover-nav-button:nth-child(3)::before {
    display: none;
  }

  .cover-footer-navigation .cover-nav-button:nth-child(n + 3) {
    border-top: 1px solid #c4a46b80;
  }
}
