/* Hub (site root). Loaded after styles.css, which provides tokens, fonts, buttons and the wordmark. */
.hub-glow {
  position: fixed; inset: -25% -40% auto; height: 90vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 28%, rgba(201, 169, 97, .13), transparent 70%),
    radial-gradient(ellipse 40% 30% at 12% 4%, rgba(216, 195, 165, .06), transparent 70%);
}
.hub { width: 100%; max-width: 1080px; margin: 0 auto; padding: 22px 20px 32px; }

/* Header + hero */
.hub__head .wordmark { font-size: 1.35rem; }
.hub__hero { padding: 40px 0 34px; max-width: 640px; }
.hub__hero h1 { font-size: clamp(2.3rem, 10vw, 4rem); line-height: 1.05; }
.hub__hero h1 em { display: block; font-style: italic; font-weight: 500; color: var(--gold); }
.hub__intro { margin-top: 18px; font-size: 1.02rem; line-height: 1.65; color: var(--cream-muted); }

/* Ebook cards: compact horizontal on phones (cover left, text right), three columns on desktop */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.card {
  display: grid; grid-template-columns: 125px 1fr; grid-template-areas: "eyebrow eyebrow" "img title" "img price" "desc desc" "btn btn";
  gap: 4px 14px; align-items: center; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: border-color .2s ease, transform .35s var(--ease), box-shadow .2s ease;
}
/* Card lights up in the accent colour on hover (desktop) and on press / keyboard focus (mobile, keyboard) */
.card:hover, .card:active, .card:focus-within { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201, 169, 97, .25), 0 24px 50px -30px rgba(201, 169, 97, .45); }
.card:hover { transform: translateY(-3px); }
/* Cover is 125px square on phones (about 30% larger than the earlier 96px) */
.card__img { grid-area: img; width: 125px; height: 125px; object-fit: cover; border-radius: 10px; align-self: start; }
/* Label sits at the top-left of the card, above the cover, with a small gap below */
.card__eyebrow { grid-area: eyebrow; justify-self: start; margin-bottom: 8px; font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.card__title { grid-area: title; align-self: end; font-size: 1.4rem; line-height: 1.15; }
.card__price { grid-area: price; align-self: start; font-size: .9rem; color: var(--cream-muted); font-variant-numeric: lining-nums; }
.card__price strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--cream); }
.card__deal { white-space: nowrap; }
.card__reg { display: block; color: var(--cream-faint); white-space: nowrap; }
.card__desc { grid-area: desc; margin-top: 10px; font-size: .92rem; line-height: 1.55; color: var(--cream-muted); }
.card__btn { grid-area: btn; margin-top: 12px; width: 100%; min-height: 48px; }

/* Button fills with the accent colour, dark text, on hover / press / keyboard focus */
.btn--outline {
  color: var(--gold); background: transparent; box-shadow: 0 0 0 1px var(--gold) inset;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn--outline:hover, .btn--outline:active, .btn--outline:focus-visible {
  background: var(--gold); color: var(--black);
  box-shadow: 0 0 0 1px var(--gold) inset, 0 10px 30px -12px rgba(201, 169, 97, .6);
}
.btn--outline:hover { transform: translateY(-1px); }
.btn--outline:active { transform: translateY(0); }

/* Footer */
.hub__foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.hub__foot p { font-size: .78rem; color: var(--cream-faint); }

/* Motion: staggered fade-up on load (styles.css turns it off for reduced motion) */
.js .hub .reveal { opacity: 1; transform: none; transition: none; animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * .07s); }

@media (min-width: 760px) {
  .hub { padding: 32px 32px 48px; }
  .hub__hero { padding: 72px 0 56px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card { display: flex; flex-direction: column; align-items: stretch; padding: 0 0 22px; overflow: hidden; }
  .card__img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; margin-bottom: 18px; }
  .card__eyebrow, .card__title, .card__price, .card__desc, .card__btn { margin-left: 20px; margin-right: 20px; align-self: stretch; }
  .card__title { margin-top: 6px; }
  .card__price { margin-top: 6px; }
  .card__reg { display: inline; }
  .card__eyebrow { margin-top: 18px; margin-bottom: 14px; }
  .card__img { margin-bottom: 18px; }
  .card__desc { flex: 1; }
  .card__btn { width: auto; margin-top: 18px; }
}
