:root {
  --paper: #f4f0e7;
  --paper-raised: #fffdf8;
  --ink: #171512;
  --muted: #686157;
  --hairline: #c9c0b3;
  --hairline-soft: rgba(104, 97, 87, 0.24);
  --oxblood: #a31616;
  --oxblood-dark: #7f1010;
  --forest: #214c3a;
  --cobalt: #244f99;
  --display: Georgia, "Times New Roman", "Noto Serif CJK SC", "Noto Serif CJK JP", serif;
  --ui: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Noto Sans CJK JP", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 76px);
  --page-max: 1440px;
  --shadow-paper: 0 12px 34px rgba(45, 36, 27, 0.11), 0 2px 7px rgba(45, 36, 27, 0.08);
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
select {
  color: inherit;
  font: 500 0.93rem/1.2 var(--ui);
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

::selection {
  color: var(--paper-raised);
  background: var(--oxblood);
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1100;
  padding: 10px 14px;
  color: var(--paper-raised);
  background: var(--ink);
  border-radius: 2px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-pad,
.hero,
.search-bridge,
.footer-grid,
.footer-bottom {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: relative;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(244, 240, 231, 0.94);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: clamp(18px, 2.6vw, 42px);
  width: min(100%, var(--page-max));
  min-height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font: 600 clamp(2rem, 2.6vw, 2.65rem)/0.95 var(--display);
  letter-spacing: -0.055em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
}

.site-footer .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.7vw, 44px);
  white-space: nowrap;
}

.primary-nav a {
  position: relative;
  padding-block: 25px 23px;
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--oxblood);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  justify-self: stretch;
  width: 100%;
  max-width: 450px;
  margin-left: auto;
}

.header-search svg,
.filter-search svg {
  position: absolute;
  left: 14px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
  pointer-events: none;
}

.header-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 43px;
  background: rgba(255, 253, 248, 0.52);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 450;
}

.header-search input:focus {
  background: var(--paper-raised);
  border-color: var(--oxblood);
}

.icon-button,
.save-button,
.row-arrow {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.icon-button svg,
.save-button svg,
.row-arrow svg,
.section-heading a svg,
.text-link svg,
.button svg,
.language-index__row > svg,
.genre-row > svg,
.source-links svg,
.source-table svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.icon-button:hover,
.save-button:hover,
.row-arrow:hover {
  color: var(--oxblood);
  border-color: var(--hairline);
}

.saved-link {
  position: relative;
}

.saved-link[data-count]:not([data-count="0"])::after {
  position: absolute;
  top: 1px;
  right: -2px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  color: #fff;
  content: attr(data-count);
  background: var(--oxblood);
  border: 2px solid var(--paper);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 750;
  line-height: 1;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(590px, 1.08fr) minmax(540px, 0.92fr);
  align-items: center;
  gap: clamp(24px, 2.5vw, 42px);
  min-height: 432px;
  overflow: hidden;
  isolation: isolate;
}

.hero__copy {
  position: relative;
  z-index: 3;
  padding-block: 55px 64px;
}

.hero__copy h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 3.65vw, 3.75rem);
  line-height: 0.98;
}

.hero__copy p {
  max-width: 585px;
  margin-bottom: 28px;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.48;
}

.hero__actions,
.detail-actions,
.not-found > div {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.91rem;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: var(--oxblood);
  border-color: var(--oxblood);
}

.button--primary:hover {
  background: var(--oxblood-dark);
  border-color: var(--oxblood-dark);
}

.button--secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--hairline);
}

.button--secondary:hover {
  color: var(--oxblood);
  background: var(--paper-raised);
  border-color: var(--oxblood);
}

.text-link {
  color: var(--oxblood);
  font-size: 0.92rem;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-color: currentColor;
}

.hero-collage {
  position: relative;
  min-height: 390px;
  margin-right: calc(var(--gutter) * -0.7);
}

.hero-card {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 6px;
  background: var(--paper-raised);
  border: 1px solid rgba(104, 97, 87, 0.3);
  border-radius: 6px;
  box-shadow: var(--shadow-paper);
}

.hero-card img {
  width: 100%;
  height: 100%;
  border-radius: 2px;
}

.hero-card figcaption {
  position: absolute;
  right: 11px;
  bottom: 9px;
  left: 11px;
  padding: 18px 10px 7px;
  color: #fff;
  background: rgba(23, 21, 18, 0.84);
  font: 600 0.72rem/1.25 var(--ui);
  opacity: 0;
  transition: opacity 180ms ease;
}

.hero-card:hover figcaption {
  opacity: 1;
}

.hero-card--one {
  top: 10px;
  left: 2%;
  width: 43%;
  height: 200px;
  transform: rotate(-1.8deg);
}

.hero-card--two {
  top: 5px;
  right: 4%;
  width: 53%;
  height: 210px;
  transform: rotate(1.2deg);
}

.hero-card--three {
  right: 8%;
  bottom: 4px;
  width: 68%;
  height: 195px;
  transform: rotate(-0.7deg);
}

.route-lines {
  position: absolute;
  inset: auto -2% -3% -12%;
  z-index: 1;
  width: 95%;
  color: var(--oxblood);
  overflow: visible;
}

