/* ==========================================================================
   Lampos Publishing — main stylesheet
   Palette: deep indigo/navy, warm gold, cream, crimson (from the official logo). Woven patterns: img/*.svg
   ========================================================================== */
:root {
  --indigo-950: #050b29; /* was #0e1330; nudged toward logo navy #020924 */
  --indigo-900: #0d1538; /* was #141b3d */
  --indigo-800: #1c2554;
  --indigo-700: #27326e;
  --indigo-500: #3d4a9a;
  --indigo-100: #e3e6f4;
  --gold-600: #b8862a;
  --gold-500: #d4a23a;
  --gold-400: #e3b85a;
  --gold-200: #f3dda6;
  --cream-50: #fdf9f0;
  --cream-100: #f7efdc;
  --cream-200: #efe2c3;
  --crimson-700: #9c2843; /* darker crimson for hover/small text */
  --crimson-600: #bd3350; /* logo book covers */
  --crimson-500: #ca316a; /* logo LAMPOS lettering */
  --terracotta: var(--crimson-600); /* was #b4532a; kept as an alias so existing rules follow the logo */
  --ink: #1d1f2b;
  --muted: #555a70;
  --line: #e4dac4;
  --white: #fff;

  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(20,27,61,.08), 0 2px 8px rgba(20,27,61,.06);
  --shadow: 0 10px 30px -12px rgba(20,27,61,.35);
  --shadow-lg: 0 24px 50px -20px rgba(14,19,48,.55);
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--indigo-700); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--indigo-900); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--gold-500); color: var(--indigo-950); padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 1rem; }

.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--crimson-600); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.35rem; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s; font-family: var(--font-body); line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold-500); color: var(--indigo-950); box-shadow: 0 6px 18px -8px rgba(212,162,58,.8); }
.btn--gold:hover { background: var(--gold-400); color: var(--indigo-950); }
.btn--indigo { background: var(--indigo-800); color: var(--cream-50); }
.btn--indigo:hover { background: var(--indigo-700); color: var(--white); }
.btn--ghost { border-color: currentColor; color: var(--indigo-800); background: transparent; }
.btn--ghost:hover { background: var(--indigo-800); color: var(--cream-50); border-color: var(--indigo-800); }
.btn--ghost-light { border-color: rgba(253,249,240,.6); color: var(--cream-50); background: transparent; }
.btn--ghost-light:hover { background: var(--cream-50); color: var(--indigo-900); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--indigo-950); color: var(--cream-200); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 36px; }
.topbar__msg { margin: 0; opacity: .85; }
.topbar__links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.topbar a { color: var(--cream-100); text-decoration: none; }
.topbar a:hover { color: var(--gold-400); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(253,249,240,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--indigo-900); flex-shrink: 0; }
.brand__mark { width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.01em; }
.brand__sub { font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; margin-top: .3rem; }
.brand:hover { color: var(--indigo-900); }
.brand--logo { line-height: 0; }
.brand__picture { display: block; }
.brand__logo { display: block; height: 64px; width: auto; max-width: none; }
.site-footer .brand__logo { height: 80px; }

.header-search { flex: 1; display: flex; max-width: 560px; margin-left: auto; background: var(--white); border: 2px solid var(--indigo-800); border-radius: 999px; overflow: hidden; transition: box-shadow .2s; }
.header-search:focus-within { box-shadow: 0 0 0 4px rgba(212,162,58,.35); }
.header-search input { flex: 1; min-width: 0; border: 0; padding: .7rem 1.1rem; font: inherit; font-size: 1rem; background: transparent; color: var(--ink); }
.header-search input:focus { outline: none; }
.header-search button { border: 0; background: var(--indigo-800); color: var(--cream-50); padding: 0 1.1rem; cursor: pointer; display: grid; place-items: center; }
.header-search button:hover { background: var(--indigo-700); }
.header-search svg { width: 20px; height: 20px; }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--indigo-800); background: transparent; cursor: pointer; position: relative; color: var(--indigo-800); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 50%; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transform: translateX(-50%); transition: transform .25s, opacity .2s, top .25s; }
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; transform: none; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.site-nav { background: var(--indigo-800); background-image: linear-gradient(90deg, var(--indigo-900), var(--indigo-800) 50%, var(--indigo-900)); }
.nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: .25rem; }
.nav__list a { display: block; padding: .8rem 1rem; color: var(--cream-100); text-decoration: none; font-weight: 600; font-size: .98rem; position: relative; }
.nav__list a::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .45rem; height: 2px; background: var(--gold-400); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav__list a:hover { color: var(--white); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: var(--gold-400); }
.nav__cta { display: none; }

