:root {
  --paper:      #F3EEE3;
  --paper-soft: #EAE3D3;
  --card:       #FFFFFF;
  --ink:        #1C1917;
  --ink-soft:   #4A453F;
  --ink-muted:  #8A8276;
  --oxblood:    #8B2A1F;
  --gold:       #B8894A;
  --rule:       #D4C9B0;
  --green:      #3D4A2C;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.15 0 0 0 0 0.12 0 0 0 0 0.08 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Ribbon ─────────────────────────────── */
.ribbon {
  background: var(--ink);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 24px;
  text-align: center;
  position: relative;
  z-index: 10;
}
.ribbon span { color: var(--gold); }

/* ── Header ─────────────────────────────── */
.header {
  background: rgba(243,238,227,0.96);
  border-bottom: 1px solid var(--rule);
  padding: 20px 40px 20px 90px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Libre Baskerville', serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.logo:hover { color: var(--oxblood); }
.logo:hover .logo-img { opacity: 0.7; }
.logo-text { line-height: 1.15; }
.logo-text em { font-style: italic; color: var(--oxblood); font-size: 0.78em; }

@media (max-width: 900px) {
  .logo-img { height: 28px; }
  .logo { font-size: 18px; }
}

.header-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.header-nav a,
.header-right a {
  position: relative;
  padding: 3px 0;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.header-nav a::after,
.header-right a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--oxblood);
  transition: width 0.3s;
}
.header-nav a:hover,
.header-right a:hover { color: var(--oxblood); }
.header-nav a:hover::after,
.header-right a:hover::after { width: 100%; }

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Hero ───────────────────────────────── */
.hero {
  padding: 80px 40px 64px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.hero-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero-kicker::before,
.hero-kicker::after {
  content: ""; width: 40px; height: 1px; background: var(--oxblood);
}
.hero h1 {
  font-family: 'Libre Baskerville', serif;
  font-weight: 400;
  font-size: clamp(52px, 6.5vw, 92px);
  line-height: 0.97;
  letter-spacing: -0.035em;
  max-width: 820px;
  margin: 0 auto 22px;
  color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--oxblood); }
.hero-sub {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Toolbar ────────────────────────────── */
.toolbar {
  max-width: 1600px;
  margin: 0 auto;
  padding: 26px 40px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}
.toolbar-count {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
}
.toolbar-count strong {
  font-weight: 500;
  color: var(--ink);
  font-style: normal;
}
.toolbar-count h1 {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  font-style: normal;
  font-weight: 500;
  line-height: inherit;
  letter-spacing: inherit;
  color: var(--ink);
}

/* ── Book Grid ──────────────────────────── */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 18px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}
.container > h1,
.container > h2,
.container > hr,
.container > div,
.container > p,
.container > a {
  flex: 0 0 100%;
}

/* ── Book Card ──────────────────────────── */
.book {
  flex: 0 1 calc((100% - 5 * 18px) / 6);
  min-width: 120px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px 12px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.book:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.11), 0 1px 4px rgba(0,0,0,0.05);
}

.book-cover-wrap {
  aspect-ratio: 3 / 4;
  position: relative;
  max-width: 170px;
  margin: 0 auto 16px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: bottom center;
  display: block;
}
.book:hover .book-cover-wrap {
  transform: translateY(-8px) rotate(-1deg);
}
.book-cover-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: 2px;
  transform: translate(6px, 6px);
  opacity: 0.07;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
}
.book:hover .book-cover-wrap::before {
  transform: translate(10px, 13px);
  opacity: 0.15;
}

.book-cover {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(0,0,0,0.08);
  background: var(--paper-soft);
}

.book-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: 4px;
  transition: color 0.3s;
}
.book-title a { color: var(--ink); }
.book:hover .book-title a { color: var(--oxblood); }

.book-author {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 10px;
  flex: 1;
}

.book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.book-price {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--oxblood);
}
.book-price .lei {
  font-size: 12px;
  font-weight: 500;
  color: var(--oxblood);
  opacity: 0.6;
  margin-left: 1px;
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter Tight', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.buy-btn::after {
  content: "→";
  font-size: 13px;
  transition: margin 0.3s;
}
.buy-btn:hover {
  background: var(--oxblood);
  gap: 10px;
  color: var(--paper);
}

/* ── Pagination ─────────────────────────── */
.pagination-wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  text-align: center;
  border-top: 1px solid var(--rule);
}
a.pages:link,
a.pages:visited {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 18px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none;
  display: inline-block;
  margin: 4px 3px;
  transition: all 0.3s;
}
a.pages:hover,
a.pages.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ── Author / Category Links ────────────── */
a.autor:link,
a.autor:visited {
  color: var(--oxblood);
  text-decoration: none;
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  transition: color 0.3s;
}
a.autor:hover { color: var(--ink); text-decoration: underline; }

