:root {
  --ds-bg: #f5f0e7;
  --ds-elevated: #fffaf1;
  --ds-ink: #171512;
  --ds-muted: #686159;
  --ds-quiet: #8f877e;
  --ds-line: rgba(30, 24, 18, .15);
  --ds-line-strong: rgba(30, 24, 18, .3);
  --ds-accent: #e84c2a;
  --ds-accent-hover: #ca3618;
  --ds-accent-ink: #fffaf5;
  --ds-violet: #5b486f;
  --ds-stage: #201b24;
  --ds-stage-ink: #f8efe7;
  --ds-header: rgba(245, 240, 231, .9);
  --ds-card: rgba(255, 250, 241, .76);
  --ds-shadow: 0 30px 68px -38px rgba(36, 22, 12, .5);
  --ds-cover-shadow: 0 26px 44px -22px rgba(22, 12, 8, .7);
}

html[data-ds-theme="dark"] {
  --ds-bg: #11100f;
  --ds-elevated: #191716;
  --ds-ink: #f5efe8;
  --ds-muted: #b8afa6;
  --ds-quiet: #877f78;
  --ds-line: rgba(255, 244, 233, .13);
  --ds-line-strong: rgba(255, 244, 233, .26);
  --ds-accent: #ff6a46;
  --ds-accent-hover: #ff805f;
  --ds-accent-ink: #1d0c07;
  --ds-violet: #a78dbd;
  --ds-stage: #080808;
  --ds-stage-ink: #fff7ef;
  --ds-header: rgba(17, 16, 15, .9);
  --ds-card: rgba(25, 23, 22, .78);
  --ds-shadow: 0 32px 72px -38px rgba(0, 0, 0, .92);
  --ds-cover-shadow: 0 28px 48px -18px rgba(0, 0, 0, .92);
}

body.ds-body,
body.ds-body * { box-sizing: border-box; }

body.ds-body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ds-bg);
  color: var(--ds-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

body.ds-body.ds-menu-open { overflow: hidden; }
body.ds-body a { color: inherit; }
body.ds-body img { display: block; max-width: 100%; }
body.ds-body button,
body.ds-body input { font: inherit; }
body.ds-body button,
body.ds-body a { -webkit-tap-highlight-color: transparent; }
body.ds-body h1,
body.ds-body h2,
body.ds-body h3,
body.ds-body p { margin-top: 0; }

body.ds-body :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ds-accent) 68%, transparent);
  outline-offset: 4px;
}

.ds-skip {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  background: var(--ds-ink);
  color: var(--ds-bg) !important;
  text-decoration: none;
}

.ds-skip:focus { transform: translateY(0); }
.ds-shell { width: min(1440px, calc(100% - 72px)); margin-inline: auto; }

.ds-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--ds-line);
  background: var(--ds-header);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.ds-header__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 38px;
}

.ds-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ds-ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.04em;
  text-decoration: none !important;
  white-space: nowrap;
}

.ds-brand__mark {
  width: 28px;
  height: 36px;
  position: relative;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 2px 8px 8px 2px;
  transform: rotate(-4deg);
}

.ds-brand__mark::before,
.ds-brand__mark::after { content: ""; position: absolute; background: currentColor; }
.ds-brand__mark::before { width: 2px; top: 4px; bottom: 4px; left: 5px; opacity: .35; }
.ds-brand__mark::after { width: 8px; height: 8px; right: -5px; bottom: -5px; border-radius: 50%; background: var(--ds-accent); }

.ds-nav { display: flex; align-items: center; justify-content: center; gap: 34px; }

.ds-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--ds-muted) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: color .2s ease;
}

.ds-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--ds-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}

.ds-nav a:hover,
.ds-nav a[aria-current="page"] { color: var(--ds-ink) !important; }
.ds-nav a:hover::after,
.ds-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.ds-header__actions { display: flex; align-items: center; gap: 10px; }