/* ---------- Woven band ---------- */
.band { height: 28px; background: url("../img/band.svg") repeat-x center / auto 28px; }
.band--thin { height: 14px; background-size: auto 14px; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--cream { background: var(--cream-100); }
.section--pattern { background: var(--cream-100) url("../img/pattern-weave-light.svg") repeat; background-size: 52px; }
.section--indigo { background: var(--indigo-900); color: var(--cream-100); }
.section--indigo h2, .section--indigo h3 { color: var(--cream-50); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: .4rem 0 0; color: var(--muted); max-width: 60ch; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; color: var(--indigo-700); }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1000px 500px at 85% 20%, rgba(212,162,58,.28), transparent 60%), radial-gradient(700px 400px at 10% 110%, rgba(180,83,42,.25), transparent 60%), var(--indigo-900); color: var(--cream-100); }
.hero::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern-weave.svg") repeat; background-size: 52px; opacity: .55; mask-image: linear-gradient(100deg, transparent 20%, #000 75%); -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 75%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.hero h1 { color: var(--cream-50); }
.hero h1 em { font-style: italic; color: var(--gold-400); font-weight: 500; }
.hero .eyebrow { color: var(--gold-400); }
.hero__lead { font-size: 1.2rem; color: var(--cream-200); max-width: 54ch; margin-bottom: 2rem; }
.hero-search { display: flex; background: var(--white); border-radius: 999px; padding: .4rem; box-shadow: var(--shadow-lg); max-width: 600px; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .8rem 1.2rem; font: inherit; font-size: 1.08rem; color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: var(--shadow-lg), 0 0 0 4px rgba(227,184,90,.55); }
.hero-search .btn { padding: .8rem 1.5rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; align-items: center; }
.hero__chips span { font-size: .9rem; color: var(--cream-200); margin-right: .25rem; }
.chip { display: inline-block; padding: .35rem .85rem; border-radius: 999px; border: 1px solid rgba(253,249,240,.3); color: var(--cream-100); text-decoration: none; font-size: .9rem; font-weight: 600; transition: background .2s, border-color .2s; }
.chip:hover { background: rgba(227,184,90,.18); border-color: var(--gold-400); color: var(--white); }

.hero__books { position: relative; height: 440px; }
.hero__books .cover { position: absolute; width: 230px; box-shadow: var(--shadow-lg); transition: transform .4s ease; }
.hero__books .cover:nth-child(1) { left: 4%; top: 50px; transform: rotate(-9deg); }
.hero__books .cover:nth-child(2) { left: 30%; top: 0; z-index: 2; transform: rotate(1deg); width: 250px; }
.hero__books .cover:nth-child(3) { left: 58%; top: 60px; transform: rotate(9deg); }
.hero__books:hover .cover:nth-child(1) { transform: rotate(-12deg) translateX(-10px); }
.hero__books:hover .cover:nth-child(3) { transform: rotate(12deg) translateX(10px); }
.hero__glow { position: absolute; left: 50%; bottom: 0; width: 70%; height: 40px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); filter: blur(6px); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: -2.2rem; position: relative; z-index: 3; }
.stat { background: var(--white); padding: 1.3rem 1.5rem; display: flex; gap: .9rem; align-items: center; }
.stat svg { width: 34px; height: 34px; color: var(--gold-600); flex-shrink: 0; }
.stat strong { display: block; font-family: var(--font-display); color: var(--indigo-900); font-size: 1.05rem; }
.stat span { font-size: .92rem; color: var(--muted); }

