/* ══════════════════════════════════════════════════════════
   CURIOUS PAPER BOOKS — style.css  v3
   Design System: Cream / Black / Sage Green
   Edit only the :root variables to retheme the whole site.
══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500&display=swap');

/* ── TOKENS ── */
:root {
  --cream:      #F7F5F2;
  --white:      #FFFFFF;
  --black:      #1A1A1A;
  --sage:       #7A8F7B;
  --sage-light: #A8BAA9;
  --sage-dim:   rgba(122,143,123,.12);
  --gray:       #D8D5CF;
  --gray-mid:   #B8B4AE;
  --muted:      #6B6B6B;
  --border:     #E2DFD9;
  --border2:    #CCCAC4;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Inter', system-ui, sans-serif;
  --nav-h:      64px;
  --max-w:      1100px;
  --sp:         8px;
  --radius:     6px;

  /* Accessible text variants — same hues as --sage / white-on-black,
     darkened/brightened to clear WCAG AA (4.5:1) for small static text.
     Use for readable copy (labels, links, captions); keep --sage / rgba(255,255,255,·)
     for backgrounds, borders, icons and large text, where the original values already pass. */
  --sage-text:      #627463; /* was --sage as text on cream/white: 3.19:1 → 4.6:1+ */
  --sage-deep:      #596959; /* was --sage as a full-bleed background (Newsletter): white text was 3.48:1 even at full opacity → 5.85:1 */
  --ondark-2:       rgba(255,255,255,.58); /* was .2–.35: eyebrows, breadcrumbs, meta → ~6.6:1 */
  --ondark-1:       rgba(255,255,255,.72); /* was .4–.5: subheads, taglines → ~9.5:1 */
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { background: var(--cream); color: var(--black); font-family: var(--sans); font-weight: 300; line-height: 1.6; overflow-x: hidden; }
img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }
section { position: relative; }
button  { font-family: var(--sans); }
/* Body copy reads justified everywhere on the site — book/journal descriptions,
   article text, about/guidelines/terms pages, all live in <p> tags, so one
   rule here covers them without touching every page's own stylesheet. */
p { text-align: justify; hyphens: auto; }

/* scrollbar */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gray); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--sage); }

/* ── LAYOUT ── */
.max     { max-width: var(--max-w); margin: 0 auto; padding: 0 calc(var(--sp) * 4); }
.divider { height: 1px; background: var(--border); }

/* Generic hide utility — found missing 2026-09-14 while building saved.php:
   only .bcard.hidden/.bcard-mag.hidden existed (scoped rules), so toggling
   a plain "hidden" class on any other element (e.g. an empty-state message)
   silently did nothing. Those two scoped rules still win where both
   classes apply, so this doesn't change any existing behavior. */
.hidden { display: none !important; }

