:root {
  color-scheme: light;
  --paper: #f3eee4;
  --paper-soft: #fbf7ef;
  --paper-strong: #fffdf7;
  --paper-shadow: #e4d8c8;
  --ink: #171715;
  --muted: #6e685f;
  --line: #cfc3b3;
  --line-strong: #a79a89;
  --wood: #755133;
  --wood-dark: #53371f;
  --accent: #963b31;
  --accent-strong: #713129;
  --edition-blue: #26475d;
  --library-green: #4e6044;
  --radius: 8px;
  --shadow-frame: 0 24px 64px rgba(49, 42, 32, 0.12);
  --shadow-book: 12px 18px 28px rgba(44, 35, 24, 0.22);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
}

body[data-site='en'] {
  --accent: #26475d;
  --accent-strong: #183447;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    repeating-linear-gradient(0deg, rgba(22, 23, 21, 0.018) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #f8f3ea 0%, var(--paper) 54%, #eee4d6 100%);
}

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

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

button,
input {
  font: inherit;
}

.skip-link {
  background: var(--ink);
  color: var(--paper-strong);
  left: 1rem;
  padding: 0.65rem 0.8rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-200%);
  z-index: 30;
}

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

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

.page-shell {
  margin: 0 auto;
  max-width: 1640px;
  padding: 22px 18px 40px;
}

.global-mast {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  margin: 0 auto 22px;
  max-width: 1600px;
}

.mast-brand {
  font-family: var(--serif);
  font-size: 3.8rem;
  font-weight: 500;
  line-height: 0.9;
  text-decoration: none;
}

.global-mast p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.02rem;
  margin: 0 0 7px;
}

.edition-key {
  display: grid;
  gap: 10px 24px;
  grid-template-columns: repeat(2, auto);
  justify-content: end;
}

.edition-key-item {
  align-items: start;
  display: grid;
  gap: 9px;
  grid-template-columns: 13px auto;
  text-decoration: none;
}

.edition-key-item strong,
.edition-key-item small {
  display: block;
  line-height: 1.2;
}

.edition-key-item strong {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 500;
}

.edition-key-item small {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.edition-swatch {
  background: var(--edition-color);
  height: 13px;
  margin-top: 2px;
  width: 13px;
}

.edition-key-item:not(.is-current) {
  opacity: 0.86;
}

.site-frame {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.84), rgba(251, 247, 239, 0.9)),
    repeating-linear-gradient(90deg, rgba(22, 23, 21, 0.018) 0 1px, transparent 1px 82px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-frame);
  margin: 0 auto;
  max-width: 1210px;
  overflow: hidden;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr;
  min-height: 50px;
  padding: 0 20px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.22rem;
  text-decoration: none;
}

.brand strong {
  font-weight: 500;
}

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

.nav a,
.nav span {
  color: var(--ink);
  font-size: 0.82rem;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.section-head a:hover,
.section-head a:focus-visible,
.reader-close:hover,
.reader-close:focus-visible,
.reader-action:hover,
.reader-action:focus-visible {
  color: var(--accent-strong);
  outline: none;
}

.edition-pill {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink) !important;
  display: inline-flex;
  min-height: 27px;
  padding: 0.32rem 0.7rem;
}

.edition-pill.is-current {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-color: var(--accent);
  color: var(--accent-strong) !important;
}

.search-link {
  border: 0;
  display: inline-grid;
  height: 24px;
  place-items: center;
  position: relative;
  width: 24px;
}

.search-link::before {
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  content: '';
  height: 10px;
  width: 10px;
}

.search-link::after {
  background: var(--ink);
  content: '';
  height: 1.5px;
  position: absolute;
  right: 4px;
  top: 15px;
  transform: rotate(45deg);
  width: 7px;
}

.reading-room {
  display: grid;
}

.home-panel {
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.32), rgba(255, 253, 247, 0.04) 38%, transparent 58%),
    url('/assets/ui/generated/home-hero-desk-v1.png') center center / cover no-repeat;
  display: grid;
  grid-template-columns: minmax(280px, 0.32fr) minmax(520px, 0.68fr);
  min-height: 430px;
  position: relative;
}

.hero-copy {
  align-content: center;
  background: linear-gradient(90deg, rgba(250, 246, 238, 0.42), rgba(250, 246, 238, 0.18) 74%, transparent);
  border-right: 1px solid rgba(128, 116, 98, 0.22);
  display: grid;
  gap: 14px;
  padding: 34px 36px;
}

.section-label {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0;
}

.hero-copy h1,
.catalog-hero h1 {
  font-family: var(--serif);
  font-size: 2.54rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.16;
  margin: 0;
}

:lang(ko) h1,
:lang(ko) h2,
:lang(ko) h3,
:lang(ko) .shelf-book-title,
:lang(ko) .book-card-copy strong {
  word-break: keep-all;
}

.hero-copy > p:not(.section-label) {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.72;
  margin: 0;
  max-width: 320px;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 700;
  margin-top: 6px;
  text-decoration: none;
}

.book-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.76rem;
  gap: 8px;
  margin-top: 10px;
}

.book-meta span + span::before {
  content: '/';
  margin-right: 8px;
}