/* ---------- Book covers (generated) ---------- */
.cover { container-type: inline-size; aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; position: relative; overflow: hidden; background: var(--c1); color: var(--c3); display: flex; flex-direction: column; box-shadow: inset 6px 0 0 rgba(0,0,0,.18), inset 8px 0 0 rgba(255,255,255,.08), var(--shadow); isolation: isolate; }
.cover__pattern { height: 40%; background-color: var(--c1); background-repeat: repeat; position: relative; }
.cover__pattern::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4cqw; background: var(--c2); box-shadow: 0 -2cqw 0 0 var(--c1), 0 -3cqw 0 0 var(--c2); }
.cover--left .cover__pattern { position: absolute; left: 0; top: 0; bottom: 0; width: 22%; height: auto; }
.cover--left .cover__pattern::after { left: auto; top: 0; right: 0; width: 3cqw; height: auto; box-shadow: none; }
.cover--left .cover__body { padding-left: 30%; }
.cover--frame .cover__pattern { position: absolute; inset: 0; height: auto; }
.cover--frame .cover__pattern::after { display: none; }
.cover--frame .cover__body { margin: 14cqw 10cqw auto; background: var(--c1); padding: 7cqw; border: 1.2cqw solid var(--c2); flex: 0 0 auto; position: relative; }
.cover--frame .cover__foot { position: relative; background: var(--c1); }
.cover__body { flex: 1; padding: 8cqw 9cqw 4cqw; display: flex; flex-direction: column; gap: 2.5cqw; position: relative; }
.cover__subject { font-family: var(--font-body); font-size: 5.2cqw; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c2); }
.cover__title { font-family: var(--font-display); font-size: 10cqw; line-height: 1.05; font-weight: 600; color: var(--c3); margin: 0; letter-spacing: -.01em; }
.cover--frame .cover__title { font-size: 9cqw; }
.cover__level { font-family: var(--font-body); font-size: 5cqw; color: var(--c3); opacity: .85; margin-top: auto; }
.cover__foot { display: flex; align-items: center; gap: 2cqw; padding: 0 9cqw 6cqw; font-family: var(--font-display); font-weight: 700; font-size: 5cqw; color: var(--c3); }
.cover--left .cover__foot { padding-left: 30%; }
.cover__foot svg { width: 8cqw; height: 8cqw; }
.cover__sample { position: absolute; top: 3cqw; right: 3cqw; font: 700 3.6cqw/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; background: rgba(0,0,0,.35); color: #fff; padding: 1.4cqw 2.2cqw; border-radius: 99px; z-index: 2; }

/* ---------- Book cards ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2rem 1.5rem; }
.book-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--radius); }
.book-card .cover { transition: transform .25s ease, box-shadow .25s ease; }
.book-card:hover .cover, .book-card:focus-visible .cover { transform: translateY(-6px) rotate(-1deg); box-shadow: inset 6px 0 0 rgba(0,0,0,.18), var(--shadow-lg); }
.book-card__meta { padding: .9rem .15rem 0; }
.book-card__tag { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--crimson-600); }
.book-card__title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: var(--indigo-900); line-height: 1.25; margin: .25rem 0 .3rem; }
.book-card__authors { font-size: .9rem; color: var(--muted); margin: 0; }
.book-card:hover .book-card__title { color: var(--terracotta); }

/* Carousel */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 220px); gap: 1.75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.5rem; scrollbar-width: thin; scrollbar-color: var(--gold-500) transparent; list-style: none; margin: 0; }
.carousel__track > li { scroll-snap-align: start; }
.carousel__controls { display: flex; gap: .5rem; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--indigo-800); background: transparent; color: var(--indigo-800); cursor: pointer; display: grid; place-items: center; font-size: 1.2rem; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--indigo-800); color: var(--cream-50); }
.icon-btn:disabled { opacity: .35; cursor: default; background: transparent; color: var(--indigo-800); }