/* ── Headings (page-level) ──────────────── */
h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 8px;
}
h2 {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink-soft);
  border-left: 3px solid var(--oxblood);
  padding-left: 14px;
}
h3 { display: inline; font-weight: normal; font-size: 1rem; }
h4 { display: inline-block; font-weight: normal; margin: 0; }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 40px 40px;
}

/* ── Book Detail Page ───────────────────── */
.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 28px 40px 0;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--oxblood); }

/* Mobile: single centered column */
.bookHero {
  text-align: center;
  max-width: 520px;
  margin: 32px auto 40px;
  padding: 0 20px;
}
.bookHero h1 {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
}
.book-author-hero {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

/* Desktop: 2-column cover + info */
@media (min-width: 768px) {
  .bookHero {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    text-align: left;
    align-items: start;
    padding: 0 40px;
    margin: 40px auto 40px;
  }
  .bookHero h1 { font-size: clamp(28px, 3vw, 46px); }
  .bookHero .price-display { justify-content: flex-start; }
  .bookHero a.linkA:link,
  .bookHero a.linkA:visited {
    width: auto;
    min-width: 260px;
    display: inline-block;
    margin: 0 0 14px;
  }
  .bookHero .book-tag-pills { justify-content: flex-start; }
}

.bookHero-cover { flex-shrink: 0; }

.imgBig {
  border-radius: 4px;
  box-shadow: 0 14px 44px rgba(0,0,0,0.18), 7px 7px 0 rgba(28,25,23,0.07);
  max-width: 260px;
  max-height: 390px;
  margin: 0 auto 0;
  display: block;
  object-fit: contain;
  width: 100%;
}

/* Category tag pills */
.book-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  justify-content: center;
}
.book-tag-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--ink-muted);
  background: var(--card);
  transition: all 0.2s;
}
.book-tag-pill:hover {
  border-color: var(--oxblood);
  color: var(--oxblood);
  background: var(--paper);
}

.categ-footer-links {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 40px 40px 0;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.categ-footer-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .categ-footer-links { padding: 32px 16px 0; }
}

/* Metadata table */
.book-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 24px;
  margin: 20px 0 24px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  text-align: left;
}
.meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.meta-value {
  font-family: 'Libre Baskerville', serif;
  font-size: 14px;
  color: var(--ink-soft);
}
a.meta-link { color: var(--ink-soft); }
a.meta-link:hover { color: var(--oxblood); }

.price-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}
.pret {
  display: inline;
  font-family: 'Libre Baskerville', serif;
  font-size: 2.5rem;
  color: var(--ink);
}
.pret1 { font-weight: 700; }
.pret2 { vertical-align: super; font-size: 0.55em; }
.lei-big {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.ebook-note {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

a.linkA:link,
a.linkA:visited {
  display: block;
  background: var(--oxblood);
  color: var(--paper);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  padding: 18px 32px;
  border-radius: 100px;
  text-decoration: none;
  width: 360px;
  margin: 0 auto 14px;
  transition: all 0.3s;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
a.linkA:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(28,25,23,0.22);
}

.arrow {
  padding-left: 10px;
  animation: blinker 1s linear infinite;
  font-size: 1rem;
}
@keyframes blinker { 50% { opacity: 0; } }

/* ── Store buy links ────────────────────────── */
.store-links { margin-top: 20px; }
.store-links-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.store-links-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.store-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 10px 18px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.store-link:hover {
  border-color: var(--oxblood);
  color: var(--oxblood);
  box-shadow: 0 2px 10px rgba(139,42,31,0.10);
}
.store-link-name {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.store-link-sep { width: 1px; height: 14px; background: var(--rule); flex-shrink: 0; }
.store-link-price {
  font-family: 'Libre Baskerville', serif;
  font-size: 13px;
  color: var(--ink-soft);
}
.store-link:hover .store-link-price { color: var(--oxblood); }
.store-link-format {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--paper-soft);
  border-radius: 4px;
  padding: 2px 5px;
}

.bookDesc {
  max-width: 740px;
  margin: 0 auto 40px;
  text-align: left;
  line-height: 1.82;
  font-size: 1.05rem;
  padding: 0 40px;
  color: var(--ink-soft);
  font-family: 'Libre Baskerville', serif;
}

/* ── Sticky Buy Bar ─────────────────────── */
.stickyBuy {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 12px 20px;
  z-index: 999;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(28,25,23,0.1);
}
.stickyBuy .stickyPrice {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
}
.stickyBuy .stickyPrice span {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-muted);
}
.stickyBuy .stickyBtn {
  background: var(--oxblood);
  color: var(--paper);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  border-radius: 100px;
  padding: 12px 24px;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s;
}
.stickyBuy .stickyBtn:hover { background: var(--ink); }

/* ── Footer ─────────────────────────────── */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 40px 28px;
}
.footer-inner { max-width: 1600px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(243,238,227,0.1);
}
.footer-logo {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 36px;
  color: var(--paper);
  margin-bottom: 14px;
}
.footer-brand p {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(243,238,227,0.55);
  max-width: 320px;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.footer-col a { font-size: 14px; color: rgba(243,238,227,0.65); transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-disclosure {
  max-width: 580px;
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 13px;
  color: rgba(243,238,227,0.4);
  line-height: 1.55;
}
.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243,238,227,0.3);
  white-space: nowrap;
}