.desk-scene {
  background: transparent;
  display: block;
  min-height: 430px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.desk-photo {
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  width: 100%;
}

.desk-scene:hover .desk-photo,
.desk-scene:focus-visible .desk-photo {
  opacity: 0;
}

.desk-open-book {
  display: grid;
  filter: drop-shadow(var(--shadow-book));
  grid-template-columns: 1fr 1fr;
  min-height: 260px;
  position: relative;
  transform: rotate(1deg);
  width: min(600px, 86%);
  z-index: 1;
}

.desk-open-book::before {
  background: linear-gradient(90deg, rgba(41, 32, 22, 0.22), rgba(255, 255, 255, 0.3), rgba(41, 32, 22, 0.16));
  bottom: -6px;
  content: '';
  left: calc(50% - 8px);
  position: absolute;
  top: -4px;
  width: 16px;
  z-index: 3;
}

.desk-page {
  background:
    linear-gradient(90deg, rgba(32, 26, 18, 0.08), transparent 18%),
    var(--paper-strong);
  border: 1px solid var(--line-strong);
  display: grid;
  min-height: 270px;
  padding: 24px;
}

.desk-page-left {
  border-radius: 8px 1px 1px 8px;
}

.desk-page-right {
  border-radius: 1px 8px 8px 1px;
  padding-left: 34px;
}

.page-brand,
.page-kicker {
  font-family: var(--serif);
  font-size: 0.85rem;
}

.page-image {
  align-self: center;
  background: #d7c9b7;
  border: 1px solid rgba(35, 30, 24, 0.2);
  display: block;
  margin: 10px auto 8px;
  max-width: 170px;
  padding: 8px;
  width: 72%;
}

.page-image img {
  aspect-ratio: 1.35;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.page-caption {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.page-lines {
  align-content: center;
  display: grid;
  gap: 9px;
}

.page-lines span {
  background: rgba(22, 23, 21, 0.42);
  height: 5px;
}

.page-lines span:nth-child(1) {
  background: var(--ink);
  height: 7px;
  width: 78%;
}

.page-lines span:nth-child(2) {
  width: 92%;
}

.page-lines span:nth-child(3) {
  width: 88%;
}

.page-lines span:nth-child(4) {
  width: 96%;
}

.page-lines span:nth-child(5) {
  width: 72%;
}

.page-lines span:nth-child(6) {
  width: 85%;
}

.page-lines span:nth-child(7) {
  width: 58%;
}

.latest-shelf {
  background: rgba(251, 247, 239, 0.72);
  border-top: 1px solid var(--line);
  padding: 26px 24px 34px;
}

.section-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
}

.section-head a {
  color: var(--ink);
  font-size: 0.82rem;
  text-decoration: none;
}

.shelf-run {
  align-items: end;
  display: flex;
  gap: 24px;
  min-height: 182px;
  overflow-x: auto;
  padding: 0 10px 12px;
  position: relative;
}

.shelf-run::after {
  background: linear-gradient(180deg, var(--wood), var(--wood-dark));
  border-radius: 3px;
  bottom: 0;
  box-shadow: 0 10px 18px rgba(55, 39, 27, 0.24);
  content: '';
  height: 11px;
  left: 0;
  position: absolute;
  right: 0;
}

.shelf-book {
  align-content: center;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.15), transparent 40%),
    var(--book-color);
  border: 1px solid rgba(37, 29, 22, 0.24);
  border-radius: 3px 5px 5px 3px;
  box-shadow: 7px 10px 16px rgba(48, 36, 24, 0.18);
  color: #fffdf8;
  display: grid;
  flex: 0 0 88px;
  gap: 10px;
  min-height: 148px;
  padding: 16px 11px;
  position: relative;
  text-align: center;
  text-decoration: none;
  z-index: 1;
}

.shelf-book::before {
  background: rgba(23, 19, 15, 0.18);
  bottom: 0;
  content: '';
  left: 0;
  position: absolute;
  top: 0;
  width: 9px;
}

.shelf-book.is-featured {
  flex-basis: 102px;
  min-height: 164px;
}

.shelf-book-placeholder {
  opacity: 0.78;
}

.shelf-book-title {
  font-family: var(--serif);
  font-size: 0.86rem;
  line-height: 1.32;
}

.shelf-book-meta,
.shelf-book-date {
  font-size: 0.68rem;
  line-height: 1.2;
}

.asset-backed-shelf {
  aspect-ratio: 1983 / 793;
  background:
    url('/assets/ui/bookshelf-v2/recent-shelf-bg.png') center 63% / cover no-repeat,
    repeating-linear-gradient(0deg, rgba(22, 23, 21, 0.018) 0 1px, transparent 1px 5px),
    rgba(251, 247, 239, 0.72);
  border-top: 1px solid var(--line);
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.asset-backed-shelf .section-head {
  left: 34px;
  margin: 0;
  position: absolute;
  right: 34px;
  top: 30px;
  z-index: 4;
}

.asset-backed-shelf .shelf-run {
  align-items: end;
  display: grid;
  gap: 3.2%;
  grid-template-columns: 1.12fr 0.94fr 0.98fr 0.96fr 1.02fr 0.98fr;
  inset: 18% 4% 21% 4%;
  min-height: 0;
  overflow: visible;
  padding: 0;
  position: absolute;
  z-index: 3;
}

.asset-backed-shelf .shelf-book::before {
  display: none;
}

.asset-backed-shelf .shelf-run::after {
  display: none;
}

.asset-backed-shelf .shelf-book,
.asset-backed-shelf .shelf-book.is-featured,
.asset-backed-shelf .shelf-book-placeholder {
  align-content: end;
  align-self: end;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #f7efe4;
  display: block;
  flex: initial;
  gap: 16px;
  height: 82%;
  min-width: 0;
  opacity: 1;
  overflow: visible;
  padding: 0;
  position: relative;
  text-shadow: 0 1px 3px rgba(24, 18, 12, 0.26);
  transform-origin: bottom center;
  transition:
    color 180ms ease,
    text-shadow 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.asset-backed-shelf .shelf-book-img {
  display: block;
  clip-path: inset(0 0 0 6%);
  filter: drop-shadow(3px 10px 10px rgba(42, 31, 20, 0.18));
  height: 100%;
  inset: 0;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.asset-backed-shelf .shelf-book::after {
  pointer-events: none;
  z-index: 2;
}

.asset-backed-shelf .shelf-book::before {
  display: none;
}

.shelf-book-copy {
  align-self: end;
  display: grid;
  gap: 9px;
  justify-self: stretch;
  position: relative;
  text-align: center;
  z-index: 3;
}

.asset-backed-shelf .shelf-book-copy {
  bottom: auto;
  display: block;
  height: 100%;
  left: 12%;
  pointer-events: none;
  position: absolute;
  right: 12%;
  text-align: center;
  top: 0;
}

.asset-backed-shelf .shelf-book:hover,
.asset-backed-shelf .shelf-book:focus-visible {
  transform: translateY(-22px) scale(1.035);
  z-index: 9;
}

.asset-backed-shelf .shelf-book:hover .shelf-book-img,
.asset-backed-shelf .shelf-book:focus-visible .shelf-book-img {
  filter: drop-shadow(7px 16px 16px rgba(42, 31, 20, 0.26));
}

.asset-backed-shelf .shelf-book:nth-child(1) {
  height: 92%;
}

.asset-backed-shelf .shelf-book:nth-child(2) {
  height: 78%;
}

.asset-backed-shelf .shelf-book:nth-child(3) {
  height: 82%;
}

.asset-backed-shelf .shelf-book:nth-child(4) {
  height: 77%;
}

.asset-backed-shelf .shelf-book:nth-child(5) {
  height: 84%;
}

.asset-backed-shelf .shelf-book:nth-child(6) {
  height: 80%;
}

.asset-backed-shelf .shelf-book:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 72%, #fffdf8);
  outline-offset: 6px;
}

.asset-backed-shelf .shelf-book:nth-child(2),
.asset-backed-shelf .shelf-book:nth-child(5) {
  color: #1f211d;
  text-shadow: 0 1px 2px rgba(255, 253, 247, 0.5);
}

.asset-backed-shelf .shelf-book-title {
  font-size: clamp(0.78rem, 0.98vw, 1rem);
  font-weight: 600;
  left: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
  position: absolute;
  right: 0;
  top: 16%;
}

.asset-backed-shelf .shelf-book-meta,
.asset-backed-shelf .shelf-book-date {
  font-size: clamp(0.56rem, 0.7vw, 0.68rem);
  left: 0;
  position: absolute;
  right: 0;
}

.asset-backed-shelf .shelf-book-meta {
  bottom: 13%;
  margin-top: 0;
}

.asset-backed-shelf .shelf-book-date {
  bottom: 4.5%;
}

.asset-backed-shelf .shelf-book-meta:last-child {
  bottom: 4.5%;
}

.library-floor {
  border-top: 1px solid var(--line);
  padding: 28px 24px 26px;
}

.library-floor-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.category-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card {
  background: rgba(255, 253, 248, 0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  min-height: 130px;
  padding: 14px;
  text-decoration: none;
}

.category-card strong,
.category-card small {
  display: block;
}

.category-card strong {
  font-size: 0.9rem;
}

.category-card small {
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 3px;
}

.mini-book-row {
  align-items: end;
  display: flex;
  gap: 3px;
}

.mini-book-row i {
  background: var(--book-color);
  border-radius: 2px 2px 0 0;
  display: block;
  height: 54px;
  width: 15px;
}

.mini-book-row i:nth-child(2) {
  height: 64px;
}

.mini-book-row i:nth-child(3) {
  height: 49px;
}

.mini-book-row i:nth-child(4) {
  height: 69px;
}

.library-card {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(246, 239, 229, 0.9)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(22, 23, 21, 0.055) 31px 32px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(52, 39, 27, 0.12);
  position: relative;
}

.library-card-pin {
  background: var(--accent);
  height: 10px;
  position: absolute;
  right: 18px;
  top: 16px;
  width: 10px;
}

.library-card-inner {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.library-card h2 {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.22;
  margin: 0;
}

.library-card p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
  margin: 0;
}

.library-card-hero {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(244, 236, 224, 0.86)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(56, 43, 31, 0.07) 27px 28px);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 12px 22px rgba(52, 39, 27, 0.12);
  margin-top: 4px;
  max-width: 320px;
  overflow: hidden;
  padding-top: 0;
}

.library-card-hero .section-label,
.library-card-hero p:not(.privacy) {
  display: none;
}

.library-card-hero .library-card-pin {
  background:
    radial-gradient(circle, transparent 42%, rgba(150, 59, 49, 0.32) 43% 48%, transparent 49%),
    rgba(150, 59, 49, 0.13);
  border: 1px solid rgba(150, 59, 49, 0.34);
  border-radius: 50%;
  height: 34px;
  opacity: 0.8;
  right: 13px;
  top: 13px;
  width: 34px;
}

.library-card-hero .library-card-inner {
  gap: 8px;
  padding: 14px 16px 12px;
}

.library-card-hero h2 {
  font-size: 0.94rem;
  padding-right: 46px;
}

.library-card-hero .subscribe-form {
  align-items: stretch;
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr;
}

.library-card-hero .form-row {
  gap: 4px;
}

.library-card-hero label {
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font-size: 0.66rem;
}

.library-card-hero input[type='email'],
.library-card-hero button {
  min-height: 32px;
}

.library-card-hero button {
  justify-self: start;
  white-space: nowrap;
}

.library-card-hero .privacy {
  color: color-mix(in srgb, var(--ink) 62%, transparent);
  grid-column: 1 / -1;
}

.asset-backed-library {
  aspect-ratio: 2014 / 520;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 253, 247, 0.58), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.58), rgba(229, 216, 198, 0.58)),
    repeating-linear-gradient(0deg, rgba(22, 23, 21, 0.014) 0 1px, transparent 1px 5px),
    rgba(251, 247, 239, 0.78);
  overflow: hidden;
  padding: 0;
  position: relative;
}

