/* BDeBooks live root, 2026-09-25. The catalogues' own look (WordPress bde-ui-system v1.2.16:
   Poppins, coral, charcoal, plum) on the owner's root layout. Poppins is self-hosted, latin and
   latin-ext only; Bengali and other scripts fall back to the system's own fonts. */

@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/poppins-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/poppins-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/poppins-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/poppins-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/poppins-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/poppins-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/poppins-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/poppins-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root {
  --canvas: #f5f6f7;
  --surface: #ffffff;
  --surface-soft: #f0f2f3;
  --ink: #211e1c;
  --ink-soft: #4f4a46;
  --muted: #6a645f;
  --line: #dedbd7;
  --line-strong: #c9c4bf;
  --coral: #c9341f;
  --coral-dark: #a82718;
  --coral-soft: #fff0ed;
  --coral-wash: #fff7f4;
  --charcoal: #211e1c;
  --charcoal-2: #302b28;
  --plum: #4b266a;
  --plum-wash: #f6f0fa;
  --green: #23683a;
  --green-soft: #eef7f0;
  --focus: #174ea6;
  --footer-muted: #a3adbb;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-1: 0 1px 2px rgba(33, 30, 28, 0.08), 0 8px 24px rgba(33, 30, 28, 0.06);
  --shadow-2: 0 20px 48px rgba(22, 18, 15, 0.16);
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
  --font: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Bengali", "Hind Siliguri", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
::selection { color: #fff; background: var(--coral); }

:where(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: #fff;
  background: var(--charcoal);
  font-weight: 600;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.shell {
  width: 1160px;
  max-width: calc(100% - 40px);
  margin-inline: auto;
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn--primary { color: #fff; background: var(--coral); }
.btn--primary:hover { background: var(--coral-dark); box-shadow: 0 8px 20px rgba(122, 28, 16, 0.24); transform: translateY(-1px); }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.btn--block { width: 100%; }

.more {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.more:hover { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand { flex: none; }
.brand img { width: 150px; height: auto; }
.primary-nav {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.primary-nav a {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--coral); background: var(--coral-wash); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-link {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--ink);
}
.icon-link:hover { color: var(--coral); background: var(--coral-wash); }

/* -------------------------------------------------------------------- hero */

.hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(1000px 420px at 100% 0%, rgba(75, 38, 106, 0.07), transparent 70%),
    linear-gradient(180deg, var(--coral-wash) 0%, var(--canvas) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-grid--art { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.hero h1 {
  max-width: 17ch;
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.lede {
  max-width: 52ch;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16px;
}

.finder { margin-top: 26px; max-width: 580px; }
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.searchbar:focus-within { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(201, 52, 31, 0.14), var(--shadow-1); }
.searchbar svg { flex: none; }
.searchbar input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 15px;
}
.searchbar input::placeholder { color: var(--muted); opacity: 1; }
.searchbar input::-webkit-search-cancel-button { cursor: pointer; }
.searchbar input:focus-visible { outline: 0; }

.finder-options {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 14px;
}
.finder-options label { color: var(--ink-soft); font-weight: 600; }
.finder-options select {
  min-width: 220px;
  height: 42px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23211e1c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  font: inherit;
  font-size: 14px;
  appearance: none;
  cursor: pointer;
}
.finder-options select:hover { border-color: var(--ink-soft); }

.promises {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 13px;
}
.promises li { display: inline-flex; align-items: center; gap: 7px; }
.promises li::before {
  content: "";
  flex: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='m2 5.2 2 2 4-4.4' fill='none' stroke='%2323683a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  box-shadow: inset 0 0 0 1px rgba(35, 104, 58, 0.35);
}
.promises strong { color: var(--ink); }

/* The catalogues' coral-to-plum panel, carrying real covers. */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 40px 28px 52px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #e3573f 0%, var(--coral) 40%, var(--plum) 100%);
  box-shadow: 0 18px 42px rgba(73, 31, 52, 0.22);
  overflow: hidden;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: auto -20% -55% -20%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent);
  pointer-events: none;
}
.fan {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 240px;
}
.fan li {
  --mid: calc((var(--n) - 1) / 2);
  --off: calc(var(--i) - var(--mid));
  position: absolute;
  top: calc(12px + max(var(--off), calc(-1 * var(--off))) * 12px);
  left: 50%;
  width: 132px;
  margin-left: -66px;
  transform: translateX(calc(var(--off) * 84px)) rotate(calc(var(--off) * 5deg));
  z-index: calc(10 - max(var(--off), calc(-1 * var(--off))));
  transition: transform 260ms var(--ease);
}
.fan a { display: block; border-radius: 6px; }
.fan img {
  width: 132px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 30px rgba(28, 10, 30, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.hero-art:hover .fan li { transform: translateX(calc(var(--off) * 96px)) rotate(calc(var(--off) * 6deg)) translateY(-4px); }
.hero-art__note {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

/* ---------------------------------------------------------------- sections */

.section { margin-top: 48px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(22px, 2.2vw, 26px); font-weight: 700; line-height: 1.2; }
.section-head p { margin-top: 4px; color: var(--muted); font-size: 14px; }

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.panel .section-head { margin-bottom: 16px; }

.doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.door {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), transform 160ms var(--ease);
}
.door:hover { border-color: rgba(201, 52, 31, 0.45); background: var(--coral-wash); transform: translateY(-1px); }
.door__code {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  color: var(--coral-dark);
  background: var(--coral-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.door__body { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.door__name { font-size: 15px; font-weight: 700; }
.door__english { color: var(--muted); font-size: 12px; }
.door__count { color: var(--coral); font-size: 12px; font-weight: 700; }
.door__go { flex: none; color: var(--muted); transition: transform 160ms var(--ease), color 160ms var(--ease); }
.door:hover .door__go { color: var(--coral); transform: translateX(3px); }

/* ------------------------------------------------------------------- books */

.books {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.books--picks { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.books > li { display: flex; flex-direction: column; min-width: 0; }
.book {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease), border-color 200ms var(--ease);
}
.book:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.book__cover { display: block; margin-bottom: 10px; border-radius: 6px; overflow: hidden; }
.book__cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--surface-soft);
}
.book__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.book__title a { text-decoration: none; }
.book__title a:hover { color: var(--coral); }
.book__author {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.book .tags { margin: 8px 0 10px; }
.book .btn { margin-top: auto; }

.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.tag--pdf { color: var(--coral-dark); background: var(--coral-soft); }
.tag--epub { color: var(--plum); background: var(--plum-wash); }
.tag--audio { color: var(--green); background: var(--green-soft); }
.tag--online { color: var(--ink-soft); background: var(--surface-soft); }

.chip {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--coral-dark);
  background: var(--coral-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.chip:hover { background: #ffe2dc; }

/* ------------------------------------------------------------------- facts */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.fact {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.fact__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
}
.fact__icon--coral { color: var(--coral); background: var(--coral-soft); }
.fact__icon--plum { color: var(--plum); background: var(--plum-wash); }
.fact__icon--green { color: var(--green); background: var(--green-soft); }
.fact h3 { font-size: 16px; font-weight: 700; line-height: 1.3; }
.fact p { margin-top: 8px; color: var(--ink-soft); font-size: 13.5px; }
.fact .more { margin-top: 12px; }

.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: var(--r-lg);
  color: #fff;
  background: linear-gradient(120deg, var(--charcoal) 0%, var(--charcoal-2) 60%, #3a2240 100%);
}
.band h2 { font-size: 20px; font-weight: 700; }
.band p { margin-top: 6px; max-width: 56ch; color: rgba(255, 255, 255, 0.82); font-size: 14px; }
.band .btn { flex: none; }

/* ------------------------------------------------------------------ search */

.search-hero {
  padding: 40px 0 36px;
  background: linear-gradient(180deg, var(--coral-wash) 0%, var(--canvas) 100%);
  border-bottom: 1px solid var(--line);
}
.search-title { font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1.15; }
.search-hero .finder { margin-top: 18px; }
.results { margin-top: 32px; }
.result-list { display: grid; gap: 10px; list-style: none; }
.result {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.result:hover { border-color: rgba(201, 52, 31, 0.45); background: var(--coral-wash); }
.result__type {
  flex: none;
  width: 76px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.result__type { display: grid; gap: 2px; }
.result__lang { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.result__body { display: grid; flex: 1; min-width: 0; }
.result__title { font-weight: 700; line-height: 1.35; }
.result__meta { color: var(--muted); font-size: 13px; }
.result .tags { flex: none; }
.result__go { flex: none; color: var(--muted); }
.result:hover .result__go { color: var(--coral); }
.empty {
  padding: 32px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.empty h3 { font-size: 18px; }
.empty p { margin-top: 6px; color: var(--ink-soft); }

/* ------------------------------------------------------------------ footer */

.site-footer {
  position: relative;
  margin-top: 64px;
  padding-top: 48px;
  color: #e9e6e3;
  background: var(--charcoal);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: #ff5b5b;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p { max-width: 34ch; margin-top: 12px; color: var(--footer-muted); font-size: 13.5px; }
.site-footer h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer nav { display: grid; align-content: start; gap: 2px; }
.site-footer nav a, .footer-languages a, .footer-bottom a {
  padding: 4px 0;
  color: #e9e6e3;
  font-size: 14px;
  text-decoration: none;
}
.site-footer a:hover { color: #ff8a78; }
.footer-languages { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-languages ul { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.footer-languages span { margin-left: 4px; color: var(--footer-muted); font-size: 12px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--footer-muted);
  font-size: 13px;
}
.footer-bottom__links { display: flex; gap: 20px; }
.footer-bottom a { font-size: 13px; color: var(--footer-muted); }

/* -------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .books { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero-grid--art { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
  .primary-nav { display: none; }
  .header-actions { margin-left: auto; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .shell { max-width: calc(100% - 32px); }
  .header-inner { gap: 12px; min-height: 60px; }
  .brand img { width: 128px; }
  .hero { padding: 32px 0 36px; }
  .lede { font-size: 15px; }
  .finder-options { flex-wrap: wrap; }
  .finder-options select { flex: 1; min-width: 0; }
  .searchbar { padding-left: 12px; }
  .searchbar .btn { padding-inline: 16px; }
  /* Phones: each shelf is one sideways row, so the page stays short. */
  .books, .books--picks {
    display: flex;
    gap: 12px;
    margin-inline: -16px;
    padding: 2px 16px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .books::-webkit-scrollbar { display: none; }
  .books > li { flex: 0 0 42%; scroll-snap-align: start; }
  .panel { padding: 18px 16px; }
  .doors { grid-template-columns: minmax(0, 1fr); }
  .section { margin-top: 36px; }
  .section-head { flex-wrap: wrap; align-items: flex-start; }
  .band { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .result { flex-wrap: wrap; gap: 6px 12px; }
  .result__type { width: auto; display: flex; gap: 8px; align-items: baseline; }
  .result__body { flex-basis: 100%; order: 2; }
  .result .tags { order: 3; }
  .result__go { display: none; }
}

@media (max-width: 380px) {
  .books > li { flex-basis: 47%; }
  .header-actions .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

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