/* Elhamra Kitap — Modern Literary Design */
:root {
    --bg: #faf6ee;
    --bg-alt: #f3ede0;
    --surface: #ffffff;
    --ink: #1a1410;
    --ink-2: #3a2f25;
    --muted: #8a7d6d;
    --line: #e8dfce;

    --brand: #7b1e1e;           /* deep burgundy */
    --brand-2: #a73030;
    --brand-ink: #4a0f0f;
    --gold: #b8893a;
    --gold-soft: #e8cd8e;
    --cream: #fff8ea;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 3px rgba(26,20,16,.06), 0 1px 2px rgba(26,20,16,.04);
    --shadow: 0 10px 25px -10px rgba(26,20,16,.12), 0 4px 10px -6px rgba(26,20,16,.08);
    --shadow-lg: 0 25px 50px -15px rgba(26,20,16,.18), 0 10px 20px -8px rgba(26,20,16,.1);

    --container: 1240px;
    --header-h: 96px;

    --f-serif: 'Playfair Display', 'Georgia', serif;
    --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --f-accent: 'Bebas Neue', 'PT Sans Narrow', sans-serif;

    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--f-sans);
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    background-image:
        radial-gradient(circle at 20% 0%, rgba(184, 137, 58, .06) 0%, transparent 45%),
        radial-gradient(circle at 90% 30%, rgba(123, 30, 30, .04) 0%, transparent 50%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--f-serif);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-2); }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ───── HEADER ───── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: var(--header-h);
    gap: 16px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { max-height: 76px; width: auto; }
@media (max-width: 600px) {
    .logo img { max-height: 56px; }
}

.hamburger {
    width: 44px; height: 44px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px;
    transition: all .2s var(--ease);
}
.hamburger:hover { border-color: var(--brand); }
.hamburger span {
    display: block; width: 20px; height: 2px;
    background: var(--ink); border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.tagline { display: none; }
.header-right { display: contents; }

.main-nav { display: none; }
.main-nav.open { display: block; }
.main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px;
    animation: slideDown .3s var(--ease-out);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.main-nav ul { display: flex; flex-direction: column; gap: 2px; }
.main-nav a {
    display: block; padding: 12px 16px;
    font-family: var(--f-sans); font-weight: 600; font-size: 15px;
    color: var(--ink); border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
    transition: all .2s var(--ease);
}
.main-nav a:hover, .main-nav a.active {
    color: var(--brand); background: var(--cream);
}
.main-nav .btn-shop {
    background: var(--ink);
    color: var(--cream);
    margin-top: 8px;
    text-align: center;
    padding: 13px 16px;
    position: relative;
    overflow: hidden;
}
.main-nav .btn-shop:hover { background: var(--brand); color: #fff; }

@media (min-width: 960px) {
    .hamburger { display: none; }
    .header-right {
        display: flex !important;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
    .tagline {
        display: block;
        font-family: var(--f-serif);
        font-style: italic;
        font-size: 20px;
        color: var(--ink-2);
        letter-spacing: 0.01em;
        position: relative;
        padding-right: 14px;
    }
    .tagline::before {
        content: "\201C";
        color: var(--gold);
        font-size: 1.6rem;
        line-height: 0;
        position: relative;
        top: 8px;
        margin-right: 4px;
    }
    .main-nav {
        display: block !important;
        position: static; box-shadow: none; border: none;
        background: transparent; padding: 0; animation: none;
    }
    .main-nav ul {
        flex-direction: row; gap: 4px; align-items: center;
    }
    .main-nav a {
        padding: 10px 14px; font-size: 13.5px; font-weight: 600;
        text-transform: uppercase; letter-spacing: 0.08em;
    }
    .main-nav .btn-shop {
        margin: 0 0 0 8px; padding: 10px 20px;
        border-radius: 999px; font-size: 12px;
    }
}

/* ───── HERO ───── */
.hero-slider {
    position: relative;
    margin: 24px 0 40px;
    overflow: hidden;
    background: transparent;
}
.slides { position: relative; width: 100%; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%;
    display: none;
}
.slide.active { display: block; position: relative; z-index: 1; }
.slide img { width: 100%; height: auto; display: block; }
.hero-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 30px;
    color: #fff;
    pointer-events: none;
    z-index: 2;
}
@media (min-width: 800px) { .hero-overlay { padding: 50px 60px; } }
.hero-overlay .eyebrow {
    display: inline-block; font-family: var(--f-sans);
    font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--gold-soft); margin-bottom: 10px;
    opacity: 0; animation: fadeUp .8s var(--ease-out) .3s forwards;
}
.hero-overlay h1 {
    font-size: clamp(1.8rem, 4.5vw, 3.6rem);
    color: #fff; margin: 0 0 16px; max-width: 18ch;
    opacity: 0; animation: fadeUp .8s var(--ease-out) .5s forwards;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero-overlay p {
    max-width: 50ch; font-size: 1rem; margin: 0 0 22px;
    color: rgba(255,255,255,.92); line-height: 1.6;
    opacity: 0; animation: fadeUp .8s var(--ease-out) .7s forwards;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.slide-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.12); color: #fff;
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    transition: all .25s var(--ease); z-index: 3;
    border: 1px solid rgba(255,255,255,.15);
}
.slide-nav:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-50%) scale(1.08); }
.slide-nav.prev { left: 20px; }
.slide-nav.next { right: 20px; }