.asset-backed-library > .section-head {
  left: 3.2%;
  margin: 0;
  position: absolute;
  top: 5.6%;
  z-index: 4;
}

.asset-backed-library .library-floor-grid {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 65.5%) minmax(280px, 34.5%);
  inset: 0;
  padding: 0 2.35%;
  position: absolute;
}

.asset-backed-library .category-grid {
  align-content: stretch;
  align-items: stretch;
  display: grid;
  gap: 1.7%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  padding: 13.8% 1.8% 7.6% 0;
}

.asset-backed-library .category-card {
  align-content: start;
  background:
    url('/assets/ui/bookshelf-v2/category-cubby-bg.png') center / cover no-repeat,
    rgba(228, 217, 202, 0.36);
  border: 0;
  border-radius: 7px;
  box-shadow:
    0 10px 18px rgba(52, 39, 27, 0.08);
  gap: 0;
  height: 100%;
  min-height: 0;
  overflow: visible;
  padding: 8.2% 7.4% 0;
  position: relative;
  transform-origin: bottom center;
  transition: transform 180ms ease;
}

.asset-backed-library .category-card::after {
  display: none;
}

.asset-backed-library .category-card > span:first-child {
  position: relative;
  z-index: 5;
}

.asset-backed-library .category-card strong {
  color: #25231f;
  font-size: clamp(0.72rem, 0.92vw, 0.9rem);
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(255, 253, 247, 0.48);
}

.asset-backed-library .category-card small {
  color: rgba(36, 34, 29, 0.72);
  font-size: clamp(0.58rem, 0.74vw, 0.72rem);
}

.asset-backed-library .library-card-pin {
  display: none;
}

.asset-backed-library .mini-book-row {
  align-items: end;
  bottom: 13.4%;
  display: flex;
  gap: 1.5%;
  height: 60%;
  left: 12.4%;
  pointer-events: none;
  position: absolute;
  width: 73%;
  z-index: 3;
}

.asset-backed-library .mini-book-row i {
  background: var(--spine-image) center bottom / contain no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  display: block;
  filter: drop-shadow(2px 7px 7px rgba(39, 28, 18, 0.26));
  flex: 0 0 15.2%;
  height: 78%;
  pointer-events: auto;
  position: relative;
  transform-origin: bottom center;
  transition:
    filter 210ms ease,
    transform 210ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.asset-backed-library .mini-book-row i::before {
  display: none;
}

.asset-backed-library .mini-book-row i::after {
  display: none;
}

.asset-backed-library .mini-book-row i:nth-child(2) {
  height: 92%;
}

.asset-backed-library .mini-book-row i:nth-child(3) {
  height: 68%;
}

.asset-backed-library .mini-book-row i:nth-child(4) {
  height: 100%;
}

.asset-backed-library .mini-book-row i:nth-child(5) {
  height: 74%;
}

.asset-backed-library .mini-book-row i:nth-child(6) {
  height: 88%;
}

.asset-backed-library .mini-book-row i:hover,
.asset-backed-library .category-card:focus-visible .mini-book-row i:nth-child(2) {
  filter: drop-shadow(5px 17px 16px rgba(39, 28, 18, 0.32));
  transform: translateY(-13px) scale(1.08);
  z-index: 5;
}

.asset-backed-library .mini-book-row i:hover::after,
.asset-backed-library .category-card:focus-visible .mini-book-row i:nth-child(2)::after {
  display: none;
}

.asset-backed-library .category-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 68%, #fffdf8);
  outline-offset: 5px;
}