/* ---------- Subjects ---------- */
.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.subject-tile { position: relative; display: flex; gap: 1rem; align-items: center; padding: 1.3rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.subject-tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; background: url("../img/pattern-weave-light.svg"); background-size: 40px; opacity: 0; transition: opacity .25s; border-radius: 50%; }
.subject-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-400); color: var(--ink); }
.subject-tile:hover::after { opacity: 1; }
.subject-tile__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--tile, var(--indigo-800)); color: var(--gold-400); flex-shrink: 0; }
.subject-tile__icon svg { width: 28px; height: 28px; }
.subject-tile h3 { font-size: 1.12rem; margin: 0 0 .1rem; }
.subject-tile p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- Split feature blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1rem; }
.feature-list li { display: flex; gap: .9rem; align-items: flex-start; }
.feature-list li::before { content: ""; flex-shrink: 0; width: 14px; height: 14px; margin-top: .45rem; background: var(--gold-500); transform: rotate(45deg); box-shadow: 0 0 0 4px rgba(212,162,58,.2); }
.feature-list strong { color: var(--indigo-900); }
.panel { background: var(--indigo-900); color: var(--cream-100); border-radius: calc(var(--radius) * 1.5); padding: clamp(1.75rem, 4vw, 2.75rem); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.panel::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern-weave.svg"); background-size: 52px; opacity: .35; }
.panel > * { position: relative; }
.panel h3 { color: var(--cream-50); font-size: 1.5rem; }
.panel ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 1.1rem; }
.panel ol li { counter-increment: s; display: grid; grid-template-columns: 42px 1fr; gap: .9rem; align-items: start; }
.panel ol li::before { content: counter(s); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-500); color: var(--indigo-950); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.panel ol strong { color: var(--gold-400); display: block; }
.panel ol span { color: var(--cream-200); font-size: .95rem; }

