@font-face {
  font-family: "Branding Semibold";
  src: url("/assets/fonts/branding-semibold.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body), system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 28px); } }

.font-display {
  font-family: var(--font-display), var(--font-body), sans-serif;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,247,239,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-header__logo { flex: 0 0 auto; }
.site-header__logo img { height: 54px; width: auto; }
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-header__nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
}
.site-header__nav a:hover { color: var(--ink); background: rgba(20,24,39,.05); }
.site-header__nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.saved-count {
  display: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  vertical-align: 2px;
  margin-left: 4px;
}
.saved-count.show { display: inline-block; }
.powered-by {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.powered-by img { height: 15px; width: auto; }
@media (max-width: 760px) {
  .site-header__inner { min-height: 66px; gap: 10px; }
  .site-header__logo img { height: 42px; }
  .powered-by span { display: none; }
  .powered-by { padding: 8px; }
  .site-header__nav a { padding: 7px 9px; font-size: .9rem; }
}

.hero {
  min-height: 64svh;
  display: flex;
  align-items: flex-end;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #141827;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,24,39,.88) 0%, rgba(20,24,39,.64) 42%, rgba(20,24,39,.18) 100%),
    linear-gradient(0deg, rgba(20,24,39,.58) 0%, transparent 42%);
}
.hero__inner {
  padding: 72px 0 52px;
  color: #fff;
}
.hero__eyebrow {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.hero h1 {
  max-width: 10ch;
  font-size: 4.2rem;
  font-weight: 400;
  line-height: .96;
  letter-spacing: 0;
}
.hero__sub {
  margin-top: 18px;
  max-width: 58ch;
  font-size: 1.08rem;
  color: rgba(255,255,255,.88);
}
.hero__search {
  margin-top: 28px;
  max-width: 610px;
  position: relative;
}
.hero__search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  translate: 0 -50%;
  color: var(--muted);
}
.hero__search input {
  width: 100%;
  height: 58px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.96);
  padding: 0 22px 0 52px;
  color: var(--ink);
  box-shadow: 0 20px 48px rgba(0,0,0,.22);
}
.hero__search input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(243,233,122,.28), 0 20px 48px rgba(0,0,0,.22);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.chip:hover { background: rgba(255,255,255,.2); }
.chip[aria-pressed="true"], .chip.active {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--ink);
}
@media (max-width: 760px) {
  .hero { min-height: 60svh; }
  .hero__inner { padding: 50px 0 34px; }
  .hero h1 { font-size: 2.65rem; max-width: 12ch; }
  .hero__sub { font-size: 1rem; }
}

.rail {
  position: sticky;
  top: 74px;
  z-index: 40;
  background: rgba(248,247,239,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.rail__inner { display: flex; align-items: center; gap: 14px; }
.rail__cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-right: 24px;
}
.rail__cats::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .88rem;
  font-weight: 800;
}
.cat-pill .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--cat, var(--brand)); }
.cat-pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.rail__right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.rail__count { font-size: .85rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.rail__sort {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: .85rem;
  font-weight: 800;
}
@media (max-width: 760px) { .rail { top: 66px; } }
@media (max-width: 640px) { .rail__count { display: none; } }

.grid-section { padding: 30px 0 76px; }
.grid {
  display: grid;
  gap: 28px 22px;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 8px;
  opacity: 0;
  translate: 0 14px;
}
.card[hidden] { display: none; }
.card.in {
  opacity: 1;
  translate: 0 0;
  transition: opacity .42s ease, translate .42s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.no-anim .card { opacity: 1; translate: 0 0; }
.card__media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--brand-soft);
  box-shadow: 0 1px 0 rgba(20,24,39,.08);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale .34s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card__media img { scale: 1.035; }
.card__date {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 46px;
  background: rgba(255,255,255,.94);
  border-radius: 8px;
  padding: 7px 10px 6px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(20,24,39,.14);
  line-height: 1.05;
}
.card__date .m { display: block; font-size: .62rem; font-weight: 900; letter-spacing: .1em; color: var(--brand); }
.card__date .d { display: block; font-size: 1.12rem; font-weight: 800; }
.card__date .y { display: block; font-size: .54rem; font-weight: 800; color: var(--brand); opacity: .8; }
.card__date.txt { font-size: .72rem; font-weight: 900; letter-spacing: .04em; display: flex; align-items: center; }
.save-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  box-shadow: 0 2px 10px rgba(20,24,39,.14);
  transition: transform .15s ease, background .15s ease;
}
.save-btn:hover { transform: scale(1.06); }
.save-btn svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 2; }
.save-btn.saved svg { fill: var(--accent); stroke: var(--accent); }
.save-btn.pop { animation: pop .32s cubic-bezier(.2,.9,.3,1.4); }
@keyframes pop { 50% { transform: scale(1.18); } }
.card__body { padding: 13px 2px 0; }
.card__meta { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 900; }
.card__cat { color: var(--cat, var(--brand)); letter-spacing: .06em; text-transform: uppercase; }
.card__price { color: var(--muted); font-weight: 800; }
.card__price::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: .85em;
  margin-right: 8px;
  background: var(--line);
  vertical-align: -.08em;
}
.card__title {
  margin-top: 7px;
  min-height: 2.8em;
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card:hover .card__title { color: var(--brand); }
.card__venue {
  margin-top: 6px;
  font-size: .86rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__venue svg { flex: 0 0 auto; }
.empty {
  text-align: center;
  padding: 84px 20px;
  color: var(--muted);
  display: none;
}
.empty.show { display: block; }
.empty h3 { font-size: 1.35rem; color: var(--ink); margin-bottom: 8px; }
.empty button { color: var(--brand); font-weight: 800; text-decoration: underline; }

.detail { padding: 28px 0 78px; }
.backlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .9rem;
  font-weight: 800;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 24px;
}
.backlink:hover { color: var(--brand); }
.detail__head { max-width: 880px; }
.detail__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cat, var(--brand));
  margin-bottom: 12px;
}
.detail__cat .dot { width: 9px; height: 9px; border-radius: 2px; background: var(--cat, var(--brand)); }
.detail h1 {
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
}
.detail__sub { margin-top: 14px; font-size: 1.08rem; color: var(--muted); max-width: 64ch; }
.detail__hero { margin-top: 30px; border-radius: 8px; overflow: hidden; background: var(--brand-soft); }
.detail__hero img { width: 100%; max-height: 560px; object-fit: cover; }
.detail__credit { margin-top: 9px; font-size: .78rem; color: var(--muted); text-align: right; }
.detail__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 52px;
  margin-top: 38px;
  align-items: start;
}
.prose { font-size: 1.02rem; max-width: 65ch; }
.prose p { margin-bottom: 1.08em; }
.prose a { color: var(--brand); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose h2, .prose h3 { font-family: var(--font-display), sans-serif; margin: 1.3em 0 .5em; letter-spacing: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.1em; }
.source-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
.book-card {
  position: sticky;
  top: 104px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 16px 42px -24px rgba(20,24,39,.24);
}
.book-card__row { display: flex; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.book-card__row:first-child { padding-top: 0; }
.book-card__row svg { flex: 0 0 auto; margin-top: 2px; color: var(--brand); }
.book-card__row .lbl { display: block; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.book-card__row .val { display: block; font-weight: 800; line-height: 1.35; }
.book-card__row .sub { display: block; font-size: .84rem; color: var(--muted); font-weight: 600; }
.book-card__row a.dir { font-size: .84rem; font-weight: 800; color: var(--brand); text-decoration: none; }
.book-card__row a.dir:hover { text-decoration: underline; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .15s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  margin-top: 18px;
  box-shadow: 0 12px 26px -14px var(--brand);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.btn-row.single { grid-template-columns: 1fr; }
.btn-ghost {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: .87rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.btn-ghost:hover { border-color: color-mix(in srgb, var(--brand) 45%, transparent); color: var(--brand); }
.btn-ghost.saved { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-ghost.saved svg { fill: var(--accent); stroke: var(--accent); }
.btn-ghost svg { fill: none; stroke: currentColor; stroke-width: 2; }
.book-card__powered {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.book-card__powered img { height: 13px; width: auto; opacity: .85; }
.related { margin-top: 68px; }
.related h2 { font-size: 1.55rem; font-weight: 400; margin-bottom: 24px; }
@media (max-width: 920px) {
  .detail__cols { grid-template-columns: 1fr; gap: 32px; }
  .book-card { position: static; }
}
@media (max-width: 760px) {
  .detail h1 { font-size: 2.25rem; }
}

.page-head { padding: 52px 0 8px; }
.page-head--404 { padding-bottom: 120px; }
.page-head h1 { font-size: 2.85rem; font-weight: 400; }
.page-head p { margin-top: 10px; color: var(--muted); }
.page-head a { color: var(--brand); font-weight: 900; }

.site-footer { background: var(--ink); color: rgba(255,255,255,.82); margin-top: 40px; }
.site-footer__main {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  padding: 62px 0 46px;
}
.site-footer__brand img { height: 72px; width: auto; }
.site-footer__brand p { margin-top: 18px; font-size: .95rem; max-width: 44ch; line-height: 1.6; }
.footer-powered {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  padding: 26px;
}
.footer-powered .lbl { font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.58); }
.footer-powered img { height: 26px; width: auto; margin-top: 14px; }
.footer-powered p { margin-top: 14px; font-size: .9rem; line-height: 1.6; }
.footer-powered a.cta {
  display: inline-block;
  margin-top: 16px;
  font-size: .9rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0 28px;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.site-footer__legal a { color: inherit; }
@media (max-width: 760px) {
  .site-footer__main { grid-template-columns: 1fr; gap: 34px; }
  .site-footer__brand img { height: 58px; }
  .page-head h1 { font-size: 2.2rem; }
}