.asset-backed-library .library-card {
  align-self: end;
  background:
    url('/assets/ui/bookshelf-v2/library-card-bg.png') center / cover no-repeat,
    rgba(255, 253, 248, 0.88);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 16px 26px rgba(52, 39, 27, 0.14);
  justify-self: end;
  margin-bottom: 7.4%;
  width: min(100%, 360px);
}

.asset-backed-library .library-card-inner {
  gap: 9px;
  max-width: 360px;
  padding: 22px 24px 20px;
}

.asset-backed-library .library-card h2 {
  color: #27241f;
  font-size: clamp(0.95rem, 1.2vw, 1.12rem);
}

.asset-backed-library .library-card p {
  color: rgba(39, 35, 29, 0.72);
}

.asset-backed-library .subscribe-form {
  gap: 7px;
  margin-top: 2px;
}

.asset-backed-library input[type='email'],
.asset-backed-library button {
  min-height: 32px;
}

.subscribe-form {
  display: grid;
  gap: 8px;
}

.form-row {
  display: grid;
  gap: 5px;
}

label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

input[type='email'] {
  background: var(--paper-strong);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  min-height: 34px;
  padding: 0 0.68rem;
  width: 100%;
}

input[type='email']:focus {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

button,
.button {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 5px;
  color: #fffdf8;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 34px;
  padding: 0 0.85rem;
  text-decoration: none;
}

button:hover,
.button:hover {
  background: var(--accent-strong);
}

.button-quiet {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.button-quiet:hover {
  background: rgba(150, 59, 49, 0.06);
  color: var(--accent-strong);
}

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

.privacy {
  font-size: 0.72rem !important;
}

.archive-simple {
  display: grid;
  gap: 24px;
  padding: 46px 38px 56px;
}

.archive-simple-head {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding-bottom: 24px;
}

.archive-simple-head h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6.2rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
}

.archive-simple-head a {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.archive-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-category-nav button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  min-height: 34px;
}

.archive-category-nav button:hover,
.archive-category-nav button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf8;
}

.archive-post-list {
  border-top: 1px solid var(--line);
  display: grid;
}

.archive-post-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 116px minmax(0, 1fr) 150px 28px;
  min-height: 92px;
  padding: 18px 0;
  text-decoration: none;
}

.archive-post-row:hover,
.archive-post-row:focus-visible {
  color: var(--accent-strong);
  outline: none;
}

.archive-post-date,
.archive-post-category {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
}

.archive-post-main {
  display: grid;
  gap: 6px;
}

.archive-post-main strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
}

.archive-post-main small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.catalog-hero {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 42px 38px 34px;
}

.catalog-hero p:last-child {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 660px;
}

.catalog-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 330px;
  padding: 28px 24px;
}

.catalog-shelf,
.book-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.book-card {
  background: rgba(255, 253, 248, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 168px;
  padding: 12px;
  text-decoration: none;
}

.book-object {
  display: grid;
  grid-template-columns: 18px 1fr;
}

.book-spine {
  align-items: center;
  background: color-mix(in srgb, var(--book-color) 78%, #1d1b17);
  border-radius: 3px 0 0 3px;
  color: rgba(255, 253, 248, 0.88);
  display: flex;
  font-size: 0.58rem;
  justify-content: center;
  line-height: 1.1;
  padding: 6px 3px;
  text-align: center;
  text-orientation: mixed;
  writing-mode: vertical-rl;
}

.book-cover-face {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.14), transparent 38%),
    var(--book-color);
  border: 1px solid rgba(31, 27, 22, 0.28);
  border-left: 0;
  border-radius: 0 4px 4px 0;
  box-shadow: 5px 8px 14px rgba(45, 35, 24, 0.18);
  color: #fffdf8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 11px 9px;
}

.book-cover-face span {
  font-size: 0.62rem;
}

.book-cover-face strong {
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
}

.book-card-copy {
  align-content: center;
  display: grid;
  gap: 8px;
}

.book-card-copy > strong {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.18;
}

.book-card-copy > span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.book-card-compact {
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 118px;
}

.book-card-compact .book-card-copy > span {
  display: none;
}

.catalog-list {
  border-top: 1px solid var(--line);
  display: grid;
  margin-top: 24px;
}

.catalog-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 14px minmax(0, 1fr) minmax(190px, auto);
  padding: 16px 0;
  text-decoration: none;
}

.catalog-mark {
  background: var(--book-color);
  height: 44px;
  width: 10px;
}

.catalog-row strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0;
}

.catalog-row small {
  color: var(--muted);
  display: block;
  line-height: 1.55;
  margin-top: 4px;
}

.reader-frame {
  max-width: 1080px;
}

.book-reader-shell {
  padding: 0;
}

.reader-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 52px;
  padding: 0 20px;
}

.reader-close,
.reader-action,
.reader-logo {
  text-decoration: none;
}

.reader-close,
.reader-actions,
.reader-action {
  color: var(--ink);
  font-size: 0.8rem;
}

.reader-logo {
  font-family: var(--serif);
  font-size: 1.28rem;
}

.reader-actions {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: end;
}

.book-reader {
  background:
    repeating-linear-gradient(90deg, rgba(22, 23, 21, 0.018) 0 1px, transparent 1px 86px),
    linear-gradient(180deg, rgba(250, 246, 238, 0.74), rgba(238, 229, 216, 0.72));
  display: grid;
  gap: 20px;
  padding: 48px 38px 20px;
  position: relative;
}

.reader-ribbon {
  background: var(--accent);
  color: #fffdf8;
  font-size: 0.72rem;
  padding: 32px 8px 24px;
  position: absolute;
  right: 43px;
  text-align: center;
  top: 78px;
  width: 42px;
  writing-mode: vertical-rl;
  z-index: 4;
}

.reader-ribbon::after {
  border-left: 21px solid transparent;
  border-right: 21px solid transparent;
  border-top: 18px solid var(--accent);
  bottom: -18px;
  content: '';
  left: 0;
  position: absolute;
}

.book-pages {
  display: grid;
  filter: drop-shadow(0 16px 22px rgba(43, 34, 23, 0.2));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 820px;
  min-height: 560px;
  position: relative;
  width: 100%;
}

.book-pages::after {
  background: linear-gradient(90deg, rgba(37, 28, 18, 0.24), rgba(255, 255, 255, 0.3), rgba(37, 28, 18, 0.16));
  bottom: 0;
  content: '';
  left: calc(50% - 7px);
  position: absolute;
  top: 0;
  width: 14px;
  z-index: 4;
}

.js-enabled .reader-page {
  display: none;
}

.js-enabled .reader-page.is-active,
.js-enabled .reader-page.is-next {
  display: grid;
}