.route-lines path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}

.route-lines path:nth-child(2) {
  color: var(--cobalt);
}

.route-lines circle {
  fill: var(--oxblood);
}

.search-bridge {
  position: relative;
  z-index: 10;
  margin-top: -18px;
}

.search-bridge__form {
  display: grid;
  grid-template-columns: 28px 1fr 48px;
  align-items: center;
  min-height: 54px;
  padding-left: 15px;
  background: rgba(255, 253, 248, 0.96);
  border: 2px solid var(--oxblood);
  border-radius: 6px;
  box-shadow: 0 7px 24px rgba(45, 36, 27, 0.08);
}

.search-bridge__form > svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.search-bridge__form input {
  width: 100%;
  height: 50px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1rem;
  font-weight: 430;
}

.search-bridge__form button {
  display: grid;
  place-items: center;
  align-self: stretch;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--hairline-soft);
}

.search-bridge__form button:hover {
  color: var(--paper-raised);
  background: var(--oxblood);
}

.search-bridge__form button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.home-discovery {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(560px, 1.86fr);
  gap: clamp(28px, 4vw, 54px);
  padding-top: 28px;
  padding-bottom: 32px;
}

.trending-panel {
  padding-right: clamp(22px, 3vw, 42px);
  border-right: 1px solid var(--hairline);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 11px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--hairline);
}

.section-heading h2 {
  position: relative;
  margin: 0;
  font-size: clamp(1.3rem, 1.8vw, 1.78rem);
  letter-spacing: -0.025em;
}

.section-heading h2::after {
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 38px;
  height: 2px;
  content: "";
  background: var(--ink);
}

.section-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--oxblood);
  font-size: 0.82rem;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

.section-heading > a:hover {
  text-decoration: underline;
}

.section-heading > a svg {
  width: 18px;
  height: 18px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 30px 58px minmax(0, 1fr) auto 44px 44px;
  align-items: center;
  min-height: 84px;
  border-bottom: 1px solid var(--hairline-soft);
}

.ranking-row__number {
  color: var(--muted);
  font: 600 0.73rem/1 var(--ui);
  letter-spacing: 0.08em;
}

.ranking-row__thumb {
  width: 46px;
  height: 69px;
  overflow: hidden;
  background: #ddd4c6;
  border-radius: 2px;
}

.ranking-row__thumb img {
  width: 100%;
  height: 100%;
  transition: transform 260ms ease;
}

.ranking-row:hover .ranking-row__thumb img {
  transform: scale(1.045);
}

.ranking-row__copy {
  min-width: 0;
  padding: 0 12px;
}

.ranking-row__copy a {
  display: -webkit-box;
  overflow: hidden;
  font: 600 1rem/1.22 var(--display);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-row__copy span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row__language {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.ranking-row .save-button,
.ranking-row .row-arrow {
  width: 40px;
  min-width: 40px;
  height: 40px;
}

.ranking-row .save-button svg,
.ranking-row .row-arrow svg {
  width: 18px;
  height: 18px;
}

.save-button[aria-pressed="true"] {
  color: var(--oxblood);
  background: rgba(163, 22, 22, 0.07);
  border-color: rgba(163, 22, 22, 0.36);
}

.save-button[aria-pressed="true"] svg {
  fill: currentColor;
}

.language-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--hairline);
}

.language-rail a {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 68px;
  place-content: center;
  padding: 8px 12px 12px;
  text-align: center;
  text-decoration: none;
  border-right: 1px solid var(--hairline-soft);
}

.language-rail a:last-child {
  border-right: 0;
}

.language-rail a::after {
  position: absolute;
  right: 14%;
  bottom: -1px;
  left: 14%;
  height: 2px;
  content: "";
  background: var(--oxblood);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.language-rail a:hover::after,
.language-rail a[aria-current="page"]::after {
  transform: scaleX(1);
}

.language-rail strong {
  overflow: hidden;
  font: 600 clamp(1rem, 1.5vw, 1.2rem)/1.1 var(--display);
  text-overflow: ellipsis;
}

.language-rail span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.68rem;
}

.section-heading--stories {
  margin-top: 17px;
}

.story-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 13px;
}

.story-triptych a {
  display: grid;
  grid-template-rows: 105px auto auto;
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
}

.story-triptych img {
  width: 100%;
  height: 100%;
  margin-bottom: 10px;
  border-radius: 2px;
  transition: filter 200ms ease, transform 220ms ease;
}

.story-triptych a:hover img {
  filter: saturate(1.08) contrast(1.03);
  transform: translateY(-3px);
}

.story-triptych strong {
  margin-top: 9px;
  font: 600 1rem/1.2 var(--display);
}

.story-triptych span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.method-strip {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 0;
  padding-top: 19px;
  padding-bottom: 19px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.method-strip > div {
  min-width: 0;
  padding: 4px 22px;
  border-left: 1px solid var(--hairline);
}

.method-strip > div:first-child {
  padding-left: 18px;
  border-left: 3px solid var(--forest);
}

.method-strip h2,
.method-strip strong {
  margin: 0 0 5px;
}

.method-strip h2 {
  font-size: 1.35rem;
  line-height: 1.07;
}

.method-strip strong {
  display: block;
  font: 600 0.88rem/1.2 var(--display);
}

.method-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.browse-sample {
  padding-top: 62px;
  padding-bottom: 78px;
}

.novel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 46px) clamp(18px, 2.4vw, 34px);
  padding-top: 28px;
}

