/* =====================================================================
   Dar Al Tanweer — public site styles
   Brand fonts: Cocon Next Arabic (display) + GE SS Two (body)
   ===================================================================== */

/* ---- Brand fonts (self-hosted) ---- */
@font-face { font-family:'Cocon Next'; font-weight:300; font-style:normal; font-display:swap; src:url('../fonts/CoconNextArabicLight.otf') format('opentype'); }
@font-face { font-family:'Cocon Next'; font-weight:400; font-style:normal; font-display:swap; src:url('../fonts/CoconNextArabicRegular.otf') format('opentype'); }
@font-face { font-family:'Cocon Next'; font-weight:700; font-style:normal; font-display:swap; src:url('../fonts/CoconNextArabicBold.otf') format('opentype'); }

@font-face { font-family:'GE SS Two'; font-weight:300; font-style:normal; font-display:swap; src:url('../fonts/GE_SS_Two_Light.woff') format('woff'), url('../fonts/GE_SS_Two_Light.ttf') format('truetype'); }
@font-face { font-family:'GE SS Two'; font-weight:400; font-style:normal; font-display:swap; src:url('../fonts/GE_SS_Two_Light.woff') format('woff'), url('../fonts/GE_SS_Two_Light.ttf') format('truetype'); }
@font-face { font-family:'GE SS Two'; font-weight:500; font-style:normal; font-display:swap; src:url('../fonts/GE_SS_Two_Medium.woff') format('woff'), url('../fonts/GE_SS_Two_Medium.ttf') format('truetype'); }
@font-face { font-family:'GE SS Two'; font-weight:700; font-style:normal; font-display:swap; src:url('../fonts/GE_SS_Two_Bold.woff') format('woff'), url('../fonts/GE_SS_Two_Bold.ttf') format('truetype'); }