.ds-icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ds-line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ds-ink);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.ds-icon-button:hover { border-color: var(--ds-ink); background: var(--ds-elevated); }
.ds-ui-icon {
  width: 19px;
  height: 19px;
  display: block;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.ds-ui-icon--search { -webkit-mask-image: url("../image/icons/search.svg"); mask-image: url("../image/icons/search.svg"); }
.ds-ui-icon--moon { -webkit-mask-image: url("../image/icons/moon.svg"); mask-image: url("../image/icons/moon.svg"); }
.ds-ui-icon--sun { -webkit-mask-image: url("../image/icons/sun.svg"); mask-image: url("../image/icons/sun.svg"); }
.ds-menu-button { display: none; }

.ds-mobile-nav {
  position: fixed;
  z-index: 49;
  inset: 79px 0 auto;
  display: none;
  padding: 24px 28px 30px;
  border-bottom: 1px solid var(--ds-line);
  background: var(--ds-bg);
  box-shadow: var(--ds-shadow);
}

.ds-mobile-nav a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--ds-line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  text-decoration: none !important;
}

.ds-mobile-nav.is-open { display: block; }

.ds-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 28px;
  color: var(--ds-quiet);
  font-size: 12px;
}

.ds-breadcrumbs a { text-decoration: none !important; }
.ds-breadcrumbs a:hover { color: var(--ds-accent) !important; }

.ds-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px !important;
  color: var(--ds-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.ds-eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }

.ds-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ds-line);
}

.ds-hero::before {
  content: "";
  position: absolute;
  width: 570px;
  height: 570px;
  right: -175px;
  top: -245px;
  border: 1px solid var(--ds-line);
  border-radius: 50%;
  box-shadow: 0 0 0 76px color-mix(in srgb, var(--ds-violet) 4%, transparent), 0 0 0 152px color-mix(in srgb, var(--ds-violet) 3%, transparent);
  pointer-events: none;
}

.ds-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, .7fr);
  align-items: center;
  gap: clamp(42px, 7vw, 105px);
  padding: 68px 0 82px;
}

.ds-hero__grid--compact { align-items: end; padding: 54px 0 72px; }

.ds-hero h1 {
  max-width: 940px;
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(68px, 8.8vw, 136px);
  font-weight: 500;
  letter-spacing: -.072em;
  line-height: .86;
}

.ds-hero h1 em { color: var(--ds-violet); font-weight: 500; }
.ds-hero__copy { max-width: 620px; margin-bottom: 0; overflow-wrap: anywhere; color: var(--ds-muted); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.68; }

.ds-home-hero { min-height: min(820px, calc(100vh - 78px)); display: grid; align-items: center; }
.ds-home-hero .ds-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); }
.ds-home-hero h1 { font-size: clamp(62px, 7.2vw, 110px); }

.ds-cover-stage { min-height: 500px; position: relative; display: grid; place-items: center; }
.ds-cover-stage::before { content: ""; position: absolute; width: min(430px, 90%); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, var(--ds-violet), #2b2330 72%); box-shadow: var(--ds-shadow); }

.ds-hero-cover {
  position: absolute;
  width: 200px;
  aspect-ratio: .66;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, .66);
  background: #211c1e;
  box-shadow: var(--ds-cover-shadow);
  transition: transform .3s ease;
}

.ds-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.ds-hero-cover--left { left: 1%; transform: rotate(-13deg); opacity: .78; }
.ds-hero-cover--right { right: 1%; transform: rotate(13deg); opacity: .84; }
.ds-hero-cover--center { z-index: 2; width: 235px; left: 50%; transform: translateX(-50%) rotate(-2deg); }
.ds-cover-stage:hover .ds-hero-cover--left { transform: rotate(-16deg) translateX(-7px); }
.ds-cover-stage:hover .ds-hero-cover--right { transform: rotate(16deg) translateX(7px); }
.ds-cover-stage:hover .ds-hero-cover--center { transform: translateX(-50%) rotate(0) translateY(-7px); }

.ds-search-line {
  max-width: 720px;
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 34px;
  border-bottom: 2px solid var(--ds-ink);
}

