:root {
    --ink-950: #102a43;
    --ink-800: #243b53;
    --ink-650: #486581;
    --ink-500: #627d98;
    --blue-700: #1f4f8f;
    --blue-100: #dbe8f3;
    --coral-600: #c94632;
    --coral-500: #e45d45;
    --paper: #f4f7fa;
    --paper-deep: #e8eef3;
    --white: #ffffff;
    --success: #226b52;
    --progress: #8a5412;
    --border: #cad7e2;
    --focus: #f0a202;
    --shadow-card: 0 16px 40px rgba(16, 42, 67, 0.08);
    --shell: 1200px;
    --font-display: Georgia, "Times New Roman", serif;
    --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
}

body {
    margin: 0;
    color: var(--ink-950);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button,
select,
a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--white);
    background: var(--ink-950);
    border-radius: 0.35rem;
    transform: translateY(-180%);
    transition: transform 180ms ease;
}

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

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

.shell {
    width: min(calc(100% - 2rem), var(--shell));
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(202, 215, 226, 0.75);
    background: rgba(244, 247, 250, 0.94);
}

.site-header__inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    color: var(--ink-950);
    text-decoration: none;
}

.brand__mark {
    display: flex;
    width: 34px;
    height: 31px;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    border-bottom: 2px solid currentColor;
}

.brand__mark i {
    display: block;
    width: 7px;
    background: currentColor;
}

.brand__mark i:nth-child(1) { height: 22px; }
.brand__mark i:nth-child(2) { height: 27px; background: var(--coral-500); }
.brand__mark i:nth-child(3) { height: 19px; }

.brand__name {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.header-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--ink-800);
    font-size: 0.9rem;
    font-weight: 700;
    text-underline-offset: 0.28rem;
    transition: color 180ms ease;
}

.header-link:hover {
    color: var(--coral-600);
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 3vw, 1.5rem);
}

.hero {
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(16, 42, 67, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 42, 67, 0.028) 1px, transparent 1px);
    background-size: 28px 28px;
}

.hero__grid {
    display: grid;
    min-height: 590px;
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
    padding-block: clamp(4.5rem, 9vw, 8rem);
}

.hero__copy {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--coral-600);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1,
h2 {
    font-family: var(--font-display);
    text-wrap: balance;
}

h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.75rem, 7.5vw, 5.7rem);
    font-weight: 500;
    letter-spacing: -0.058em;
    line-height: 0.98;
}

.hero__lead {
    max-width: 650px;
    margin: 1.75rem 0 1.4rem;
    color: var(--ink-650);
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    line-height: 1.7;
}

.text-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.55rem;
    color: var(--blue-700);
    font-weight: 800;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.35rem;
    transition: color 180ms ease, gap 180ms ease;
}

.text-link:hover {
    gap: 0.8rem;
    color: var(--coral-600);
}

.shelf-scene {
    display: none;
}

.thema-section {
    scroll-margin-top: 1rem;
    padding-block: clamp(3.5rem, 7vw, 6rem);
    color: var(--white);
    background: var(--ink-950);
}

.thema-layout {
    display: grid;
    gap: 2rem;
}

.thema-intro {
    max-width: 700px;
}

.thema-intro .eyebrow {
    color: #ff8f78;
}

.thema-intro h2 {
    color: var(--white);
}

.thema-intro p:not(.eyebrow) {
    max-width: 650px;
    margin: 1.2rem 0 1rem;
    color: #c8d6e3;
}

.thema-intro .text-link {
    color: #a9cdf2;
}

.thema-intro .text-link:hover {
    color: var(--white);
}

.thema-explorer {
    min-width: 0;
    border: 1px solid rgba(219, 232, 243, 0.26);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.045);
}

