main {
  max-width: 1840px;
  padding: clamp(16px, 2.8vw, 48px);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(14px, 2vw, 32px);
}
.cover {
  display: flex;
  aspect-ratio: 2 / 3;
  align-items: center;
  justify-content: center;
  background: #000;
}
.cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.grid a { display: block; text-decoration: none; }
.grid a:hover strong, .grid a:focus-visible strong { text-decoration: underline; }
.grid small, .grid strong { display: block; margin-top: 4px; }
.grid small { color: #fff; }
.grid strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .875rem; line-height: 1.25; }
.grid a > strong:first-child { height: 2.5em; margin: 0 0 4px; }
.grid small:empty { display: none; }
h2 { margin-top: 48px; }
@media (max-width: 760px) {
  .grid { gap: clamp(5px, 1.5vw, 10px); }
  .grid strong { font-size: .75rem; overflow-wrap: anywhere; }
  .grid small { font-size: .75rem; }
}
.masthead {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.8vw, 46px);
}
.masthead form { flex: 1; min-width: 0; }
.masthead-brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .16em;
  min-height: 48px;
  color: #fff;
  font: 600 clamp(23px, 2.8vw, 40px)/1 Inter, system-ui, sans-serif;
  letter-spacing: -.048em;
  text-decoration: none;
}
.masthead-brand img { width: 1.05em; height: 1.05em; }
.masthead-brand .brand-domain {
  color: #DD3026;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: -.045em;
  margin-left: .015em;
}
@media (max-width: 560px) {
  .masthead { gap: 10px; }
  .masthead input { padding-inline: 8px; }
  .masthead button { padding-inline: 10px; }
}
nav a:last-child {
  align-self: center;
  justify-content: center;
  margin-block: 4px;
  padding: 11px clamp(15px, 1.5vw, 24px);
  color: #dd3026;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 202 42' preserveAspectRatio='none'%3E%3Cpath d='M5 5.5 196 1Q201 1 201 5v32q0 4-5 4L5 36.5q-4 0-4-4v-23q0-4 4-4Z' fill='white' stroke='%23161616' stroke-width='1.6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  line-height: 1.2;
  text-align: center;
}
nav a { position: relative; }
@media (hover: hover) { nav a:not(:last-child):hover { color: #dd3026; } }
nav a:not(:last-child):focus-visible { color: #dd3026; }
nav a::before { content: ""; position: absolute; inset: -3px -4px; }
nav a:last-child { transform-origin: center; --active-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 204 44' preserveAspectRatio='none'%3E%3Cpath d='M5 5.5 196 1Q201 1 201 5v32q0 4-5 4L5 36.5q-4 0-4-4v-23q0-4 4-4Z' fill='white' stroke='%23161616' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
@media (hover: hover) { nav a:last-child:hover { background-image: var(--active-outline); transform: scale(1.025); } }
nav a:last-child:hover { text-decoration: none; }
nav a:last-child:focus-visible { outline: none; background-image: var(--active-outline); transform: scale(1.025); }
@media (max-width: 760px) and (orientation: portrait),
       (max-width: 760px) and (max-device-aspect-ratio: 1/1) {
  .masthead { flex-direction: column; gap: 6px; }
  .masthead-brand { font-size: 34px; }
  .masthead form { flex: none; width: 100%; }
  nav { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 12px clamp(5px, 2vw, 16px); margin-top: 6px; }
  nav a { justify-content: center; min-height: 44px; }
  nav a:last-child { grid-column: 1 / -1; justify-self: center; margin: 0 0 8px; }
  .masthead input[type="search"] { font-size: max(16px, 1rem); }
  section { margin-top: 24px; }
}
.ranking-summary { white-space: nowrap; overflow: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.summary-line { display: inline-block; transform-origin: left center; }
@media (max-width: 760px) and (orientation: portrait) {
  .ranking-summary { white-space: normal; font-size: inherit; }
  .list-note { display: block; }
  .note-divider { display: none; }
}

body, .masthead input { background: #000; color: #fff; }
p { color: #fff; }
.masthead input, .masthead input::placeholder { color: #bdbdbd; opacity: 1; }
.masthead form { border: 3px solid #fff; }
.masthead button { display: grid; place-items: center; }
.masthead form:focus-within { outline-color: #fff; }
.grid a:focus-visible .cover img { transform: scale(1.025); }
@media (hover: hover) {
  .grid .cover:hover img { transform: scale(1.025); }
}

@media (prefers-reduced-motion: no-preference) {
  .cover img, nav a:last-child { transition: transform 150ms ease-out; }
}

.grid article { min-width: 0; }
.ranking-card .cover { overflow: hidden; }
.grid .ranking-card img { transform: scale(.965); }
.grid .ranking-card a:is(:focus-visible, :active) img { transform: scale(1); }
.grid .ranking-card .rank { display: block; margin: 6px 0 0; font-size: 1rem; line-height: 1.25; color: #fff; font-variant-numeric: tabular-nums; }
.grid .ranking-card a:is(:focus-visible, :active) .rank { color: #ff554b; }
@media (hover: hover) {
  .grid .ranking-card a:hover img { transform: scale(1); }
  .grid .ranking-card a:hover .rank { color: #ff554b; }
}
@media (max-width: 760px) {
  .grid .ranking-card .rank { font-size: .875rem; }
}
.volume-title { display: block; font-size: .875rem; line-height: 1.25; overflow-wrap: anywhere; }
nav a:last-child::after { position: absolute; content: ""; height: 2px; bottom: 1px; left: 0; right: 0; background: #111; opacity: 0; }
nav a:last-child:focus-visible::after { opacity: 1; box-shadow: 0 1px #fff; }
@media (hover: hover) { nav a:last-child:hover::after { opacity: 1; box-shadow: 0 1px #fff; } }
@media (max-width: 760px) { .volume-title { font-size: .6875rem; } }

.directory{max-width:78rem;margin-top:1.6rem}
.directory-total{color:#bcbcbc}
.alphabet-group{display:grid;grid-template-columns:clamp(2.8rem,8vw,7rem) 1fr;gap:1rem;border-top:1px solid #414141;padding:1.35rem 0}
.alphabet-group h2{margin:0;font-size:clamp(2rem,4.5vw,4.25rem);line-height:1;letter-spacing:-.045em}
.alphabet-group ul,.reference-list{list-style:none;padding:0;margin:0}
.alphabet-group ul{columns:3 14rem;column-gap:2rem}
.alphabet-group li{break-inside:avoid}
.alphabet-group a{display:inline-block;padding:.42rem 0;color:#f7f5f1;text-decoration:none;line-height:1.4}
.alphabet-group a:hover,.alphabet-group a:focus-visible{color:#ff554b}
.alphabet-group a:focus-visible,.reference-list a:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.reference-list{max-width:65rem}
.reference-list li{padding:.85rem 0;border-bottom:1px solid #3f3f3f;display:flex;align-items:baseline;flex-wrap:wrap;gap:.3rem 1rem}
.reference-list strong{flex:1 1 18rem}.reference-list span{color:#bdbdbd;font-size:.875rem}.reference-list a{font-size:.9rem;text-underline-offset:.18em}
@media(max-width:560px){.alphabet-group{gap:.75rem}.reference-list strong{flex-basis:100%}}

.reference-list strong a{color:inherit;font:inherit;text-decoration:none}
.reference-list strong a:hover,.reference-list strong a:focus-visible{color:#ff554b;text-decoration:underline}

.amazon-action, .grid a.isbn-search { display: block; width: fit-content; padding-block: .35rem; font-size: .875rem; text-decoration: underline; }