.ds-search-line:focus-within { border-bottom-color: var(--ds-accent); }
.ds-search-line input { width: 100%; height: 70px; padding: 0 66px 0 0; border: 0; outline: none; background: transparent; color: var(--ds-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(21px, 2vw, 29px); }
.ds-search-line input:focus-visible { outline: none; outline-offset: 0; }
.ds-search-line input::placeholder { color: var(--ds-quiet); opacity: 1; }
.ds-search-line button { position: absolute; right: 0; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ds-accent); color: var(--ds-accent-ink); font-size: 23px; cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.ds-search-line button:hover { transform: translateX(3px); background: var(--ds-accent-hover); }

.ds-search-band { background: var(--ds-stage); color: var(--ds-stage-ink); }
.ds-search-band__inner { padding-block: 32px; }
.ds-search-band form { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.ds-search-band__icon { color: #ff7a58; font-family: Georgia, "Times New Roman", serif; font-size: 32px; }
.ds-search-band input { width: 100%; height: 70px; padding: 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.24); outline: 0; background: transparent; color: var(--ds-stage-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(22px, 2.4vw, 36px); }
.ds-search-band input:focus { border-bottom-color: #ff7a58; }
.ds-search-band input:focus-visible { outline: none; outline-offset: 0; }
.ds-search-band input::placeholder { color: rgba(248,239,231,.42); opacity: 1; }
.ds-search-band button { min-height: 54px; padding: 13px 24px; border: 0; background: var(--ds-accent); color: var(--ds-accent-ink); font-weight: 800; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.ds-search-band button:hover { background: var(--ds-accent-hover); transform: translateY(-2px); }

.ds-stats { border-bottom: 1px solid var(--ds-line); }
.ds-stats__inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.ds-stat { padding: 30px 28px; border-right: 1px solid var(--ds-line); text-align: center; }
.ds-stat:first-child { border-left: 1px solid var(--ds-line); }
.ds-stat strong { display: block; margin-bottom: 3px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(27px, 3vw, 42px); font-weight: 500; letter-spacing: -.04em; }
.ds-stat span { color: var(--ds-quiet); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.ds-section { padding: clamp(78px, 8vw, 124px) 0; }
.ds-section--bordered { border-top: 1px solid var(--ds-line); background: var(--ds-elevated); }
.ds-section--compact { padding-top: 0; }
.ds-section__head { display: flex; align-items: end; justify-content: space-between; gap: 34px; margin-bottom: 46px; }
.ds-section__kicker { margin-bottom: 12px !important; color: var(--ds-accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ds-section__title { max-width: 850px; margin-bottom: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 5vw, 70px); font-weight: 500; letter-spacing: -.052em; line-height: .98; }
.ds-section__note { max-width: 410px; margin: 0; color: var(--ds-quiet); font-size: 14px; line-height: 1.6; }
.ds-text-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; padding-bottom: 5px; border-bottom: 1px solid var(--ds-line-strong); color: var(--ds-muted) !important; font-weight: 700; text-decoration: none !important; }
.ds-text-link:hover { color: var(--ds-accent) !important; border-color: var(--ds-accent); }

.ds-listing { padding: 64px 0 110px; }
.ds-listing__head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 48px; padding-bottom: 25px; border-bottom: 1px solid var(--ds-line-strong); }
.ds-listing__count { margin: 0; color: var(--ds-muted); font-size: 13px; }
.ds-listing__count strong { display: block; color: var(--ds-ink); font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 500; }
.ds-listing__page { margin: 0; color: var(--ds-quiet); font-size: 13px; text-align: right; }

.ds-books-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 58px clamp(18px, 2.3vw, 36px); }
.ds-book-card { min-width: 0; }
.ds-book-card__cover { position: relative; display: block; margin-bottom: 18px; overflow: hidden; background: var(--ds-elevated); box-shadow: var(--ds-cover-shadow); }
.ds-book-card__cover::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(to top, rgba(15,8,6,.52), transparent 42%); opacity: 0; transition: opacity .25s ease; }
.ds-book-card__cover::after { content: "Открыть →"; position: absolute; z-index: 2; left: 16px; bottom: 16px; color: #fff; font-size: 12px; font-weight: 800; opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease; }
.ds-book-card__cover img { width: 100%; aspect-ratio: .66; object-fit: cover; transition: transform .36s ease; }
.ds-book-card:hover .ds-book-card__cover::before,
.ds-book-card:hover .ds-book-card__cover::after { opacity: 1; }
.ds-book-card:hover .ds-book-card__cover::after { transform: translateY(0); }
.ds-book-card:hover .ds-book-card__cover img { transform: scale(1.025); }
.ds-book-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ds-book-card__genre { margin: 0 !important; overflow: hidden; color: var(--ds-accent); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.ds-book-card__year { flex: 0 0 auto; color: var(--ds-quiet); font-size: 11px; }
.ds-book-card__title { margin-bottom: 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(19px, 1.55vw, 24px); font-weight: 500; letter-spacing: -.025em; line-height: 1.14; }
.ds-book-card__title a { text-decoration: none !important; background-image: linear-gradient(var(--ds-accent), var(--ds-accent)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size .25s ease; }
.ds-book-card:hover .ds-book-card__title a { background-size: 100% 1px; }
.ds-book-card__author { margin: 0 !important; color: var(--ds-quiet); font-size: 13px; }

.ds-featured { display: grid; grid-template-columns: minmax(350px, .82fr) minmax(0, 1.18fr); min-height: 620px; overflow: hidden; background: var(--ds-stage); color: var(--ds-stage-ink); box-shadow: var(--ds-shadow); }
.ds-featured__visual { min-height: 620px; display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(circle at 45% 38%, rgba(241,181,128,.22), transparent 32%), radial-gradient(circle at 80% 80%, rgba(126,84,137,.35), transparent 38%), #171217; }
.ds-featured__visual::before { content: ""; position: absolute; width: 440px; height: 440px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.ds-featured__cover { width: min(300px, 64%); position: relative; z-index: 1; aspect-ratio: .66; transform: rotate(-4deg); box-shadow: 20px 35px 58px -18px rgba(0,0,0,.9); transition: transform .35s ease; }
.ds-featured:hover .ds-featured__cover { transform: rotate(-1deg) translateY(-7px); }
.ds-featured__cover img { width: 100%; height: 100%; object-fit: cover; }
.ds-featured__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 105px); }
.ds-featured__label { margin-bottom: 21px !important; color: #ff7a58; font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.ds-featured h3 { max-width: 700px; margin-bottom: 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 4.8vw, 68px); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.ds-featured__author { margin-bottom: 27px !important; color: #b9a5c8; font-size: 14px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.ds-featured__desc { max-width: 650px; margin-bottom: 32px !important; color: rgba(248,239,231,.68); font-size: 17px; line-height: 1.68; }

.ds-button { width: fit-content; min-height: 55px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 24px; border: 1px solid transparent; background: var(--ds-accent); color: var(--ds-accent-ink) !important; font-weight: 800; text-decoration: none !important; transition: transform .2s ease, background-color .2s ease; }
.ds-button:hover { transform: translateY(-2px); background: var(--ds-accent-hover); }

.ds-genres-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ds-line); border-left: 1px solid var(--ds-line); }
.ds-genre-card { min-height: 220px; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; overflow: hidden; border-right: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); text-decoration: none !important; transition: color .25s ease, background-color .25s ease; }
.ds-genre-card::after { content: attr(data-symbol); position: absolute; right: 10px; bottom: -42px; color: var(--ds-violet); font-family: Georgia, "Times New Roman", serif; font-size: 150px; line-height: 1; opacity: .1; transform: rotate(-9deg); transition: opacity .25s ease, transform .25s ease; }
.ds-genre-card:hover { background: var(--ds-stage); color: var(--ds-stage-ink) !important; }
.ds-genre-card:hover::after { opacity: .28; transform: rotate(0) scale(1.04); }
.ds-genre-card__index { color: var(--ds-quiet); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.ds-genre-card__name { position: relative; z-index: 1; font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 2.1vw, 34px); font-weight: 500; letter-spacing: -.035em; line-height: 1.03; }
.ds-genre-card__count { position: relative; z-index: 1; color: var(--ds-quiet); font-size: 12px; }

.ds-directory { columns: 4; column-gap: clamp(28px, 4vw, 70px); }
.ds-letter-group { display: inline-block; width: 100%; margin: 0 0 48px; break-inside: avoid; }
.ds-letter-group[hidden] { display: none; }
.ds-letter-heading { margin: 0 0 16px; padding-bottom: 11px; border-bottom: 2px solid var(--ds-ink); color: var(--ds-accent); font-family: Georgia, "Times New Roman", serif; font-size: 38px; font-weight: 500; line-height: 1; }
.ds-directory-links { display: grid; }
.ds-directory-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ds-line); color: var(--ds-muted) !important; font-size: 13px; text-decoration: none !important; transition: color .18s ease, padding-left .18s ease; }
.ds-directory-item:hover { padding-left: 5px; color: var(--ds-accent) !important; }
.ds-directory-item[hidden] { display: none; }
.ds-directory-item span:first-child { overflow-wrap: anywhere; }
.ds-directory-count { color: var(--ds-quiet); font-size: 10px; }

.ds-alphabet-wrap { margin-bottom: 48px; overflow-x: auto; border-top: 1px solid var(--ds-line-strong); border-bottom: 1px solid var(--ds-line-strong); scrollbar-width: none; }
.ds-alphabet-wrap::-webkit-scrollbar { display: none; }
.ds-alphabet { min-width: max-content; display: flex; align-items: center; }
.ds-alphabet a { min-width: 38px; height: 50px; display: grid; place-items: center; color: var(--ds-quiet) !important; font-family: Georgia, "Times New Roman", serif; font-size: 15px; text-decoration: none !important; }
.ds-alphabet a:hover { color: var(--ds-ink) !important; background: var(--ds-bg); }
.ds-alphabet a[aria-current="true"] { background: var(--ds-accent); color: var(--ds-accent-ink) !important; }
.ds-alphabet .ds-alphabet-wide { min-width: 62px; font-family: Inter, sans-serif; font-size: 10px; font-weight: 800; }

.ds-authors-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ds-line); border-left: 1px solid var(--ds-line); }
.ds-author-item { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 94px; padding: 16px; border-right: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); text-decoration: none !important; transition: color .2s ease, background-color .2s ease; }
.ds-author-item:hover { background: var(--ds-stage); color: var(--ds-stage-ink) !important; }
.ds-author-item__monogram { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ds-violet) 12%, transparent); color: var(--ds-violet); font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-style: italic; }
.ds-author-item:hover .ds-author-item__monogram { background: rgba(255,122,88,.15); color: #ff7a58; }
.ds-author-item__name { min-width: 0; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.18; }
.ds-author-item__count { color: var(--ds-quiet); font-size: 10px; white-space: nowrap; }

.ds-series-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ds-line); border-left: 1px solid var(--ds-line); }
.ds-series-card { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 25px; border-right: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); text-decoration: none !important; transition: background-color .2s ease, color .2s ease; }
.ds-series-card:hover { background: var(--ds-stage); color: var(--ds-stage-ink) !important; }
.ds-series-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; line-height: 1.12; }
.ds-series-card span { color: var(--ds-quiet); font-size: 12px; }