/* ───── UPCOMING CAROUSEL ───── */
.upcoming-strip { margin: 10px 0 30px; }
.upcoming-carousel {
    position: relative;
    display: flex; align-items: center;
    gap: 8px;
}
.upcoming-track {
    flex: 1;
    display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((100% - 40px) / 3);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 2px 18px;
    scrollbar-width: thin;
}
@media (min-width: 720px)  { .upcoming-track { grid-auto-columns: calc((100% - 60px) / 4); } }
@media (min-width: 1000px) { .upcoming-track { grid-auto-columns: calc((100% - 80px) / 5); } }
@media (max-width: 520px)  { .upcoming-track { grid-auto-columns: calc((100% - 20px) / 2); gap: 12px; } }

.upcoming-track::-webkit-scrollbar { height: 6px; }
.upcoming-track::-webkit-scrollbar-thumb { background: var(--gold-soft); border-radius: 3px; }

.upcoming-item {
    display: block;
    scroll-snap-align: start;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
    text-decoration: none;
    color: inherit;
}
.upcoming-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.upcoming-item img { width: 100%; height: auto; display: block; }

.up-nav {
    flex: 0 0 auto;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all .2s var(--ease);
}
.up-nav:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 520px) { .up-nav { display: none; } }

/* ───── SECTION HEADING ───── */
.section-heading {
    text-align: center;
    margin: 60px 0 36px;
    position: relative;
}
.section-heading .eyebrow {
    display: inline-block; font-family: var(--f-sans);
    font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 8px; font-weight: 600;
}
.section-heading h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    margin: 0;
}
.section-heading::after {
    content: ""; display: block;
    width: 48px; height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 16px auto 0;
}
.section-heading.left { text-align: left; }
.section-heading.left::after { margin: 16px 0 0; background: linear-gradient(to right, var(--gold), transparent); }

/* compatibility for older usage */
.section-title {
    font-family: var(--f-serif);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--ink);
    margin: 40px 0 28px;
    padding-bottom: 16px;
    position: relative;
}
.section-title::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 60px; height: 3px;
    background: linear-gradient(to right, var(--brand), var(--gold));
    border-radius: 2px;
}

/* ───── HOME GRID ───── */
.home-grid {
    display: grid; gap: 40px;
    grid-template-columns: 1fr;
    margin-bottom: 60px;
}
@media (min-width: 960px) {
    .home-grid { grid-template-columns: 1fr 300px; gap: 50px; }
}
.home-main .rich-text {
    background: var(--surface);
    padding: 28px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--gold);
    margin-bottom: 30px;
}

