:root {
    --ink: #171717;
    --muted: #716c65;
    --paper: #f7f4ed;
    --paper-2: #efe9dc;
    --white: #ffffff;
    --gold: #b08a46;
    --gold-light: #d8bd83;
    --navy: rgb(16, 53, 99);
    --navy-2: #284757;
    --line: #ded6c8;
    --danger: #a33d3d;
    --success: #2f6b4f;
    --max: 1280px;
    --radius: 24px;
    --book-radius: 12px;
    --shadow: 0 24px 70px rgba(27, 32, 35, .10);
    --shadow-small: 0 12px 35px rgba(27, 32, 35, .08);
    --header-height: 88px;
    --anim-duration: 1.6s;
    --anim-duration-slow: 1.9s;
    --anim-duration-fast: 1.3s;
    --anim-ease: cubic-bezier(.16, 1, .3, 1);
    --anim-distance: 30px;
    --anim-scale: .992;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white) url('/assets/background/polygon.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
    text-align: justify;
    opacity: 0;
    animation: pageLoadFadeIn var(--anim-duration-slow) var(--anim-ease) forwards;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.92) 0%,
            rgba(255, 255, 255, 0.65) 18%,
            rgba(255, 255, 255, 0.35) 40%,
            rgba(255, 255, 255, 0.35) 60%,
            rgba(255, 255, 255, 0.65) 82%,
            rgba(255, 255, 255, 0.92) 100%
        ),
        linear-gradient(
            to right,
            rgba(255, 255, 255, 0.92) 0%,
            rgba(255, 255, 255, 0.65) 12%,
            rgba(255, 255, 255, 0.25) 30%,
            rgba(255, 255, 255, 0.25) 70%,
            rgba(255, 255, 255, 0.65) 88%,
            rgba(255, 255, 255, 0.92) 100%
        );
}

body,
button,
input,
select,
textarea {
    font-size: 16px;
}

body.menu-open {
    overflow: hidden;
}

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

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    font-family: Garamond, "EB Garamond", "Times New Roman", serif;
    line-height: 1.03;
    font-weight: 600;
    text-align: left;
}

h1 {
    font-size: clamp(3.2rem, 7vw, 7.2rem);
    letter-spacing: -.055em;
}

h2 {
    font-size: clamp(2.4rem, 4.5vw, 4.5rem);
    letter-spacing: -.04em;
}

h3 {
    font-size: 1.55rem;
}

p,
li,
blockquote,
.lead,
.muted,
.small,
.meta,
.eyebrow,
.notice,
.card,
.meta-block,
.quote,
.section-intro,
.book-card .body,
.mobile-nav a,
.mobile-nav button,
.cookie-inner,
.searchbar-inner,
.hero,
.page-wrap,
.grid-2,
.cards,
.book-grid,
.filter-card,
.purchase,
.pagination,
.footer,
address,
dd,
dt,
figcaption,
caption,
th,
td,
label,
input,
select,
textarea,
button,
.btn {
    text-align: justify;
}

.container {
    width: min(calc(100% - 56px), var(--max));
    margin-inline: auto;
}

.site-main {
    min-height: 65vh;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-align: justify;
}

.lead {
    max-width: 760px;
    font-size: 1.22rem;
    text-align: justify;
}

.muted {
    color: var(--muted);
    text-align: justify;
}

.small {
    font-size: .88rem;
    text-align: justify;
}

.meta {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: justify;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid rgba(222, 214, 200, .85);
    background: rgba(247, 244, 237, .96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-18px);
    animation: headerAppear 1.5s var(--anim-ease) .25s forwards;
}

.nav {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

.brand-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}

.brand-logo img {
    width: 170px;
    height: auto;
    max-height: 58px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: nowrap;
}

.main-nav > a,
.nav-dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 3px;
    border: 0;
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    flex: 0 0 auto;
    min-width: max-content;
}

.main-nav > a i,
.nav-dropdown-toggle > i:first-child {
    color: var(--gold);
    flex: 0 0 auto;
    width: auto;
    display: inline-block;
}

.main-nav > a span,
.nav-dropdown-toggle span {
    display: inline-block;
    white-space: nowrap;
}

