/* Gatoux & Ursa / Golden Paw Mysteries — shared styles */
:root {
  --navy: #0a2236;
  --navy-deep: #031a2d;
  --forest: #12301f;
  --forest-deep: #0b2215;
  --gold: #d9ac4f;
  --gold-light: #f2cf7a;
  --gold-deep: #a97c27;
  --parchment: #f6ecd8;
  --parchment-deep: #ecdcbc;
  --burgundy: #6d1925;
  --burgundy-light: #8a2433;
  --ink: #2a1f17;
  --ink-soft: #5a4a3a;
  --max: 1180px;
  --serif-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif-italic: "Playfair Display", Georgia, serif;
  --serif-body: "EB Garamond", Garamond, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--parchment);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Parchment texture used on light sections */
.parchment {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(ellipse at 90% 100%, rgba(196,160,100,.18), transparent 55%),
    var(--parchment);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 12px 30px;
  border-radius: 999px;
  font-family: var(--serif-body);
  font-size: 20px; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-gold {
  color: #2b1d08;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  border: 2px solid #f7e2a6;
  box-shadow: 0 0 0 2px var(--gold-deep), 0 6px 16px rgba(80,50,0,.35);
}
.btn-burgundy {
  color: var(--gold-light);
  background: linear-gradient(180deg, var(--burgundy-light), var(--burgundy));
  border: 2px solid var(--gold);
  box-shadow: 0 6px 16px rgba(60,10,20,.3);
}

/* ---------- Section titles with rules ---------- */
.rule-title {
  display: flex; align-items: center; gap: 22px;
  justify-content: center;
  font-family: var(--serif-body);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 38px);
  margin: 0 0 32px;
  color: var(--ink);
  text-align: center;
}
.rule-title::before, .rule-title::after {
  content: ""; flex: 1; max-width: 240px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-soft) 30%, var(--ink-soft) 70%, transparent);
}
.rule-title.ornate::before, .rule-title.ornate::after {
  background: linear-gradient(90deg, transparent, var(--gold-deep) 25%, var(--gold-deep) 75%, transparent);
  height: 2px;
}

/* ---------- Icons ---------- */
.icon { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.icon-btn {
  background: none; border: 0; padding: 6px; cursor: pointer; color: inherit;
  display: inline-flex; position: relative;
}
.cart-count {
  position: absolute; top: -2px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--gold); color: var(--navy-deep);
  font: 700 12px/18px var(--serif-body); text-align: center;
}
.cart-count:empty, .cart-count[data-n="0"] { display: none; }