.reader-page {
  align-content: start;
  background:
    linear-gradient(90deg, rgba(35, 28, 18, 0.05), transparent 18%),
    var(--paper-strong);
  border: 1px solid var(--line-strong);
  min-height: 560px;
  overflow: hidden;
  padding: 46px 58px;
  position: relative;
  z-index: 1;
}

.reader-page.is-active {
  border-radius: 8px 0 0 8px;
  border-right: 0;
  padding-right: 64px;
}

.reader-page.is-next {
  border-left: 0;
  border-radius: 0 8px 8px 0;
  padding-left: 64px;
}

.reader-cover {
  align-content: center;
  gap: 22px;
  text-align: center;
}

.reader-cover-book {
  display: grid;
  gap: 20px;
}

.reader-cover-book h1 {
  font-family: var(--serif);
  font-size: 2.32rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.24;
  margin: 0;
}

.reader-cover-book p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 auto;
  max-width: 260px;
}

.reader-ornament {
  border-bottom: 1px solid var(--line-strong);
  display: block;
  height: 24px;
  margin: 6px auto;
  width: 44px;
}

.reader-page-number {
  color: var(--accent-strong);
  font-size: 0.76rem;
  margin-bottom: 20px;
}

.reader-body {
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.88;
}

.reader-body h2,
.reader-body h3,
.article-body h2,
.article-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.24;
  margin: 1.6em 0 0.5em;
}

.reader-body h2,
.article-body h2 {
  font-size: 1.42rem;
}

.reader-body h3,
.article-body h3 {
  font-size: 1.18rem;
}

.reader-body p,
.reader-body ul,
.reader-body ol,
.reader-body blockquote,
.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
  margin: 1em 0;
}

.reader-body a,
.article-body a {
  color: var(--accent-strong);
}

.reader-body blockquote,
.article-body blockquote {
  border-left: 3px solid var(--accent);
  color: var(--muted);
  padding-left: 16px;
}

.reader-body code,
.article-body code {
  background: rgba(31, 37, 34, 0.08);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.12rem 0.28rem;
}

.reader-end {
  align-content: center;
  gap: 14px;
}

.reader-end .library-card {
  box-shadow: none;
}

.related-books {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.reader-controls {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: center;
}

.reader-button {
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.4rem;
  height: 54px;
  min-height: 54px;
  padding: 0;
  width: 54px;
}

.reader-button:hover {
  background: var(--paper-strong);
}

.reader-progress-wrap {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 250px;
}

.reader-progress {
  font-family: var(--serif);
  font-size: 0.98rem;
}

.reader-dots {
  align-items: center;
  display: flex;
  gap: 20px;
}

.reader-dots span {
  background: var(--line-strong);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.reader-dots span.is-active {
  background: var(--accent);
}

.reader-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  font-size: 0.82rem;
  gap: 20px;
  justify-content: center;
  padding-top: 14px;
}

.reader-footer a {
  text-decoration: none;
}

.plain-article {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 18px 24px 24px;
}

.plain-article summary {
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.article-body {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.84;
  max-width: 760px;
  padding: 22px 0 0;
}

.article-body h2:first-child {
  font-size: 2.4rem;
  line-height: 1.08;
  margin-top: 0;
}

.article-frame {
  max-width: 980px;
  overflow: hidden;
}

.newsletter-article {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 253, 247, 0.7), transparent 34%),
    repeating-linear-gradient(0deg, rgba(31, 27, 22, 0.018) 0 1px, transparent 1px 6px),
    rgba(251, 247, 239, 0.88);
}

.newsletter-nav {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 58px;
  padding: 0 24px;
}

.newsletter-nav-simple {
  grid-template-columns: 1fr auto 1fr;
}

.newsletter-nav a {
  text-decoration: none;
}

.newsletter-back,
.newsletter-actions {
  color: var(--ink);
  font-size: 0.8rem;
}

.newsletter-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
}

.newsletter-actions {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

.newsletter-translation-link {
  color: var(--accent-strong);
}

.newsletter-header {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 74px 44px 54px;
  text-align: center;
}

.newsletter-header h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.7rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
  max-width: 820px;
}

.newsletter-header > p:not(.section-label) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}

.newsletter-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.82rem;
  gap: 8px;
  justify-content: center;
}

.newsletter-meta span + span::before {
  content: '/';
  margin-right: 8px;
}

.newsletter-body {
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.92;
  margin: 0 auto;
  max-width: 720px;
  padding: 56px 28px 66px;
}

.newsletter-body h2,
.newsletter-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.24;
  margin: 2.1em 0 0.6em;
}

.newsletter-body h2 {
  font-size: 1.72rem;
}

.newsletter-body h3 {
  font-size: 1.28rem;
}

.newsletter-body p,
.newsletter-body ul,
.newsletter-body ol,
.newsletter-body blockquote {
  margin: 1.05em 0;
}

.newsletter-body a {
  color: var(--accent-strong);
}

.newsletter-body blockquote {
  border-left: 3px solid var(--accent);
  color: var(--muted);
  padding-left: 16px;
}

.newsletter-body code {
  background: rgba(31, 37, 34, 0.08);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.12rem 0.28rem;
}

.newsletter-end {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 30px;
  margin: 0 auto;
  max-width: 760px;
  padding: 34px 28px 48px;
}

.newsletter-end .library-card {
  box-shadow: none;
}

.library-card-newsletter {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.library-card-newsletter .library-card-pin {
  display: none;
}

.library-card-newsletter .library-card-inner {
  gap: 14px;
  padding: 0;
}

.library-card-newsletter .section-label {
  color: var(--accent-strong);
}

.library-card-newsletter h2 {
  font-size: 1.48rem;
}

.library-card-newsletter p:not(.privacy) {
  font-size: 0.92rem;
  max-width: 520px;
}

.library-card-newsletter .subscribe-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 620px;
}

.library-card-newsletter .form-row {
  margin: 0;
}

.library-card-newsletter input[type='email'],
.library-card-newsletter button {
  min-height: 38px;
}

.library-card-newsletter button {
  min-width: 138px;
}

.library-card-newsletter .privacy {
  grid-column: 1 / -1;
}

.newsletter-related {
  display: grid;
  gap: 10px;
}

.newsletter-related h2 {
  font-family: var(--serif);
  font-size: 1.26rem;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
}

.newsletter-related-list {
  border-top: 1px solid var(--line);
  display: grid;
}

.newsletter-related-list a {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 72px minmax(0, 1fr) 90px;
  padding: 14px 0;
  text-decoration: none;
}

.newsletter-related-list span,
.newsletter-related-list small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
}

.newsletter-related-list strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  padding: 0.26rem 0.5rem;
}

body.book-concept-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 253, 247, 0.72), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(180, 165, 142, 0.2), transparent 24%),
    repeating-linear-gradient(0deg, rgba(31, 27, 22, 0.018) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, #f7f0e6 0%, #eee2d2 100%);
  min-height: 100vh;
  padding: 28px;
}

.book-concept-page main {
  min-height: calc(100vh - 56px);
}

