﻿    *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color : transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #faf7f2;
    color: #1a1410;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 16px;
    line-height: 1.9;
}

body.mc-locked { overflow: hidden; }

/* Overlay */
#mc-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,26,24,0.65);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
#mc-overlay.mc-hidden { display: none; }

/* Banner card */
#mc-banner {
    background: #ffffff;
    border: 1px solid #c8c2b8;
    border-radius: 0.85rem;
    box-shadow: 0 24px 64px rgba(26,26,24,0.20), 0 4px 16px rgba(26,26,24,0.10);
    width: 100%;
    max-width: 820px;
    max-height: 82vh;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.875rem;
}
#mc-banner::-webkit-scrollbar { width: 4px; }
#mc-banner::-webkit-scrollbar-track { background: transparent; }
#mc-banner::-webkit-scrollbar-thumb { background: #c8c2b8; border-radius: 2px; }

/* Top bar */
#mc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem 0.9rem;
    border-bottom: 1px solid #c8c2b8;
    gap: 1rem;
}
#mc-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
#mc-heading svg { color: #1d4ed8; flex-shrink: 0; }
#mc-heading h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #1a1a18;
    margin: 0;
}

/* Language switcher */
#mc-lang-wrap {
    display: flex;
    align-items: center;
    background: #e8e2d8;
    border: 1px solid #c8c2b8;
    border-radius: 2rem;
    padding: 0.2rem;
    gap: 0.2rem;
    flex-shrink: 0;
}
.mc-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 2rem;
    border: none;
    background: transparent;
    color: #3a3530;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.mc-lang-btn.mc-active {
    background: #ffffff;
    color: #1a1a18;
    box-shadow: 0 1px 4px rgba(26,26,24,0.12);
}
.mc-lang-btn:focus-visible { outline: 2px solid rgba(29,78,216,0.6); outline-offset: 1px; }

/* Intro paragraph */
#mc-intro {
    padding: 1rem 1.5rem;
    font-size: 0.845rem;
    line-height: 1.7;
    color: #2e2a26;
    margin: 0;
}
#mc-intro a { color: #1d4ed8; font-weight: 500; text-underline-offset: 2px; }
#mc-intro a:focus-visible { outline: 2px solid rgba(29,78,216,0.6); outline-offset: 2px; border-radius: 2px; }