/* ---------- Book covers ---------- */
.covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.cover-card { text-align: center; }
.cover-frame {
  display: block;
  aspect-ratio: 160 / 230;
  border-radius: 6px;
  overflow: hidden;
  background: #1d1a17;
  border: 3px solid #c79a45;
  box-shadow: 0 0 0 1px #6b4b17, 0 10px 24px rgba(40,25,5,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cover-frame img { width: 100%; height: 100%; object-fit: cover; }
.cover-frame:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px #6b4b17, 0 16px 30px rgba(40,25,5,.45); }
.cover-frame .ph {
  height: 100%; display: flex; align-items: center; justify-content: center; padding: 16px;
  font-family: var(--serif-display); color: var(--gold-light); font-size: 22px; line-height: 1.15;
  background: radial-gradient(circle at 50% 30%, #3b2f22, #15110d);
}
.cover-meta { margin-top: 14px; }
.cover-meta .tag {
  font-family: var(--serif-display); font-size: 12px; letter-spacing: .14em;
  color: var(--gold-deep); text-transform: uppercase;
}
.cover-meta h3 { margin: 2px 0 8px; font-size: 21px; font-weight: 600; line-height: 1.2; }
.buy-slot { min-height: 46px; display: flex; justify-content: center; }
.buy-fallback { font-style: italic; color: var(--ink-soft); font-size: 17px; padding-top: 8px; }

@media (max-width: 900px) { .covers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .covers { gap: 16px; } .cover-meta h3 { font-size: 18px; } }

/* ======================================================
   PUBLISHER (gatouxursa.com home)
   ====================================================== */
.pub-header {
  position: relative;
  color: #f1e3c4;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(40,80,120,.35), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow: hidden;
}
.pub-header .leaves {
  position: absolute; left: -20px; top: -10px; width: 230px; height: 150px; pointer-events: none; opacity: .9;
}
.pub-header .top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-top: 14px;
}
.pub-header .logo img { width: 330px; height: auto; }
.pub-header .tools { justify-self: end; display: flex; gap: 14px; color: #e9d9b4; }
.pub-nav ul {
  list-style: none; margin: 0; padding: 10px 0 0;
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.pub-nav a {
  display: block; padding: 10px 18px 12px;
  text-decoration: none; font-size: 18px; color: #f1e3c4;
  border-bottom: 3px solid transparent;
}
.pub-nav a:hover { color: var(--gold-light); }
.pub-nav a.active { border-bottom-color: var(--gold); color: #fff6df; }

.pub-hero {
  position: relative;
  min-height: 460px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: url(../img/hero-library.jpg) center/cover no-repeat, #c9a780;
  border-top: 1px solid rgba(217,172,79,.5);
  border-bottom: 1px solid rgba(217,172,79,.5);
}
.pub-hero .inner { max-width: 560px; padding: 40px 20px; }
.pub-hero h1 {
  font-family: var(--serif-italic); font-style: italic; font-weight: 700;
  font-size: clamp(44px, 6vw, 70px); line-height: 1.05;
  margin: 0 0 18px; color: #1e1712;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.pub-hero p { margin: 0 auto 26px; max-width: 470px; font-size: 20px; color: #2a2018; }

.pub-section { padding: 56px 0; }
.collections {
  display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 22px;
}
.collection {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 190px; padding: 24px;
  text-align: center; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, #fbf3e2, #efdfbf);
  border: 1px solid #d8c093; border-radius: 14px;
  box-shadow: 0 8px 18px rgba(90,60,20,.18), inset 0 0 0 4px rgba(255,255,255,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.collection:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(90,60,20,.25), inset 0 0 0 4px rgba(255,255,255,.45); }
.collection h3 { margin: 6px 0 4px; font-size: 30px; font-weight: 500; line-height: 1.1; }
.collection p { margin: 0; font-style: italic; font-size: 17px; color: var(--ink-soft); line-height: 1.3; }
.collection .icon { width: 44px; height: 44px; color: #4a3826; stroke-width: 1.3; }
.collection .paw { width: 40px; height: 40px; color: #c98a1e; }
.collection.featured { flex-direction: row; justify-content: space-between; padding: 0 0 0 28px; overflow: hidden; text-align: center; }
.collection.featured .text { flex: 1; }
.collection.featured img { width: 52%; align-self: stretch; object-fit: cover; object-position: 30% 20%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }

.pub-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.panel {
  background: linear-gradient(180deg, #fbf3e2, #f1e3c6);
  border: 1px solid #d8c093; border-radius: 14px; padding: 30px 32px;
}
.panel h3 { font-family: var(--serif-display); font-size: 22px; letter-spacing: .06em; margin: 0 0 10px; color: var(--navy); }
.panel p { margin: 0 0 12px; }
.panel .date { font-family: var(--serif-display); font-size: 13px; letter-spacing: .12em; color: var(--gold-deep); }

.theme-band {
  background: linear-gradient(180deg, var(--navy), var(--navy-deep));
  color: #f1e3c4; padding: 18px 0;
  border-top: 2px solid var(--gold-deep);
}
.theme-band ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 26px;
  font-size: 20px;
}
.theme-band .paw { width: 20px; height: 20px; color: var(--gold); }
.pub-footer {
  background: var(--navy-deep); color: #a9b3bd; font-size: 16px; padding: 22px 0 30px;
}
.pub-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.pub-footer a { color: var(--gold-light); }

@media (max-width: 900px) {
  .collections { grid-template-columns: 1fr 1fr; }
  .collection.featured { grid-column: 1 / -1; }
  .pub-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pub-header .top { grid-template-columns: 1fr auto; }
  .pub-header .top .spacer, .pub-header .leaves { display: none; }
  .pub-header .logo img { width: 220px; }
  .pub-nav a { padding: 8px 10px 10px; font-size: 16px; }
  .collections { grid-template-columns: 1fr; }
  .pub-hero { min-height: 380px; }
}

/* ======================================================
   GOLDEN PAW MYSTERIES (series page)
   ====================================================== */
.gp-banner {
  position: relative;
  aspect-ratio: 760 / 288;
  max-height: 520px; width: 100%;
  background: url(../img/golden-paw-banner.jpg) center/cover no-repeat, var(--forest);
}
.gp-nav {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, #1b3d28, var(--forest-deep));
  border-top: 2px solid var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
  color: #f3e6c6;
}
.gp-nav .wrap { display: flex; align-items: center; justify-content: center; gap: 4px; }
.gp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.gp-nav li { position: relative; }
.gp-nav a {
  display: block; padding: 13px 16px 11px; font-size: 18px; text-decoration: none; color: #f3e6c6;
  border-bottom: 3px solid transparent;
}
.gp-nav a:hover { color: var(--gold-light); }
.gp-nav a.active { border-bottom-color: var(--gold); color: var(--gold-light); }
.gp-nav .caret { font-size: 12px; margin-left: 4px; }
.gp-nav .dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--forest-deep); border: 1px solid var(--gold-deep); padding: 6px 0;
}
.gp-nav li:hover .dropdown, .gp-nav li:focus-within .dropdown { display: block; }
.gp-nav .dropdown a { padding: 8px 18px; font-size: 17px; border: 0; }
.gp-nav .tools { display: flex; gap: 6px; margin-left: 14px; }

.gp-hero {
  position: relative; overflow: hidden;
  padding: 50px 0 40px;
}
.gp-hero .wrap { display: grid; grid-template-columns: 1fr 1.6fr 1fr; align-items: center; gap: 20px; }
.gp-hero .vine {
  width: 100%; max-width: 220px; height: 260px; justify-self: start; color: #4c6b2f; opacity: .85;
}
.gp-hero .copy { text-align: center; }
.gp-hero .gp-title {
  font-family: var(--serif-italic); font-style: italic; font-weight: 700;
  font-size: clamp(34px, 4.2vw, 50px); line-height: 1.12; margin: 0;
  color: #3a1015;
}
.paw-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0; color: #4a2b1a; }
.paw-divider::before, .paw-divider::after { content: ""; width: 50px; height: 1px; background: #8a6b44; }
.paw-divider .paw { width: 20px; height: 20px; }
.gp-hero p { margin: 0 auto 22px; max-width: 460px; font-size: 18.5px; color: #3a2c20; }
.gp-hero .art { justify-self: end; width: 100%; max-width: 300px; }
.gp-hero .art img {
  border-radius: 50% 50% 46% 54% / 55% 50% 50% 45%;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 58%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 58%, transparent 72%);
}

.features {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, #fbf3e2, #f2e3c4);
  border: 1px solid #d6bd8c; border-radius: 12px;
  box-shadow: 0 6px 16px rgba(90,60,20,.15);
  margin-bottom: 50px;
}
.feature {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 12px 16px; text-decoration: none; color: var(--ink);
  border-left: 1px solid #d6bd8c;
}
.feature:first-child { border-left: 0; }
.feature:hover h3 { color: var(--burgundy); }
.feature .icon { width: 38px; height: 38px; color: #3d2a1a; stroke-width: 1.4; }
.feature .paw { width: 34px; height: 34px; color: #3d2a1a; }
.feature h3 { margin: 6px 0 0; font-size: 20px; font-weight: 600; line-height: 1.2; }
.feature p { margin: 2px 0 0; font-size: 15px; color: var(--ink-soft); }

.gp-section { padding: 10px 0 60px; }
.gp-meet { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.gp-card {
  background: linear-gradient(180deg, #fbf3e2, #f1e2c2);
  border: 1px solid #d6bd8c; border-radius: 14px; padding: 28px 30px;
  border-top: 4px solid var(--burgundy);
}
.gp-card h3 { font-family: var(--serif-display); color: var(--forest); margin: 0 0 4px; font-size: 24px; }
.gp-card .role { font-style: italic; color: var(--burgundy); margin: 0 0 10px; }
.gp-card p { margin: 0; }
.gp-meet-art { grid-column: 1 / -1; display: flex; justify-content: center; }
.gp-meet-art img { width: 280px; border-radius: 50%; aspect-ratio: 1; object-fit: cover; object-position: 30% 20%; border: 4px solid var(--gold); box-shadow: 0 10px 24px rgba(60,40,10,.3); }

.young { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center; max-width: 820px; margin: 0 auto; }
.young .cover-card { margin: 0; }

.gp-club {
  background: linear-gradient(180deg, #1b3d28, var(--forest-deep));
  color: #f3e6c6; text-align: center; padding: 50px 0;
  border-top: 2px solid var(--gold-deep);
}
.gp-club h2 { font-family: var(--serif-italic); font-style: italic; font-size: 38px; margin: 0 0 8px; color: var(--gold-light); }
.gp-club p { margin: 0 auto 22px; max-width: 560px; }
.gp-footer { background: var(--forest-deep); color: #b8c2b0; font-size: 16px; padding: 18px 0 28px; border-top: 1px solid rgba(217,172,79,.3); }
.gp-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.gp-footer a { color: var(--gold-light); }

@media (max-width: 960px) {
  .gp-hero .wrap { grid-template-columns: 1fr; }
  .gp-hero .vine { display: none; }
  .gp-hero .art { justify-self: center; max-width: 240px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid #d6bd8c; }
}
@media (max-width: 640px) {
  .gp-nav .wrap { flex-wrap: wrap; }
  .gp-nav a { padding: 10px 10px 8px; font-size: 16px; }
  .gp-meet { grid-template-columns: 1fr; }
  .young { grid-template-columns: 1fr; text-align: center; }
  .young .cover-card { max-width: 200px; margin: 0 auto; }
}