.thema-explorer summary {
    display: grid;
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.thema-explorer summary::-webkit-details-marker {
    display: none;
}

.thema-explorer summary small {
    color: #9fb3c5;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.thema-explorer summary svg {
    transition: transform 180ms ease;
}

.thema-explorer[open] summary svg {
    transform: rotate(180deg);
}

.thema-grid {
    display: grid;
    gap: 1px;
    margin: 0;
    padding: 1px;
    border-top: 1px solid rgba(219, 232, 243, 0.2);
    background: rgba(219, 232, 243, 0.16);
    list-style: none;
}

.thema-grid li {
    min-width: 0;
    background: var(--ink-950);
}

.thema-topic {
    display: grid;
    min-height: 112px;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 0.35rem 0.75rem;
    align-items: start;
    padding: 1rem;
    color: var(--white);
    text-decoration: none;
    transition: background-color 180ms ease;
}

a.thema-topic:hover {
    background: rgba(169, 205, 242, 0.12);
}

.thema-topic__code {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    grid-row: 1 / span 2;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(169, 205, 242, 0.52);
    border-radius: 50%;
    color: #a9cdf2;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.thema-topic__name {
    align-self: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.25;
}

.thema-topic small {
    color: #9fb3c5;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.thema-topic--empty {
    color: #c8d6e3;
}

.thema-topic--empty .thema-topic__code {
    border-color: rgba(159, 179, 197, 0.28);
    color: #9fb3c5;
}

.catalog-section {
    scroll-margin-top: 1rem;
    padding-block: clamp(3rem, 6vw, 5.5rem);
    border-bottom: 1px solid var(--border);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(16, 42, 67, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 42, 67, 0.022) 1px, transparent 1px);
    background-size: 28px 28px;
}

.catalog-intro {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.catalog-intro h1 {
    max-width: 900px;
    font-size: clamp(2.5rem, 6vw, 4.7rem);
}

h2 {
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 3.8rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.result-count {
    margin: 0 0 0.4rem;
    color: var(--ink-500);
    font-size: 0.9rem;
    font-weight: 650;
}

.catalog-filters {
    display: grid;
    gap: 1rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    padding: 1.15rem;
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: var(--white);
    box-shadow: 0 8px 28px rgba(16, 42, 67, 0.045);
}

.results-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.results-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.field {
    min-width: 0;
}

.field label {
    display: block;
    margin: 0 0 0.42rem;
    color: var(--ink-800);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.035em;
}

.field input,
.field select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 0.38rem;
    color: var(--ink-950);
    background: var(--white);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input {
    padding: 0.75rem 0.85rem 0.75rem 2.75rem;
}

.field select {
    padding: 0.7rem 2.2rem 0.7rem 0.8rem;
    cursor: pointer;
}

.field input::placeholder {
    color: #7890a5;
}

.field input:focus,
.field select:focus {
    border-color: var(--blue-700);
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 79, 143, 0.15);
}

.search-control {
    position: relative;
}

.search-control svg {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    color: var(--ink-500);
    pointer-events: none;
    transform: translateY(-50%);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.15rem;
    border: 1px solid var(--blue-700);
    border-radius: 0.38rem;
    color: var(--white);
    background: var(--blue-700);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
    border-color: var(--ink-950);
    background: var(--ink-950);
    transform: translateY(-1px);
}

.clear-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--ink-650);
    font-size: 0.86rem;
    font-weight: 700;
    text-underline-offset: 0.25rem;
}

.clear-link:hover {
    color: var(--coral-600);
}

.book-grid {
    display: grid;
    gap: 1.25rem;
}

.book-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.book-card:hover {
    border-color: #9fb3c5;
    box-shadow: 0 16px 36px rgba(16, 42, 67, 0.1);
}

.book-cover {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 1rem 0.82rem 1rem 1.05rem;
    color: var(--cover-ink);
    background: var(--cover-bg);
    isolation: isolate;
}

.book-cover--image {
    padding: 0;
    background: var(--paper-deep);
}

.book-cover--image::before,
.book-cover--image::after {
    display: none;
}

.book-cover--image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.book-cover::before {
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 0;
    width: 8px;
    background: rgba(0, 0, 0, 0.18);
    content: "";
}

.book-cover::after {
    position: absolute;
    z-index: -1;
    right: -18px;
    bottom: 20%;
    width: 74px;
    height: 74px;
    border: 13px solid var(--cover-accent);
    border-radius: 50%;
    content: "";
    opacity: 0.92;
}