.mc-rule { height: 1px; background: #c8c2b8; margin: 0 1.5rem; }

/* Category list */
#mc-cats {
    padding: 0.85rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mc-cat {
    border: 1px solid #c8c2b8;
    border-radius: 0.65rem;
    overflow: hidden;
    transition: border-color 0.18s;
}
.mc-cat:focus-within { border-color: #1d4ed8; }
.mc-cat.mc-open { border-color: #1d4ed8; }

.mc-cat-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: 'Source Sans 3', sans-serif;
    cursor: pointer;
}
.mc-cat-btn:focus-visible { outline: 2px solid #1d4ed8; outline-offset: -2px; border-radius: 0.55rem; }

.mc-dot {
    width: 0.5rem; height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}
.mc-cat-label {
    flex: 1;
    font-size: 0.845rem;
    font-weight: 600;
    color: #1a1a18;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.mc-always-on {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: #1d4ed8;
    border: 1px solid rgba(29,78,216,0.25);
    padding: 0.15rem 0.5rem;
    border-radius: 2rem;
    font-weight: 600;
}

/* Toggle switch */
.mc-tog-wrap { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.mc-tog-lbl {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    min-width: 1.8rem;
    text-align: right;
    color: #4a4540;
}
.mc-tog-lbl.mc-on { color: #1d4ed8; }

.mc-tog { position: relative; width: 2.2rem; height: 1.25rem; flex-shrink: 0; }
.mc-tog input { position: absolute; opacity: 0; width: 0; height: 0; }
.mc-tog-track {
    position: absolute; inset: 0;
    border-radius: 2rem;
    background: #8a8480;
    cursor: pointer;
    transition: background 0.2s;
}
.mc-tog-track::after {
    content: '';
    position: absolute;
    top: 0.155rem; left: 0.155rem;
    width: 0.94rem; height: 0.94rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.22);
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.mc-tog input:checked ~ .mc-tog-track { background: #1d4ed8; }
.mc-tog input:checked ~ .mc-tog-track::after { transform: translateX(0.95rem); }
.mc-tog input:disabled ~ .mc-tog-track { opacity: 0.45; cursor: default; }
.mc-tog input:focus-visible ~ .mc-tog-track { box-shadow: 0 0 0 3px rgba(29,78,216,0.4); }

/* Chevron */
.mc-chev { width: 1rem; height: 1rem; color: #4a4540; flex-shrink: 0; transition: transform 0.2s; }
.mc-cat.mc-open .mc-chev { transform: rotate(180deg); }

/* Expanded body */
.mc-cat-body { display: none; border-top: 1px solid #c8c2b8; background: #fdfcfb; }
.mc-cat.mc-open .mc-cat-body { display: block; }

.mc-cat-desc {
    padding: 0.8rem 1rem 0.65rem;
    font-size: 0.8rem;
    line-height: 1.65;
    color: #3a3530;
    margin: 0;
}

/* Cookie table */
.mc-tbl-wrap { overflow-x: auto; padding: 0 1rem 1rem; }
table.mc-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.755rem;
    min-width: 460px;
}
.mc-tbl thead tr { background: #e8e2d8; }
.mc-tbl th {
    padding: 0.38rem 0.6rem;
    text-align: left;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #2e2a26;
    white-space: nowrap;
}
.mc-tbl th:first-child { border-radius: 0.35rem 0 0 0.35rem; }
.mc-tbl th:last-child  { border-radius: 0 0.35rem 0.35rem 0; }
.mc-tbl td {
    padding: 0.48rem 0.6rem;
    border-bottom: 1px solid #ddd8ce;
    vertical-align: top;
    line-height: 1.45;
    color: #2e2a26;
}
.mc-tbl tr:last-child td { border-bottom: none; }
.mc-tbl td:first-child {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #1a1a18;
    white-space: nowrap;
}
.mc-tbl td small { color: #3a3530; }

.mc-exp {
    display: inline-block;
    font-size: 0.62rem;
    background: #e8e2d8;
    border: 1px solid #c8c2b8;
    color: #2e2a26;
    padding: 0.1rem 0.4rem;
    border-radius: 2rem;
    white-space: nowrap;
}

/* Action buttons */
#mc-actions {
    padding: 0.9rem 1.5rem 1.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}
.mc-btn {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.58rem 1.15rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
    line-height: 1;
    transition: opacity 0.15s, transform 0.1s;
}
.mc-btn:active { transform: scale(0.97); }
.mc-btn:focus-visible { outline: 2px solid rgba(29,78,216,0.6); outline-offset: 2px; }

.mc-btn-accept {
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(29,78,216,0.28);
}
.mc-btn-accept:hover { background: #1a45c4; }

.mc-btn-save { background: #1a1a18; color: #ffffff; }
.mc-btn-save:hover { background: #2e2a26; }

.mc-btn-reject {
    background: transparent;
    color: #2e2a26;
    border: 1px solid #8a8480;
}
.mc-btn-reject:hover { background: #e8e2d8; color: #1a1a18; }

/* Toast */
#mc-toast {
    position: fixed;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #1a1a18;
    color: #ffffff;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
#mc-toast.mc-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 560px) {
    #mc-overlay { padding: 0; align-items: center; }
    #mc-banner  { border-radius: 0.85rem; max-height: 90vh; margin: 0 5px; }
    #mc-topbar, #mc-intro, #mc-cats, #mc-actions { padding-left: 1rem; padding-right: 1rem; }
    .mc-rule { margin: 0 1rem; }
    #mc-actions { flex-direction: column; align-items: stretch; }
    .mc-btn { text-align: center; }
}

::selection
{ background : #d4a85a;
    color : #1a1410;
}

::-moz-selection
{ background : #d4a85a;
    color : #1a1410;
}

/* ── COVER ─────────────────────────────────────── */
.cover {
    min-height: 100vh;
    background: #1a1410;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 30%, rgba(180,130,60,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(120,60,20,0.12) 0%, transparent 60%);
}

.cover-logo {
    position: relative;
    margin-bottom: 36px;
}

.cover-logo img {
    width: 290px;
}

.cover h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 600;
    color: #f5ead8;
    letter-spacing: 2px;
    line-height: 1.2;
    position: relative;
    margin-bottom: 8px;
}

.cover h1 em {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.15em;
    color: #d4a85a;
    display: block;
    letter-spacing: 1px;
}

.cover-sub {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    color: #c8b49a;
    margin: 28px 0 48px;
    max-width: 560px;
    position: relative;
    line-height: 1.2;
}

/*.cover-divider {
    width: 290px;
    height: 1px;
    background: linear-gradient(to right, transparent, #b4823c, transparent);
    margin: 0 auto 48px;
    position: relative;
}*/

/*.cover-divider::after {
    content: '✦';
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    color: #b4823c;
    font-size: 1.6rem;
}*/

.cover-divider {
    border: none;
    border-top: 1px solid #b4823c;
    color: #b4823c;
    overflow: visible;
    text-align: center;
    height: 5px;
    margin: -10px 0 30px;
    width: 290px
}

.cover-divider:after {
    background: transpatrent;
    content: '◆';
    padding: 0 4px;
    position: relative;
    top: -18px;
    font-size: 20px;
}

.cover-author {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 5px;
    color: #b4823c;
    text-transform: uppercase;
    position: relative;
}

.cover-author span {
    color: #b4823c;
}

.cover-scroll {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    color: #b4823c;
    font-size: 2.8rem;
    animation: bounce 2.4s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── TABLE OF CONTENTS ─────────────────────────── */
.toc {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px;
    border-bottom: 1px solid #e2d9cc;
}

.section-label {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 5px;
    color: #8a6028;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.toc h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #1a1410;
    margin-bottom: 40px;
    line-height: 1.2;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    display: flex;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px dotted #d4c8b8;
    gap: 14px;
}

.toc-num {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    color: #8a6028;
    letter-spacing: 2px;
    min-width: 32px;
}

.toc-list a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: #2a1f14;
    text-decoration: none;
    flex: 1;
    transition: color 0.25s;
    line-height: 1.5;
}

.toc-list a:hover { color: #7a5020; }

.toc-list .toc-desc {
    font-style: italic;
    font-size: 1.2rem;
    color: #6a5a4c;
    display: block;
    font-family: 'Cormorant Garamond', serif;
    margin-top: 2px;
}

/* ── CHAPTERS ──────────────────────────────────── */
.chapter {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px 0;
    border-bottom: 1px solid #e2d9cc;
}

.chapter-header {
    margin-bottom: 48px;
}

.chapter-num {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 5px;
    color: #8a6028;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.chapter h2 {
    font-family: 'Cinzel', serif;
    /*font-size: clamp(1.8rem, 4vw, 2.8rem);*/
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: #1a1410;
    line-height: 1.25;
    margin-bottom: 16px;
}

.chapter h2 em {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.68em;
    color: #7a6855;
    letter-spacing: 3px;
    margin-top: 8px;
}

.chapter-intro {
    font-size: 1.65rem;
    font-style: italic;
    color: #5a4a38;
    border-left: 3px solid #8a6028;
    padding-left: 22px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.chapter p {
    font-size: 1.5rem;
    color: #2a1f14;
    margin-bottom: 28px;
    text-align: left;
    hyphens: auto;
}

.chapter h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    letter-spacing: 3px;
    color: #7a5c30;
    text-transform: uppercase;
    margin: 48px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2d9cc;
}

.pullquote {
    margin: 44px 0;
    padding: 36px 44px;
    background: #1a1410;
    border-radius: 2px;
    position: relative;
}

.pullquote::before {
    content: '\201C';
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.5rem;
    color: #b4823c;
    position: absolute;
    top: -8px;
    left: 24px;
    line-height: 1;
    opacity: 0.7;
}

.pullquote p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.65rem;
    color: #f0e4ce;
    text-align: center;
    line-height: 1.65;
    margin: 0;
    padding-top: 20px;
}

.info-box {
    background: #f0ebe2;
    border: 1px solid #d4c8b8;
    border-top: 3px solid #b4823c;
    padding: 32px 36px;
    margin: 40px 0;
    border-radius: 0 0 2px 2px;
}

.info-box-title {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: #6e4a1a;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.info-box p {
    font-size: 1.4rem;
    color: #2a1f14;
    margin-bottom: 14px;
    line-height: 1.8;
}

.info-box p:last-child { margin-bottom: 0; }

.chapter-divider {
    background: transparent;
    border: 0;
    color: transparent;
    font-size: 0;
    height: 1px;
    margin: 20px auto;
}

/* ── FULL-WIDTH BANNER ──────────────────────────── */
.banner {
    background: #1a1410;
    padding: 64px 40px;
    text-align: center;
}

.banner p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #d4a85a;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── CLOSING SECTION ───────────────────────────── */
.closing {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px;
}

.closing-heading {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #1a1410;
    margin-bottom: 0;
    line-height: 1.2;

}

.closing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 48px;
}

.closing-block h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    letter-spacing: 3px;
    color: #8a6028;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2d9cc;
}

.closing-block p {
    font-size: 1.5rem;
    color: #2a1f14;
    line-height: 1.8;
    margin-bottom: 20px;
}

.closing-link {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #6e4a1a;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid #b4823c;
    padding-bottom: 2px;
    transition: color 0.25s, border-color 0.25s;
    width: 100%;
}

.closing-link:hover {
    color: #8a6028;
    border-color: #8a6028;
}

.closing-logo-mc {
    width: 100%;
    margin-bottom: 24px;
}

.closing-logo-mc img {
    width: 220px;
    height: auto;
    margin: 30px 0 25px;
    display: block;
}

.closing-logo-jwbiz {
    margin-bottom: 24px;
}

.closing-logo-jwbiz img {
    width: 290px;
    height: auto;
    margin: 30px 0 0;
    display: block;
}

.closing-logo-gk {
    margin-bottom: 24px;
}

.closing-logo-gk img {
    width: 230px;
    height: auto;
    margin: 30px 0 0;
    display: block;
}

/* ── FOOTER ────────────────────────────────────── */
footer {
    background: #110e09;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left a {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #ffd6a3;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.25s;
}

.footer-left a:hover { color: #faf7f2; }

.footer-right {
    display: flex;
    gap: 32px;
}

.footer-right a {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #ffd6a3;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.25s;
}

.footer-right a:hover { color: #faf7f2; }

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 640px) {
    .chapter, .toc { padding: 56px 24px 0; }
    .cover { padding: 48px 24px; }
    .pullquote { padding: 28px 24px; }
    .info-box { padding: 24px 22px; }
    footer { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
    .footer-right { gap: 20px; flex-wrap: wrap; }
    .banner { padding: 48px 24px; }
    .chapter p { font-size: 1.35rem; }
    .chapter-intro { font-size: 1.45rem; }
    .toc-list a { font-size: 1.25rem; }
    .info-box p { font-size: 1.25rem; }
    .closing { padding: 56px 24px; }
    .closing-grid { grid-template-columns: 1fr; gap: 44px; }
    .closing-block p { font-size: 1.2rem; }
}

@media (max-width: 500px) {
    .chapter p { font-size: 1.25rem; }
    .chapter-intro { font-size: 1.35rem; }
    .cover-scroll {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #b4823c;
    font-size: 2.4rem;
    animation: bounce 2.4s ease-in-out infinite;
}
}

/* ── PRINT ─────────────────────────────────────── */
@media print {
    .cover-scroll { display: none; }
    .chapter, .toc { page-break-inside: avoid; }
}

/* ── NAVBAR ─────────────────────────────────────── */
body { padding-top: 56px; }
body.nav-open { overflow: hidden; }

.ebook-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #110e09;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 24px;
    height: 56px;
}

.ebook-nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.ebook-nav-hamburger span {
    display: block;
    width: 32px;
    height: 3px;
    background: #e8ddd4;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.25s;
}

.ebook-nav-hamburger:hover span { background: #d4a85a; }

.ebook-nav-hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.ebook-nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ebook-nav-hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.ebook-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1001;
}
.ebook-nav-overlay.is-open { display: block; }

.ebook-nav-links {
    list-style: none;
    margin: 0;
    padding: 32px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: #110e09;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid #2a1f14;
    overflow-y: auto;
}

.ebook-nav-links.is-open { transform: translateX(0); }

.ebook-nav-links li a {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 2px;
    color: #e8ddd4;
    text-decoration: none;
    text-transform: uppercase;
    padding: 16px 32px;
    transition: color 0.25s, background 0.25s;
}

.ebook-nav-links li a:hover {
    color: #d4a85a;
    background: rgba(255,255,255,0.03);
}

.ebook-nav-links::-webkit-scrollbar { width: 4px; }
.ebook-nav-links::-webkit-scrollbar-track { background: #f5ead8; }
.ebook-nav-links::-webkit-scrollbar-thumb { background: #d4a85a; border-radius: 4px; }

/* ── INTRO PAGE ─────────────────────────────────── */
.intro-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px;
}

.intro-heading {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #1a1410;
    margin-bottom: 32px;
}

.intro-section p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #2a1f14;
    line-height: 1.8;
    margin-bottom: 20px;
}

.ebook-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 56px;
}

.ebook-card {
    display: block;
    text-decoration: none;
    border: 1px solid #d9cfc4;
    padding: 36px 32px;
    background: #fdf9f4;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.ebook-card:hover {
    border-color: #b4823c;
    box-shadow: 0 4px 24px rgba(26,20,16,0.08);
}

.ebook-card-label {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #b4823c;
    display: block;
    margin-bottom: 12px;
}

.ebook-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #1a1410;
    margin: 0 0 6px;
}

.ebook-card-sub {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #7a5c3a;
    margin: 0 0 20px;
}

.ebook-card-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    color: #3a2a1e;
    line-height: 1.7;
    margin: 0 0 24px;
}

.ebook-card-link {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6e4a1a;
    border-bottom: 1px solid #b4823c;
    padding-bottom: 2px;
}

/* Cover index variant — slightly shorter */
.cover-index { min-height: 60vh; }

@media (max-width: 640px) {
    .ebook-cards { grid-template-columns: 1fr; gap: 24px; }
    .intro-section { padding: 56px 24px; }
    .intro-heading { font-size: 1.6rem; }
    .intro-section p { font-size: 1.3rem; }
}