.book-concept-frame {
  color: #191714;
  font-family: var(--serif);
  margin: 0 auto;
  position: relative;
}

.concept-topbar {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  position: relative;
  z-index: 4;
}

.concept-home-topbar {
  justify-content: flex-start;
}

.concept-wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  text-decoration: none;
}

.concept-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.concept-nav a,
.concept-footer a,
.concept-language-line a {
  color: inherit;
  text-decoration: none;
}

.concept-nav a,
.concept-footer a {
  font-family: var(--sans);
  font-size: 0.82rem;
}

.concept-edition-link {
  border: 1px solid rgba(42, 35, 27, 0.22);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
}

.concept-kicker,
.chapter-number,
.chapter-date,
.book-page-topline,
.concept-language-line,
.concept-footer,
.option-preview span {
  font-family: var(--sans);
}

.concept-kicker {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0;
}

.concept-title-rule {
  background: var(--line-strong);
  display: block;
  height: 1px;
  margin: 0 auto;
  width: 54px;
}

.concept-language-line {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.84rem;
  gap: 10px;
  justify-content: center;
}

.book-concept-b {
  background:
    linear-gradient(90deg, rgba(69, 57, 42, 0.08), transparent 34px, transparent calc(100% - 34px), rgba(69, 57, 42, 0.05)),
    radial-gradient(circle at 52% 0%, rgba(255, 253, 247, 0.82), transparent 42%),
    repeating-linear-gradient(0deg, rgba(38, 32, 25, 0.02) 0 1px, transparent 1px 5px),
    #fbf6ed;
  border: 1px solid #bcae9d;
  border-radius: 10px;
  box-shadow:
    0 30px 80px rgba(54, 42, 29, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  max-width: 1180px;
  min-height: calc(100vh - 56px);
  overflow: hidden;
  padding: 34px 46px 28px;
}

.book-concept-b::before,
.book-concept-b::after {
  background: repeating-linear-gradient(90deg, rgba(36, 30, 23, 0.16) 0 1px, transparent 1px 4px);
  bottom: 0;
  content: '';
  opacity: 0.22;
  position: absolute;
  top: 0;
  width: 22px;
}

.book-concept-b::before {
  left: 0;
}

.book-concept-b::after {
  right: 0;
}

.editorial-title-page {
  display: grid;
  gap: 18px;
  justify-items: center;
  margin: 74px auto 78px;
  max-width: 780px;
  text-align: center;
}

.editorial-title-page h1,
.title-page-inner h1,
.compare-heading h1 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
}

.editorial-title-page h1 {
  font-size: 7.4rem;
}

.editorial-title-page > p:not(.concept-kicker),
.title-page-inner > p,
.compare-heading > p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
  margin: 0;
  max-width: 560px;
}

.book-home-final .editorial-title-page {
  margin: 58px auto 72px;
}

.book-home-actions {
  display: flex;
  justify-content: center;
}

.book-contents {
  margin: 0 auto;
  max-width: 980px;
}

.book-contents-head {
  align-items: end;
  border-bottom: 1px solid rgba(70, 58, 44, 0.22);
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
}

.book-home-contents-head {
  justify-content: flex-start;
}

.book-contents-head h2,
.contents-page-inner h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.book-contents-head span {
  color: var(--accent-strong);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
}

.contents-list {
  display: grid;
}

.contents-row {
  align-items: center;
  border-bottom: 1px solid rgba(70, 58, 44, 0.18);
  display: grid;
  gap: 18px;
  grid-template-columns: 112px 18px minmax(0, 1fr) 108px 30px;
  min-height: 96px;
  padding: 18px 0;
  text-decoration: none;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.contents-row:hover,
.contents-row:focus-visible {
  background: rgba(150, 59, 49, 0.045);
  color: var(--accent-strong);
  outline: none;
  transform: translateX(6px);
}

.contents-row.is-upcoming {
  opacity: 0.68;
}

.chapter-number,
.chapter-date {
  color: var(--muted);
  font-size: 0.78rem;
}

.chapter-slash {
  color: rgba(91, 78, 64, 0.42);
}

.chapter-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.54rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.22;
}

.chapter-desc {
  color: var(--muted);
  display: block;
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 1.55;
  margin-top: 8px;
}

.chapter-arrow {
  font-family: var(--serif);
  font-size: 1.28rem;
  justify-self: end;
}

.concept-footer {
  align-items: center;
  border-top: 1px solid rgba(70, 58, 44, 0.18);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 34px;
  padding-top: 18px;
}

.book-concept-c {
  display: grid;
  gap: 18px;
  max-width: 1320px;
  min-height: calc(100vh - 56px);
}

.book-concept-c .concept-topbar {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 4px;
  width: 100%;
}

.open-book-spread {
  display: grid;
  filter: drop-shadow(0 28px 46px rgba(47, 36, 24, 0.2));
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: 740px;
  position: relative;
  width: 100%;
}

.open-book-spread::before {
  background: radial-gradient(ellipse at center, rgba(46, 34, 22, 0.26), transparent 68%);
  bottom: -35px;
  content: '';
  height: 72px;
  left: 3%;
  position: absolute;
  right: 3%;
  z-index: 0;
}

.open-book-spread::after {
  background:
    linear-gradient(90deg, rgba(43, 32, 21, 0.32), rgba(255, 253, 247, 0.5), rgba(43, 32, 21, 0.22));
  bottom: 1px;
  content: '';
  left: calc(50% - 10px);
  position: absolute;
  top: 1px;
  width: 20px;
  z-index: 5;
}

.book-page {
  background:
    repeating-linear-gradient(0deg, rgba(43, 35, 25, 0.018) 0 1px, transparent 1px 6px),
    #fffaf0;
  border: 1px solid #a99a87;
  min-height: 740px;
  position: relative;
  z-index: 1;
}

.book-page-left {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 38%, rgba(54, 41, 27, 0.08) 100%),
    repeating-linear-gradient(0deg, rgba(43, 35, 25, 0.018) 0 1px, transparent 1px 6px),
    #fffaf0;
  border-radius: 9px 1px 1px 9px;
  border-right: 0;
  box-shadow: inset 18px 0 24px rgba(54, 41, 27, 0.06);
}

.book-page-right {
  background:
    linear-gradient(90deg, rgba(54, 41, 27, 0.09), transparent 14%, rgba(255, 255, 255, 0.24)),
    repeating-linear-gradient(0deg, rgba(43, 35, 25, 0.018) 0 1px, transparent 1px 6px),
    #fffaf0;
  border-left: 0;
  border-radius: 1px 9px 9px 1px;
  box-shadow: inset -18px 0 24px rgba(54, 41, 27, 0.05);
}

.book-page-left::before,
.book-page-right::before {
  background: repeating-linear-gradient(0deg, rgba(83, 70, 54, 0.2) 0 1px, rgba(255, 253, 247, 0.3) 1px 4px);
  bottom: 18px;
  content: '';
  opacity: 0.32;
  position: absolute;
  top: 18px;
  width: 14px;
}