.ds-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 70px; padding-top: 34px; border-top: 1px solid var(--ds-line); }
.ds-page { min-width: 46px; height: 46px; display: inline-grid; place-items: center; border: 1px solid var(--ds-line); color: var(--ds-muted) !important; font-size: 13px; font-weight: 800; text-decoration: none !important; }
.ds-page:hover { border-color: var(--ds-ink); color: var(--ds-ink) !important; }
.ds-page.is-current { border-color: var(--ds-accent); background: var(--ds-accent); color: var(--ds-accent-ink) !important; }
.ds-page.is-disabled { color: var(--ds-quiet) !important; opacity: .45; }
.ds-page.is-ellipsis { border-color: transparent; }
.ds-page--wide { min-width: 120px; padding-inline: 18px; }
.ds-page-mobile { display: none; color: var(--ds-quiet); font-size: 12px; }

.ds-empty { min-height: 280px; display: grid; place-items: center; border-top: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); text-align: center; }
.ds-empty strong { display: block; margin-bottom: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; }
.ds-empty p { margin: 0; color: var(--ds-muted); }

.ds-book-page { padding-bottom: 100px; }
.ds-book-hero { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); min-height: 680px; margin-top: 32px; overflow: hidden; background: var(--ds-stage); color: var(--ds-stage-ink); box-shadow: var(--ds-shadow); }
.ds-book-visual { min-height: 680px; display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(circle at 45% 38%, rgba(241,181,128,.22), transparent 32%), radial-gradient(circle at 80% 80%, rgba(126,84,137,.35), transparent 38%), #171217; }
.ds-book-visual::before { content: ""; position: absolute; width: 470px; height: 470px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.ds-book-cover { width: min(320px, 64%); position: relative; z-index: 1; aspect-ratio: .66; transform: rotate(-3deg); box-shadow: 20px 35px 58px -18px rgba(0,0,0,.9); }
.ds-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.ds-book-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 108px); }
.ds-book-copy h1 { max-width: 760px; margin: 0 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(45px, 5.2vw, 76px); font-weight: 500; letter-spacing: -.055em; line-height: .96; }
.ds-book-author { margin-bottom: 27px !important; color: #b9a5c8; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ds-book-hook { max-width: 650px; margin-bottom: 34px !important; color: rgba(248,239,231,.7); font-size: 17px; line-height: 1.7; }
.ds-book-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ds-button--ghost { background: transparent; border-color: rgba(255,255,255,.28); color: var(--ds-stage-ink) !important; }
.ds-button--ghost:hover { background: rgba(255,255,255,.08); }
.ds-disclosure { max-width: 680px; margin: 18px 0 0 !important; color: rgba(248,239,231,.4); font-size: 11px; line-height: 1.5; }
.ds-audio-sample { max-width: 680px; margin-top: 22px; padding: 18px 20px 20px; scroll-margin-top: 110px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); box-shadow: 0 22px 50px -35px rgba(0,0,0,.8); }
.ds-audio-sample:target { border-color: rgba(255,106,70,.72); }
.ds-audio-sample__heading { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
.ds-audio-sample__heading > div { min-width: 0; display: grid; gap: 2px; }
.ds-audio-sample__heading > div > span { color: rgba(248,239,231,.48); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.ds-audio-sample__heading strong { color: var(--ds-stage-ink); font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; line-height: 1.2; }
.ds-visually-hidden { 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; }
.ds-audio-player { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(10,8,13,.32); }
.ds-audio-player__media { display: none; }
.ds-audio-player__toggle { min-height: 42px; display: inline-flex; align-items: center; gap: 11px; padding: 0 16px 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--ds-stage-ink); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .2s ease, color .2s ease; }
.ds-audio-player__toggle:hover { background: rgba(255,255,255,.08); }
.ds-audio-player__toggle:focus-visible, .ds-audio-player__volume input:focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 3px; }
.ds-audio-player__toggle:disabled { cursor: not-allowed; opacity: .55; }
.ds-audio-player__toggle-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ds-accent); color: var(--ds-accent-ink); box-shadow: 0 8px 24px -12px rgba(255,78,44,.9); }
.ds-audio-player__toggle-icon::before { content: ""; width: 0; height: 0; margin-left: 3px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; }
.ds-audio-player.is-playing .ds-audio-player__toggle-icon::before { width: 12px; height: 14px; margin-left: 0; border: 0; background: linear-gradient(to right, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px); }
.ds-audio-player__volume { display: flex; align-items: center; gap: 9px; padding: 0 9px; }
.ds-audio-player__volume-icon { width: 22px; height: 22px; color: rgba(248,239,231,.75); }
.ds-audio-player__volume-icon svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.ds-audio-player__volume input { width: 112px; height: 4px; margin: 0; appearance: none; border-radius: 999px; background: linear-gradient(to right, var(--ds-accent) 0%, var(--ds-accent) var(--ds-audio-volume, 100%), rgba(248,239,231,.2) var(--ds-audio-volume, 100%), rgba(248,239,231,.2) 100%); cursor: pointer; }
.ds-audio-player__volume input::-webkit-slider-thumb { width: 15px; height: 15px; appearance: none; border: 3px solid var(--ds-stage-ink); border-radius: 50%; background: var(--ds-accent); box-shadow: 0 2px 7px rgba(0,0,0,.35); }
.ds-audio-player__volume input::-moz-range-thumb { width: 10px; height: 10px; border: 3px solid var(--ds-stage-ink); border-radius: 50%; background: var(--ds-accent); box-shadow: 0 2px 7px rgba(0,0,0,.35); }
.ds-book-content { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(40px, 7vw, 100px); align-items: start; padding-top: 72px; padding-bottom: clamp(72px, 7vw, 110px); }
.ds-book-description { color: var(--ds-muted); font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.75; }
.ds-book-description p { margin-bottom: 1em; }
.ds-description-spoiler { margin: 34px 0 0; overflow: hidden; border: 1px solid var(--ds-line); border-left: 3px solid var(--ds-accent); background: color-mix(in srgb, var(--ds-elevated) 82%, transparent); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 14px; }
.ds-description-spoiler summary { min-height: 62px; display: flex; align-items: center; gap: 13px; padding: 13px 17px; color: var(--ds-ink); font-weight: 800; letter-spacing: .02em; list-style: none; cursor: pointer; user-select: none; }
.ds-description-spoiler summary::-webkit-details-marker { display: none; }
.ds-description-spoiler--copyright summary::before { content: "©"; width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ds-accent) 13%, transparent); color: var(--ds-accent); font-family: Georgia, "Times New Roman", serif; font-size: 19px; }
.ds-description-spoiler summary::after { content: "+"; margin-left: auto; color: var(--ds-quiet); font-size: 24px; font-weight: 400; line-height: 1; transition: transform .2s ease, color .2s ease; }
.ds-description-spoiler[open] summary::after { color: var(--ds-accent); transform: rotate(45deg); }
.ds-description-spoiler > div { padding: 20px 22px 22px 66px; border-top: 1px solid var(--ds-line); color: var(--ds-quiet); font-size: 13px; line-height: 1.7; }
.ds-book-specs { padding: 24px; border: 1px solid var(--ds-line); background: var(--ds-elevated); }
.ds-book-specs h2 { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; }
.ds-book-specs dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px 16px; margin: 0; font-size: 13px; }
.ds-book-specs dt { color: var(--ds-quiet); }
.ds-book-specs dd { margin: 0; color: var(--ds-ink); text-align: right; overflow-wrap: anywhere; }
.ds-book-specs a { color: var(--ds-accent) !important; text-decoration: none !important; }
.ds-book-dock { position: fixed; z-index: 70; right: 0; bottom: 0; left: 0; display: none; align-items: center; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ds-line); background: var(--ds-header); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transform: translateY(110%); transition: transform .3s ease; }
.ds-book-dock.is-visible { transform: translateY(0); }
.ds-book-dock__meta { min-width: 0; flex: 1; color: var(--ds-muted); font-size: 12px; }
.ds-book-dock__meta strong { display: block; overflow: hidden; color: var(--ds-ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ds-book-dock .ds-button { min-height: 48px; padding: 10px 18px; }

.ds-legal { max-width: 900px; padding: 70px 0 110px; color: var(--ds-muted); font-size: 16px; line-height: 1.75; }
.ds-legal h1 { color: var(--ds-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 6vw, 78px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }

.ds-footer { padding: 62px 0 32px; background: var(--ds-stage); color: var(--ds-stage-ink); }
.ds-footer__top { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 70px; padding-bottom: 46px; }
.ds-footer .ds-brand { margin-bottom: 18px; color: var(--ds-stage-ink) !important; }
.ds-footer__intro { max-width: 430px; margin: 0; color: rgba(248,239,231,.58); font-size: 14px; line-height: 1.7; }
.ds-footer__title { margin-bottom: 18px !important; color: rgba(248,239,231,.42); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ds-footer__links { display: grid; gap: 11px; }
.ds-footer__links a { width: fit-content; color: rgba(248,239,231,.75) !important; font-size: 14px; text-decoration: none !important; }
.ds-footer__links a:hover { color: #ff7a58 !important; }
.ds-footer__bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 27px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(248,239,231,.4); font-size: 12px; }

@media (max-width: 1180px) {
  .ds-shell { width: min(100% - 48px, 1440px); }
  .ds-books-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .ds-genres-grid { grid-template-columns: repeat(2,1fr); }
  .ds-authors-grid { grid-template-columns: repeat(2,1fr); }
  .ds-directory { columns: 3; }
}

@media (max-width: 880px) {
  .ds-shell { width: min(100% - 36px, 1440px); }
  .ds-header__inner { min-height: 72px; grid-template-columns: 1fr auto; }
  .ds-nav { display: none; }
  .ds-menu-button { display: inline-grid; }
  .ds-mobile-nav { inset-block-start: 73px; }
  .ds-hero__grid,
  .ds-home-hero .ds-hero__grid { grid-template-columns: 1fr; }
  .ds-cover-stage { min-height: 480px; }
  .ds-stats__inner { grid-template-columns: 1fr; }
  .ds-stat { border-bottom: 1px solid var(--ds-line); }
  .ds-section__head { align-items: start; flex-direction: column; }
  .ds-books-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ds-featured { grid-template-columns: 1fr; }
  .ds-featured__visual { min-height: 500px; }
  .ds-directory { columns: 2; }
  .ds-series-grid { grid-template-columns: repeat(2,1fr); }
  .ds-book-hero { grid-template-columns: 1fr; }
  .ds-book-visual { min-height: 540px; }
  .ds-book-content { grid-template-columns: 1fr; }
  .ds-footer__top { grid-template-columns: 1fr 1fr; }
  .ds-footer__top > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .ds-shell { width: min(100% - 28px, 1440px); }
  .ds-brand { font-size: 21px; }
  .ds-brand__mark { width: 24px; height: 31px; }
  .ds-hero::before { display: none; }
  .ds-breadcrumbs { padding-top: 22px; }
  .ds-hero__grid { padding: 46px 0 56px; }
  .ds-hero h1 { font-size: clamp(58px, 19vw, 88px); }
  .ds-cover-stage { min-height: 380px; transform: scale(.78); margin: -24px 0; }
  .ds-search-band form { grid-template-columns: auto 1fr; gap: 13px; }
  .ds-search-band input { height: 62px; font-size: 19px; }
  .ds-search-band button { grid-column: 1 / -1; width: 100%; }
  .ds-listing__head { align-items: start; flex-direction: column; margin-bottom: 38px; }
  .ds-listing__page { text-align: left; }
  .ds-books-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 42px 16px; }
  .ds-book-card__cover { margin-bottom: 15px; }
  .ds-book-card__cover::before,
  .ds-book-card__cover::after { display: none; }
  .ds-book-card__title { font-size: 18px; }
  .ds-featured { margin-inline: -14px; }
  .ds-featured__visual { min-height: 430px; }
  .ds-featured__copy { padding: 42px 28px 52px; }
  .ds-genres-grid { grid-template-columns: 1fr; }
  .ds-genre-card { min-height: 165px; }
  .ds-directory { columns: 1; }
  .ds-authors-grid,
  .ds-series-grid { grid-template-columns: 1fr; }
  .ds-pagination { gap: 10px; margin-top: 54px; }
  .ds-pagination .ds-page-number,
  .ds-page.is-ellipsis { display: none; }
  .ds-page--wide { min-width: 104px; }
  .ds-page-mobile { display: block; }
  .ds-book-page { padding-bottom: 130px; }
  .ds-book-hero { margin-inline: -14px; }
  .ds-book-visual { min-height: 440px; }
  .ds-book-cover { width: 245px; }
  .ds-book-copy { padding: 42px 28px 52px; }
  .ds-book-copy h1 { font-size: 43px; }
  .ds-book-actions { flex-direction: column; }
  .ds-book-actions .ds-button { width: 100%; }
  .ds-audio-sample { padding: 16px; }
  .ds-audio-sample__heading strong { font-size: 16px; }
  .ds-audio-player { align-items: stretch; flex-direction: column; gap: 8px; padding: 8px; }
  .ds-audio-player__toggle { justify-content: flex-start; }
  .ds-audio-player__volume { min-height: 40px; justify-content: flex-end; }
  .ds-audio-player__volume input { width: min(180px, 70vw); }
  .ds-description-spoiler > div { padding: 18px; }
  .ds-book-dock { display: flex; }
  .ds-footer__top { grid-template-columns: 1fr; gap: 38px; }
  .ds-footer__top > div:first-child { grid-column: auto; }
  .ds-footer__bottom { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.ds-body *,
  body.ds-body *::before,
  body.ds-body *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