/* ───── BOOK CARDS ───── */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}
.book-grid.wide {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 32px;
}
.book-card {
    position: relative;
    background: transparent;
    text-align: center;
    transition: transform .4s var(--ease-out);
}
.book-card:hover { transform: translateY(-6px); }
.book-cover {
    display: block; position: relative;
    aspect-ratio: 2/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-alt);
    box-shadow:
        0 1px 3px rgba(26,20,16,.1),
        6px 6px 0 -3px var(--bg-alt),
        6px 6px 8px -4px rgba(26,20,16,.2);
    transition: all .4s var(--ease-out);
}
.book-card:hover .book-cover {
    box-shadow:
        0 8px 20px rgba(26,20,16,.18),
        10px 10px 0 -4px var(--gold-soft),
        10px 10px 20px -6px rgba(26,20,16,.25);
}
.book-cover::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 40%);
    z-index: 1; pointer-events: none;
}
.book-cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s var(--ease-out);
}
.book-card:hover .book-cover img { transform: scale(1.06); }

.book-title {
    font-family: var(--f-serif);
    font-size: 1.05rem; margin: 18px 10px 4px;
    line-height: 1.3;
    min-height: 2.6em;
}
.book-title a { color: var(--ink); }
.book-title a:hover { color: var(--brand); }
.book-author {
    font-size: .82rem; color: var(--muted);
    margin: 0 10px 4px;
    letter-spacing: 0.03em;
    font-style: italic;
}
.book-isbn {
    font-size: .72rem; color: var(--muted); opacity: .7;
    margin: 0 10px; font-variant-numeric: tabular-nums;
}

/* ───── SIDEBAR ───── */
.side-box {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}
.side-title {
    font-family: var(--f-serif);
    font-size: 1.25rem; font-weight: 700;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-alt);
    position: relative;
}
.side-title::after {
    content: ""; position: absolute; left: 0; bottom: -2px;
    width: 36px; height: 2px; background: var(--gold);
}

.category-list { display: flex; flex-direction: column; gap: 6px; }
.category-list li a {
    display: flex; align-items: center;
    padding: 11px 14px;
    background: var(--cream);
    color: var(--brand-ink);
    border-radius: var(--radius-sm);
    font-size: .92rem; font-weight: 500;
    transition: all .2s var(--ease);
    position: relative;
    padding-left: 30px;
}
.category-list li a::before {
    content: ""; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold);
    transition: all .2s var(--ease);
}
.category-list li a:hover {
    background: var(--brand); color: #fff;
    padding-left: 34px;
}
.category-list li a:hover::before { background: var(--gold-soft); width: 8px; height: 8px; }

.upcoming { display: grid; gap: 14px; }
.upcoming img {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease-out);
}
.upcoming a:hover img { transform: scale(1.02); }

/* ───── AUTHORS ───── */
.author-grid {
    display: grid; gap: 26px;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    margin-bottom: 50px;
}
.author-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: all .35s var(--ease-out);
}
.author-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--gold-soft);
}
.author-photo {
    display: block; width: 120px; height: 120px;
    border-radius: 50%; overflow: hidden;
    margin: 0 auto 16px;
    background: var(--bg-alt);
    box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--gold-soft);
    transition: all .3s var(--ease-out);
}
.author-card:hover .author-photo {
    box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--gold);
}
.author-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.author-card:hover .author-photo img { transform: scale(1.08); }
.author-name { font-family: var(--f-serif); font-size: 1.05rem; margin: 0; }
.author-name a { color: var(--ink); }
.author-name a:hover { color: var(--brand); }