.novel-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.novel-card__media {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #ddd4c6;
  border-radius: 2px;
}

.novel-card__media::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(23, 21, 18, 0.12);
  pointer-events: none;
}

.novel-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 200ms ease;
}

[data-cover-frame] {
  position: relative;
}

[data-cover-frame] > img {
  object-fit: contain;
}

.cover-unavailable-text {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 10px;
  color: var(--muted);
  background: #e6ded1;
  font: 700 0.62rem/1.35 var(--ui);
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

[data-cover-frame].cover-unavailable > img {
  display: none;
}

[data-cover-frame].cover-unavailable > .cover-unavailable-text {
  display: grid;
}

.novel-card:hover .novel-card__media img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.035);
}

.novel-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 680;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.novel-card__meta span:last-child {
  text-align: right;
  text-transform: none;
}

.novel-card h2 {
  margin: 9px 0 5px;
  font-size: clamp(1.18rem, 1.6vw, 1.48rem);
  line-height: 1.13;
}

.novel-card h2 a {
  text-decoration: none;
}

.novel-card h2 a:hover {
  color: var(--oxblood);
  text-decoration: underline;
}

.novel-card > p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.novel-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  padding-top: 7px;
  margin-top: auto;
  color: var(--muted);
  border-top: 1px solid var(--hairline-soft);
  font-size: 0.72rem;
}

.novel-card__footer .save-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
}

.novel-card__footer .save-button svg {
  width: 18px;
  height: 18px;
}

.catalog-intro {
  padding-top: clamp(58px, 8vw, 112px);
  padding-bottom: 42px;
  border-bottom: 1px solid var(--hairline);
}

.catalog-intro h1,
.index-hero h1,
.prose-hero h1 {
  max-width: 940px;
  margin-bottom: 20px;
  font-size: clamp(3.1rem, 6vw, 6.3rem);
  line-height: 0.96;
}

.catalog-intro p,
.index-hero p,
.prose-hero > p {
  max-width: 730px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
}

.catalog-toolbar {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-top: 18px;
  padding-bottom: 14px;
  background: rgba(244, 240, 231, 0.96);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(12px);
}

.catalog-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) repeat(3, minmax(130px, 0.62fr)) auto;
  align-items: end;
  gap: 12px;
}

.catalog-filters label:not(.filter-search) {
  display: grid;
  gap: 5px;
}

.catalog-filters label > span:not(.sr-only) {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 720;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.catalog-filters input,
.catalog-filters select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  font-size: 0.84rem;
}

.filter-search {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-search input {
  padding-left: 43px;
}

.catalog-filters input:focus,
.catalog-filters select:focus {
  border-color: var(--oxblood);
}

.catalog-filters .button {
  height: 46px;
  min-height: 46px;
}

.results-status {
  min-height: 1.25rem;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.catalog-results {
  padding-top: 10px;
  padding-bottom: 80px;
}

.catalog-results .novel-grid:empty {
  display: block;
  min-height: 180px;
  padding: 62px 0;
}

.catalog-empty {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.catalog-empty h2 {
  margin-bottom: 9px;
  font-size: 1.7rem;
}

.catalog-empty p {
  color: var(--muted);
}

.load-more {
  display: flex;
  margin: 52px auto 0;
}

.load-more[hidden] {
  display: none;
}

.index-hero,
.prose-hero {
  padding-top: clamp(62px, 9vw, 128px);
  padding-bottom: clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--hairline);
}

.index-hero {
  display: grid;
  grid-template-columns: 1.45fr 0.65fr;
  align-items: end;
  gap: 44px;
}

.index-hero h1,
.index-hero p {
  grid-column: 1;
}

.index-hero p {
  margin-top: -4px;
}

.language-index,
.genre-index {
  padding-top: 34px;
  padding-bottom: 90px;
}

.language-index__row {
  display: grid;
  grid-template-columns: 45px minmax(130px, 0.7fr) minmax(90px, 0.48fr) minmax(240px, 1.5fr) auto 84px 44px;
  align-items: center;
  min-height: 126px;
  color: inherit;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
}

.language-index__row > span,
.genre-row > span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.language-index__row strong {
  font: 600 clamp(1.6rem, 2.8vw, 2.7rem)/1 var(--display);
}

.language-index__row em {
  font: normal 600 0.77rem/1.2 var(--ui);
}

.language-index__row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.language-index__row small {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

.language-index__row .index-cover {
  width: 52px;
  height: 78px;
  margin-inline: 12px;
  overflow: hidden;
  background: #ddd4c6;
  border-radius: 2px;
}

.language-index__row .index-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 200ms ease;
}

.language-index__row:hover,
.genre-row:hover {
  color: var(--oxblood);
}

.language-index__row:hover .index-cover img,
.genre-row:hover .index-cover img {
  transform: scale(1.045);
}

.genre-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
}

.genre-row {
  display: grid;
  grid-template-columns: 32px 82px minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 126px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
}

.genre-row .index-cover {
  width: 54px;
  height: 81px;
  overflow: hidden;
  background: #ddd4c6;
  border-radius: 2px;
}

.genre-row .index-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 200ms ease;
}