.book-page-left::before {
  left: -10px;
}

.book-page-right::before {
  right: -10px;
}

.book-page-inner {
  display: grid;
  margin: 0 auto;
  max-width: 390px;
  position: relative;
  z-index: 2;
}

.title-page-inner {
  align-content: center;
  gap: 18px;
  justify-items: center;
  min-height: 740px;
  padding: 72px 48px;
  text-align: center;
}

.title-page-inner h1 {
  font-size: 4.8rem;
}

.title-page-inner small {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.92rem;
  margin-top: 28px;
}

.book-page-topline {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  gap: 14px;
  justify-content: flex-end;
  padding: 30px 42px 0;
  position: relative;
  z-index: 2;
}

.book-page-topline a {
  color: inherit;
  text-decoration: none;
}

.contents-page-inner {
  align-content: start;
  gap: 18px;
  max-width: 500px;
  padding: 90px 36px 56px;
}

.book-concept-c .contents-list {
  margin-top: 8px;
}

.book-concept-c .contents-row {
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr) 70px 24px;
  min-height: 74px;
  padding: 14px 0;
}

.book-concept-c .chapter-slash,
.book-concept-c .chapter-desc {
  display: none;
}

.book-concept-c .chapter-title {
  font-size: 1.08rem;
  line-height: 1.28;
}

.book-concept-c .chapter-number,
.book-concept-c .chapter-date {
  font-size: 0.72rem;
}

.book-page-number {
  bottom: 30px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.86rem;
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
}

.book-options-compare {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.82), rgba(248, 240, 228, 0.9)),
    repeating-linear-gradient(0deg, rgba(31, 27, 22, 0.018) 0 1px, transparent 1px 6px);
  border: 1px solid #bcae9d;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(54, 42, 29, 0.16);
  max-width: 1080px;
  min-height: calc(100vh - 56px);
  padding: 34px 44px 44px;
}

.compare-heading {
  display: grid;
  gap: 16px;
  justify-items: center;
  margin: 76px auto 52px;
  max-width: 690px;
  text-align: center;
}

.compare-heading h1 {
  font-size: 6.2rem;
}

.option-preview-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-preview {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.7), rgba(238, 229, 216, 0.72)),
    #fbf6ed;
  border: 1px solid rgba(79, 66, 51, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  min-height: 250px;
  padding: 28px;
  position: relative;
  text-decoration: none;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.option-preview:hover,
.option-preview:focus-visible {
  box-shadow: 0 18px 34px rgba(54, 42, 29, 0.16);
  outline: none;
  transform: translateY(-4px);
}

.option-preview strong {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.08;
}

.option-preview small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.6;
}