.book-cover--1 { --cover-bg: #173f5f; --cover-accent: #f2c14e; --cover-ink: #fff; }
.book-cover--2 { --cover-bg: #704c5e; --cover-accent: #f3d9b1; --cover-ink: #fff; }
.book-cover--3 { --cover-bg: #234f3e; --cover-accent: #d9e76c; --cover-ink: #fff; }
.book-cover--4 { --cover-bg: #313638; --cover-accent: #e8b04a; --cover-ink: #fff; }
.book-cover--5 { --cover-bg: #7b2d26; --cover-accent: #f3e9d2; --cover-ink: #fff; }
.book-cover--6 { --cover-bg: #a44a3f; --cover-accent: #f6e7cb; --cover-ink: #fff; }
.book-cover--7 { --cover-bg: #264653; --cover-accent: #e9c46a; --cover-ink: #fff; }
.book-cover--8 { --cover-bg: #005f73; --cover-accent: #ee9b00; --cover-ink: #fff; }

.book-cover__rule {
    width: 24px;
    height: 3px;
    margin-bottom: 0.8rem;
    background: var(--cover-accent);
}

.book-cover__category {
    position: relative;
    z-index: 1;
    margin-bottom: 1.1rem;
    font-size: 0.53rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.35;
    text-transform: uppercase;
}

.book-cover strong {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: clamp(1rem, 4vw, 1.3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.book-cover__imprint {
    position: absolute;
    z-index: 1;
    right: 0.55rem;
    bottom: 0.45rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
}

.book-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 1.05rem;
}

.book-card__category {
    margin: 0 0 0.55rem;
    color: var(--coral-600);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.book-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.16rem, 2vw, 1.32rem);
    letter-spacing: -0.02em;
    line-height: 1.13;
    text-wrap: balance;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.book-card__subtitle {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.42rem 0 0;
    color: var(--ink-650);
    font-family: var(--font-display);
    font-size: 0.84rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.book-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--paper-deep);
}

.book-card__detail-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    color: var(--blue-700);
    background: transparent;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: color 180ms ease;
}

.book-card__detail-link:hover {
    color: var(--coral-600);
}

.book-card__detail-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--blue-700);
    transition: background-color 180ms ease;
}

.book-card__detail-icon svg {
    color: var(--white);
    transition: transform 180ms ease;
}

.book-card__detail-link:hover .book-card__detail-icon svg,
.book-card__detail-link:focus-visible .book-card__detail-icon svg {
    transform: translateX(2px);
}

.book-card__detail-link:hover .book-card__detail-icon {
    background: var(--coral-600);
}

.curator-note {
    color: var(--ink-650);
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.catalog-pagination {
    margin-top: 2.5rem;
}

.catalog-pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-link {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.35rem;
    color: var(--ink-800);
    background: var(--white);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.page-link:hover {
    border-color: var(--blue-700);
    color: var(--blue-700);
}

.page-link.is-active {
    border-color: var(--ink-950);
    color: var(--white);
    background: var(--ink-950);
}

.page-link--direction {
    padding-inline: 1rem;
}

.empty-state {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    padding: clamp(2rem, 6vw, 4rem);
    border: 1px dashed #9fb3c5;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.55);
}

.empty-state__mark {
    display: flex;
    width: 86px;
    height: 72px;
    align-items: end;
    gap: 5px;
    border-bottom: 4px solid var(--ink-950);
}

.empty-state__mark i {
    display: block;
    width: 20px;
    background: var(--blue-700);
}

.empty-state__mark i:nth-child(1) { height: 49px; }
.empty-state__mark i:nth-child(2) { height: 65px; background: var(--coral-500); }
.empty-state__mark i:nth-child(3) { height: 42px; }

.empty-state h3 {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.empty-state p {
    max-width: 640px;
    margin: 0 0 0.75rem;
    color: var(--ink-650);
}

.book-detail {
    min-height: calc(100vh - 78px);
    padding-block: clamp(1.25rem, 3vw, 2rem) clamp(2.75rem, 6vw, 4.5rem);
    border-bottom: 1px solid var(--border);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(16, 42, 67, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 42, 67, 0.022) 1px, transparent 1px);
    background-size: 28px 28px;
}

.book-detail > .shell {
    width: min(calc(100% - 2rem), 1360px);
}

.book-detail__back {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: clamp(1rem, 3vw, 1.75rem);
    color: var(--ink-650);
    font-size: 0.86rem;
    font-weight: 800;
    text-underline-offset: 0.28rem;
    transition: color 180ms ease, gap 180ms ease;
}

.book-detail__back:hover {
    gap: 0.65rem;
    color: var(--coral-600);
}

.book-detail__layout {
    display: grid;
    gap: clamp(1.75rem, 5vw, 4rem);
    align-items: start;
}

.book-detail__visual {
    width: min(68vw, 270px);
    margin-inline: auto;
}

.book-detail__cover {
    width: 100%;
    min-height: 0;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 2px 8px 8px 2px;
    box-shadow:
        7px 9px 0 rgba(201, 70, 50, 0.15),
        14px 20px 36px rgba(16, 42, 67, 0.16);
}

.book-detail__cover.book-cover {
    padding: clamp(1.25rem, 4vw, 1.9rem);
}

.book-detail__cover.book-cover--image {
    padding: 0;
}

.book-detail__cover .book-cover__category {
    font-size: 0.7rem;
}

.book-detail__cover.book-cover strong {
    display: block;
    max-width: 88%;
    font-size: clamp(2rem, 8vw, 3rem);
    -webkit-line-clamp: unset;
}

.book-detail__cover-note {
    margin: 0.9rem 0 0;
    color: var(--ink-500);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-align: center;
}

.book-detail__content {
    min-width: 0;
    max-width: 900px;
}

.book-detail__heading {
    padding-bottom: clamp(1.25rem, 3vw, 1.8rem);
    border-bottom: 1px solid var(--border);
}

.book-detail__heading .eyebrow {
    margin-bottom: 0.75rem;
}

.book-detail__heading h1 {
    max-width: 900px;
    font-size: clamp(2.2rem, 6.5vw, 4.15rem);
    line-height: 1;
}

.book-detail__subtitle {
    max-width: 680px;
    margin: 0.8rem 0 0;
    color: var(--ink-650);
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.38rem);
    font-style: italic;
    line-height: 1.45;
}

.book-detail__facts {
    display: flex;
    margin: 0;
    border-bottom: 1px solid var(--border);
}

.book-detail__facts div {
    min-width: 0;
    padding: 0.65rem 0;
}

.book-detail__facts dt {
    margin-bottom: 0.18rem;
    color: var(--ink-500);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.book-detail__facts dd {
    margin: 0;
    color: var(--ink-950);
    font-size: 0.88rem;
    font-weight: 750;
}

.book-detail__section {
    padding-top: clamp(1.4rem, 3vw, 2rem);
}

.book-detail__section + .book-detail__section {
    margin-top: clamp(1.4rem, 3vw, 2rem);
    border-top: 1px solid var(--border);
}

.book-detail__section h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.book-detail__section--description {
    width: 100%;
    max-width: none;
    margin-top: 1.15rem;
    padding: 0.95rem 1.1rem 1rem 1.25rem;
    border-left: 3px solid var(--coral-500);
    background: rgba(255, 255, 255, 0.68);
}

.book-detail__section--description h2 {
    margin-bottom: 0.4rem;
    color: var(--coral-600);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.book-detail__section p {
    max-width: 68ch;
    margin: 0;
    color: var(--ink-800);
    font-size: clamp(1rem, 2vw, 1.08rem);
    line-height: 1.8;
}

.book-detail__section .book-detail__description {
    max-width: none;
    color: var(--ink-950);
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.52;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    overflow-wrap: break-word;
}

.book-detail__section .book-detail__muted {
    color: var(--ink-650);
}

.book-detail__contents {
    counter-reset: chapters;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.book-detail__contents li {
    display: grid;
    min-width: 0;
    grid-template-columns: 2.7rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: baseline;
    padding-block: 0.72rem;
    border-bottom: 1px solid var(--border);
    color: var(--ink-950);
    font-family: var(--font-display);
    font-size: clamp(1.08rem, 2.2vw, 1.28rem);
    font-weight: 700;
    line-height: 1.35;
}

.book-detail__contents li:first-child {
    border-top: 1px solid var(--border);
}

.book-detail__chapter-number {
    color: var(--coral-600);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    font-weight: 850;
    letter-spacing: 0.08em;
}

@media (min-width: 560px) {
    .results-heading {
        flex-direction: row;
        align-items: end;
        gap: 1.5rem;
    }

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

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

    .book-card {
        grid-template-columns: 1fr;
    }

    .book-cover {
        min-height: 295px;
        padding: 1.35rem 1.2rem 1.2rem 1.45rem;
    }

    .book-cover strong {
        max-width: 84%;
        font-size: clamp(1.5rem, 4.4vw, 2rem);
    }

    .book-cover__category {
        font-size: 0.68rem;
    }

    .book-card__body {
        padding: 1.35rem;
    }

    .empty-state {
        grid-template-columns: auto 1fr;
    }
}

@media (min-width: 760px) {
    .shell {
        width: min(calc(100% - 3rem), var(--shell));
    }

    .catalog-filters {
        grid-template-columns: minmax(260px, 1.7fr) repeat(2, minmax(150px, 0.8fr));
        align-items: end;
        padding: 1.25rem;
    }

    .field--search {
        grid-column: span 1;
    }

    .filter-actions {
        grid-column: span 2;
    }

    .book-detail__layout {
        grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
    }

    .book-detail__visual {
        width: 100%;
        margin-inline: 0;
    }

}

@media (min-width: 980px) {
    .hero__grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
    }

    .shelf-scene {
        position: relative;
        display: block;
        align-self: stretch;
        min-height: 410px;
    }

    .shelf-scene__note {
        position: absolute;
        top: 4%;
        right: 2%;
        padding-bottom: 0.45rem;
        border-bottom: 1px solid var(--coral-500);
        color: var(--ink-650);
        font-family: var(--font-display);
        font-size: 0.88rem;
        font-style: italic;
    }

    .book-stack {
        position: absolute;
        right: 0;
        bottom: 12%;
        left: 3%;
        display: flex;
        align-items: flex-end;
        gap: 0.55rem;
    }

    .spine {
        position: relative;
        display: flex;
        width: 82px;
        flex-direction: column;
        justify-content: space-between;
        padding: 1.25rem 0.65rem 1rem;
        border-radius: 2px 7px 3px 2px;
        color: var(--white);
        box-shadow: 5px 8px 0 rgba(16, 42, 67, 0.1);
    }

    .spine::before,
    .spine::after {
        position: absolute;
        right: 0;
        left: 0;
        height: 2px;
        background: currentColor;
        content: "";
        opacity: 0.45;
    }

    .spine::before { top: 12px; }
    .spine::after { bottom: 12px; }

    .spine b {
        font-family: var(--font-display);
        font-size: 1.35rem;
        font-weight: 500;
        line-height: 1;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
    }

    .spine small {
        font-size: 0.55rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
    }

    .spine--one { height: 305px; background: var(--blue-700); transform: rotate(-2deg); }
    .spine--two { height: 350px; color: var(--ink-950); background: #f2c14e; }
    .spine--three { height: 285px; background: var(--coral-500); transform: rotate(1.6deg); }

    .bookend {
        width: 72px;
        height: 145px;
        margin-left: 0.75rem;
        border-right: 13px solid var(--ink-950);
        border-bottom: 13px solid var(--ink-950);
    }

    .shelf-line {
        position: absolute;
        right: -50vw;
        bottom: calc(12% - 13px);
        left: 0;
        height: 13px;
        background: var(--ink-950);
        box-shadow: 0 9px 0 rgba(16, 42, 67, 0.12);
    }

    .thema-layout {
        grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
        align-items: start;
        gap: clamp(3rem, 7vw, 6rem);
    }

    .thema-intro {
        position: sticky;
        top: 2rem;
    }

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

    .catalog-filters {
        grid-template-columns: minmax(280px, 1.7fr) repeat(2, minmax(155px, 0.76fr)) auto;
    }

    .filter-actions {
        grid-column: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .clear-link {
        position: absolute;
        margin-top: 3.7rem;
    }

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

    .book-cover {
        min-height: 325px;
    }

    .book-cover strong {
        font-size: clamp(1.45rem, 2.2vw, 2rem);
    }

    .book-detail__visual {
        position: sticky;
        top: 2rem;
    }

    .book-detail__cover.book-cover strong {
        font-size: clamp(1.9rem, 3vw, 2.65rem);
    }
}

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