/* ───── DETAIL PAGES ───── */
.book-detail, .author-detail, .content-page {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 40px;
    margin: 30px 0 60px;
    border: 1px solid var(--line);
}
@media (max-width: 700px) {
    .book-detail, .author-detail, .content-page { padding: 24px; }
}
.book-detail-header, .author-detail-header {
    text-align: center;
    padding-bottom: 28px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.book-detail-header::after, .author-detail-header::after {
    content: "❦"; position: absolute;
    bottom: -12px; left: 50%; transform: translateX(-50%);
    color: var(--gold); background: var(--surface);
    padding: 0 10px; font-size: 20px;
}
.book-detail-header h1, .author-detail-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--ink); margin: 0 0 12px;
}
.book-author-big {
    font-family: var(--f-serif); font-style: italic;
    font-size: 1.15rem; color: var(--brand);
    margin: 0 0 6px;
}
.book-isbn-big {
    font-size: .85rem; color: var(--muted);
    margin: 0; letter-spacing: .05em;
    font-variant-numeric: tabular-nums;
}
.book-detail-body, .author-detail-body {
    display: grid; grid-template-columns: 1fr; gap: 36px;
}
@media (min-width: 760px) {
    .book-detail-body { grid-template-columns: 380px 1fr; gap: 48px; }
    .author-detail-body { grid-template-columns: 260px 1fr; }
}
.book-detail-cover img, .author-detail-photo img {
    width: 100%; border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.author-detail-photo img { border-radius: 50%; aspect-ratio: 1/1; object-fit: cover; }

.content-page h1.section-title,
.content-page > h1 {
    text-align: center; padding: 0 0 20px;
    border-bottom: 0;
}
.content-page > h1::after { left: 50%; transform: translateX(-50%); }
.content-image { margin: 0 auto 28px; max-width: 500px; }
.content-image img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ───── RICH TEXT ───── */
.rich-text { font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.rich-text p { margin: 0 0 1.1em; }
.rich-text img { border-radius: var(--radius-sm); margin: 16px 0; box-shadow: var(--shadow-sm); }
.rich-text a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.rich-text h1, .rich-text h2, .rich-text h3 {
    font-family: var(--f-serif); color: var(--ink); margin: 1.6em 0 .6em;
}
.rich-text blockquote {
    border-left: 3px solid var(--gold);
    background: var(--cream);
    margin: 1.4em 0; padding: 16px 22px;
    font-style: italic; color: var(--ink-2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.rich-text ul, .rich-text ol { padding-left: 1.5em; margin: 0 0 1em; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.rich-text th, .rich-text td { border: 1px solid var(--line); padding: 8px 12px; }

/* ───── CONTACT ───── */
.contact-grid {
    display: grid; gap: 28px;
    grid-template-columns: 1fr;
    margin: 30px 0;
}
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }
.contact-info, .contact-form-wrap {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label {
    display: flex; flex-direction: column;
    font-size: .82rem; color: var(--muted);
    font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.contact-form label span { margin-bottom: 8px; }
.contact-form input, .contact-form textarea {
    font-family: inherit; font-size: 15px;
    padding: 13px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--ink);
    transition: all .2s var(--ease);
    text-transform: none; letter-spacing: normal; font-weight: 400;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(123,30,30,.08);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

.captcha-row { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 12px !important; }
.captcha-row span:first-child { flex-basis: 100%; }
.captcha-code {
    display: inline-block;
    padding: 11px 20px;
    background: linear-gradient(135deg, var(--ink) 0%, var(--brand-ink) 100%);
    color: var(--gold-soft);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 1.25rem; font-weight: 700;
    letter-spacing: .4em;
    box-shadow: inset 0 2px 6px rgba(0,0,0,.3);
}
.captcha-row input { width: 120px !important; }

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 36px;
    background: var(--ink); color: var(--cream);
    border: none; border-radius: 999px;
    font-family: var(--f-sans); font-weight: 600;
    font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
    transition: all .25s var(--ease);
    align-self: flex-start;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: .9rem;
    border-left: 4px solid;
}
.alert-success { background: #eef9e5; color: #2e6f15; border-color: #68b04b; }
.alert-error { background: #fceeee; color: var(--brand-ink); border-color: var(--brand); }

.contact-info h2, .contact-info h3 {
    font-family: var(--f-serif); margin-top: 0;
}
.contact-map {
    margin: 30px 0 60px;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}
.contact-map iframe { width: 100%; min-height: 360px; border: 0; display: block; }

/* ───── NEWS ───── */
.news-list {
    display: grid; gap: 24px;
    grid-template-columns: 1fr;
}
@media (min-width: 700px) { .news-list { grid-template-columns: 1fr 1fr; } }
.news-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: all .3s var(--ease-out);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card h3 {
    margin: 0; padding: 20px 24px;
    font-family: var(--f-serif); font-size: 1.2rem;
}
.news-thumb { display: block; overflow: hidden; }
.news-thumb img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
    transition: transform .6s var(--ease-out);
}
.news-card:hover .news-thumb img { transform: scale(1.04); }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px; margin: 24px 0;
}
.gallery-item img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform .4s var(--ease-out);
    box-shadow: var(--shadow-sm);
}
.gallery-item:hover img { transform: scale(1.04); }

/* ───── NEWSLETTER / CTA STRIP ───── */
.cta-strip {
    background: linear-gradient(135deg, var(--ink) 0%, var(--brand-ink) 100%);
    color: var(--cream);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    margin: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-strip::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(184, 137, 58, .18), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(184, 137, 58, .12), transparent 40%);
    pointer-events: none;
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip .eyebrow { color: var(--gold-soft); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; }
.cta-strip h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: #fff; margin: 10px 0 12px;
}
.cta-strip p { color: rgba(255,255,255,.85); max-width: 55ch; margin: 0 auto 24px; }
.cta-strip .btn-primary { background: var(--gold); color: var(--ink); }
.cta-strip .btn-primary:hover { background: var(--cream); color: var(--brand-ink); }

/* ───── FOOTER ───── */
.site-footer {
    background: #13100c;
    color: #c9beac;
    margin-top: 60px;
    padding: 50px 0 24px;
    position: relative;
}
.site-footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.footer-inner {
    display: flex; flex-direction: column;
    gap: 24px; text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
@media (min-width: 760px) {
    .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; align-items: center; }
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.footer-nav a {
    color: #c9beac;
    font-size: .88rem; font-weight: 500;
    letter-spacing: .03em;
    transition: color .2s var(--ease);
}
.footer-nav a:hover { color: var(--gold); }
.copyright {
    text-align: center; font-size: .8rem; color: #7a6f5e;
    margin-top: 20px; letter-spacing: .03em;
}

/* ───── 404 ───── */
.not-found {
    text-align: center; padding: 80px 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    margin: 40px 0 60px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}
.not-found h1 {
    font-size: clamp(5rem, 14vw, 9rem);
    color: var(--brand); margin: 0;
    font-family: var(--f-serif); font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--brand) 0%, var(--gold) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.not-found p { font-size: 1.1rem; color: var(--muted); margin: 10px 0 28px; }

.empty {
    padding: 60px 30px; text-align: center;
    color: var(--muted); background: var(--surface);
    border-radius: var(--radius); font-style: italic;
    border: 1px dashed var(--line);
}

/* ───── LAZY IMAGES ───── */
img.lazy {
    opacity: 0;
    background: linear-gradient(110deg, var(--bg-alt) 8%, #ede6d6 18%, var(--bg-alt) 33%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
    transition: opacity .45s var(--ease-out);
}
img.lazy.loaded {
    opacity: 1;
    background: transparent;
    animation: none;
}
@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ───── REVEAL ANIMATIONS ───── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ───── ENTRANCE STAGGER ───── */
.book-grid .book-card,
.author-grid .author-card {
    opacity: 0;
    animation: cardIn .6s var(--ease-out) forwards;
}
.book-grid .book-card:nth-child(1),.author-grid .author-card:nth-child(1) { animation-delay: .05s; }
.book-grid .book-card:nth-child(2),.author-grid .author-card:nth-child(2) { animation-delay: .1s; }
.book-grid .book-card:nth-child(3),.author-grid .author-card:nth-child(3) { animation-delay: .15s; }
.book-grid .book-card:nth-child(4),.author-grid .author-card:nth-child(4) { animation-delay: .2s; }
.book-grid .book-card:nth-child(5),.author-grid .author-card:nth-child(5) { animation-delay: .25s; }
.book-grid .book-card:nth-child(6),.author-grid .author-card:nth-child(6) { animation-delay: .3s; }
.book-grid .book-card:nth-child(n+7),.author-grid .author-card:nth-child(n+7) { animation-delay: .35s; }
@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

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