.main-nav > a::after,
.nav-dropdown-toggle::after {
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .45s var(--anim-ease);
}

.main-nav > a:hover::after,
.nav-dropdown-toggle:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.nav-dropdown-toggle {
    padding-right: 3px;
}

.nav-chevron {
    margin-left: 2px;
    color: var(--muted) !important;
    font-size: .65rem;
    transition: transform .45s var(--anim-ease);
    flex: 0 0 auto;
}

.nav-dropdown.open .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 285px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .4s ease, visibility .4s ease, transform .4s ease;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border-radius: 11px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 550;
    transition: background .4s ease, color .4s ease;
    text-align: left;
    white-space: normal;
}

.nav-dropdown-menu a i {
    width: 22px;
    flex: 0 0 22px;
    color: var(--gold);
    text-align: center;
}

.nav-dropdown-menu a span {
    flex: 1 1 auto;
    white-space: normal;
}

.nav-dropdown-menu a:hover {
    background: var(--paper);
    color: var(--navy);
}

.nav-contact {
    padding: 10px 22px !important;
    border-radius: 999px;
    background: var(--navy);
    font-size: .92rem !important;
    font-weight: 500 !important;
    color: var(--white);
    letter-spacing: .02em;
    line-height: 1.2;
    text-decoration: none;
    transition: background .4s ease, transform .4s ease, box-shadow .4s ease;
    text-align: center !important;
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: max-content;
}

.nav-contact i {
    color: var(--gold-light) !important;
    font-size: .95rem;
    flex: 0 0 auto;
}

.nav-contact span {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
}

.nav-contact::after {
    display: none;
}

.lang-switch {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
}

.lang-flag {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    object-fit: cover;
    border-radius: 50%;
}

.lang-switch select {
    width: auto;
    min-width: 48px;
    padding: 4px 3px;
    border: 0;
    outline: none;
    background: transparent;
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
}

.menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font-weight: 750;
    cursor: pointer;
    transition: background .4s ease, color .4s ease, transform .4s ease;
    text-align: center;
}

.menu-btn:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-1px);
}

.menu-btn i {
    font-size: 1rem;
}

.mobile-menu-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    background: rgba(23, 23, 23, .45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
}

.mobile-menu-modal.open {
    display: block;
    animation: mobileOverlayIn .5s ease forwards;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(430px, 92vw);
    overflow-y: auto;
    padding: 22px;
    background: var(--white);
    box-shadow: -20px 0 70px rgba(0, 0, 0, .18);
    transform: translateX(100%);
    animation: mobilePanelIn .65s var(--anim-ease) forwards;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.mobile-menu-logo img {
    width: 145px;
    height: auto;
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .4s ease, color .4s ease, transform .6s var(--anim-ease);
}

.mobile-menu-close:hover {
    background: var(--navy);
    color: var(--white);
    transform: rotate(90deg);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 24px 0;
}

.mobile-nav a,
.mobile-nav button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 650;
    cursor: pointer;
    transition: background .4s ease, color .4s ease, transform .4s ease;
}

.mobile-nav a i,
.mobile-nav button i:first-child {
    width: 25px;
    color: var(--gold);
    text-align: center;
}

.mobile-nav a:hover,
.mobile-nav button:hover {
    background: var(--paper);
    color: var(--navy);
    transform: translateX(4px);
}

.mobile-nav .mobile-contact {
    margin-top: 10px;
    padding: 15px 16px;
    background: var(--navy);
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: .02em;
    border-radius: 14px;
}

.mobile-nav .mobile-contact i {
    color: var(--gold-light);
    font-size: 1.1rem;
}

.mobile-nav .mobile-contact:hover {
    background: var(--navy-2);
}

