.home-frame .archive.has-selector .article-index { display: none; }
.hs-panel {
  --cloth-0: #414f59;
  --cloth-1: #49594f;
  --cloth-2: #655950;
  --cloth-3: #494d64;
  --cloth-4: #444644;
  --cloth-5: #654e43;
  --foil: #fff4dd;
  --oak: #87694e;
  --ease-binding: cubic-bezier(.22, 1, .36, 1);
  min-width: 0;
  color: var(--ink-1);
  overflow-anchor: none;
}
html:not([data-theme="light"]) .hs-panel {
  --cloth-0: #394851;
  --cloth-1: #394d44;
  --cloth-2: #564d43;
  --cloth-3: #404459;
  --cloth-4: #393c3e;
  --cloth-5: #553e37;
  --oak: #4b392d;
}
.hs-filters, .hs-actions, .hs-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hs-panel button { cursor: pointer; }
.hs-filters { gap: 4px; margin-bottom: 20px; }
.hs-filters button, .hs-bar button {
  color: var(--ink-2); background: transparent; border: 0; border-radius: 99px;
  padding: 8px 13px; font: 500 13px/1.5 var(--font-ui);
}
.hs-filters button[aria-pressed="true"] { color: var(--ink-1); background: var(--surface-2); }
.hs-panel :is(button, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hs-stage {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 20px;
  padding: 26px clamp(22px, 4vw, 58px); background: var(--surface-1);
  border-radius: var(--r-entry); box-shadow: var(--shadow-rest);
}
.hs-meta { margin: 0; color: var(--ink-2); font: 500 13px/1.5 var(--font-ui); }
.hs-copy h3 {
  margin: 15px 0 6px; max-width: 23ch; text-wrap: balance; overflow-wrap: anywhere;
  font: 500 clamp(30px, 3.8vw, 52px)/1.04 var(--font-serif-en); letter-spacing: -.028em;
}
.hs-subtitle { margin: 0; color: var(--ink-2); font: 500 18px/1.55 var(--font-serif-cn); }
.hs-actions { margin-top: 22px; }
.hs-actions a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 20px;
  border-radius: 99px; font: 550 14px/1.5 var(--font-ui); text-decoration: none;
}
.hs-open { background: var(--btn-primary-bg); color: var(--btn-primary-ink); }
.hs-vocab { background: var(--surface-2); color: var(--ink-1); }
.hs-actions a:hover { text-decoration: none; filter: brightness(.94); }
.hs-book {
  position: relative; justify-self: center; width: 156px; height: 214px; margin: 3px 6px 5px 0;
  border-radius: 2px 4px 3px 2px; background: var(--cloth);
  box-shadow: 5px 7px 8px -5px #1e170f70, 6px 13px 20px -10px #1e170f80;
}
.hs-book::before {
  content: ""; position: absolute; inset: 3px 1px 2px 2px; border-radius: 2px;
  background: repeating-linear-gradient(0deg, #d4c7ae 0 1px, #e5ddcc 1px 3px);
}
.hs-cover, .hs-spine { isolation: isolate; background-color: var(--cloth); color: var(--foil); }
.hs-cover {
  position: absolute; inset: 0 4px 4px 0; display: flex; flex-direction: column;
  padding: 22px 17px 19px 23px; font-family: var(--font-serif-en); border-radius: 2px 3px 2px 1px;
  background-image: linear-gradient(90deg, #ffffff25, transparent 4%, #0003 6%, #ffffff21 8%, transparent 11%);
  box-shadow: inset -1px -1px 0 #0004;
}
.hs-cover::before, .hs-spine::before {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit;
  background: url("assets/bookcloth-linen.webp") center / 146px auto repeat;
  mix-blend-mode: soft-light; opacity: .48; pointer-events: none;
}
.hs-cover::after {
  content: ""; position: absolute; inset: 10px 8px 10px 16px; border: 1px solid #f4dfb64d;
  box-shadow: inset 1px 1px 0 #0002; pointer-events: none;
}
.hs-cover small, .hs-cover span { font-size: 10px; letter-spacing: .12em; }
.hs-cover strong { margin: auto 0; font-size: 20px; line-height: 1.04; font-weight: 500; text-wrap: balance; }
.hs-cover span { font-size: 8px; text-transform: uppercase; }
@media (min-width: 860px) {
  .hs-stage { grid-template-columns: minmax(0, 1fr) minmax(195px, 30%); min-height: 288px; }
}
@media (max-width: 767px) {
  .hs-stage { min-height: 270px; }
  .hs-book { display: none; }
}
.hs-bar { justify-content: flex-end; margin-top: 16px; gap: 4px; }
.hs-bar [data-step] {
  padding: 0; width: 40px; height: 40px; background: var(--surface-1);
  font: 400 25px/1 Georgia, serif; touch-action: manipulation; user-select: none;
}
.hs-shelf {
  position: relative; display: flex; align-items: flex-end; gap: 2px;
  height: 227px; padding: 18px 6px 0; overflow: hidden; overflow-x: auto;
  scrollbar-width: none; overscroll-behavior-x: contain; overflow-anchor: none;
}
.hs-shelf::-webkit-scrollbar { display: none; }
.hs-spine {
  position: relative; display: flex; flex: 1 1 36px; min-width: 34px; max-width: 48px;
  flex-direction: column; align-items: center; gap: 7px; height: var(--height);
  padding: 13px 0 18px; border: 0; border-top: 0; border-radius: 4px 5px 2px 2px;
  background:
    repeating-linear-gradient(105deg, #b4a58d 0 1px, #695e51 1px 3px) top / 100% 2px no-repeat,
    linear-gradient(90deg, #0004, #fff2 8%, #0002 13%, transparent 22%, transparent 74%, #0002 91%, #fff1 95%, #0004), var(--cloth);
  box-shadow: inset 2px 0 1px #fff2, inset -2px 0 1px #0003, 2px 0 3px #21170e50;
  transition: transform 220ms var(--ease-binding);
}
.hs-spine b {
  align-self: stretch; padding-bottom: 5px; margin-inline: 5px; text-align: center;
  border-bottom: 1px solid #edd9a97a; box-shadow: 0 1px #0002; font: 500 15px/1 var(--font-serif-en);
}
.hs-spine span {
  writing-mode: vertical-rl; min-height: 0; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; font: 500 15px/1 var(--font-serif-en);
}
.hs-spine i {
  position: absolute; inset: auto 5px 12px; height: 1px; background: #edd9a97a; box-shadow: 0 1px #0003;
}
.hs-spine.visited i::after, .hs-spine.last i::after {
  content: ""; position: absolute; top: 4px; left: calc(50% - 2px);
  width: 4px; height: 4px; border-radius: 50%; background: var(--foil);
}
.hs-spine.last i::after { outline: 1px solid #d7ae84; outline-offset: 1px; }
.hs-spine[aria-pressed="true"] {
  transform: translateY(-14px); z-index: 1; box-shadow: inset 2px 0 1px #fff2, inset -2px 0 1px #0003, 3px 6px 8px #21170e55;
}
.hs-spine[aria-pressed="true"]::after {
  content: ""; position: absolute; top: -4px; right: 5px; width: 7px; height: 19px;
  background: linear-gradient(90deg, #97543f, #d09271 45%, #a15b48);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}
.hs-shelf-ledge {
  height: 13px; border-radius: 1px 1px 3px 3px; background-color: var(--oak);
  background-image: linear-gradient(#0006, #fff2 23%, transparent 35%, #0003), url("assets/shelf-wood.webp");
  background-size: auto, 480px auto; background-blend-mode: normal, soft-light;
  box-shadow: 0 7px 9px -5px #291d1647;
}
@media (hover: hover) {
  .hs-spine:hover:not([aria-pressed="true"]) { transform: translateY(-5px); }
  .hs-bar button:hover, .hs-filters button:hover { background-color: var(--surface-2); color: var(--ink-1); }
}
@media (max-width: 1023px) {
  .hs-shelf {
    padding-inline: 14px;
    mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  }
  .hs-spine { flex: 0 0 40px; min-width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-spine { transition: none; }
}