.option-preview::after {
  bottom: 28px;
  color: var(--accent-strong);
  content: '→';
  font-size: 1.6rem;
  position: absolute;
  right: 28px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.72rem;
  gap: 14px;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 20px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.empty-shelf {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 28px;
}

.mobile-dock {
  display: none;
}

@media (max-width: 980px) {
  body.book-concept-page {
    padding: 14px;
  }

  .book-concept-page main,
  .book-concept-b,
  .book-concept-c,
  .book-options-compare {
    min-height: calc(100vh - 28px);
  }

  .book-concept-b,
  .book-options-compare {
    padding: 24px 22px;
  }

  .concept-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .concept-home-topbar {
    align-items: center;
    flex-direction: row;
  }

  .concept-nav {
    justify-content: flex-start;
  }

  .editorial-title-page {
    margin: 58px auto 54px;
  }

  .editorial-title-page h1 {
    font-size: 4.7rem;
  }

  .contents-row {
    gap: 10px 14px;
    grid-template-columns: 92px minmax(0, 1fr) 30px;
    min-height: 88px;
  }

  .chapter-slash {
    display: none;
  }

  .chapter-date {
    grid-column: 2 / 3;
  }

  .chapter-title {
    font-size: 1.26rem;
  }

  .open-book-spread {
    display: block;
    filter: drop-shadow(0 18px 28px rgba(47, 36, 24, 0.18));
    min-height: 0;
  }

  .open-book-spread::after {
    display: none;
  }

  .book-page,
  .title-page-inner {
    min-height: auto;
  }

  .book-page-left,
  .book-page-right {
    border: 1px solid #a99a87;
    border-radius: 8px;
  }

  .book-page-right {
    margin-top: 14px;
  }

  .title-page-inner,
  .contents-page-inner {
    padding: 54px 28px;
  }

  .title-page-inner h1,
  .compare-heading h1 {
    font-size: 3.6rem;
  }

  .book-concept-c .contents-row {
    grid-template-columns: 74px minmax(0, 1fr) 60px 24px;
  }

  .option-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .global-mast {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .edition-key {
    justify-content: start;
  }

  .home-panel,
  .library-floor-grid,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .asset-backed-library .library-floor-grid {
    grid-template-columns: minmax(0, 63.5%) minmax(260px, 36.5%);
  }

  .hero-copy {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

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

  .asset-backed-library .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: 58px;
  }

  .page-shell {
    padding: 14px 10px 22px;
  }

  .archive-simple {
    padding: 34px 22px 48px;
  }

  .archive-simple-head {
    align-items: start;
    flex-direction: column;
  }

  .archive-post-row {
    gap: 8px 12px;
    grid-template-columns: minmax(0, 1fr) 28px;
  }

  .archive-post-date,
  .archive-post-main,
  .archive-post-category {
    grid-column: 1;
  }

  .archive-post-row .chapter-arrow {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .mast-brand {
    font-size: 2.28rem;
  }

  .global-mast {
    gap: 10px;
    margin-bottom: 12px;
  }

  .global-mast p,
  .edition-key {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr;
    min-height: 48px;
    padding: 0 14px;
  }

  .nav a:not(.edition-pill):not(.search-link) {
    display: none;
  }

  .nav {
    gap: 10px;
  }

  .home-panel {
    background-position: center top;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    background: rgba(250, 246, 238, 0.72);
    padding: 24px 22px 18px;
  }

  .hero-copy h1,
  .catalog-hero h1 {
    font-size: 2.2rem;
  }

  .hero-copy > p:not(.section-label) {
    max-width: none;
  }

  .desk-scene {
    min-height: 230px;
  }

  .desk-scene::before {
    inset: 0;
  }

  .desk-scene::after {
    display: block;
    height: 42px;
  }

  .desk-photo {
    min-height: 230px;
  }

  .desk-open-book {
    min-height: 190px;
    width: min(430px, 90%);
  }

  .desk-page {
    min-height: 190px;
    padding: 16px;
  }

  .desk-page-right {
    padding-left: 22px;
  }

  .page-image {
    width: 88%;
  }

  .latest-shelf,
  .library-floor,
  .catalog-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .asset-backed-shelf,
  .asset-backed-library {
    padding: 0;
  }

  .asset-backed-shelf {
    aspect-ratio: auto;
    min-height: 310px;
    width: 100%;
  }

  .asset-backed-shelf .section-head {
    align-items: center;
    flex-direction: row;
    left: 18px;
    right: 18px;
    top: 18px;
  }

  .asset-backed-shelf .shelf-run {
    gap: 2.1%;
    grid-template-columns: 17.2% 13.8% 13.8% 13.8% 14.7% 13.9%;
    inset: 25% 2.5% 16.8% 2.8%;
  }

  .asset-backed-library {
    aspect-ratio: auto;
    background:
      linear-gradient(180deg, rgba(250, 246, 238, 0.18), rgba(250, 246, 238, 0.42)),
      rgba(251, 247, 239, 0.78);
    min-height: 620px;
  }

  .asset-backed-library > .section-head {
    left: 20px;
    top: 22px;
  }

  .asset-backed-library .library-floor-grid {
    grid-template-columns: 1fr;
    padding: 64px 20px 18px;
    position: relative;
  }

  .asset-backed-library .category-grid {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }

  .asset-backed-library .category-card {
    background:
      url('/assets/ui/bookshelf-v2/category-cubby-bg.png') center / cover no-repeat,
      rgba(255, 253, 248, 0.66);
    border: 0;
    height: auto;
    min-height: 150px;
    padding: 12px;
  }

  .asset-backed-library .mini-book-row {
    bottom: 18px;
    display: flex;
    gap: 2.5%;
    height: 84px;
    left: 14px;
    width: calc(100% - 28px);
  }

  .asset-backed-library .category-card::after {
    display: none;
  }

  .asset-backed-library .library-card {
    background:
      url('/assets/ui/bookshelf-v2/library-card-bg.png') center / cover no-repeat,
      rgba(255, 253, 248, 0.68);
    border: 0;
    justify-self: stretch;
    margin-bottom: 0;
    margin-top: 12px;
    width: 100%;
  }

  .asset-backed-library .library-card-inner {
    max-width: none;
    padding: 18px;
  }

  .category-grid,
  .catalog-shelf,
  .book-grid {
    grid-template-columns: 1fr;
  }

  .reader-toolbar {
    grid-template-columns: 1fr auto;
    min-height: 50px;
    padding: 0 14px;
  }

  .reader-actions {
    display: none;
  }

  .book-reader {
    padding: 18px 12px 12px;
  }

  .reader-ribbon {
    display: none;
  }

  .book-pages {
    grid-template-columns: 1fr;
    max-width: 620px;
    min-height: auto;
  }

  .book-pages::after {
    display: none;
  }

  .reader-page,
  .reader-page.is-active,
  .reader-page.is-next {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    min-height: min(590px, calc(100vh - 186px));
    padding: 32px 24px;
  }

  .reader-page.is-next {
    display: none !important;
  }

  .reader-cover-book h1 {
    font-size: 2rem;
  }

  .reader-body {
    font-size: 1rem;
  }

  .reader-controls {
    background: rgba(250, 246, 238, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    bottom: 64px;
    gap: 14px;
    padding: 10px;
    position: sticky;
    z-index: 8;
  }

  .reader-progress-wrap {
    min-width: 140px;
  }

  .reader-dots {
    gap: 8px;
  }

  .reader-footer {
    display: none;
  }

  .plain-article {
    display: none;
  }

  .newsletter-nav {
    gap: 10px;
    grid-template-columns: 1fr auto;
    min-height: 54px;
    padding: 0 16px;
  }

  .newsletter-brand {
    justify-self: end;
  }

  .newsletter-actions {
    border-top: 1px solid rgba(70, 58, 44, 0.14);
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding: 10px 0 12px;
  }

  .newsletter-header {
    padding: 48px 22px 38px;
  }

  .newsletter-header h1 {
    font-size: 2.7rem;
  }

  .newsletter-body {
    font-size: 1.04rem;
    line-height: 1.88;
    padding: 38px 22px 48px;
  }

  .newsletter-end {
    padding: 28px 18px 38px;
  }

  .library-card-newsletter .subscribe-form {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .library-card-newsletter .privacy {
    grid-column: auto;
  }

  .newsletter-related-list a {
    gap: 8px 12px;
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .newsletter-related-list small {
    grid-column: 2;
  }

  .mobile-dock {
    background: rgba(250, 246, 238, 0.96);
    border: 1px solid var(--line-strong);
    border-radius: 8px 8px 0 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    left: 0;
    min-height: 54px;
    position: fixed;
    right: 0;
    z-index: 20;
  }

  .mobile-dock a {
    align-items: center;
    color: var(--ink);
    display: flex;
    font-size: 0.74rem;
    justify-content: center;
    text-decoration: none;
  }
}

@media (max-width: 560px) {
  .site-frame {
    border-radius: var(--radius);
  }

  .edition-pill {
    display: inline-flex;
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-copy h1,
  .catalog-hero h1 {
    font-size: 1.86rem;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .shelf-run {
    gap: 16px;
  }

  .shelf-book {
    flex-basis: 84px;
    min-height: 134px;
  }

  .asset-backed-shelf {
    background-size: auto 100%;
    background-position: left bottom;
    min-height: 280px;
  }

  .asset-backed-shelf .section-head {
    flex-direction: row;
  }

  .asset-backed-shelf .section-head a {
    font-size: 0.7rem;
  }

  .asset-backed-shelf .shelf-run {
    gap: 4%;
    grid-template-columns: 34% 28% 28%;
    inset: 23% 4% 23%;
  }

  .asset-backed-shelf .shelf-book:nth-child(n + 4) {
    display: none;
  }

  .asset-backed-shelf .shelf-book,
  .asset-backed-shelf .shelf-book.is-featured,
  .asset-backed-shelf .shelf-book-placeholder {
    gap: 7px;
    padding: 0;
  }

  .asset-backed-shelf .shelf-book-title {
    font-size: 0.66rem;
  }

  .asset-backed-shelf .shelf-book-meta,
  .asset-backed-shelf .shelf-book-date {
    font-size: 0.5rem;
  }

  .library-card-hero .subscribe-form {
    grid-template-columns: 1fr;
  }

  .library-floor-grid {
    gap: 16px;
  }

  .catalog-hero {
    padding: 30px 22px;
  }

  .catalog-row {
    align-items: start;
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .catalog-row .book-meta {
    grid-column: 2;
  }

  .reader-button {
    height: 46px;
    min-height: 46px;
    width: 46px;
  }

  .newsletter-nav {
    align-items: start;
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  .newsletter-brand {
    justify-self: start;
  }

  .newsletter-actions {
    padding-bottom: 0;
  }

  .newsletter-header h1 {
    font-size: 2.18rem;
  }

  .newsletter-meta {
    align-items: center;
    flex-direction: column;
    gap: 4px;
  }

  .newsletter-meta span + span::before {
    content: none;
    margin-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