.genre-row div {
  min-width: 0;
  padding: 0 18px;
}

.genre-row strong {
  font: 600 clamp(1.25rem, 2vw, 1.9rem)/1.05 var(--display);
}

.genre-row p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: 46px;
  border-bottom: 1px solid var(--hairline);
}

.breadcrumb {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.breadcrumb a {
  color: var(--ink);
}

.hub-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 8vw, 8.5rem);
}

.hub-hero > div:first-child > p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.hub-count {
  min-width: 170px;
  padding-left: 28px;
  border-left: 2px solid var(--oxblood);
}

.hub-count strong,
.hub-count span {
  display: block;
}

.hub-count strong {
  font: 600 clamp(3rem, 5vw, 5rem)/1 var(--display);
}

.hub-count span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}

.hub-page > main > .section-pad:has(.language-rail) {
  padding-top: 30px;
  padding-bottom: 10px;
}

.ranked-catalog {
  padding-top: 42px;
  padding-bottom: 90px;
}

.hub-catalog {
  padding-top: 42px;
  padding-bottom: 90px;
}

.hub-catalog .novel-grid {
  padding-top: 30px;
}

.ranked-catalog .ranking-row {
  grid-template-columns: 48px 72px minmax(0, 1fr) minmax(100px, 0.26fr) 44px 44px;
  min-height: 104px;
}

.ranked-catalog .ranking-row__thumb {
  width: 58px;
  height: 87px;
}

.ranked-catalog .ranking-row__copy a {
  font-size: 1.22rem;
}

.detail-hero {
  padding-top: 38px;
  padding-bottom: 0;
}

.detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(280px, 430px);
  gap: clamp(42px, 7vw, 104px);
  align-items: center;
}

.detail-hero__copy {
  padding: 34px 0 60px;
}

.detail-classification {
  display: flex;
  gap: 12px 20px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 720;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.detail-classification a {
  color: var(--oxblood);
}

.detail-hero h1 {
  margin-bottom: 15px;
  font-size: clamp(3.2rem, 6vw, 6.8rem);
  overflow-wrap: anywhere;
}

.detail-hero h1.detail-title--long {
  font-size: clamp(2.65rem, 4.8vw, 5.35rem);
}

.detail-hero h1.detail-title--very-long {
  font-size: clamp(2.15rem, 3.9vw, 4.25rem);
  line-height: 1.02;
}

.alternate-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.74rem;
}

.detail-author {
  margin-bottom: 26px;
  font: 600 clamp(1.1rem, 1.6vw, 1.42rem)/1.25 var(--display);
}

.detail-lede {
  max-width: 620px;
  margin-bottom: 30px;
  color: #3f3a33;
  font-size: 0.98rem;
  line-height: 1.72;
}

.detail-actions {
  gap: 12px;
}

.save-button--label {
  display: inline-flex;
  width: auto;
  padding-inline: 18px;
  gap: 9px;
  border-color: var(--hairline);
  font-size: 0.83rem;
  font-weight: 700;
}

.outbound-note {
  max-width: 480px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.67rem;
}

.detail-hero__art {
  width: min(100%, 430px);
  margin: 0;
  justify-self: end;
}

.detail-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #ddd4c6;
  border: 7px solid var(--paper-raised);
  border-radius: 6px;
  box-shadow: var(--shadow-paper);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-hero__art figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.66rem;
}

.detail-hero__art figcaption a {
  text-decoration: underline;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.detail-facts > div {
  min-width: 0;
  padding: 20px 18px;
  border-right: 1px solid var(--hairline-soft);
}

.detail-facts > div:first-child {
  padding-left: 0;
}

.detail-facts > div:last-child {
  border-right: 0;
}

.detail-facts dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 720;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 0;
  font: 600 0.88rem/1.3 var(--display);
  overflow-wrap: anywhere;
}

.detail-section {
  padding-top: 82px;
  padding-bottom: 82px;
}

.detail-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  gap: clamp(54px, 9vw, 136px);
}

.detail-section h2,
.story-gallery h2,
.signals-section h2,
.source-section h2,
.related-section h2 {
  margin-bottom: 20px;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.detail-overview p {
  color: #3f3a33;
  font: 400 clamp(1rem, 1.25vw, 1.13rem)/1.78 var(--display);
}

.detail-overview aside {
  padding-left: 26px;
  border-left: 2px solid var(--forest);
}

.detail-overview aside h2 {
  font-size: 1.28rem;
}

.subject-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.subject-list li {
  padding: 7px 10px;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  font-size: 0.7rem;
}

.story-gallery {
  padding-top: 70px;
  padding-bottom: 78px;
  background: var(--ink);
  color: var(--paper);
}

.story-gallery.section-pad {
  max-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--page-max)) / 2 + var(--gutter)));
}