.mobile-more {
    margin-top: 5px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.mobile-more-toggle {
    justify-content: space-between !important;
}

.mobile-more-toggle .mobile-more-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-more-toggle .mobile-chevron {
    width: auto;
    margin-left: auto;
    color: var(--muted) !important;
    transition: transform .4s ease;
}

.mobile-more.open .mobile-chevron {
    transform: rotate(180deg);
}

.mobile-more-list {
    display: none;
    padding: 0 0 8px 18px;
}

.mobile-more.open .mobile-more-list {
    display: block;
}

.mobile-more-list a {
    font-size: .94rem;
}

.mobile-language {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.mobile-language-label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    text-align: left;
}

.mobile-language-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.mobile-language-control .lang-switch {
    display: flex !important;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    gap: 10px;
}

.mobile-language-control .lang-flag {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.mobile-language-control select {
    flex: 1 1 auto;
    padding: 6px 4px;
    border: 0;
    background: transparent;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    text-align: left;
    min-width: 60px;
    width: auto;
    display: block;
}

.searchbar {
    position: relative;
    z-index: 30;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    background: #17252e;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(-12px);
    animation: fadeSlideDown 1.5s var(--anim-ease) .4s forwards;
}

.searchbar-inner {
    display: flex;
    justify-content: flex-end;
}

.search-form {
    width: min(100%, 720px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.search-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}

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

.search-submit {
    flex: 0 0 auto;
    color: #17252e;
}

.search-submit-icon {
    display: none;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    background: var(--white);
    color: var(--ink);
    text-align: left;
    transition: border-color .5s ease, box-shadow .5s ease, transform .5s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(176, 138, 70, .12);
    transform: translateY(-2px);
}

textarea {
    min-height: 160px;
    resize: vertical;
}

.field {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 750;
    text-align: left;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 21px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    text-decoration: none;
    cursor: pointer;
    font-weight: 750;
    transition: transform .55s var(--anim-ease), box-shadow .55s var(--anim-ease), background .4s ease, color .4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, .28), transparent 70%);
    opacity: 0;
    transform: scale(.6);
    transition: opacity .6s ease, transform .6s ease;
    pointer-events: none;
}

.btn:active::before {
    opacity: 1;
    transform: scale(1.35);
    transition: opacity .15s ease, transform .15s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-small);
}

.btn:active {
    transform: translateY(-1px) scale(.98);
}

.btn.primary {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

.btn.primary:hover {
    background: var(--navy-2);
}

.btn.gold {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--white);
}

.btn.danger {
    border-color: var(--danger);
    background: var(--danger);
    color: var(--white);
}

.btn.ghost {
    background: var(--white);
}

.buttons,
.actions,
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
}

.card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-small);
    text-align: justify;
    opacity: 0;
    transform: translateY(var(--anim-distance)) scale(var(--anim-scale));
    animation: revealUp var(--anim-duration) var(--anim-ease) forwards;
    transition: transform .7s var(--anim-ease), box-shadow .7s var(--anim-ease), background .4s ease;
}

.card:nth-child(1) {
    animation-delay: .3s;
}

.card:nth-child(2) {
    animation-delay: .55s;
}

.card:nth-child(3) {
    animation-delay: .8s;
}

.card:nth-child(4) {
    animation-delay: 1.05s;
}

.card:nth-child(5) {
    animation-delay: 1.3s;
}