/* ── Thumbnail (AMP) ────────────────────── */
.imgThumb {
  padding: 2px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.12);
  vertical-align: bottom;
}

/* ── Hamburger & Drawer ─────────────────── */
.burger {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: 8px;
  cursor: pointer;
  padding: 9px 11px;
  transition: background 0.2s, border-color 0.2s;
  z-index: 101;
}
.burger:hover {
  background: var(--paper);
  border-color: var(--ink-muted);
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: background 0.2s;
}
.burger:hover span { background: var(--oxblood); }

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,25,23,0.45);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s;
}
.drawer-overlay.open { display: block; opacity: 1; }

.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 320px;
  background: var(--paper);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  padding: 16px 0 0;
  box-shadow: 4px 0 32px rgba(28,25,23,0.14);
  overflow: hidden;
}
.drawer.open { transform: translateX(0); }
.drawer-links {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 32px;
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink-muted);
  padding: 4px 20px 20px;
  line-height: 1;
  transition: color 0.2s;
}
.drawer-close:hover { color: var(--oxblood); }

.drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 28px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.drawer a:hover { color: var(--oxblood); background: rgba(28,25,23,0.03); }
.drawer-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.drawer-section {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 16px 28px 4px;
}

/* ── Responsive: 1200px ─────────────────── */
@media (max-width: 1200px) {
  .container { gap: 22px 16px; }
  .book { flex: 0 1 calc((100% - 4 * 16px) / 5); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive: 900px ──────────────────── */
@media (max-width: 900px) {
  .header { grid-template-columns: 1fr; padding: 16px 24px 16px 80px; gap: 0; justify-items: start; }
  .header-nav, .header-right { display: none; }
  .burger { left: 16px; }
  .logo { justify-content: flex-start; }
  .hero { padding: 60px 24px 44px; }
  .toolbar { padding: 22px 24px 18px; }
  .container { gap: 20px 14px; padding: 40px 24px 60px; }
  .book { flex: 0 1 calc((100% - 3 * 14px) / 4); }
  .pagination-wrap { padding: 36px 24px 60px; }
  h2 { margin: 28px 24px 14px; }
  hr { margin: 32px 24px; }
  .breadcrumb { padding: 22px 24px 0; }
  .bookHero { padding: 0 24px; }
  .bookDesc { padding: 0 24px; }
  footer { padding: 60px 24px 24px; }
  .footer-top { gap: 36px; }
  a.linkA:link, a.linkA:visited { width: 92%; }
}

/* ── Responsive: 640px ──────────────────── */
@media (max-width: 640px) {
  .drawer { width: 260px; }
  .ribbon { font-size: 9.5px; letter-spacing: 0.08em; padding: 7px 12px; }
  .container { gap: 16px 12px; padding: 32px 16px 56px; }
  .book { flex: 0 1 calc((100% - 1 * 12px) / 2); }
  .hero { padding: 48px 16px 36px; }
  .hero h1 { font-size: clamp(40px, 9vw, 60px); }
  .toolbar { padding: 18px 16px; }
  .pagination-wrap { padding: 32px 16px 60px; }
  h2 { margin: 24px 16px 12px; font-size: 1.15rem; }
  hr { margin: 28px 16px; }
  .breadcrumb { padding: 18px 16px 0; }
  .bookHero { padding: 0 16px; margin: 24px auto 32px; }
  .bookDesc { padding: 0 16px; }
  .book { padding: 10px 8px 10px; }
  .book-title { font-size: 13px; }
  .book-price { font-size: 14px; }
  .buy-btn { font-size: 10px; padding: 7px 10px; }
  .stickyBuy { display: flex; }
  body { padding-bottom: 70px; }
  footer { padding: 52px 16px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  a.linkA:link, a.linkA:visited { width: 96%; padding: 16px 20px; }
}

/* ── Responsive: 380px ──────────────────── */
@media (max-width: 380px) {
  .container { gap: 14px 10px; }
  .book { padding: 8px 6px 8px; }
  .book-title { font-size: 12px; }
  .stickyBuy .stickyBtn { padding: 10px 14px; font-size: 0.75rem; letter-spacing: 0.06em; }
}