/* CTA banner */
.cta-banner { position: relative; overflow: hidden; border-radius: calc(var(--radius) * 1.6); background: linear-gradient(120deg, var(--gold-500), var(--gold-400) 55%, #eac57a); color: var(--indigo-950); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; box-shadow: var(--shadow); }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern-weave-light.svg"); background-size: 44px; opacity: 1; mix-blend-mode: multiply; }
.cta-banner > * { position: relative; }
.cta-banner h2 { margin: 0 0 .4rem; color: var(--indigo-950); }
.cta-banner p { margin: 0; color: #3a2f12; font-size: 1.1rem; max-width: 60ch; }
.cta-banner__mark { width: 96px; height: 96px; background: var(--cream-50); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--indigo-900), 0 0 0 9px rgba(20,27,61,.12); }
.cta-banner__mark svg, .cta-banner__mark img { width: 76px; height: 76px; }
.cta-banner .btn-row { display: flex; gap: .75rem; flex-wrap: wrap; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card__art { height: 120px; background: var(--indigo-800) url("../img/pattern-weave.svg"); background-size: 40px; position: relative; }
.news-card__art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: url("../img/band.svg") repeat-x; background-size: auto 14px; }
.news-card:nth-child(2) .news-card__art { background-color: var(--terracotta); }
.news-card:nth-child(3) .news-card__art { background-color: #2f5a5e; }
.news-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-card__meta { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--crimson-600); margin-bottom: .5rem; }
.news-card h3 { font-size: 1.15rem; }
.news-card p { color: var(--muted); font-size: .97rem; }
.news-card a { margin-top: auto; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--indigo-900); color: var(--cream-100); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern-weave.svg"); background-size: 52px; opacity: .5; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.page-hero__inner { position: relative; padding: clamp(2.75rem, 6vw, 4.75rem) 0; }
.page-hero__inner > * { max-width: 780px; }
.page-hero h1 { color: var(--cream-50); font-size: clamp(2rem, 4vw, 3.1rem); }
.page-hero .eyebrow { color: var(--gold-400); }
.page-hero p { color: var(--cream-200); font-size: 1.15rem; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.breadcrumb a { color: var(--gold-200); }
.page-hero .breadcrumb { color: var(--cream-200); }
.breadcrumb--dark { color: var(--muted); }
.breadcrumb--dark a { color: var(--indigo-700); }

/* ---------- Catalog ---------- */
.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 2.5rem; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 60px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.filters summary { display: none; }
.filters__group { border: 0; margin: 0 0 1.4rem; padding: 0; }
.filters__group legend, .filters__label { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--indigo-900); margin-bottom: .6rem; padding: 0; display: block; }
.filter-opt { display: flex; align-items: center; gap: .6rem; padding: .32rem .5rem; border-radius: 8px; cursor: pointer; font-size: .97rem; }
.filter-opt:hover { background: var(--cream-100); }
.filter-opt input { accent-color: var(--indigo-800); width: 17px; height: 17px; margin: 0; }
.filter-opt .count { margin-left: auto; font-size: .8rem; color: var(--muted); background: var(--cream-100); border-radius: 99px; padding: 0 .5rem; }
.field { display: block; width: 100%; padding: .7rem .9rem; border: 1.5px solid #cfc4aa; border-radius: 10px; font: inherit; font-size: 1rem; background: var(--white); color: var(--ink); }
.field:focus { outline: none; border-color: var(--indigo-700); box-shadow: 0 0 0 4px rgba(61,74,154,.18); }
.catalog__bar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.catalog__search { flex: 1 1 320px; position: relative; }
.catalog__search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.catalog__search .field { padding-left: 2.6rem; border-radius: 999px; border-color: var(--indigo-800); border-width: 2px; }
.catalog__sort { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.catalog__sort .field { width: auto; padding: .55rem .8rem; }
.result-count { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; background: var(--indigo-100); color: var(--indigo-800); border: 0; border-radius: 99px; padding: .3rem .75rem; font: 600 .88rem var(--font-body); cursor: pointer; }
.pill:hover { background: var(--indigo-800); color: var(--white); }
.empty { text-align: center; padding: 3rem 1rem; background: var(--white); border: 1px dashed #cfc4aa; border-radius: var(--radius); grid-column: 1 / -1; }

/* ---------- Book detail ---------- */
.book-detail { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.book-detail__cover { position: sticky; top: calc(var(--header-h) + 60px); }
.book-detail__cover .cover { box-shadow: inset 6px 0 0 rgba(0,0,0,.18), var(--shadow-lg); }
.book-detail h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: .3rem; }
.book-detail__subtitle { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--muted); margin-bottom: 1rem; }
.book-detail__authors { font-size: 1.05rem; margin-bottom: 1.5rem; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; padding: .3rem .75rem; border-radius: 99px; background: var(--cream-200); color: var(--indigo-900); }
.badge--gold { background: var(--gold-500); color: var(--indigo-950); }
.badge--indigo { background: var(--indigo-800); color: var(--cream-50); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 1.75rem; }
.specs div { background: var(--white); padding: .85rem 1.1rem; }
.specs dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.specs dd { margin: .15rem 0 0; font-weight: 600; color: var(--indigo-900); }
.order-box { background: var(--cream-100); border: 1px solid var(--line); border-left: 5px solid var(--gold-500); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; }
.order-box p { margin: 0; color: var(--muted); font-size: .97rem; }
.order-box strong { color: var(--indigo-900); font-family: var(--font-display); font-size: 1.15rem; display: block; }
.order-box .btn-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.tabs { border-bottom: 2px solid var(--line); display: flex; gap: .25rem; overflow-x: auto; }
.tab { background: none; border: 0; padding: .8rem 1.1rem; font: 700 1rem var(--font-body); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--indigo-900); border-bottom-color: var(--gold-500); }
.tab:hover { color: var(--indigo-800); }
.tab-panel { padding: 1.5rem 0; }
.toc { list-style: none; padding: 0; margin: 0; counter-reset: ch; }
.toc li { counter-increment: ch; display: grid; grid-template-columns: 3.2rem 1fr; padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.toc li::before { content: counter(ch, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; color: var(--gold-600); font-size: 1.1rem; }
.toc--labelled li { grid-template-columns: 1fr; font-weight: 600; color: var(--indigo-900); }
.toc--labelled li::before { content: none; }
.toc--labelled li.toc__sub { font-weight: 400; color: var(--ink); padding: .5rem 0 .5rem 1.4rem; position: relative; }
.toc--labelled li.toc__sub::before { content: ""; position: absolute; left: .35rem; top: 50%; width: .45rem; height: .45rem; border-radius: 50%; background: var(--gold-500); transform: translateY(-50%); }

/* ---------- Look inside (book preview viewer) ---------- */
.look-inside-btn { width: 100%; margin-top: 1.25rem; padding: .95rem 1.35rem; font-size: 1.08rem; letter-spacing: .01em; position: relative; overflow: hidden; box-shadow: 0 10px 24px -10px rgba(212,162,58,.95), inset 0 -3px 0 rgba(14,19,48,.12); }
.look-inside-btn svg { width: 22px; height: 22px; }
.look-inside-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); animation: li-shine 4.5s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes li-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .look-inside-btn::after { animation: none; display: none; } }
.look-inside-hint { text-align: center; color: var(--muted); font-size: .9rem; margin: .5rem 0 0; }
.li-open, .li-open body { overflow: hidden; }
.li-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: clamp(.5rem, 2vw, 1.5rem); }
.li-modal[hidden] { display: none; }
.li-modal__backdrop { position: absolute; inset: 0; background: rgba(14,19,48,.82); backdrop-filter: blur(3px); }
.li-modal__panel { position: relative; width: min(980px, 100%); height: 100%; max-height: 100%; display: flex; flex-direction: column; background: var(--indigo-900); background-image: linear-gradient(180deg, var(--indigo-800), var(--indigo-950)); color: var(--cream-100); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border-top: 4px solid var(--gold-500); }
.li-modal__head { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem .8rem 1.4rem; border-bottom: 1px solid rgba(253,249,240,.12); }
.li-modal__titles { flex: 1; min-width: 0; }
.li-modal__titles .eyebrow { color: var(--gold-400); margin: 0 0 .1rem; font-size: .72rem; }
.li-modal__head h2 { color: var(--cream-50); font-size: clamp(1rem, 2vw, 1.2rem); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-counter { margin: 0; font-weight: 700; font-size: .92rem; color: var(--gold-200); white-space: nowrap; background: rgba(253,249,240,.08); padding: .35rem .8rem; border-radius: 99px; }
.li-close { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(253,249,240,.35); background: transparent; color: var(--cream-50); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.li-close:hover { background: var(--cream-50); color: var(--indigo-900); }
.li-close svg { width: 20px; height: 20px; }
.li-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 1rem 4.5rem; touch-action: pan-y; }
.li-track { list-style: none; margin: 0; padding: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.li-slide { height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; }
.li-slide[hidden] { display: none; }
.li-img { display: block; max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; background: var(--cream-50); border-radius: 4px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.8), inset 6px 0 0 rgba(0,0,0,.1); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.li-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--gold-500); color: var(--indigo-950); cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(0,0,0,.6); transition: background .2s, opacity .2s, transform .15s; z-index: 2; }
.li-nav:hover { background: var(--gold-400); }
.li-nav:disabled { opacity: .3; cursor: default; }
.li-nav svg { width: 26px; height: 26px; }
.li-nav--prev { left: 1rem; }
.li-nav--next { right: 1rem; }
.li-end { max-width: 460px; text-align: center; background: var(--cream-50); color: var(--ink); border-radius: var(--radius); padding: 2.2rem 1.8rem; box-shadow: var(--shadow-lg); border-top: 5px solid var(--gold-500); }
.li-end h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.li-end p { color: var(--muted); margin: 0 0 1.3rem; }
.li-end .btn-row { justify-content: center; }
.li-end__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--indigo-800); color: var(--gold-400); display: inline-grid; place-items: center; margin-bottom: .8rem; }
.li-end__icon svg { width: 28px; height: 28px; }
.li-restart { margin-top: 1.1rem; background: none; border: 0; color: var(--indigo-700); font: 600 .95rem var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.li-foot { margin: 0; padding: .55rem 1rem .75rem; text-align: center; font-size: .82rem; color: rgba(247,239,220,.7); }
@media (max-width: 640px) {
  .li-modal { padding: 0; }
  .li-modal__panel { border-radius: 0; width: 100%; }
  .li-modal__head { padding: .6rem .6rem .6rem 1rem; gap: .6rem; }
  .li-modal__titles .eyebrow { display: none; }
  .li-counter { font-size: .82rem; padding: .3rem .6rem; }
  .li-stage { padding: .6rem .5rem 4.2rem; }
  .li-nav { top: auto; bottom: .6rem; transform: none; width: 48px; height: 48px; }
  .li-nav--prev { left: calc(50% - 60px); }
  .li-nav--next { right: calc(50% - 60px); }
  .li-end { padding: 1.6rem 1.2rem; }
  .li-end .btn-row, .li-end .btn-row .btn { width: 100%; }
}

/* ---------- Generic content ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; position: relative; overflow: hidden; }
.card--accent { border-top: 5px solid var(--gold-500); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--indigo-800); color: var(--gold-400); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.25rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.1rem; color: var(--muted); }
.card p { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: st; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }
.steps li { counter-increment: st; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; position: relative; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 54px; height: 54px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: var(--indigo-800); color: var(--gold-400); font: 700 1.15rem var(--font-display); margin: 0 0 1rem; }
.steps li h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.steps li p { margin: 0; color: var(--muted); font-size: .97rem; }
.steps--light li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.steps--light li::before { background: var(--gold-500); color: var(--indigo-950); }
.steps--light li p { color: var(--cream-200); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(var(--gold-500) 0 8px, transparent 8px 14px); }
.timeline li { position: relative; padding: 0 0 1.75rem 3.5rem; }
.timeline li::before { content: ""; position: absolute; left: 10px; top: 4px; width: 20px; height: 20px; background: var(--indigo-800); border: 4px solid var(--gold-500); transform: rotate(45deg); }
.timeline h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.timeline p { margin: 0; color: var(--muted); }
.note { background: var(--cream-100); border: 1px dashed #c9b88e; border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .93rem; color: var(--muted); }
.note strong { color: var(--indigo-900); }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .75rem; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; color: var(--indigo-900); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-600); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--muted); }
.quote-block { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; color: var(--indigo-900); border-left: 5px solid var(--gold-500); padding-left: 1.5rem; margin: 0; font-style: italic; font-weight: 400; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; text-align: center; }
.person--lead { grid-column: span 2; display: grid; grid-template-columns: 160px 1fr; gap: 1.75rem; text-align: left; align-items: center; }
.avatar { width: 120px; height: 120px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font: 600 2.4rem var(--font-display); color: var(--gold-400); background: var(--indigo-800) url("../img/pattern-weave.svg"); background-size: 30px; box-shadow: 0 0 0 5px var(--cream-50), 0 0 0 7px var(--gold-500); }
.person--lead .avatar { width: 150px; height: 150px; margin: 0; font-size: 3rem; }
.avatar--tba { background-color: #8b8fa6; color: var(--cream-50); font-size: 2rem; }
.person h3 { margin: 0 0 .15rem; font-size: 1.2rem; }
.person__role { color: var(--gold-600); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .6rem; }
.person p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2.5rem; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 700; font-size: .95rem; color: var(--indigo-900); margin-bottom: .35rem; }
.form-group .req { color: var(--terracotta); }
.form-hint { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
textarea.field { min-height: 150px; resize: vertical; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status[data-state="error"] { color: #a23a1d; }
.form-status[data-state="ok"] { color: #2f6b3f; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .card__icon { width: 44px; height: 44px; margin: 0; flex-shrink: 0; }
.contact-list strong { display: block; color: var(--indigo-900); }
.contact-list span { color: var(--muted); }
.map-ph { margin-top: 1.5rem; aspect-ratio: 4/3; border-radius: var(--radius); background: var(--indigo-800) url("../img/pattern-weave.svg"); background-size: 44px; display: grid; place-items: center; color: var(--cream-100); text-align: center; padding: 1rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-950); color: var(--cream-200); font-size: .97rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1rem; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--cream-100); text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); text-decoration: underline; }
.site-footer .brand { color: var(--cream-50); margin-bottom: 1rem; }
.site-footer .brand__sub { color: var(--gold-400); }
.footer__about { max-width: 36ch; opacity: .85; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .85rem; opacity: .85; }
.sample-note { font-size: .8rem; opacity: .7; font-style: italic; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header__cta { display: none; }
  .hero__books .cover { width: 190px; }
  .hero__books .cover:nth-child(2) { width: 210px; }
  .hero__books { height: 380px; }
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__books { height: 330px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero__books .cover { width: 34%; }
  .hero__books .cover:nth-child(2) { width: 37%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .news-grid, .cards-3 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; padding: 0; }
  .filters summary { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; font-weight: 700; color: var(--indigo-900); cursor: pointer; list-style: none; }
  .filters summary::-webkit-details-marker { display: none; }
  .filters summary::after { content: "▾"; color: var(--gold-600); }
  .filters[open] summary::after { content: "▴"; }
  .filters__body { padding: 0 1.25rem 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
  .book-detail { grid-template-columns: 1fr; }
  .book-detail__cover { position: static; max-width: 280px; margin: 0 auto; width: 100%; }
  .cta-banner { grid-template-columns: 1fr; text-align: left; }
  .cta-banner__mark { width: 72px; height: 72px; }
  .cta-banner__mark svg, .cta-banner__mark img { width: 54px; height: 54px; }
  .person--lead { grid-column: auto; grid-template-columns: 1fr; text-align: center; }
  .person--lead .avatar { margin: 0 auto; }
}
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .topbar { display: none; }
  .header__inner { flex-wrap: wrap; gap: .5rem 1rem; padding: .6rem 0; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1.4rem; }
  .site-header .brand { min-width: 0; flex-shrink: 1; }
  .site-header .brand__logo { height: 52px; max-width: 100%; object-fit: contain; object-position: left center; } /* compact emblem + LAMPOS + PUBLISHING OPC lockup via <picture> */
  .nav-toggle { display: block; }
  .header-search { order: 3; flex: 1 0 100%; max-width: none; margin: 0; }
  .header-search input { padding: .6rem 1rem; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; box-shadow: var(--shadow-lg); max-height: calc(100vh - 120px); overflow-y: auto; }
  .site-nav.is-open { display: block; }
  .nav__list { flex-direction: column; padding: .5rem 0 1.5rem; }
  .nav__list a { padding: .9rem .25rem; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  .nav__list a::after { display: none; }
  .nav__list a[aria-current="page"] { border-left: 3px solid var(--gold-400); padding-left: .75rem; }
  .nav__cta { display: block; padding-top: 1rem; }
  .nav__cta .btn { width: 100%; }
  .nav__list .nav__cta a { display: flex; border: 0; color: var(--indigo-950); padding: .85rem 1.25rem; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { width: min(100% - 2rem, var(--container)); }
  .hero-search { flex-direction: column; border-radius: 18px; gap: .4rem; }
  .hero-search input { padding: .75rem .9rem; }
  .hero-search .btn { width: 100%; }
  .hero__books { height: 260px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: -1.5rem; }
  .stat { padding: .9rem .9rem; flex-direction: column; align-items: flex-start; gap: .45rem; }
  .stat svg { width: 28px; height: 28px; }
  .stat strong { font-size: .95rem; }
  .stat span { font-size: .82rem; line-height: 1.35; display: block; }
  .news-grid, .cards-3, .cards-2, .form-row { grid-template-columns: 1fr; }
  .subject-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .subject-tile { padding: .95rem; flex-direction: column; align-items: flex-start; gap: .6rem; }
  .subject-tile h3 { font-size: 1rem; }
  .subject-tile p { font-size: .8rem; line-height: 1.35; }
  .subject-tile__icon { width: 42px; height: 42px; border-radius: 11px; }
  .subject-tile__icon svg { width: 22px; height: 22px; }
  .news-card__art { height: 84px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child, .footer__grid > div:last-child { grid-column: 1 / -1; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .carousel__track { grid-auto-columns: 62%; gap: 1.1rem; }
  .filters__body { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .catalog__sort { width: 100%; }
  .catalog__sort .field { flex: 1; }
  .order-box .btn-row, .order-box .btn-row .btn { width: 100%; }
  .footer__grid { gap: 2rem; }
}

/* grid children must be allowed to shrink (prevents mobile overflow) */
.book-detail > *, .catalog > *, .split > *, .contact-grid > * { min-width: 0; }
@media (max-width: 640px) { .specs { grid-template-columns: 1fr 1fr; } .specs dd { word-break: break-word; } }