.card:nth-child(6) {
    animation-delay: 1.55s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.notice {
    margin: 20px 0;
    padding: 15px 18px;
    border: 1px solid #c8dfd1;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: justify;
    opacity: 0;
    animation: revealUp var(--anim-duration) var(--anim-ease) .5s forwards;
}

.notice.error {
    border-color: #e8c6c6;
    background: rgba(255, 241, 241, 0.92);
}

.page-wrap {
    padding: 88px 0;
}

.page-wrap > .container > h1,
.page-wrap > .container > .eyebrow {
    margin-bottom: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 72px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

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

.book-card {
    position: relative;
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    transform: translateY(var(--anim-distance)) scale(var(--anim-scale));
    animation: revealUp var(--anim-duration) var(--anim-ease) forwards;
    transition: transform .7s var(--anim-ease), filter .7s var(--anim-ease);
}

.book-card:nth-child(1) {
    animation-delay: .3s;
}

.book-card:nth-child(2) {
    animation-delay: .55s;
}

.book-card:nth-child(3) {
    animation-delay: .8s;
}

.book-card:nth-child(4) {
    animation-delay: 1.05s;
}

.book-card:nth-child(5) {
    animation-delay: 1.3s;
}

.book-card:nth-child(6) {
    animation-delay: 1.55s;
}

.book-card:nth-child(7) {
    animation-delay: 1.8s;
}

.book-card:nth-child(8) {
    animation-delay: 2.05s;
}

.book-card:nth-child(9) {
    animation-delay: 2.3s;
}

.book-card .body {
    position: relative;
    z-index: 2;
    padding: 25px 0;
    text-align: justify;
}

.book-card img {
    border-radius: var(--book-radius);
}

.book-card .book-cover-wrap {
    position: relative;
    width: 100%;
    isolation: isolate;
}

.book-card .book-cover-wrap::before {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    top: 5px;
    right: -14px;
    bottom: 5px;
    left: 6px;
    border-radius: 0 6px 6px 0;
    background: repeating-linear-gradient(
        to bottom,
        #fffefb 0px,
        #fffefb 1px,
        #cfc9be 1px,
        #cfc9be 2px,
        #f7f4ed 2px,
        #f7f4ed 4px
    );
    box-shadow:
        1px 1px 0 #d1ccc1,
        2px 2px 0 #c9c3b8,
        3px 3px 0 #c0baaf,
        4px 4px 0 #b7b1a6,
        5px 5px 0 #aea89d,
        6px 6px 0 #a59f94,
        7px 7px 0 #9c968b,
        8px 8px 0 #938d82,
        9px 9px 0 rgba(0, 0, 0, .12),
        0 12px 22px rgba(0, 0, 0, .18);
    transition: right .7s var(--anim-ease), box-shadow .7s var(--anim-ease);
}

.book-card .book-cover-wrap::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 1;
    top: 2px;
    right: -7px;
    bottom: 2px;
    left: 3px;
    border-radius: 0 5px 5px 0;
    background: linear-gradient(
        90deg,
        #fffefa 0%,
        #f8f5ee 60%,
        #e8e3d9 85%,
        #d5cfc3 100%
    );
    box-shadow:
        inset -3px 0 4px rgba(0, 0, 0, .10),
        inset -1px 0 1px rgba(255, 255, 255, .5),
        2px 0 0 #ded8cd,
        4px 1px 0 #d5cfc3,
        6px 2px 0 #ccc6ba,
        0 4px 10px rgba(0, 0, 0, .10);
    transition: right .7s var(--anim-ease);
}

.book-card .book-cover-wrap img,
.book-card .book-cover {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 390px;
    min-height: 390px;
    object-fit: cover;
    border-radius: var(--book-radius);
    box-shadow:
        inset -10px 0 16px rgba(0, 0, 0, .22),
        inset 3px 0 5px rgba(255, 255, 255, .10),
        inset 0 0 0 1px rgba(0, 0, 0, .06),
        0 10px 22px rgba(0, 0, 0, .18);
}

.book-card .book-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .22) 0%,
            rgba(0, 0, 0, .05) 6%,
            transparent 12%,
            transparent 85%,
            rgba(0, 0, 0, .18) 96%,
            rgba(0, 0, 0, .28) 100%
        ),
        linear-gradient(
            145deg,
            var(--navy),
            var(--navy-2)
        );
    color: var(--white);
    text-align: center;
    box-shadow:
        inset -10px 0 16px rgba(0, 0, 0, .24),
        inset 3px 0 5px rgba(255, 255, 255, .08),
        inset 0 0 0 1px rgba(0, 0, 0, .08),
        0 10px 22px rgba(0, 0, 0, .20);
}

.book-cover strong {
    position: relative;
    z-index: 3;
    display: block;
    margin-bottom: 15px;
    font-family: Garamond, Georgia, "Times New Roman", serif;
    font-size: 2.4rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .3);
    text-align: center;
}

.book-cover span {
    position: relative;
    z-index: 3;
    color: var(--gold-light);
    font-family: Garamond, Georgia, serif;
    letter-spacing: .08em;
    overflow-wrap: anywhere;
    text-align: center;
}

.book-card:hover {
    transform: translateY(-6px);
    filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .16));
}

.book-card:active {
    transform: translateY(-2px) scale(.985);
    transition: transform .3s ease;
}

