:root {
  --ink: #18201d;
  --muted: #66706c;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #dedbd1;
  --accent: #3254A1;
  --accent-2: #9d6b3b;
  --soft: #e9efeb;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(22, 38, 32, .08);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; padding: .7rem 1rem; background: #fff; z-index: 999; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { background: #3254A1; color: #fff; box-shadow: 0 6px 25px rgba(0,0,0,.12); }
.topbar { max-width: var(--max); margin: auto; padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-family: Georgia, serif; font-size: 1.65rem; }
.brand strong { display: block; font-family: Georgia, serif; font-size: 1.5rem; letter-spacing: .03em; }
.brand small { display: block; color: #d7dff4; font-size: .78rem; }
.main-nav { display: flex; gap: .95rem; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .94rem; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.menu-toggle { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 10px; padding: .55rem .75rem; }
.header-search { border-top: 1px solid rgba(255,255,255,.13); background: #1B2F6B; }
.header-search form { max-width: var(--max); margin: auto; padding: .75rem 1.3rem; display: flex; gap: .5rem; }
.header-search input { flex: 1; padding: .72rem .9rem; border-radius: 10px; border: 0; min-width: 0; }
.header-search button { border: 0; border-radius: 10px; padding: .7rem 1rem; background: #d8c39a; color: #1e271f; font-weight: 700; cursor: pointer; }
.site-main { max-width: var(--max); margin: auto; padding: 2rem 1.3rem 4rem; min-height: 65vh; }
.hero { min-height: 360px; display: grid; grid-template-columns: 1.4fr .6fr; gap: 2rem; align-items: center; padding: 3.4rem; border-radius: 28px; background: linear-gradient(120deg, #e9efe8, #f8f2e6); border: 1px solid #d9ded8; }
.hero h1, .page-header h1, .book-info h1 { font-family: Georgia, serif; line-height: 1.05; letter-spacing: -.025em; }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.5rem); margin: .15rem 0 1rem; }
.lead { max-width: 760px; font-size: 1.1rem; color: #414945; }
.eyebrow { margin: 0 0 .4rem; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; color: var(--accent); }
.hero-stat { width: 190px; height: 190px; justify-self: center; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.hero-stat strong { font-size: 3.2rem; line-height: 1; }
.hero-stat span { max-width: 110px; margin-top: .5rem; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; border-radius: 12px; padding: .78rem 1.05rem; background: #3050a0; color: #fff; text-decoration: none; font-weight: 750; cursor: pointer; }
.button:hover { filter: brightness(.94); }
.button-secondary { background: #fff; color: var(--accent); border: 1px solid #b9c8c2; }
.button-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.section-block { margin-top: 3.3rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.section-heading > a { color: var(--accent); font-weight: 700; }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.brand-grid.large { grid-template-columns: repeat(3, 1fr); }
.brand-card { min-height: 130px; padding: 1.25rem; display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: 0 5px 18px rgba(0,0,0,.025); transition: transform .15s ease, box-shadow .15s ease; }
.brand-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.brand-card.attached { background: #f2eee7; }
.brand-card-name { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; }
.brand-card-count { color: var(--muted); font-size: .9rem; }
.muted-block { padding: 2rem; border-radius: var(--radius); background: #ebe7de; }
.chip-list { display: flex; flex-wrap: wrap; gap: .7rem; }
.chip { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; padding: .65rem .85rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.chip span { min-width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: var(--soft); font-size: .8rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product-card { overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 5px 18px rgba(0,0,0,.025); }
.product-image-link { position: relative; aspect-ratio: 4 / 5; display: block; background: #ece8df; overflow: hidden; }
.product-image-link img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; transition: transform .2s ease; }
.product-card:hover .product-image-link img { transform: scale(1.02); }
.pdf-badge { position: absolute; right: .6rem; bottom: .6rem; z-index: 2; display: inline-flex; align-items: center; gap: .28rem; padding: .35rem .48rem; border-radius: 8px; background: #c82127; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.25); pointer-events: none; }
.pdf-badge svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.pdf-badge strong { font-size: .72rem; line-height: 1; letter-spacing: .04em; }
.product-card-body { padding: 1rem; }
.product-card h3 { margin: .3rem 0 .6rem; font-size: 1.02rem; line-height: 1.28; }
.product-card h3 a { text-decoration: none; }
.product-card h3 a:hover { text-decoration: underline; }
.card-brand { margin: 0; color: var(--accent); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.isbn { margin: 0; color: var(--muted); font-size: .85rem; }
.image-placeholder { width: 100%; height: 100%; min-height: 180px; display: grid; place-items: center; background: linear-gradient(145deg, #e8e2d5, #d8e0db); font-family: Georgia, serif; color: #53645f; font-size: 4rem; }
.page-header { margin: 1rem 0 2rem; max-width: 820px; }
.page-header h1 { margin: .15rem 0 .7rem; font-size: clamp(2.6rem, 6vw, 4.8rem); }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: .8rem; padding: 1rem; margin-bottom: 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 750; font-size: .85rem; }
.field input, .field select { width: 100%; padding: .7rem .75rem; border: 1px solid #cfcbbf; border-radius: 10px; background: #fff; }
.filter-actions { grid-column: 1 / -1; display: flex; gap: .6rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 2rem; }
.pagination a { min-width: 2.3rem; height: 2.3rem; display: grid; place-items: center; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.pagination a.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.badge { display: inline-block; padding: .25rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.badge.legacy { background: #f1dfc7; color: #704719; }
.book-page { display: grid; grid-template-columns: minmax(280px, 42%) 1fr; gap: 3.2rem; align-items: start; }
.book-gallery { position: sticky; top: 1.5rem; }
.main-cover { padding: 1rem; border-radius: 22px; background: #ede8de; border: 1px solid var(--line); }
.main-cover img { width: 100%; max-height: 680px; object-fit: contain; margin: auto; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; margin-top: .65rem; }
.thumb { padding: .25rem; border-radius: 10px; background: #fff; border: 2px solid transparent; cursor: pointer; }
.thumb.active { border-color: var(--accent); }
.thumb img { aspect-ratio: 1 / 1; object-fit: contain; }
.book-info h1 { margin: .25rem 0 1rem; font-size: clamp(2.3rem, 5vw, 4.5rem); }
.metadata { margin: 1.7rem 0; border-top: 1px solid var(--line); }
.metadata > div { display: grid; grid-template-columns: minmax(130px, .7fr) 1.3fr; gap: 1rem; padding: .72rem 0; border-bottom: 1px solid var(--line); }
.metadata dt { color: var(--muted); font-weight: 700; }
.metadata dd { margin: 0; }

.metadata dd a { color: var(--accent); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.metadata.compact { font-size: .94rem; }
.technical-info { margin-top: 2rem; }
.technical-info h2 { font-family: Georgia, serif; font-size: 1.6rem; }
.buy-box { margin-top: 2rem; padding: 1.2rem; border-radius: var(--radius); background: #e6eee9; border: 1px solid #c8d8cf; }
.buy-box p { margin-top: 0; }
.no-summary { margin-top: 1.2rem; color: var(--muted); font-size: .87rem; }
.large-placeholder { min-height: 520px; border-radius: 22px; }
.notice { padding: 1.2rem 1.3rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); margin: 1.5rem 0; }
.notice.warning, .legal-warning { background: #fff1da; border: 1px solid #e4c188; padding: .9rem; border-radius: 12px; }
.notice.info { background: #e9efeb; }
.legal-page { max-width: 840px; }
.legal-page section { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.legal-page h2 { font-family: Georgia, serif; font-size: 1.7rem; }
code { background: #ece9e1; padding: .12em .35em; border-radius: 5px; }
.site-footer { background: #1B2F6B; color: #e7eeeb; padding: 2.4rem 1.3rem; }
.footer-grid { max-width: var(--max); margin: auto; display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; }
.footer-grid p { color: #D5DDF2; max-width: 650px; }
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.footer-note { max-width: var(--max); margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.14); color: #BFC9E8; font-size: .85rem; }
@media (max-width: 960px) {
  .brand-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid.large { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .book-page { grid-template-columns: 1fr; }
  .book-gallery { position: static; max-width: 620px; }
}
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; gap: .8rem; }
  .menu-toggle { display: block; }
  .main-nav { display: none; width: 100%; flex-direction: column; padding-top: .8rem; }
  .main-nav.open { display: flex; }
  .brand small { display: none; }
  .hero { grid-template-columns: 1fr; padding: 2rem 1.4rem; }
  .hero-stat { justify-self: start; width: 145px; height: 145px; }
  .brand-grid, .brand-grid.large, .product-grid, .filters { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .metadata > div { grid-template-columns: 1fr; gap: .15rem; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
}

.latest-news-bar {
  background: #d8c39a;
  color: #1f2c28;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.latest-news-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .55rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}
.latest-news-inner strong {
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .08em;
}
.latest-news-inner span {
  color: rgba(31,44,40,.8);
  font-size: .92rem;
}
.latest-news-inner a {
  text-decoration: none;
  font-weight: 700;
}
.latest-news-inner a:hover { text-decoration: underline; }
.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.latest-news-feature { margin-top: 2rem; }
.news-feature-card,
.news-card,
.news-article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 5px 18px rgba(0,0,0,.025);
}
.news-feature-card,
.news-card {
  padding: 1.35rem;
}
.news-feature-card h3,
.news-card h2,
.news-article h1 {
  font-family: Georgia, serif;
  line-height: 1.15;
}
.news-feature-card h3,
.news-card h2 {
  margin: .2rem 0 .6rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
}
.news-feature-card h3 a,
.news-card h2 a {
  text-decoration: none;
}
.news-feature-card h3 a:hover,
.news-card h2 a:hover {
  text-decoration: underline;
}
.news-list {
  display: grid;
  gap: 1rem;
}
.news-date {
  margin: 0 0 .35rem;
  font-size: .9rem;
  color: var(--muted);
  font-weight: 700;
}
.news-article {
  padding: 2rem;
  max-width: 860px;
}
.news-content p {
  margin: 0 0 1rem;
}
@media (max-width: 720px) {
  .brand-mark {
    width: 48px;
    height: 48px;
  }
  .latest-news-inner {
    padding: .6rem 1rem;
  }
  .news-article {
    padding: 1.3rem;
  }
}

.brand-card-subtitle { display: block; margin-top: .2rem; color: var(--muted); font-size: .88rem; font-weight: 650; }
.section-subtitle { margin: -.25rem 0 .7rem; color: var(--accent); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; }
.muted { color: var(--muted); }
.contact-sections { display: grid; gap: 1rem; }
.contact-card { padding: 1.35rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card h2 { margin-top: 0; font-family: Georgia, serif; font-size: 1.55rem; }
.contact-card ul { padding-left: 1.3rem; }
.contact-card li + li { margin-top: .55rem; }
.press-timeline { display: grid; gap: 1rem; }
.press-card { padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.press-card h2, .press-card h3 { margin: .2rem 0 .6rem; font-family: Georgia, serif; }
.press-card h2 a, .press-card h3 a { text-decoration: none; }
.press-card h2 a:hover, .press-card h3 a:hover { text-decoration: underline; }
.press-image { width: 100%; max-height: 620px; object-fit: contain; border-radius: 12px; margin: 1rem 0; background: #eef1f8; }
.author-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.author-card { display: flex; flex-direction: column; gap: .8rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 750; }
.author-card img, .author-placeholder { width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; object-fit: cover; background: #e8edf8; }
.author-placeholder { display: grid; place-items: center; color: var(--accent); font-family: Georgia, serif; font-size: 3rem; }
.author-card.compact { max-width: 220px; }
.author-profile { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 2rem; align-items: start; }
.author-profile h1 { margin: .2rem 0 1rem; font-family: Georgia, serif; font-size: clamp(2.5rem,5vw,4.5rem); }
.author-photo { width: 100%; border-radius: 18px; }
.news-card h3 { margin: .2rem 0; font-family: Georgia, serif; }
.site-footer a { color: inherit; }
@media (max-width: 960px) { .author-grid { grid-template-columns: repeat(2,1fr); } .author-profile { grid-template-columns: 220px 1fr; } }
@media (max-width: 720px) { .author-grid, .author-profile { grid-template-columns: 1fr; } .author-photo { max-width: 320px; } }