:root {
    --bg: #f5f2ea;
    --surface: #fffdf8;
    --surface-2: #faf7ef;
    --ink: #1f1b18;
    --ink-soft: #3a342e;
    --muted: #756f64;
    --line: #e7e0d1;
    --accent: #c3151c;
    --accent-dark: #9a1015;
    --accent-soft: #f6e7e2;
    --shadow: 0 14px 40px rgba(31, 27, 24, .14);
    --shadow-sm: 0 5px 18px rgba(31, 27, 24, .10);
    --radius: 12px;
    --maxw: 1240px;
    --font-body: 'GE SS Two', 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Cocon Next', 'GE SS Two', serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--font-body); font-size: 17px; line-height: 1.8; font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-dark); }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.25; font-weight: 700; margin: 0 0 .5em; color: var(--ink); }
::selection { background: var(--accent); color: #fff; }

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

/* ===== Header ===== */
.site-header { background: rgba(255,253,248,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 84px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 56px; width: auto; display: block; }
.brand-ar { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--ink); }
.brand-en { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; flex-wrap: wrap; }
.nav-link { font-family: var(--font-display); color: var(--ink); font-weight: 400; font-size: 17px; padding: 9px 14px; border-radius: 8px; transition: background .15s, color .15s; }
.nav-link:hover { background: var(--accent-soft); color: var(--accent); }
.nav-link.is-active { color: var(--accent); }
.header-search { position: relative; }
.header-search input { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 10px 20px; font-family: var(--font-body); font-size: 14px; width: 200px; color: var(--ink); transition: border-color .15s, width .2s; }
.header-search input:focus { outline: none; border-color: var(--accent); width: 230px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 85% 10%, #5a1216 0%, #2a1411 45%, #181513 100%); color: #f3e9da; padding: 80px 0; }
.hero::after { content:''; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; opacity:.5; pointer-events:none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-eyebrow { font-family: var(--font-display); letter-spacing: .04em; color: #e7b9a0; font-size: 15px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); color: #fff; margin-bottom: 18px; line-height: 1.1; }
.hero p { font-size: 19px; max-width: 560px; color: #e3d4c2; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 36px; }
.hero-stat .num { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: #fff; line-height: 1; }
.hero-stat .label { font-size: 14px; color: #d6c2ad; margin-top: 6px; }
/* fanned book covers — rotating slides */
.hero-stack { position: relative; height: 380px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide .hc { position: absolute; width: 200px; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; box-shadow: 0 22px 50px rgba(0,0,0,.5); background:#3a2a25; }
.hero-slide .hc img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .hc:nth-child(1) { inset-inline-end: 38%; top: 30px; transform: rotate(-8deg); z-index: 1; }
.hero-slide .hc:nth-child(2) { inset-inline-end: 16%; top: 0; transform: rotate(0deg); z-index: 3; width: 215px; }
.hero-slide .hc:nth-child(3) { inset-inline-end: -2%; top: 40px; transform: rotate(8deg); z-index: 2; }

/* ===== Intro / about band (award seal watermark) ===== */
.intro-band { position: relative; background: #efece4; border-block: 1px solid var(--line); padding: 72px 0; overflow: hidden; }
.intro-band::before { content:''; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:460px; height:460px; background-image: var(--seal, url('../img/seal-default.svg')); background-repeat:no-repeat; background-position:center; background-size:contain; opacity:.07; pointer-events:none; }
.intro-inner { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.intro-text { font-size: 19px; line-height: 2.15; color: var(--ink-soft); }
.intro-caption { margin-top: 24px; font-family: var(--font-display); font-size: 21px; color: var(--accent); font-weight: 700; }
.intro-caption::before { content:''; display:block; width:48px; height:3px; background:var(--accent); border-radius:2px; margin:0 auto 16px; }
@media (max-width:560px){ .intro-text{font-size:17px;line-height:2;} .intro-band::before{width:300px;height:300px;} }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; padding: 12px 26px; border-radius: 999px; font-family: var(--font-display); font-weight: 400; font-size: 16px; border: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(195,21,28,.32); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); transform: translateY(-1px); box-shadow: none; }

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; gap: 16px; }
.section-head h2 { font-size: 32px; margin: 0; position: relative; padding-inline-start: 16px; }
.section-head h2::before { content:''; position:absolute; inset-inline-start:0; top:8px; bottom:8px; width:5px; border-radius:3px; background: var(--accent); }
.section-head .more { font-family: var(--font-display); font-weight: 400; font-size: 16px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

/* ===== Book grid & cards ===== */
.book-grid { display: grid; gap: 34px 24px; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); }
.book-card { display: flex; flex-direction: column; }
.book-cover { position: relative; aspect-ratio: 2/3; border-radius: 9px; overflow: hidden; background: linear-gradient(135deg,#ece4d6,#ddd2bf); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.book-cover::after { content:''; position:absolute; inset-inline-start:0; top:0; bottom:0; width:8px; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0)); }
html[dir=rtl] .book-cover::after { inset-inline-start:auto; inset-inline-end:0; background: linear-gradient(270deg, rgba(0,0,0,.18), rgba(0,0,0,0)); }
.book-card:hover .book-cover { transform: translateY(-6px); box-shadow: var(--shadow); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover.is-empty { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--muted); font-family: var(--font-display); font-size: 16px; }
.book-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 14px 0 3px; line-height: 1.4; }
.book-title a { color: var(--ink); }
.book-title a:hover { color: var(--accent); }
.book-author { font-size: 14px; color: var(--muted); margin: 0; }

/* ===== Genre chips ===== */
.chips { display: flex; flex-wrap: wrap; gap: 11px; }
.chip { font-family: var(--font-display); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 15px; color: var(--ink); font-weight: 400; transition: all .15s; }
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip .count { color: var(--muted); font-size: 12px; margin-inline-start: 5px; }
.chip:hover .count { color: var(--accent); }
.chip.is-active .count { color: #f3cdc9; }

/* ===== Category cards (browse by genre) ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 14px 18px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.cat-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.cat-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; transition: background .18s, color .18s, transform .18s; }
.cat-card:hover .cat-ico { background: var(--accent); color: #fff; transform: scale(1.06); }
.cat-ico svg { width: 27px; height: 27px; }
.cat-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.cat-count { font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 12px; } .cat-ico { width: 48px; height: 48px; } .cat-ico svg { width: 23px; height: 23px; } .cat-card { padding: 18px 10px 14px; } }

/* ===== Listing layout ===== */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 38px 0 30px; }
.page-head h1 { font-size: 40px; margin: 0; }
.page-head .lead { color: var(--muted); margin: 8px 0 0; font-size: 16px; }
/* tighten the gap when a listing section follows the page header */
.page-head + .section { padding-top: 30px; }
.layout-sidebar { display: grid; grid-template-columns: 250px 1fr; gap: 46px; align-items: start; }
.sidebar h3 { font-size: 19px; border-bottom: 2px solid var(--accent); padding-bottom: 9px; display: inline-block; }
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list a { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-soft); padding: 7px 0; font-size: 15.5px; border-bottom: 1px dashed var(--line); }
.sidebar-list a:hover { color: var(--accent); padding-inline-start: 4px; }
.sidebar-list a.is-active { color: var(--accent); font-weight: 700; }
.sidebar-list .count { color: var(--muted); font-size: 13px; }

/* ===== Pagination ===== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 50px; flex-wrap: wrap; }
.pagination a, .pagination span { font-family: var(--font-display); min-width: 44px; text-align: center; padding: 9px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 15px; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .disabled { opacity: .4; }

/* ===== Book detail ===== */
.book-detail { display: grid; grid-template-columns: 340px 1fr; gap: 54px; align-items: start; }
.book-detail-cover { position: sticky; top: 104px; }
.book-detail-cover img, .book-detail-cover .ph { width: 100%; border-radius: 14px; box-shadow: var(--shadow); }
.book-detail-cover .ph { aspect-ratio: 2/3; background: linear-gradient(135deg,#ece4d6,#ddd2bf); display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--font-display); padding: 20px; text-align: center; }
.book-detail h1 { font-size: 38px; margin-bottom: 12px; }
.book-byline { font-size: 18px; color: var(--muted); margin-bottom: 22px; }
.book-byline a { font-weight: 500; }
.book-pullquote { border-inline-start: 4px solid var(--accent); padding: 4px 20px; margin: 24px 0; color: var(--ink-soft); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.book-pullquote h3 { font-family: var(--font-display); font-size: 19px; font-weight: 400; margin: 0; line-height: 1.7; color: var(--ink-soft); }
.prose { font-size: 17px; color: var(--ink-soft); line-height: 1.95; }
.prose p { margin: 0 0 1em; }
.prose h3 { font-size: 20px; margin-top: 1.2em; }
.meta-table { width: 100%; border-collapse: collapse; margin: 26px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.meta-table th, .meta-table td { text-align: start; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.meta-table tr:last-child th, .meta-table tr:last-child td { border-bottom: none; }
.meta-table th { color: var(--muted); font-weight: 500; width: 150px; background: var(--surface-2); }
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 10px 0 0; }
.buy-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.card-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-top: 26px; }
.card-block h3 { font-size: 21px; margin-top: 0; }

/* ===== Bookshops (where to buy) ===== */
.bookshops-intro { color: var(--muted); margin: -14px 0 26px; font-size: 16px; }
.shop-countries { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.shop-country { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; }
.shop-country-name { font-size: 17px; margin: 0 0 12px; padding-inline-start: 12px; position: relative; color: var(--ink); }
.shop-country-name::before { content: ''; position: absolute; inset-inline-start: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: var(--accent); }
.shop-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.shop-item a, .shop-item .shop-plain { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; font-size: 15px; color: var(--ink-soft); transition: background .15s, color .15s; }
.shop-item a { cursor: pointer; }
.shop-item a:hover { background: var(--accent-soft); color: var(--accent); }
.shop-item .shop-plain { color: var(--muted); }
.shop-ico { flex: 0 0 auto; color: var(--accent); opacity: .85; }
.shop-item .shop-plain .shop-ico { color: var(--muted); }
@media (max-width: 600px) { .shop-countries { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (max-width: 400px) { .shop-countries { grid-template-columns: 1fr; } }

/* ===== Bookstores map (Leaflet) ===== */
.shops-map { height: 480px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; z-index: 0; background: var(--surface-2); }
.map-note { color: var(--muted); font-size: 13.5px; margin-top: 12px; text-align: center; }
@media (max-width: 600px) { .shops-map { height: 380px; } }
/* logo marker */
.dt-divicon { background: transparent; border: 0; }
.dt-pin { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2.5px solid var(--accent); box-shadow: 0 3px 11px rgba(31,27,24,.4); transition: transform .12s; }
.dt-pin:hover { transform: scale(1.08); }
/* width:auto !important is needed to beat Leaflet's .leaflet-marker-pane img { width:auto } */
.dt-pin img { width: 30px !important; height: auto !important; max-width: 30px !important; display: block; object-fit: contain; }
/* popup */
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 13px 16px; font-family: var(--font-body); }
.map-pop { text-align: center; min-width: 120px; }
.map-pop strong { display: block; font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.map-pop .mp-city { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.map-pop .mp-link { display: inline-block; margin-top: 9px; font-size: 13.5px; color: var(--accent); font-weight: 600; }

/* ===== About page ===== */
.about-sub { color: var(--muted); font-size: 16.5px; line-height: 1.9; max-width: 720px; margin: -16px 0 28px; }
.about-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 44px; align-items: start; }
.about-prose .prose p { font-size: 17.5px; line-height: 2.05; color: var(--ink-soft); }
.about-prose .prose strong { color: var(--accent); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.astat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 16px; text-align: center; }
.astat-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; color: var(--accent); }
.astat-label { display: block; margin-top: 7px; font-size: 13.5px; color: var(--muted); }

.imprint-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.imprint-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; border-top: 4px solid var(--accent); }
.imprint-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.imprint-card-head h3 { margin: 0; font-size: 22px; }
.imprint-badge-num { flex: 0 0 auto; font-size: 12.5px; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; font-family: var(--font-display); }
.imprint-card p { color: var(--ink-soft); line-height: 1.9; margin: 0 0 14px; font-size: 15.5px; }

.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; }
.value-ico { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.value-ico svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 19px; margin: 0 0 8px; }
.value-card p { color: var(--ink-soft); line-height: 1.85; margin: 0; font-size: 15px; }

.about-cta {
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(195,21,28,.42) 0%, rgba(195,21,28,0) 55%),
        linear-gradient(150deg, #221a16 0%, #2c1512 55%, #3a1013 100%);
    color: #f3e9da; text-align: center; padding: 60px 0;
}
.about-cta-inner h2 { color: #fff; font-size: 30px; margin: 0 0 10px; }
.about-cta-inner p { color: #e6d8c6; font-size: 16.5px; margin: 0 0 24px; }
.about-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.about-cta-actions .btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.about-cta-actions .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

@media (max-width: 760px) {
    .about-grid { grid-template-columns: 1fr; gap: 28px; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .about-prose .prose p { font-size: 16.5px; line-height: 1.95; }
}

/* ===== Author cards ===== */
.author-search { display: flex; align-items: center; gap: 8px; max-width: 540px; margin: 0 auto 38px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 20px; box-shadow: var(--shadow-sm); transition: border-color .15s; }
.author-search:focus-within { border-color: var(--accent); }
.author-search .as-ico { color: var(--muted); display: flex; flex: 0 0 auto; }
.author-search .as-ico svg { width: 19px; height: 19px; }
.author-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--font-body); font-size: 15.5px; color: var(--ink); padding: 9px 4px; outline: none; }
.author-search .as-clear { color: var(--muted); font-size: 24px; line-height: 1; padding: 0 6px; text-decoration: none; flex: 0 0 auto; }
.author-search .as-clear:hover { color: var(--accent); }
.author-search button { flex: 0 0 auto; border: 0; background: var(--accent); color: #fff; border-radius: 999px; padding: 10px 24px; font-family: var(--font-display); font-size: 15px; cursor: pointer; transition: background .15s; }
.author-search button:hover { background: var(--accent-dark); }

/* Flex (not grid) so a partial last row — even a single author — stays centered, never sparse. */
.author-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px 30px; }
.author-card { text-align: center; flex: 0 1 200px; }
.author-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; background: #ece4d6; box-shadow: var(--shadow-sm); border: 3px solid var(--surface); transition: transform .2s; }
.author-card:hover .author-photo { transform: scale(1.05); }
.author-photo.ph { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 38px; color: #bba98f; }
.author-card .name { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0; }
.author-card .name a { color: var(--ink); }
.author-card .name a:hover { color: var(--accent); }
.author-card .count { color: var(--muted); font-size: 13px; }
.author-hero { display: grid; grid-template-columns: 170px 1fr; gap: 32px; align-items: center; }
.author-hero .photo { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); border: 4px solid var(--surface); }

/* ===== News ===== */
.news-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ece4d6; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-thumb.is-empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2b211d 0%, #6a1318 100%); }
.news-thumb img.news-ph { width: 92px; height: auto; aspect-ratio: auto; object-fit: contain; opacity: .92; }
.news-card:hover .news-thumb img.news-ph { transform: none; }
.news-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card .date { color: var(--accent); font-size: 12.5px; margin-bottom: 9px; font-family: var(--font-display); }
.news-card h3 { font-size: 19px; margin: 0 0 10px; line-height: 1.45; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--accent); }
.news-card .exc { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 14px; }
.news-more { margin-top: auto; font-family: var(--font-display); font-size: 14px; color: var(--accent); }
/* ===== Single article (news) ===== */
.article { max-width: 820px; margin: 0 auto; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--line); }
.article-head { text-align: center; margin-bottom: 26px; }
.article-date { color: var(--accent); font-family: var(--font-display); font-size: 14px; margin-bottom: 12px; }
.article-head h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.3; margin: 0; }
.article-cover { margin: 0 0 32px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.article-cover img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.article-body { font-size: 18px; line-height: 2.05; color: #2c2722; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2 { font-family: var(--font-display); font-size: 25px; color: var(--ink); margin: 1.3em 0 .45em; }
.article-body h3 { font-family: var(--font-display); font-size: 20px; color: var(--ink); margin: 1.2em 0 .4em; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.2em 0; }
.article-body blockquote { border-inline-start: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 22px; border-radius: 0 10px 10px 0; margin: 1.4em 0; color: var(--ink-soft); }
.article-body ul, .article-body ol { padding-inline-start: 26px; margin: 0 0 1.15em; }
.article-foot { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); text-align: center; }
@media (max-width: 560px) { .article-body { font-size: 16.5px; line-height: 1.95; } .article-cover img { max-height: 280px; } }

/* ===== Empty state ===== */
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: #1c1714; color: #d6cbbd; margin-top: 80px; padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 40px; align-items: start; }
.footer-col h4 { font-family: var(--font-display); color: #fff; font-size: 16px; margin: 0 0 14px; }
.footer-brand img { height: 56px; margin-bottom: 12px; opacity: .95; }
.footer-brand p { color: #aa9d8c; max-width: 340px; margin: 4px 0 16px; font-size: 15px; line-height: 1.8; }
.footer-nav { display: flex; flex-direction: column; gap: 9px; font-family: var(--font-display); }
.footer-nav a { color: #d6cbbd; }
.footer-nav a:hover { color: #fff; }
.footer-contact .fc-line { margin: 0 0 9px; font-size: 14.5px; color: #c3b8a8; line-height: 1.7; }
.footer-contact .fc-line a { color: #c3b8a8; }
.footer-contact .fc-line a:hover { color: #fff; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: #2c2420; color: #d6cbbd; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.social-links a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-copy { border-top: 1px solid #382e28; padding-top: 20px; color: #948576; font-size: 13px; margin: 28px 0 0; text-align: center; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-stack { display: none; }
    .layout-sidebar { grid-template-columns: 1fr; }
    .book-detail { grid-template-columns: 1fr; }
    .book-detail-cover { position: static; max-width: 280px; margin: 0 auto; }
    .author-hero { grid-template-columns: 1fr; text-align: center; }
    .author-hero .photo { margin: 0 auto; }
    .header-search { display: none; }
}
@media (max-width: 560px) {
    .book-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 24px 16px; }
    .hero-stats { gap: 26px; }
    .header-inner { min-height: 70px; }
    .brand-logo { height: 46px; }
}

/* ===== Contact ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 46px; align-items: start; }
.contact-form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow-sm); }
.contact-form .f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.contact-form label { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.contact-form input, .contact-form textarea { border: 1px solid var(--line); border-radius: 9px; padding: 11px 14px; font-family: var(--font-body); font-size: 15px; background: var(--surface-2); color: var(--ink); width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-form textarea { resize: vertical; line-height: 1.7; }
.contact-form .btn { margin-top: 4px; border: none; }
.hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.form-flash { padding: 12px 16px; border-radius: 9px; margin-bottom: 16px; font-size: 14.5px; border: 1px solid; }
.form-flash-success { background: #e9f6ec; border-color: #b6e0c0; color: #1c6b32; }
.form-flash-error { background: #fdeceb; border-color: #f3c2bf; color: #a01b16; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; gap: 28px; } }
.contact-details { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-details h3 { font-size: 18px; margin: 0 0 12px; color: var(--accent); }
.contact-details .cd-line { margin: 0 0 8px; color: var(--ink-soft); font-size: 15.5px; }
.contact-details .cd-line a { color: var(--ink-soft); }
.contact-details .cd-line a:hover { color: var(--accent); }
.contact-details .social-links { margin-top: 14px; }
.contact-map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); line-height: 0; }
.contact-map iframe { width: 100%; height: 280px; border: 0; display: block; filter: grayscale(.15); }

/* ===== Catalog landing ===== */
.catalog-band {
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(195,21,28,.42) 0%, rgba(195,21,28,0) 55%),
        linear-gradient(150deg, #221a16 0%, #2c1512 55%, #3a1013 100%);
    color: #f3e9da;
    border-block: 1px solid rgba(0,0,0,.25);
    padding: 60px 0;
    margin-bottom: 8px;
}
.catalog-hero { display: grid; grid-template-columns: 300px 1fr; gap: 52px; align-items: center; }

/* fanned book covers */
.catalog-visual { display: flex; justify-content: center; }
.catalog-stack { position: relative; width: 280px; height: 300px; }
.catalog-stack .cs { position: absolute; top: 50%; width: 176px; aspect-ratio: 2/3; border-radius: 9px; overflow: hidden; box-shadow: 0 20px 44px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.08); }
.catalog-stack .cs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.catalog-stack .cs:nth-child(1) { inset-inline-end: 46%; transform: translateY(-46%) rotate(-8deg); z-index: 1; }
.catalog-stack .cs:nth-child(2) { inset-inline-end: 22%; transform: translateY(-52%) rotate(0); z-index: 3; width: 190px; }
.catalog-stack .cs:nth-child(3) { inset-inline-end: -2%; transform: translateY(-44%) rotate(8deg); z-index: 2; }
.catalog-cover img { width: 230px; max-width: 100%; border-radius: 12px; box-shadow: 0 22px 50px rgba(0,0,0,.55); }

.catalog-info .catalog-kicker { display: inline-block; font-family: var(--font-display); font-size: 13px; letter-spacing: .16em; color: #e9b9a4; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; }
.catalog-info h2 { font-size: 38px; margin: 0 0 8px; color: #fff; }
.catalog-info .cat-sub { color: #e9b9a4; font-family: var(--font-display); font-size: 19px; margin: 0 0 16px; }
.catalog-info .cat-intro { color: #e6d8c6; font-size: 17px; line-height: 1.95; max-width: 580px; margin: 0 0 24px; }

.catalog-stats { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 28px; }
.catalog-stats .cstat { font-size: 13.5px; color: #d4c1ac; }
.catalog-stats .cstat b { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1.1; color: #fff; margin-bottom: 3px; }

.catalog-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.catalog-actions .btn { display: inline-flex; align-items: center; gap: 9px; }
.catalog-actions .btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.catalog-actions .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* preview strip */
.catalog-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 18px; }
.cp-cover { display: block; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.cp-cover:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 760px) {
    .catalog-band { padding: 44px 0; }
    .catalog-hero { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .catalog-visual { order: -1; }
    .catalog-stack { margin: 0 auto; }
    .catalog-cover { max-width: 200px; margin: 0 auto; }
    .catalog-stats, .catalog-actions { justify-content: center; }
    .catalog-preview { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 12px; }
}

/* ===== Horizontal slider (featured authors) ===== */
/* Flex layout: buttons sit in side gutters and never overlap the cards. */
.hslider { display: flex; align-items: center; gap: 10px; }
.hslider-track { flex: 1 1 auto; min-width: 0; display: flex; gap: 24px; overflow-x: auto; padding: 6px 2px 12px; scrollbar-width: none; -ms-overflow-style: none; }
.hslider-track::-webkit-scrollbar { display: none; }
.hslider-track > .author-card { flex: 0 0 150px; }
.hslider-track > .cat-card { flex: 0 0 156px; }
.hslider-btn { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; transition: all .15s; }
.hslider-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 640px) { .hslider-btn { display: none; } .hslider-track > .author-card, .hslider-track > .cat-card { flex-basis: 132px; } }

/* ===== Mobile navigation ===== */
.nav-toggle { display: none; background: none; border: none; font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer; padding: 6px 8px; margin-inline-start: auto; }
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .header-inner { min-height: 66px; }
    .main-nav { display: none; order: 4; flex-basis: 100%; width: 100%; flex-direction: column; gap: 0; margin: 0; padding: 4px 0 10px; }
    body.nav-open .main-nav { display: flex; }
    .main-nav .nav-link { padding: 13px 6px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
    .header-search { display: none; }
}

/* ===== Imprint filter tabs ===== */
.imprint-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.imprint-tabs a { font-family: var(--font-display); font-size: 16px; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: all .15s; }
.imprint-tabs a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.imprint-tabs a.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.imprint-tabs .t-count { font-size: 12px; opacity: .65; margin-inline-start: 4px; }
/* imprint badge on book detail */
.imprint-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 14px; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 14px; margin-bottom: 14px; }
.imprint-badge:hover { background: var(--accent); color: #fff; }