.filter-card {
    margin-bottom: 35px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-small);
    opacity: 0;
    transform: translateY(var(--anim-distance));
    animation: revealUp var(--anim-duration) var(--anim-ease) .35s forwards;
}

.grid-filter {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1fr auto;
    align-items: end;
    gap: 15px;
}

.purchase {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    text-align: justify;
}

.purchase select {
    width: auto;
    min-width: 220px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp var(--anim-duration) var(--anim-ease) .9s forwards;
}

.pagination a,
.pagination .dots {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
    text-align: center;
    transition: transform .55s var(--anim-ease), background .4s ease, color .4s ease, border-color .4s ease;
}

.pagination a.active,
.pagination a:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

.pagination a:hover {
    transform: translateY(-3px) scale(1.05);
}

.pagination a:active {
    transform: translateY(-1px) scale(.95);
}

.notice-cookie {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .08);
    backdrop-filter: blur(15px);
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp var(--anim-duration) var(--anim-ease) 1.2s forwards;
}

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: justify;
}

.hero {
    padding: 52px 0 78px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, .75),
        rgba(255, 255, 255, .35)
    );
}

.hero > .container > * {
    opacity: 0;
    transform: translateY(var(--anim-distance));
    animation: revealUp var(--anim-duration-slow) var(--anim-ease) forwards;
}

.hero > .container > *:nth-child(1) {
    animation-delay: .35s;
}

.hero > .container > *:nth-child(2) {
    animation-delay: .6s;
}

.hero > .container > *:nth-child(3) {
    animation-delay: .85s;
}

.hero > .container > *:nth-child(4) {
    animation-delay: 1.1s;
}

.hero > .container > *:nth-child(5) {
    animation-delay: 1.35s;
}

.hero > .container > *:nth-child(6) {
    animation-delay: 1.6s;
}

.hero + section,
section + section {
    border-top: 1px solid rgba(222, 214, 200, .55);
}

.quote {
    margin: 28px 0;
    padding: 22px 25px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 0 16px 16px 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--navy);
    font-family: Garamond, Georgia, serif;
    font-size: 1.65rem;
    text-align: justify;
    opacity: 0;
    transform: translateX(-20px);
    animation: revealLeft var(--anim-duration-slow) var(--anim-ease) .5s forwards;
}

.cover-img {
    width: 100%;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: scale(.97);
    animation: revealScale var(--anim-duration-slow) var(--anim-ease) .4s forwards;
}

.meta-block {
    display: grid;
    gap: 17px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-small);
    text-align: justify;
}

.meta-block > div {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(15px);
    animation: revealUp var(--anim-duration) var(--anim-ease) forwards;
}

.meta-block > div:nth-child(1) {
    animation-delay: .3s;
}

.meta-block > div:nth-child(2) {
    animation-delay: .5s;
}

.meta-block > div:nth-child(3) {
    animation-delay: .7s;
}

.meta-block > div:nth-child(4) {
    animation-delay: .9s;
}

.meta-block > div:nth-child(5) {
    animation-delay: 1.1s;
}

.meta-block > div:nth-child(6) {
    animation-delay: 1.3s;
}

.meta-block b {
    display: block;
    margin-bottom: 3px;
    color: var(--gold);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-align: left;
}

.section-intro {
    max-width: 820px;
    margin-bottom: 42px;
    text-align: justify;
    opacity: 0;
    transform: translateY(var(--anim-distance));
    animation: revealUp var(--anim-duration) var(--anim-ease) .35s forwards;
}

.page-wrap > .container > h1 {
    opacity: 0;
    transform: translateY(25px);
    animation: revealUp var(--anim-duration-slow) var(--anim-ease) .25s forwards;
}

.page-wrap > .container > .eyebrow {
    opacity: 0;
    transform: translateY(15px);
    animation: revealUp var(--anim-duration) var(--anim-ease) .15s forwards;
}

.page-wrap > .container > p,
.page-wrap > .container > .lead,
.page-wrap > .container > .muted {
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp var(--anim-duration) var(--anim-ease) .5s forwards;
}