.story-gallery .section-heading {
  border-color: rgba(244, 240, 231, 0.24);
}

.story-gallery .section-heading h2::after {
  background: var(--paper);
}

.story-gallery .section-heading p {
  margin: 0;
  color: #bcb5aa;
  font-size: 0.72rem;
}

.story-gallery__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr;
  gap: 22px;
  padding-top: 28px;
}

.story-gallery__grid figure {
  margin: 0;
}

.story-gallery__grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px;
}

.story-gallery__grid figure:nth-child(2),
.story-gallery__grid figure:nth-child(3) {
  padding-top: 46px;
}

.story-gallery figcaption {
  color: #bcb5aa;
}

.signals-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(560px, 1.45fr);
  gap: clamp(48px, 8vw, 120px);
  padding-top: 82px;
  padding-bottom: 82px;
  border-bottom: 1px solid var(--hairline);
}

.signals-section > div:first-child p,
.source-section p,
.method-notes p {
  color: var(--muted);
  font-size: 0.84rem;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.signal-item {
  display: grid;
  min-height: 132px;
  align-content: center;
  padding: 18px 22px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.signal-item strong {
  font: 600 clamp(2rem, 3.5vw, 3.5rem)/1 var(--display);
}

.signal-item span {
  margin-top: 7px;
  font-size: 0.74rem;
  font-weight: 720;
}

.signal-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.65rem;
}

.source-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(54px, 9vw, 130px);
  padding-top: 82px;
  padding-bottom: 82px;
}

.source-section aside {
  padding: 25px;
  background: rgba(255, 253, 248, 0.65);
  border: 1px solid var(--hairline);
  border-radius: 2px;
}

.source-section aside h2 {
  font-size: 1.28rem;
}

.source-links {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid var(--hairline);
}

.source-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 20px;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.source-links a:hover {
  color: var(--oxblood);
}

.source-links svg {
  width: 19px;
  height: 19px;
}

.related-section {
  padding-top: 68px;
  padding-bottom: 90px;
  border-top: 1px solid var(--hairline);
}

.prose-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: 60px;
}

.prose-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 740px);
  gap: clamp(54px, 10vw, 150px);
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 100px;
}

.prose-layout > nav {
  position: sticky;
  top: 28px;
  display: grid;
  align-self: start;
  border-top: 1px solid var(--hairline);
}

.prose-layout > nav a {
  padding: 11px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 0.76rem;
  text-decoration: none;
}

.prose-layout > nav a:hover {
  color: var(--oxblood);
}

.prose-layout > div > section {
  padding-bottom: 58px;
  margin-bottom: 58px;
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: 40px;
}

.prose-layout h2,
.method-steps h2,
.method-notes h2 {
  margin-bottom: 17px;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
}

.prose-layout p {
  color: #403b34;
  font: 400 1.05rem/1.8 var(--display);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 64px;
  padding-bottom: 76px;
}

.method-steps > div {
  padding: 0 28px;
  border-left: 1px solid var(--hairline);
}

.method-steps > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.method-steps > div:last-child {
  padding-right: 0;
}

.method-steps span {
  display: block;
  margin-bottom: 22px;
  color: var(--oxblood);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.method-steps h2 {
  font-size: 1.42rem;
}

.method-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.source-table {
  padding-top: 72px;
  padding-bottom: 72px;
  background: var(--ink);
  color: var(--paper);
}

.source-table.section-pad {
  max-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--page-max)) / 2 + var(--gutter)));
}

.source-table .section-heading {
  border-color: rgba(244, 240, 231, 0.24);
}

.source-table .section-heading h2::after {
  background: var(--paper);
}

.source-table .section-heading p {
  margin: 0;
  color: #bcb5aa;
  font-size: 0.72rem;
}

.source-table__rows {
  margin-top: 26px;
}

.source-table__rows > div {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr 1fr;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid rgba(244, 240, 231, 0.2);
}

.source-table__rows strong {
  font: 600 1.08rem/1.2 var(--display);
}

.source-table__rows span,
.source-table__rows a {
  font-size: 0.72rem;
}

.source-table__rows span {
  color: #bcb5aa;
}

.source-table__rows a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  text-decoration: none;
}

.source-table__rows a:hover {
  color: #f3837d;
}

.source-table__rows svg {
  width: 17px;
  height: 17px;
}

.method-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(50px, 10vw, 150px);
  padding-top: 80px;
  padding-bottom: 100px;
}

.method-notes h2 {
  font-size: 1.75rem;
}

.not-found {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  align-content: center;
  justify-items: start;
  padding-top: 80px;
  padding-bottom: 100px;
}

.not-found > p {
  margin-bottom: 18px;
  color: var(--oxblood);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.not-found h1 {
  max-width: 900px;
  margin-bottom: 17px;
  font-size: clamp(3.5rem, 8vw, 8rem);
}

.not-found > span {
  margin-bottom: 30px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--hairline);
  background: rgba(255, 253, 248, 0.42);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(120px, 0.7fr));
  gap: 44px;
  padding-top: 46px;
  padding-bottom: 40px;
}

.footer-grid > div {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 7px;
}