/* ── LABEL ── */
.label {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sage-text); display: flex; align-items: center; gap: 12px;
}
.label::before { content: ''; width: 24px; height: 1px; background: var(--sage); flex-shrink: 0; }
.label-dark       { color: var(--sage-light); }
.label-dark::before { background: var(--sage-light); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 500; cursor: pointer;
  border: none; transition: all .15s; padding: 12px 20px;
  border-radius: var(--radius);
}
.btn-primary   { background: var(--black); color: var(--white); }
.btn-primary:hover { background: #333; }
.btn-secondary { background: transparent; color: var(--black); border: 1.5px solid var(--black); }
.btn-secondary:hover { background: var(--black); color: var(--white); }
.btn-sage      { background: var(--sage); color: var(--white); }
.btn-sage:hover { background: #6a7e6b; }
.btn-amazon    { background: #FF9900; color: #111; font-weight: 600; }
.btn-amazon:hover { background: #e68a00; }
.btn-ghost     { background: transparent; color: var(--muted); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--black); color: var(--black); }
.btn-sm { padding: 8px 16px; font-size: 12px; }

/* ── GENRE TAG ── */
.genre-tag {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 8px; border: 1px solid var(--border); color: var(--muted);
  border-radius: 20px;
}

/* Keywords tag — stile diverso dai genre-tag */
.bh-keywords { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.kw-tag {
  font-size: 10px; letter-spacing: .06em;
  padding: 2px 8px;
  background: var(--sage-dim, #e8ede8);
  color: var(--sage-text);
  border-radius: 3px;
  font-style: italic;
}
a.genre-tag-link {
  text-decoration: none;
  pointer-events: auto;
  transition: background .15s, border-color .15s, color .15s;
}
a.genre-tag-link:hover {
  background: var(--sage-dim);
  border-color: var(--sage);
  color: var(--sage);
}

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(var(--sp) * 6);
  border-bottom: 1px solid var(--border);
  background: rgba(247,245,242,.95);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: var(--serif); font-size: 15px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.nav-logo em { color: var(--sage); font-style: normal; }
.nav-links {
  display: flex; gap: 32px; list-style: none;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.nav-links li { cursor: pointer; transition: color .15s; }
.nav-links li:hover { color: var(--black); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-sw {
  display: flex; border: 1px solid var(--border2); border-radius: 4px;
  overflow: hidden; font-size: 11px; letter-spacing: .1em;
}
.lang-sw button {
  padding: 5px 12px; background: none; border: none; cursor: pointer;
  text-transform: uppercase; color: var(--muted); transition: all .15s;
}
.lang-sw button.on { background: var(--black); color: var(--white); font-weight: 500; }

/* ══════════════════════════════════════
   HERO — Rich Editorial Layout
══════════════════════════════════════ */
#hero {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* LEFT */
.hero-left {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 52px 56px 52px 48px;
  position: relative; z-index: 2;
}
.hero-est {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
}
.hero-est::before { content:''; width:20px; height:1px; background:var(--muted); }
h1.hero-h {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 900; line-height: .96; letter-spacing: -.025em;
  margin-bottom: 24px;
}
h1.hero-h em { font-style: italic; color: var(--sage); }
.hero-sub {
  font-size: 15px; color: var(--muted); line-height: 1.8;
  max-width: 440px; margin-bottom: 24px; font-weight: 300;
}
.hero-sub strong { color: var(--black); font-weight: 500; }
.hero-cta   { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-stats {
  display: flex; gap: 32px; padding-top: 20px; border-top: 1px solid var(--border);
  margin-bottom: 16px;
}
.stat-n { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; line-height: 1; }
.stat-l { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* Genre pills in hero */
.hero-genres {
  display: flex; gap: 6px; flex-wrap: wrap; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.hero-genre-pill {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border: 1px solid var(--border2); border-radius: 100px;
  color: var(--muted); cursor: pointer; transition: all .15s; background: var(--white);
}
.hero-genre-pill:hover { border-color: var(--black); color: var(--black); }

/* RIGHT */
.hero-right {
  display: grid;
  grid-template-rows: 1fr auto;
  border-left: 1px solid var(--border);
  background: var(--white);
  min-height: calc(100vh - var(--nav-h));
}

/* Featured book panel */
.hero-book-panel {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: 48px;
  min-height: 300px;
}
.hero-book-cover-wrap {
  position: relative;
  display: flex; gap: 24px; align-items: center;
}
.hero-book-img-wrap { flex-shrink: 0; }
.hero-book-img {
  width: 140px; height: 224px; object-fit: cover;
  object-position: center top;
  box-shadow: 8px 16px 40px rgba(0,0,0,.12);
  position: relative; flex-shrink: 0; display: block;
}
.hero-book-placeholder {
  width: 140px; height: 224px; flex-shrink: 0;
  background: var(--cream); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 8px 16px 40px rgba(0,0,0,.08);
  position: relative;
}
.hero-book-placeholder::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(to right, rgba(0,0,0,.06), transparent);
}
.hero-ph-initials {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 900;
  color: var(--gray-mid); line-height: 1; letter-spacing: -.02em;
}
.hero-book-info { flex: 1; }
.hero-book-badge {
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  background: var(--black); color: var(--white); padding: 3px 10px;
  display: inline-block; margin-bottom: 14px;
}
.hero-book-title {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
  line-height: 1.2; margin-bottom: 6px; color: var(--black);
}
.hero-book-author {
  font-size: 11px; color: var(--sage-text); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 16px;
}
.hero-book-genres { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-book-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--black); border-bottom: 1px solid var(--black);
  padding-bottom: 2px; cursor: pointer; transition: color .15s;
}
.hero-book-link:hover { color: var(--sage); border-color: var(--sage); }

/* Bottom row: Quote + Numbers */
.hero-bottom-row {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.hero-quote-box {
  padding: 28px 32px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-quote-text {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 400;
  font-style: italic; line-height: 1.5; color: var(--black);
  margin-bottom: 10px;
}
.hero-quote-source {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.hero-numbers-box {
  padding: 28px 32px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.hero-num-row {
  display: flex; align-items: baseline; gap: 8px;
}
.hero-num-value {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
  color: var(--black); line-height: 1;
}
.hero-num-label {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* TICKER */
.hero-ticker {
  background: var(--black); overflow: hidden;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.ticker-track {
  display: flex; align-items: center; gap: 0;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
}
.ticker-item {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.35); padding: 0 32px;
  display: inline-flex; align-items: center; gap: 16px;
}
.ticker-item::after { content: '·'; color: rgba(255,255,255,.2); }
.ticker-item:hover { color: rgba(255,255,255,.7); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════════════════════
   FEATURED STRIP
══════════════════════════════════════ */
#featured-strip { padding: 64px 0; background: var(--white); border-bottom: 1px solid var(--border); }
.fstrip-grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin-top: 32px; }
.fstrip-card    { cursor: pointer; }
.fstrip-cover   {
  aspect-ratio: 1/1.5; background: var(--cream); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; overflow: hidden; transition: box-shadow .2s;
}
.fstrip-cover:hover { box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.fstrip-cover img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.fstrip-card:hover .fstrip-cover img { transform: scale(1.03); }
.fstrip-cover-ph {
  font-size: 11px; color: var(--muted); text-align: center;
  padding: 16px; font-family: var(--serif); line-height: 1.5;
}
.fstrip-genre  { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-text); margin-bottom: 6px; }
.fstrip-title  { font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }
.fstrip-author { font-size: 13px; color: var(--muted); }

/* ══════════════════════════════════════
   LATEST RELEASE
══════════════════════════════════════ */
#latest      { padding: 80px 0; border-bottom: 1px solid var(--border); }
.latest-inner { display: flex; gap: 72px; align-items: center; }
.latest-cover-col { flex-shrink: 0; position: relative; }
.latest-badge {
  position: absolute; top: 0; left: 0; z-index: 2;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  background: var(--black); color: var(--white); padding: 4px 12px; font-weight: 500;
}
.latest-cover {
  width: 220px; height: 352px; background: var(--black); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
  position: relative;
}
.latest-cover img { width: 100%; height: 100%; object-fit: contain; }
.latest-cover-ph { font-size: 11px; color: var(--muted); text-align: center; padding: 20px; font-family: var(--serif); line-height: 1.5; }
.latest-title       { font-family: var(--serif); font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 700; line-height: 1.05; margin-bottom: 10px; }
.latest-author-line { font-size: 13px; color: var(--sage-text); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.latest-genre-line  { font-size: 12px; color: var(--muted); letter-spacing: .08em; margin-bottom: 24px; }
.latest-label-row   { margin-bottom: 20px; }
.latest-desc        { color: var(--muted); line-height: 1.8; max-width: 500px; margin-bottom: 32px; font-size: 15px; text-align: justify; hyphens: auto; }
.latest-cta         { display: flex; gap: 12px; flex-wrap: wrap; }

/* ══════════════════════════════════════
   GENRE CAPSULES
══════════════════════════════════════ */
#genres-section { padding: 64px 0; background: var(--white); border-bottom: 1px solid var(--border); display: none; }
.genres-caps    { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; justify-content: center; }
.genre-cap {
  padding: 10px 24px; border: 1.5px solid var(--border2);
  border-radius: 100px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); cursor: pointer; transition: all .15s; background: var(--white);
}
.genre-cap:hover { border-color: var(--black); color: var(--black); background: var(--cream); }
.genre-cap.on   { background: var(--black); color: var(--white); border-color: var(--black); }


/* ══════════════════════════════════════
   MOBILE FILTER STRIP — author + language
   Hidden on desktop (sidebar handles it),
   shown on mobile below genre capsules.
══════════════════════════════════════ */
.mob-filter-strip {
  display: none;
  gap: 8px; flex-wrap: wrap;
  padding: 0 calc(var(--sp)*4) 32px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.mob-filter-label {
  width: 100%;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); padding-top: 16px;
}
.mob-filter-pill {
  padding: 8px 18px; border: 1.5px solid var(--border2);
  border-radius: 100px; font-size: 12px; letter-spacing: .06em;
  color: var(--muted); cursor: pointer; transition: all .15s;
  background: var(--white); font-family: var(--sans);
}
.mob-filter-pill:hover { border-color: var(--black); color: var(--black); }
.mob-filter-pill.on { background: var(--black); color: var(--white); border-color: var(--black); }

/* ══════════════════════════════════════
   RECOMMEND WIDGET
══════════════════════════════════════ */
#recommend        { padding: 64px 0; border-bottom: 1px solid var(--border); background: var(--cream); }
.rec-inner         { max-width: 640px; }
.rec-title         { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin: 14px 0 8px; letter-spacing: -.01em; }
.rec-sub           { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; max-width: 520px; }
.rec-row           { display: flex; gap: 10px; }
.rec-input {
  flex: 1; min-width: 0; background: var(--white);
  border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 13px 16px; font-family: var(--sans); font-size: 14px;
  color: var(--black); outline: none; transition: border-color .2s;
}
.rec-input::placeholder { color: var(--muted); }
.rec-input:focus { border-color: var(--sage); }
.rec-btn {
  flex-shrink: 0; background: var(--black); color: var(--white); border: none;
  padding: 13px 22px; border-radius: var(--radius); font-family: var(--sans);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  cursor: pointer; transition: opacity .15s;
}
.rec-btn:hover:not(:disabled) { opacity: .8; }
.rec-btn:disabled { opacity: .5; cursor: default; }
.rec-status   { font-size: 13px; color: var(--muted); margin-top: 14px; display: none; }
.rec-note     { font-size: 14px; color: var(--black); line-height: 1.6; margin: 24px 0 16px; font-style: italic; display: none; }
.rec-results  { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; margin-top: 8px; }
@media (max-width: 560px) {
  .rec-row { flex-direction: column; }
  .rec-btn { width: 100%; }
}

/* ══════════════════════════════════════
   CATALOGUE
══════════════════════════════════════ */
#catalogue         { padding: 80px 0; border-bottom: 1px solid var(--border); }
.catalogue-layout  { display: grid; grid-template-columns: 220px 1fr; gap: 48px; margin-top: 48px; }
.sidebar-section   { margin-bottom: 32px; }
.sidebar-title     { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 500; }
.genre-filter-list { list-style: none; }
.gf-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; cursor: pointer; border-radius: var(--radius);
  font-size: 14px; color: var(--muted); transition: all .15s;
  border: 1px solid transparent; margin-bottom: 4px;
}
.gf-item:hover { background: var(--white); color: var(--black); }
.gf-item.on    { background: var(--black); color: var(--white); }
.gf-count      { font-size: 11px; opacity: .5; }
.gf-item.on .gf-count { color: var(--white); opacity: .6; }
.gf-page-link {
  font-size: 11px; color: var(--sage); opacity: 0;
  margin-left: 4px; text-decoration: none;
  pointer-events: auto; transition: opacity .15s;
}
.gf-item:hover .gf-page-link { opacity: 1; }
.gf-item.on .gf-page-link    { color: var(--sage-light); opacity: .7; }

.jw-item {
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: start;
  padding: 28px 0; text-decoration: none;
  color: inherit; transition: opacity .15s;
}
.jw-item:hover { opacity: .7; }

/* books 4-col grid */
.books-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.bcard               { cursor: pointer; }
.bcard *             { pointer-events: none; }
.bcard               { pointer-events: auto; }
.bcard .genre-tag-link { pointer-events: auto; }
.bcard:hover .bcard-cover-inner { box-shadow: 0 12px 36px rgba(0,0,0,.15); transform: translateY(-3px); }
.bcard.hidden { display: none; }
.bcard-cover  { aspect-ratio: 1/1.6; margin-bottom: 12px; position: relative; overflow: hidden; }
.bcard-cover-inner {
  width: 100%; height: 100%; background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; transition: all .25s;
  font-size: 10px; color: var(--muted); text-align: center;
  padding: 12px; font-family: var(--serif); line-height: 1.4; overflow: hidden;
}
.bcard-cover-inner img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.bcard-coming-badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--sage); color: var(--white);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  text-align: center; padding: 5px; font-weight: 500;
}
.bcard-save {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; padding: 0;
  background: rgba(255,255,255,.92); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; cursor: pointer; color: var(--black);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.bcard-save:hover { transform: scale(1.08); }
.bcard-save.on { color: var(--sage); border-color: var(--sage); }
.bcard-mag-cover .bcard-save { top: 10px; right: 10px; }
.btn-ghost.on { color: var(--sage); border-color: var(--sage); }
.bcard-genres  { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.bcard-title   { font-family: var(--serif); font-size: 14px; font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.bcard-author  { font-size: 12px; color: var(--sage-text); letter-spacing: .06em; }

/* ══════════════════════════════════════
   FEATURED AUTHOR
══════════════════════════════════════ */
#featured-author { padding: 80px 0; background: var(--black); border-bottom: 1px solid rgba(255,255,255,.08); }
.fa-inner        { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.fa-photo-mock   {
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,.15); overflow: hidden;
}
.fa-photo-mock img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fa-initials {
  font-family: var(--serif); font-size: 4rem; font-weight: 900;
  color: rgba(255,255,255,.15); letter-spacing: -.04em; line-height: 1;
}
.fa-left  { display: flex; align-items: center; justify-content: center; }
.fa-right { position: relative; }
.fa-num   {
  font-family: var(--serif); font-size: 10rem; font-weight: 900;
  color: rgba(255,255,255,.04); line-height: 1;
  position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  pointer-events: none; user-select: none;
}
.fa-name        { font-family: var(--serif); font-size: clamp(2.5rem,4vw,4rem); font-weight: 900; color: var(--white); line-height: .97; margin-bottom: 10px; }
.fa-genre       { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-light); margin-bottom: 24px; }
.fa-bio         { color: var(--ondark-1); line-height: 1.8; font-size: 15px; margin-bottom: 28px; max-width: 480px; }
.fa-books-count { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ondark-2); margin-bottom: 28px; }
.fa-label-row   { margin-bottom: 24px; }

/* ══════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════ */
#newsletter { padding: 80px 0; background: var(--sage-deep); }
.nl-inner   { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.nl-label-el { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.nl-label-el::before { content: ''; width: 20px; height: 1px; background: rgba(255,255,255,.85); }
.nl-title   { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--white); margin-bottom: 12px; line-height: 1.1; }
.nl-desc    { color: rgba(255,255,255,.85); line-height: 1.75; font-size: 15px; }
.nl-form    { display: flex; flex-direction: column; gap: 10px; }
.nl-input   {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35);
  padding: 13px 16px; color: var(--white); font-family: var(--sans);
  font-size: 15px; outline: none; border-radius: var(--radius); transition: border-color .2s;
}
.nl-input:focus       { border-color: rgba(255,255,255,.8); }
.nl-input::placeholder { color: rgba(255,255,255,.7); }
.nl-submit  { background: var(--white); color: var(--sage-text); font-weight: 600; border-radius: var(--radius); padding: 13px 24px; border: none; cursor: pointer; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; transition: all .15s; }
.nl-submit:hover { background: var(--cream); }
.nl-note    { font-size: 12px; color: rgba(255,255,255,.85); }
.nl-success { display: none; padding: 16px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); color: var(--white); font-size: 14px; border-radius: var(--radius); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  padding: 40px; background: var(--black);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.foot-logo    { font-family: var(--serif); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ondark-1); }
.foot-logo em { color: var(--sage-light); font-style: normal; }
.foot-links   { display: flex; gap: 24px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ondark-2); }
.foot-links a:hover { color: rgba(255,255,255,.85); }
.foot-copy    { font-size: 11px; color: var(--ondark-2); }
.foot-version { font-size: 10px; letter-spacing: .14em; color: rgba(255,255,255,.1); font-family: var(--sans); font-weight: 300; font-variant-numeric: tabular-nums; }

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
#modal { display: none; position: fixed; inset: 0; z-index: 500; background: rgba(26,26,26,.7); backdrop-filter: blur(8px); align-items: center; justify-content: center; padding: 20px; }
#modal.open { display: flex; }
.modal-box {
  background: var(--white); max-width: 680px; width: 100%;
  max-height: 92vh; overflow-y: auto; display: flex;
  position: relative; border-radius: 8px; box-shadow: 0 32px 80px rgba(0,0,0,.2);
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.1rem; z-index: 10; transition: color .15s;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.modal-close:hover { color: var(--black); background: var(--cream); }
.modal-cover-col   { flex-shrink: 0; width: 200px; }
.modal-cover-col img { width: 200px; height: 100%; min-height: 300px; object-fit: cover; object-position: center top; border-radius: 8px 0 0 8px; }
.modal-cover-ph    { width: 200px; min-height: 300px; height: 100%; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); text-align: center; padding: 16px; font-family: var(--serif); line-height: 1.5; border-radius: 8px 0 0 8px; }
.modal-info        { flex: 1; padding: 36px 32px; }
.modal-genres      { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.modal-title       { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; line-height: 1.15; margin-bottom: 6px; }
.modal-author      { font-size: 12px; color: var(--sage-text); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.modal-desc        { color: var(--muted); line-height: 1.8; font-size: 14px; margin-bottom: 28px; }
.modal-cta         { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-fav         { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 14px; transition: all .15s; background: none; }
.modal-fav:hover   { border-color: var(--black); color: var(--black); }
.modal-fav.on      { background: #fef2f2; border-color: #fca5a5; color: #ef4444; }

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.anim     { opacity: 0; }
.anim.vis { animation: fadeUp .5s ease forwards; }


/* ── COVER PLACEHOLDER ── */
.cover-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.cover-placeholder::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(to bottom, var(--sage), #5a7a5b);
}
.cover-ph-initials {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 900;
  color: rgba(255,255,255,.15); letter-spacing: -.02em; line-height: 1;
  text-align: center; padding: 0 12px; position: relative; z-index: 1;
}
.cover-ph-title {
  font-size: 8px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.2); position: absolute; bottom: 14px;
  left: 14px; right: 14px; text-align: center; line-height: 1.4;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ── BOOK CARD hover desc ── */
.bcard-hover-desc {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(26,26,26,.88); color: rgba(255,255,255,.85);
  font-size: 12px; line-height: 1.5; padding: 12px;
  opacity: 0; transition: opacity .25s;
  pointer-events: none;
}
.bcard:hover .bcard-hover-desc { opacity: 1; }

/* Reading badge */
.bcard-reading-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,.9); border-radius: 50%;
  width: 28px; height: 28px; display: flex; align-items: center;
  justify-content: center; font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* ── MODAL object-fit fix ── */
.modal-cover-col img {
  object-fit: cover; object-position: center top;
}

/* ── QUOTE OF DAY ── */
.qod-text {
  font-family: var(--serif); font-size: 15px; font-style: italic;
  color: var(--black); line-height: 1.6; margin-bottom: 8px;
}
.qod-source {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* ── EDITORIAL NOTE ── */
#editorial-note {
  background: var(--black); padding: 48px 0; display: none;
}
.en-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 calc(var(--sp) * 4);
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start;
}
.en-label {
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ondark-2); white-space: nowrap; padding-top: 4px;
  display: flex; align-items: center; gap: 10px;
}
.en-label::before { content:''; width:16px; height:1px; background:var(--sage); }
.en-text {
  font-family: var(--serif); font-size: 1.05rem; font-style: italic;
  color: rgba(255,255,255,.6); line-height: 1.7;
}

/* ── CATALOGUE SEARCH ── */
.cat-search-wrap {
  position: relative; display: flex; align-items: center;
}
.cat-search-icon {
  position: absolute; left: 14px; color: var(--muted); font-size: 16px;
  pointer-events: none; z-index: 1;
}
.cat-search-input {
  width: 100%; background: var(--white);
  border: 1.5px solid var(--border2);
  padding: 11px 44px 11px 40px;
  font-family: var(--sans); font-size: 14px;
  color: var(--black); outline: none;
  border-radius: var(--radius); transition: border-color .2s;
}
.cat-search-input:focus { border-color: var(--sage); }
.cat-search-input::placeholder { color: var(--muted); }
.cat-search-clear {
  position: absolute; right: 12px; background: none; border: none;
  cursor: pointer; color: var(--muted); font-size: 14px; transition: color .15s;
}
.cat-search-clear:hover { color: var(--black); }

/* ── NO RESULTS ── */
.no-results-msg {
  grid-column: 1/-1; padding: 48px; text-align: center;
  color: var(--muted); font-size: 15px;
}
.no-results-msg strong { color: var(--black); }

/* ── HAMBURGER ── */
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--black); padding: 4px; font-size: 1.4rem; transition: color .15s;
}
.nav-burger:hover { color: var(--sage); }

/* ── MOBILE NAV OVERLAY ── */
#mobile-nav { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(26,26,26,.6); backdrop-filter: blur(4px); }
#mobile-nav.open { display: flex; justify-content: flex-end; }
.mobile-nav-panel { width: 280px; height: 100%; background: var(--white); display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(0,0,0,.12); animation: slideInRight .2s ease; }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.mobile-nav-logo { font-family: var(--serif); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mobile-nav-logo em { color: var(--sage); font-style: normal; }
.mobile-nav-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--muted); padding: 4px; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.mobile-nav-close:hover { background: var(--cream); color: var(--black); }
.mobile-nav-links { flex: 1; padding: 16px 0; list-style: none; overflow-y: auto; }
.mobile-nav-links li { padding: 14px 24px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; color: var(--muted); border-bottom: 1px solid var(--border); transition: all .15s; }
.mobile-nav-links li:hover { color: var(--black); background: var(--cream); }
.mobile-nav-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.mobile-lang-sw { display: flex; gap: 8px; }
.mobile-lang-btn { flex: 1; padding: 10px; border: 1px solid var(--border2); background: none; font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border-radius: 4px; color: var(--muted); transition: all .15s; }
.mobile-lang-btn.on { background: var(--black); color: var(--white); border-color: var(--black); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --max-w: 100%; }
  .max  { padding: 0 32px; }
}

/* ══════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════ */
.breadcrumb { position:relative; z-index:10; margin-top:var(--nav-h); background:var(--cream); border-bottom:1px solid var(--border); }
.breadcrumb-inner { max-width:var(--max-w); margin:0 auto; padding:11px calc(var(--sp)*4); display:flex; align-items:center; gap:6px; font-size:0.72rem; font-family:var(--sans); letter-spacing:0.05em; text-transform:uppercase; }
.breadcrumb-inner a { color:var(--muted); text-decoration:none; transition:color .15s; }
.breadcrumb-inner a:hover { color:var(--black); }
.breadcrumb-sep { color:var(--gray-mid); }
.bc-current { color:var(--black); font-weight:500; }

/* ══════════════════════════════════════
   HERO — STACKED COVERS + MINI STRIP
══════════════════════════════════════ */
.hero-book-panel {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 0;
  min-height: 320px;
}
.hero-panel-inner {
  display: flex; gap: 32px; align-items: center;
  padding: 36px 40px 28px;
  flex: 1;
}
.hero-stack-wrap {
  position: relative;
  width: 130px; height: 210px;
  flex-shrink: 0;
}
.hero-stack-book {
  position: absolute;
  width: 120px; height: 192px;
  cursor: pointer;
  transition: transform .25s;
}
.hero-stack-book:hover { transform: translateY(-4px) scale(1.02); z-index:10; }
.hero-stack-0 { left: 0;  top: 0;   z-index: 3; box-shadow: 4px 8px 24px rgba(0,0,0,.18); }
.hero-stack-1 { left: 10px; top: 8px; z-index: 2; box-shadow: 2px 6px 16px rgba(0,0,0,.12); }
.hero-stack-2 { left: 20px; top: 16px; z-index: 1; box-shadow: 1px 4px 10px rgba(0,0,0,.08); }
.hero-stack-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: floatCover 6s ease-in-out infinite;
}
.hero-stack-1 .hero-stack-img { animation-delay: -2s; }
.hero-stack-2 .hero-stack-img { animation-delay: -4s; }
.hero-stack-ph {
  width: 100%; height: 100%; background: var(--cream); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.8rem; font-weight: 900; color: var(--gray-mid);
}
.hero-panel-info { flex: 1; }

/* Mini strip — 3 latest covers */
.hero-mini-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.hero-mini-book {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 2/3;
  border-right: 1px solid var(--border);
}
.hero-mini-book:last-child { border-right: none; }
.hero-mini-book img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.hero-mini-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 10px 12px;
  opacity: 0; transition: opacity .25s;
}
.hero-mini-book:hover .hero-mini-overlay { opacity: 1; }
.hero-mini-title {
  font-family: var(--serif); font-size: 11px; font-weight: 700;
  color: #fff; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}


/* ══════════════════════════════════════
   MOBILE FILTER STRIP — author + language
   Hidden on desktop (sidebar handles it),
   shown on mobile below genre capsules.
══════════════════════════════════════ */
.mob-filter-strip {
  display: none;
  gap: 8px; flex-wrap: wrap;
  padding: 0 calc(var(--sp)*4) 32px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.mob-filter-label {
  width: 100%;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); padding-top: 16px;
}
.mob-filter-pill {
  padding: 8px 18px; border: 1.5px solid var(--border2);
  border-radius: 100px; font-size: 12px; letter-spacing: .06em;
  color: var(--muted); cursor: pointer; transition: all .15s;
  background: var(--white); font-family: var(--sans);
}
.mob-filter-pill:hover { border-color: var(--black); color: var(--black); }
.mob-filter-pill.on { background: var(--black); color: var(--white); border-color: var(--black); }

/* ══════════════════════════════════════
   CATALOGUE — MAGAZINE LAYOUT
══════════════════════════════════════ */
.books-grid-mag { display:grid; grid-template-columns:repeat(4,1fr); gap:28px; }
.bcard-mag { grid-column:span 2; display:grid; grid-template-columns:140px 1fr; gap:20px; background:var(--white); border:1px solid var(--border); border-radius:var(--radius); padding:20px; transition:box-shadow .25s, transform .25s; position:relative; overflow:hidden; }
.bcard-mag:hover { box-shadow:0 8px 32px rgba(0,0,0,.08); transform:translateY(-2px); }
.bcard-mag.hidden { display:none; }
.bcard-mag * { pointer-events:none; }
.bcard-mag   { pointer-events:auto; }
.bcard-mag-cover { aspect-ratio:2/3; overflow:hidden; border:1px solid var(--border); position:relative; flex-shrink:0; }
.bcard-mag-cover img { width:100%; height:100%; object-fit:cover; transform:scale(1.07); transition:transform .5s cubic-bezier(.25,.46,.45,.94); display:block; }
.bcard-mag:hover .bcard-mag-cover img { transform:scale(1.0) translateY(-3px); }
.bcard-mag-body { display:flex; flex-direction:column; justify-content:center; gap:10px; }
.bcard-mag-title { font-family:var(--serif); font-size:1.1rem; font-weight:700; line-height:1.25; }
.bcard-mag-author { font-size:12px; color:var(--sage-text); letter-spacing:.06em; text-transform:uppercase; }
.bcard-mag-desc { font-size:13px; color:var(--muted); line-height:1.65; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.bcard-mag-cta { font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--black); font-weight:500; margin-top:4px; }
.cover-ph-mag { background:var(--cream); width:100%; height:100%; display:flex; align-items:center; justify-content:center; }

/* PARALLAX — covers */
.bcard-cover-inner { overflow:hidden; }
.bcard-cover-inner img { object-fit:contain; transition:transform .4s cubic-bezier(.25,.46,.45,.94); will-change:transform; }
.bcard:hover .bcard-cover-inner img { transform:scale(1.03); }
.fstrip-cover img { object-fit:contain; transition:transform .4s cubic-bezier(.25,.46,.45,.94); will-change:transform; }
.fstrip-card:hover .fstrip-cover img { transform:scale(1.03); }
@keyframes floatCover {
  0%,100% { transform:translateY(0) rotate(0deg); }
  50%      { transform:translateY(-6px) rotate(.3deg); }
}

/* ══════════════════════════════════════
   IN THE PRESS
══════════════════════════════════════ */
.press-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:20px; margin-top:32px; }
.press-card { background:var(--cream); border:1px solid var(--border); border-radius:var(--radius); padding:24px; display:flex; flex-direction:column; gap:14px; transition:box-shadow .2s, transform .2s; text-decoration:none; color:inherit; }
a.press-card:hover { box-shadow:0 6px 24px rgba(0,0,0,.07); transform:translateY(-2px); }
.press-quote { font-family:var(--serif); font-size:15px; line-height:1.65; color:var(--black); font-style:italic; flex:1; }
.press-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.press-source { font-size:11px; letter-spacing:.12em; text-transform:uppercase; font-weight:500; color:var(--sage-text); }
.press-date { font-size:11px; color:var(--muted); }

/* ══════════════════════════════════════
   PUBLIC STATS ROW (about.html)
══════════════════════════════════════ */
#public-stats-row { display:flex; flex-wrap:wrap; gap:0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--white); margin:64px 0; }
.pub-stat { flex:1; min-width:160px; padding:36px 32px; text-align:center; border-right:1px solid var(--border); }
.pub-stat:last-child { border-right:none; }
.pub-stat-val { font-family:var(--serif); font-size:2.4rem; font-weight:900; line-height:1; margin-bottom:8px; }
.pub-stat-lbl { font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); }


/* ══════════════════════════════════════
   COVER BACKDROP — blurred background
   Works for any cover ratio (6x9, 8.5x11, square…)
   The cover image fills the container blurred+dimmed,
   while the actual cover sits centred in contain mode.
══════════════════════════════════════ */
.cover-backdrop {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
  background: #1a1a1a; /* fallback */
}
/* Blurred fill — CSS custom property --cover-url set inline by JS */
.cover-backdrop::before {
  content: '';
  position: absolute; inset: -20px;
  background-image: var(--cover-url);
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(.45) saturate(.8);
  transform: scale(1.1); /* hide blur edges */
}
/* The real cover, crisp, centred */
.cover-backdrop .cover-main {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}
.bcard:hover .cover-backdrop .cover-main,
.fstrip-card:hover .cover-backdrop .cover-main,
.bcard-mag:hover .cover-backdrop .cover-main { transform: scale(1.03); }


@media (max-width: 900px) {
  #nav          { padding: 0 24px; }
  .nav-links    { display: none; }
  .nav-burger   { display: flex; }
  #hero         { grid-template-columns: 1fr; }
  .hero-right   { display: none; }
  .hero-left    { padding: 60px 24px; }
  .fstrip-grid  { grid-template-columns: 1fr 1fr; }
  .latest-inner { flex-direction: column; }
  .fa-inner     { grid-template-columns: 1fr; }
  .fa-left      { display: none; }
  .catalogue-layout { grid-template-columns: 1fr; }
  .cat-sidebar  { display: none; }
  .books-grid-mag { grid-template-columns: repeat(2, 1fr); }
  .bcard-mag { grid-column: span 2; grid-template-columns: 110px 1fr; }
  .hero-stack-wrap { width:100px; height:170px; }
  .hero-stack-book { width:96px; height:154px; }
  #genres-section { display: block; }
  .mob-filter-strip { display: flex; }
  .books-grid-4 { grid-template-columns: repeat(2,1fr); }
  .nl-inner     { grid-template-columns: 1fr; gap: 40px; }
  .modal-box    { flex-direction: column; }
  .modal-cover-col, .modal-cover-col img, .modal-cover-ph { width: 100%; height: 180px; min-height: unset; border-radius: 8px 8px 0 0; }
  footer        { flex-direction: column; text-align: center; }
  .foot-links   { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 600px) {
  .fstrip-grid  { grid-template-columns: 1fr; }
  .books-grid-4 { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .books-grid-mag { grid-template-columns: 1fr 1fr; gap: 16px; }
  .bcard-mag { grid-template-columns: 80px 1fr; gap: 12px; padding: 14px; }
  .bcard-mag-title { font-size:.95rem; }
  .bcard-mag-desc { display:none; }
  .pub-stat { border-right:none; border-bottom:1px solid var(--border); }
  .pub-stat:last-child { border-bottom:none; }
  .hero-stats   { flex-wrap: wrap; gap: 24px; }
}
