/* WATS Publications — shared site styles */

:root {
  --ink: #221D18;
  --paper: #FAF6EF;
  --paper2: #F1E9DC;
  --line: #DDD2BE;
  --muted: #6B5F4F;
  --gold: #591C1B;
  --accent: #236E43;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
}

h1, h2, h3, .display { font-family: 'Newsreader', serif; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold); }

button { font-family: inherit; cursor: pointer; }

img { max-width: 100%; }

.cover-shadow { box-shadow: 0 10px 24px rgba(34, 29, 24, 0.18); }

table.info td { padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--line); vertical-align: top; }

.booklist::-webkit-scrollbar { width: 6px; }
.booklist::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  height: 88px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .brand { display: flex; align-items: center; gap: 12px; }
.site-header .brand img { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.site-header .brand .name { font-family: 'Newsreader', serif; font-weight: 600; font-size: 21px; }
.site-header .brand .name .accent-word { color: var(--gold); font-style: italic; font-weight: 500; }
.site-header nav { display: flex; gap: 36px; font-size: 14.5px; }
.site-header nav a.current { color: var(--gold); font-weight: 600; }
.site-header .tools { display: flex; align-items: center; gap: 22px; }
.search-pill { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: #fff; }
.search-pill input { border: none; outline: none; font-size: 13.5px; width: 150px; background: transparent; color: var(--ink); font-family: inherit; }
.icon-btn { background: none; border: none; padding: 4px; position: relative; display: inline-flex; }
.cart-badge { position: absolute; top: -6px; right: -8px; background: var(--accent); color: #fff; border-radius: 999px; width: 16px; height: 16px; font-size: 10px; display: flex; align-items: center; justify-content: center; }

.breadcrumb { padding: 22px 64px 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb .current { color: var(--ink); }

/* Living hero (shared by index.html and mobile/index.html): the moving
   catalogue IS the backdrop, with a dark scrim and the tagline on top —
   identical treatment on every breakpoint. Each page sets its own .hero
   sizing/layout; these rules are the shared visual language. */
.living-hero { position: relative; overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.hero-bg-row { display: flex; gap: 16px; width: max-content; animation: wats-hero-scroll 70s linear infinite; }
.hero-bg-row.reverse { animation-name: wats-hero-scroll-rev; animation-duration: 85s; }
.hero-bg-row img { aspect-ratio: 5/7; object-fit: cover; border-radius: 4px; flex-shrink: 0; box-shadow: 0 14px 30px rgba(0,0,0,0.4); }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(20,16,12,0.92) 0%, rgba(20,16,12,0.82) 32%, rgba(20,16,12,0.5) 60%, rgba(20,16,12,0.22) 100%); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .kicker { color: #E8B563; }
.hero-copy h1 { color: var(--paper); }
.hero-copy p { color: rgba(250,246,239,0.82) !important; }
.hero-copy .btn-outline { border: 1px solid rgba(250,246,239,0.65); color: var(--paper) !important; }
.hero-copy .watch-link { color: var(--paper) !important; }

/* Moving catalogue ticker: cover + author + price, right to left, endless —
   directly under the living hero on both breakpoints, no separate "calm"
   section in between. */
.marquee-wrap { position: relative; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee-track { display: flex; width: max-content; padding: 16px 0; animation: wats-marquee 90s linear infinite; will-change: transform; }
.marquee-wrap:hover .marquee-track, .marquee-wrap:focus-within .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 0 18px; border-right: 1px solid var(--line); }
.marquee-item img { width: 38px; aspect-ratio: 5/7; object-fit: cover; border-radius: 3px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(34,29,24,0.18); }
.marquee-item .mq-text { display: flex; flex-direction: column; gap: 2px; }
.marquee-item .mq-title { font-size: 12px; font-weight: 600; line-height: 1.25; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.marquee-item .mq-meta { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.marquee-item .mq-price { font-size: 11.5px; font-weight: 600; color: var(--gold); }

@keyframes wats-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wats-hero-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wats-hero-scroll-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-bg-row, .marquee-track { animation: none; }
}

/* Footer (desktop) */
.site-footer { padding: 56px 64px 40px; background: var(--ink); color: var(--paper2); }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr 1.1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(250,246,239,0.15); }
.site-footer .brand-name { font-family: 'Newsreader', serif; font-weight: 600; font-size: 19px; color: var(--paper); margin-bottom: 12px; }
.site-footer p { font-size: 13px; line-height: 1.6; color: rgba(250,246,239,0.65); margin: 0 0 18px; max-width: 280px; }
.site-footer .social { display: flex; gap: 10px; }
.site-footer .social a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(250,246,239,0.3); display: flex; align-items: center; justify-content: center; }
.site-footer .col-label { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(250,246,239,0.5); margin-bottom: 14px; }
.site-footer .col-links { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.site-footer .col-links a { color: var(--paper2); }
.site-footer .contact { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--paper2); }
.site-footer .bottom { padding-top: 24px; font-size: 12px; color: rgba(250,246,239,0.5); }
.site-footer .bottom2 { padding-top: 8px; font-size: 11.5px; color: rgba(250,246,239,0.4); }

/* Mobile footer */
.m-footer { padding: 28px 20px; background: var(--ink); color: var(--paper2); display: flex; flex-direction: column; gap: 10px; }
.m-footer .brand-name { font-family: 'Newsreader', serif; font-weight: 600; font-size: 16px; color: var(--paper); }
.m-footer .line { font-size: 12px; color: rgba(250,246,239,0.65); }
.m-footer .social { display: flex; gap: 10px; margin-top: 8px; }
.m-footer .social a { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(250,246,239,0.3); display: flex; align-items: center; justify-content: center; }
.m-footer .policies { display: flex; gap: 14px; margin-top: 4px; font-size: 12px; }
.m-footer .policies a { color: var(--paper2); }

/* Mobile header */
.m-header { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; height: 60px; border-bottom: 1px solid var(--line); flex-shrink: 0; background: var(--paper); }