@keyframes pageLoadFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes headerAppear {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(var(--anim-distance)) scale(var(--anim-scale));
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes revealLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes revealRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes revealScale {
    from {
        opacity: 0;
        transform: scale(.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes mobileOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mobilePanelIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@supports (animation-timeline: view()) {
    .reveal-scroll {
        opacity: 0;
        transform: translateY(var(--anim-distance)) scale(var(--anim-scale));
        animation: revealUp linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 60%;
    }
}

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

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

    body {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .site-header,
    .searchbar,
    .hero > .container > *,
    .card,
    .book-card,
    .quote,
    .cover-img,
    .meta-block > div,
    .section-intro,
    .filter-card,
    .pagination,
    .notice,
    .notice-cookie,
    .page-wrap > .container > h1,
    .page-wrap > .container > .eyebrow,
    .page-wrap > .container > p,
    .page-wrap > .container > .lead,
    .page-wrap > .container > .muted {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

@media (max-width: 1180px) {
    .container {
        width: min(calc(100% - 44px), var(--max));
    }

    .nav {
        gap: 20px;
    }

    .main-nav {
        gap: 12px;
    }

    .main-nav > a,
    .nav-dropdown-toggle {
        font-size: .82rem;
    }

    .brand-logo img {
        width: 150px;
    }

    .book-grid {
        gap: 40px;
    }
}

@media (max-width: 1080px) {
    .main-nav {
        gap: 9px;
    }

    .main-nav > a,
    .nav-dropdown-toggle {
        font-size: .78rem;
    }

    .nav-contact {
        padding: 9px 16px !important;
    }

    .lang-switch {
        padding: 4px 6px;
    }

    .brand-logo img {
        width: 140px;
    }
}

@media (max-width: 1024px) {
    :root {
        --header-height: 82px;
    }

    .nav {
        gap: 20px;
    }

    .brand-logo img {
        width: 145px;
    }

    .menu-btn {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .main-nav {
        display: none;
    }

    .main-nav > .lang-switch {
        display: none;
    }

    .grid-2 {
        gap: 45px;
    }

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

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

    .book-card .body {
        padding: 20px 0;
    }

    .book-card .book-cover-wrap img,
    .book-card .book-cover {
        height: 350px;
        min-height: 350px;
    }

    .book-card .book-cover {
        padding: 32px;
    }

    .book-cover strong {
        font-size: 2.1rem;
    }

    .filter-card {
        padding: 24px;
    }

    .meta-block {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(calc(100% - 36px), var(--max));
    }

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

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

    .book-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

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

    .book-card .body {
        padding: 16px 0;
    }

    .book-card .book-cover-wrap img,
    .book-card .book-cover {
        height: 330px;
        min-height: 330px;
    }

    .book-card .book-cover {
        padding: 28px;
    }

    .book-cover strong {
        font-size: 1.9rem;
        line-height: 1.15;
    }

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

    .page-wrap {
        padding: 60px 0;
    }

    .search-form {
        width: 100%;
    }

    .search-submit {
        min-width: 130px;
    }

    .card {
        padding: 24px;
    }

    .filter-card {
        padding: 22px;
    }

    .meta-block {
        padding: 22px;
    }
}

@media (max-width: 650px) {
    :root {
        --header-height: 76px;
    }

    .container {
        width: min(calc(100% - 28px), var(--max));
    }

    .nav {
        min-height: var(--header-height);
        gap: 10px;
    }

    .brand-logo {
        max-width: calc(100% - 60px);
    }

    .brand-logo img {
        width: 140px;
        max-height: 52px;
    }

    .menu-btn {
        min-height: 42px;
        width: 44px;
        height: 42px;
        padding: 8px;
        border-radius: 50%;
        flex: 0 0 44px;
    }

    .menu-btn span {
        display: none;
    }

    .searchbar {
        padding: 9px 0;
    }

    .search-form {
        gap: 8px;
    }

    .search-input-icon {
        display: none;
    }

    .search-input-wrap input {
        padding-left: 15px;
        min-height: 46px;
    }

    .search-submit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        min-width: 46px;
        height: 46px;
        min-height: 46px;
        padding: 0;
        border-radius: 50%;
        border-color: var(--navy);
        background: var(--white);
        color: #17252e;
    }

    .search-submit .search-submit-text {
        display: none;
    }

    .search-submit .search-submit-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        line-height: 1;
    }

    .search-submit:hover {
        background: var(--navy-2);
        color: var(--white);
    }

    h1 {
        font-size: clamp(2.9rem, 15vw, 4.8rem);
    }

    .grid-2,
    .cards,
    .book-grid,
    .grid-filter {
        grid-template-columns: 1fr;
    }

    .cards {
        gap: 18px;
    }

    .page-wrap {
        padding: 50px 0;
    }

    .book-card .book-cover-wrap img,
    .book-card .book-cover {
        height: 420px;
        min-height: 420px;
    }

    .book-card .book-cover {
        padding: 30px;
    }

    .book-cover strong {
        font-size: 1.8rem;
    }

    .cookie-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .mobile-menu-panel {
        width: 100%;
        padding:
            18px
            max(18px, env(safe-area-inset-right))
            max(25px, env(safe-area-inset-bottom))
            max(18px, env(safe-area-inset-left));
    }

    .card {
        padding: 22px;
    }

    .filter-card {
        padding: 20px;
    }

    .meta-block {
        padding: 20px;
    }

    .quote {
        padding: 18px 20px;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .brand-logo img {
        width: 130px;
    }

    .menu-btn {
        width: 42px;
        height: 42px;
        min-height: 42px;
        flex-basis: 42px;
    }

    .mobile-menu-panel {
        padding: 16px;
    }

    .mobile-menu-header {
        padding-bottom: 16px;
    }

    .mobile-menu-logo img {
        width: 130px;
    }

    .mobile-nav {
        padding: 18px 0;
    }

    .mobile-nav a,
    .mobile-nav button {
        padding: 13px 10px;
    }

    .book-card .body {
        padding: 12px 0;
    }

    .book-card .book-cover-wrap img,
    .book-card .book-cover {
        height: 380px;
        min-height: 380px;
    }

    .book-card .book-cover {
        padding: 22px;
    }

    .book-cover strong {
        font-size: 1.6rem;
        line-height: 1.15;
        margin-bottom: 10px;
    }

    .book-cover span {
        font-size: .8rem;
        letter-spacing: .05em;
    }

    .card {
        padding: 20px;
    }

    .filter-card {
        padding: 18px;
        border-radius: 20px;
    }

    .meta-block {
        padding: 18px;
        border-radius: 20px;
    }

    .quote {
        font-size: 1.25rem;
    }
}

@media (max-width: 360px) {
    .container {
        width: calc(100% - 22px);
    }

    .brand-logo img {
        width: 118px;
    }

    .book-card .body {
        padding: 10px 0;
    }

    .book-card .book-cover-wrap img,
    .book-card .book-cover {
        height: 330px;
        min-height: 330px;
    }

    .book-card .book-cover {
        padding: 18px;
    }

    .book-cover strong {
        font-size: 1.4rem;
    }

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

    .card {
        padding: 18px;
    }

    .filter-card {
        padding: 16px;
    }

    .meta-block {
        padding: 16px;
    }
}

@media (min-width: 1025px) {
    .book-card:hover .book-cover-wrap::before {
        right: -17px;
        box-shadow:
            1px 1px 0 #d1ccc1,
            2px 2px 0 #c9c3b8,
            3px 3px 0 #c0baaf,
            4px 4px 0 #b7b1a6,
            5px 5px 0 #aea89d,
            6px 6px 0 #a59f94,
            7px 7px 0 #9c968b,
            8px 8px 0 #938d82,
            9px 9px 0 #8a8479,
            10px 10px 0 #817b70,
            11px 11px 0 rgba(0, 0, 0, .14),
            0 14px 26px rgba(0, 0, 0, .22);
    }

    .book-card:hover .book-cover-wrap::after {
        right: -9px;
    }
}

@media (hover: none) {
    .book-card:hover {
        transform: none;
        filter: none;
    }

    .card:hover {
        transform: none;
        box-shadow: var(--shadow-small);
    }

    .btn:hover {
        transform: none;
        box-shadow: none;
    }
}