.footer-grid .brand {
  margin-bottom: 5px;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-grid h2 {
  margin: 0 0 7px;
  font: 750 0.71rem/1.2 var(--ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-grid > div:not(:first-child) a {
  color: var(--muted);
  font-size: 0.72rem;
  text-decoration: none;
}

.footer-grid > div:not(:first-child) a:hover {
  color: var(--oxblood);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 17px;
  padding-bottom: 21px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  font-size: 0.65rem;
}

@media (max-width: 1180px) {
  .site-header__inner {
    grid-template-columns: auto auto minmax(180px, 1fr) auto;
    gap: 18px;
  }

  .site-header__inner > .icon-button:last-child {
    display: none;
  }

  .primary-nav {
    gap: 20px;
  }

  .hero {
    grid-template-columns: minmax(350px, 0.9fr) minmax(450px, 1.1fr);
  }

  .hero__copy h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
  }

  .hero-collage {
    min-height: 360px;
  }

  .method-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .method-strip__title {
    grid-column: 1 / -1;
    padding-bottom: 17px !important;
    margin-bottom: 17px;
    border-left: 3px solid var(--forest) !important;
    border-bottom: 1px solid var(--hairline);
  }

  .method-strip > div:nth-child(2) {
    border-left: 0;
  }

  .novel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-filters {
    grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(116px, 0.6fr));
  }

  .catalog-filters .button {
    grid-column: 4 / 5;
    width: max-content;
    justify-self: end;
  }

  .language-index__row {
    grid-template-columns: 40px minmax(120px, 0.8fr) 90px minmax(200px, 1.4fr) auto 72px 44px;
  }

  .language-index__row .index-cover {
    width: 46px;
    height: 69px;
    margin-inline: 8px;
  }

  .story-gallery__grid {
    grid-template-columns: 1.15fr 1fr 1fr;
  }
}

@media (max-width: 940px) {
  :root {
    --header-height: 66px;
  }

  .site-header__inner {
    grid-template-columns: auto 1fr auto auto;
    min-height: var(--header-height);
  }

  .brand {
    font-size: 2.15rem;
  }

  .nav-toggle {
    display: inline-grid;
    justify-self: end;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    align-content: start;
    gap: 0;
    max-height: 0;
    padding: 0 var(--gutter);
    overflow: hidden;
    visibility: hidden;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 16px 32px rgba(45, 36, 27, 0.12);
    opacity: 0;
    transition: max-height 220ms ease, opacity 160ms ease, visibility 160ms ease;
  }

  .primary-nav[data-open="true"] {
    max-height: calc(100vh - var(--header-height));
    padding-top: 10px;
    padding-bottom: 16px;
    visibility: visible;
    opacity: 1;
  }

  .primary-nav a {
    min-height: 52px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--hairline-soft);
    font-size: 0.93rem;
  }

  .primary-nav a::after {
    right: auto;
    bottom: -1px;
    width: 42px;
  }

  .header-search {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
    max-width: 330px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 15px;
    padding-bottom: 36px;
  }

  .hero::before {
    inset: 34% -10% 0 8%;
  }

  .hero__copy {
    padding: 42px 0 26px;
  }

  .hero__copy h1 {
    max-width: 780px;
    font-size: clamp(3.2rem, 8vw, 5.3rem);
  }

  .hero-collage {
    min-height: 385px;
    margin: 0;
  }

  .hero-card--one {
    left: 0;
    width: 44%;
  }

  .hero-card--two {
    right: 1%;
    width: 54%;
  }

  .hero-card--three {
    right: 12%;
    width: 63%;
  }

  .search-bridge {
    margin-top: -17px;
  }

  .home-discovery {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .trending-panel {
    min-width: 0;
    padding-right: 0;
    border-right: 0;
  }

  .method-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-strip > div:nth-child(4) {
    border-left: 0;
  }

  .method-strip > div:nth-child(n + 4) {
    padding-top: 20px;
    margin-top: 16px;
    border-top: 1px solid var(--hairline-soft);
  }

  .catalog-toolbar {
    position: relative;
  }

  .catalog-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-search {
    grid-column: 1 / -1;
  }

  .catalog-filters .button {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }

  .index-hero,
  .prose-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .language-index__row {
    grid-template-columns: 36px 1fr auto 76px 44px;
    min-height: 112px;
  }

  .language-index__row em,
  .language-index__row p {
    display: none;
  }

  .genre-index {
    grid-template-columns: 1fr;
  }

  .hub-hero,
  .detail-hero__grid,
  .detail-overview,
  .signals-section,
  .source-section {
    grid-template-columns: 1fr;
  }

  .hub-count {
    display: flex;
    align-items: baseline;
    gap: 12px;
  }

  .detail-hero__copy {
    padding-bottom: 10px;
  }

  .detail-hero__art {
    max-width: 380px;
    justify-self: center;
  }

  .detail-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 40px;
  }

  .detail-facts > div:first-child {
    padding-left: 18px;
  }

  .detail-facts > div:nth-child(3) {
    border-right: 0;
  }

  .detail-facts > div:nth-child(n + 4) {
    border-top: 1px solid var(--hairline-soft);
  }

  .story-gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-gallery__grid figure:first-child {
    grid-column: 1 / -1;
  }

  .story-gallery__grid figure:nth-child(2),
  .story-gallery__grid figure:nth-child(3) {
    padding-top: 0;
  }

  .signals-section,
  .source-section {
    gap: 36px;
  }

  .prose-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 50px;
  }

  .method-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .method-steps > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .source-table__rows > div {
    grid-template-columns: 0.8fr 1.4fr 1fr;
  }

  .source-table__rows > div a:last-child {
    display: none;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
    --header-height: 64px;
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 6px;
    overflow: hidden;
  }

  .site-header .brand {
    font-size: 2rem;
  }

  .header-search {
    display: none;
  }

  .site-header__inner > .saved-link {
    grid-column: 3;
  }

  .site-header__inner > .nav-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    width: 100%;
    min-width: 0;
    padding-bottom: 23px;
  }

  .hero__copy {
    width: 100%;
    min-width: 0;
    padding: 38px 0 24px;
  }

  .hero__copy h1 {
    max-width: 100%;
    margin-bottom: 18px;
    font-size: clamp(2.3rem, 10vw, 2.75rem);
    line-height: 1.01;
    overflow-wrap: break-word;
  }

  .hero__copy h1 br {
    display: block;
  }

  .hero__copy p {
    margin-bottom: 24px;
    font-size: 1rem;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__actions .text-link {
    align-self: center;
    text-align: center;
  }

  .hero-collage {
    width: 100%;
    max-width: 100%;
    min-height: 330px;
    margin: 0;
    overflow: hidden;
  }

  .hero-card {
    padding: 4px;
  }

  .hero-card--one {
    top: 0;
    left: 0;
    width: 58%;
    height: 155px;
  }

  .hero-card--two {
    top: 18px;
    right: 0;
    width: 59%;
    height: 150px;
  }

  .hero-card--three {
    right: 5%;
    bottom: 5px;
    width: 77%;
    height: 170px;
  }

  .search-bridge {
    margin-top: -5px;
  }

  .search-bridge__form {
    min-height: 52px;
  }

  .home-discovery {
    padding-top: 24px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 1.35rem;
  }

  .section-heading > a {
    white-space: normal;
    text-align: right;
  }

  .ranking-row {
    grid-template-columns: 27px 52px minmax(0, 1fr) 44px;
  }

  .ranking-row__thumb {
    width: 42px;
    height: 63px;
  }

  .ranking-row__language,
  .ranking-row .row-arrow {
    display: none;
  }

  .ranking-row__copy a {
    font-size: 0.95rem;
  }

  .language-rail {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .language-rail a {
    min-width: 118px;
    min-height: 66px;
    scroll-snap-align: start;
  }

  .story-triptych {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .story-triptych a {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    min-height: 90px;
  }

  .story-triptych img {
    grid-row: 1 / 3;
    height: 86px;
    margin: 0;
  }

  .story-triptych strong {
    align-self: end;
    margin: 0;
  }

  .method-strip {
    grid-template-columns: 1fr;
  }

  .method-strip > div,
  .method-strip > div:nth-child(2),
  .method-strip > div:nth-child(4) {
    padding: 18px 0;
    margin: 0;
    border-top: 1px solid var(--hairline-soft);
    border-left: 0;
  }

  .method-strip__title {
    padding-left: 14px !important;
  }

  .novel-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .novel-card h2 {
    font-size: 1.45rem;
  }

  .catalog-intro h1,
  .index-hero h1,
  .prose-hero h1 {
    font-size: clamp(2.85rem, 13vw, 4.6rem);
  }

  .catalog-intro h1 br,
  .index-hero h1 br,
  .prose-hero h1 br {
    display: none;
  }

  .catalog-filters {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .catalog-filters label,
  .catalog-filters input,
  .catalog-filters select {
    min-width: 0;
    max-width: 100%;
  }

  .catalog-filters .button {
    min-height: 48px;
  }

  .language-index__row {
    grid-template-columns: 30px minmax(0, 1fr) 58px 38px;
    min-height: 98px;
  }

  .language-index__row small {
    display: none;
  }

  .language-index__row .index-cover {
    width: 42px;
    height: 63px;
    margin-inline: 4px;
  }

  .language-index__row strong {
    font-size: 1.65rem;
  }

  .genre-row {
    grid-template-columns: 26px 66px minmax(0, 1fr) 38px;
    min-height: 108px;
  }

  .genre-row .index-cover {
    width: 44px;
    height: 66px;
  }

  .genre-row div {
    padding: 0 8px;
  }

  .genre-row p {
    display: none;
  }

  .hub-hero {
    gap: 26px;
  }

  .hub-hero h1 {
    font-size: clamp(3.5rem, 18vw, 6.2rem);
  }

  .hub-count {
    padding-left: 15px;
  }

  .ranked-catalog .ranking-row {
    grid-template-columns: 29px 56px minmax(0, 1fr) 44px;
    min-height: 92px;
  }

  .ranked-catalog .ranking-row__thumb {
    width: 46px;
    height: 69px;
  }

  .ranked-catalog .ranking-row__copy a {
    font-size: 1rem;
  }

  .detail-hero {
    padding-top: 24px;
  }

  .detail-hero h1 {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }

  .detail-hero h1.detail-title--long {
    font-size: clamp(2.2rem, 11vw, 3.8rem);
  }

  .detail-hero h1.detail-title--very-long {
    font-size: clamp(1.85rem, 9vw, 3rem);
  }

  .detail-actions {
    align-items: stretch;
  }

  .detail-actions .button,
  .save-button--label {
    width: 100%;
  }

  .detail-facts {
    grid-template-columns: 1fr 1fr;
  }

  .detail-facts > div,
  .detail-facts > div:first-child {
    padding: 16px 10px;
  }

  .detail-facts > div:nth-child(2n) {
    border-right: 0;
  }

  .detail-facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--hairline-soft);
  }

  .detail-overview aside {
    padding: 20px 0 0;
    border-top: 2px solid var(--forest);
    border-left: 0;
  }

  .story-gallery__grid {
    grid-template-columns: 1fr;
  }

  .story-gallery__grid figure:first-child {
    grid-column: auto;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .source-section aside {
    padding: 20px;
  }

  .prose-layout {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 40px;
  }

  .prose-layout > nav {
    position: static;
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    border-bottom: 1px solid var(--hairline);
    width: 100%;
    min-width: 0;
  }

  .prose-layout > nav a {
    min-width: max-content;
    min-height: 44px;
    padding: 12px 18px 10px 0;
    border-bottom: 0;
  }

  .method-steps,
  .method-notes {
    grid-template-columns: 1fr;
  }

  .method-steps {
    gap: 0;
    padding-top: 36px;
  }

  .method-steps > div,
  .method-steps > div:nth-child(3) {
    padding: 28px 0;
    border-top: 1px solid var(--hairline);
    border-left: 0;
  }

  .source-table__rows > div {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 16px 0;
    min-width: 0;
  }

  .source-table__rows > div > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .source-table__rows span {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .source-table__rows a {
    padding: 8px 0 8px 12px;
  }

  .method-notes {
    gap: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 400px) {
  .genre-row {
    grid-template-columns: 24px 58px minmax(0, 1fr) 32px;
  }

  .genre-row .index-cover {
    width: 40px;
    height: 60px;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .detail-facts > div {
    border-right: 0;
    border-top: 1px solid var(--hairline-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body::before,
  .site-header,
  .site-footer,
  .save-button,
  .detail-actions,
  .catalog-toolbar {
    display: none !important;
  }

  body {
    background: #fff;
  }

  a {
    color: #000;
  }

  .section-pad {
    padding-inline: 0;
  }
}
/* Chinese chart discovery. Separate visual identity from the source-like detail view. */
.cn-hero { padding-top: 70px; padding-bottom: 60px; background: linear-gradient(135deg,#f7f3eb,#eee9dc); }
.cn-hero h1 { font-family: 'PingFang SC','Microsoft YaHei',sans-serif; font-size: clamp(30px,4vw,52px); line-height: 1.3; letter-spacing:-.03em; margin: 16px 0 24px; }
.cn-hero>p { max-width: 850px; line-height: 1.9; color:#645e54; }
.cn-stats { display:flex; flex-wrap:wrap; gap:48px; margin:30px 0; }
.cn-stats span { display:flex; flex-direction:column; gap:7px; font-size:13px; color:#736b60; }
.cn-stats strong { color:#302c26; font-size:27px; font-weight:600; }
.cn-platform-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.cn-platform-card { display:flex; flex-direction:column; min-height:192px; padding:24px; border:1px solid #ded9cd; background:#faf8f2; border-radius:8px; transition:transform .2s,box-shadow .2s; }
.cn-platform-card:hover { transform:translateY(-3px); box-shadow:0 7px 24px #382c1712; }
.cn-platform-card>span { font-size:12px; color:#a31616; }
.cn-platform-card h3 { margin:14px 0 10px; font:600 21px/1.4 'PingFang SC','Microsoft YaHei',sans-serif; }
.cn-platform-card p { font-size:12px; color:#81786c; line-height:1.7; flex:1; margin-bottom:16px; }
.cn-platform-card b { font-size:13px; font-weight:500; }
.cn-source-note { background:#eae5d9; line-height:1.9; }
.cn-source-note p { max-width:950px; margin:16px 0; font-size:14px; }
.cn-cover-placeholder { width:100%; height:100%; display:flex; flex-direction:column; justify-content:center; padding:14%; gap:12px; color:#5b503f; background:linear-gradient(135deg,#dcd1b9,#f5eedf); text-align:center; }
.cn-cover-placeholder strong { font:600 clamp(12px,1.4vw,22px)/1.6 'Songti SC',serif; }
.cn-cover-placeholder small { font-size:11px; }
@media(max-width:950px){.cn-platform-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.cn-stats{gap:26px}.cn-hero{padding-top:35px}}
@media(max-width:480px){.cn-platform-grid{gap:10px}.cn-platform-card{padding:18px 14px}.cn-platform-card h3{font-size:18px}.cn-stats strong{font-size:22px}}
