/* ══════════════════════════════════════════════
   TAROT pages — hub + card pages
   Brand fonts (Cinzel / Cormorant Garamond / Raleway)
   layered on /style.css
══════════════════════════════════════════════ */

/* ── shared tarot-content tokens ────────────────────────────── */
:root {
  --tarot-cream:  #ece4d2;
  --tarot-gold:   #C9A84C;
  --tarot-body:   #8c8aa6;
  --tarot-panel:  rgba(20, 24, 48, .45);
  --tarot-line:   rgba(201, 168, 76, .18);
}

/* ── HUB ────────────────────────────────────────────────────── */

.tarot-hub {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}

.tarot-hub-header {
  text-align: center;
  margin-bottom: 64px;
}

.tarot-hub-header .page-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--tarot-gold);
  margin-bottom: 18px;
}
.tarot-hub-header .page-eyebrow::before,
.tarot-hub-header .page-eyebrow::after { content: "✦"; margin: 0 10px; opacity: .6; }

.tarot-hub-header .page-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.0;
  color: var(--tarot-cream);
  margin-bottom: 22px;
}

.tarot-hub-header .page-intro {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--tarot-body);
  max-width: 640px;
  margin: 0 auto;
}

.tarot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 100px;
}

.tarot-card {
  display: flex;
  flex-direction: column;
  background: rgba(20, 24, 48, 0.55);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 3px;
  padding: 18px 18px 22px;
  text-decoration: none;
  transition: border-color .25s, transform .25s;
}
.tarot-card:hover {
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-3px);
}

.tarot-card-img {
  display: block;
  aspect-ratio: 2 / 3;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(8, 10, 22, 0.6);
}
.tarot-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tarot-card-num {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--tarot-gold);
  display: block;
  margin-bottom: 6px;
}

.tarot-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--tarot-cream);
  margin: 0 0 8px;
}

.tarot-card-keywords {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--tarot-body);
  line-height: 1.5;
  margin: 0;
}

/* ── INDIVIDUAL CARD PAGE — matches template structure ──────── */

.tarot-page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 130px 24px 70px;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  line-height: 1.9;
  font-size: 17px;
  color: var(--tarot-body);
}

/* Faint cosmic atmosphere behind card pages — fixed so it stays as
   the reader scrolls. Soft nebula glow + scattered stars. Only on
   individual card pages, NOT the hub. */
.tarot-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    /* Diffuse nebula glows */
    radial-gradient(ellipse 50% 40% at 18% 22%, rgba(120,50,180,.06), transparent 70%),
    radial-gradient(ellipse 45% 35% at 82% 70%, rgba(201,168,76,.04), transparent 70%),
    radial-gradient(ellipse 35% 30% at 50% 90%, rgba(80,40,140,.05), transparent 70%),
    /* Scattered star dots — very faint */
    radial-gradient(1px   1px   at 12% 18%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(1.2px 1.2px at 28% 42%, rgba(216,182,115,.22), transparent 60%),
    radial-gradient(1px   1px   at  8% 75%, rgba(255,255,255,.2),  transparent 60%),
    radial-gradient(1.4px 1.4px at 38% 12%, rgba(160, 80,220,.22), transparent 60%),
    radial-gradient(1px   1px   at 65% 28%, rgba(255,255,255,.2),  transparent 60%),
    radial-gradient(1px   1px   at 88% 38%, rgba(216,182,115,.22), transparent 60%),
    radial-gradient(1.3px 1.3px at 72% 62%, rgba(255,255,255,.2),  transparent 60%),
    radial-gradient(1px   1px   at 92% 82%, rgba(160, 80,220,.2),  transparent 60%),
    radial-gradient(1.2px 1.2px at 18% 88%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(1px   1px   at 45% 55%, rgba(216,182,115,.2),  transparent 60%),
    radial-gradient(1px   1px   at 56% 8%,  rgba(255,255,255,.18), transparent 60%),
    radial-gradient(1.3px 1.3px at 32% 68%, rgba(255,255,255,.2),  transparent 60%);
  background-attachment: fixed;
}

.tarot-page .eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--tarot-gold);
  text-align: center;
  margin: 0 0 14px;
}
.tarot-page .eyebrow::before,
.tarot-page .eyebrow::after { content: "✦"; margin: 0 10px; opacity: .6; }

.tarot-page h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.0;
  color: var(--tarot-cream);
  text-align: center;
  margin: 0 0 10px;
}

.tarot-page .subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--tarot-gold);
  text-align: center;
  margin: 0 0 28px;
}

.tarot-page .card-image {
  display: block;
  max-width: 330px;
  margin: 0 auto 46px;
  border: 1px solid var(--tarot-line);
  padding: 6px;
  background: #080b18;
}
.tarot-page .card-image img,
.tarot-page .card-image picture {
  display: block;
  width: 100%;
  height: auto;
}

.tarot-page h2 {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tarot-gold);
  margin: 52px 0 12px;
}
.tarot-page h3 {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--tarot-cream);
  margin: 30px 0 8px;
}

.tarot-page p { margin: 0 0 18px; }
.tarot-page .kw {
  font-style: italic;
  color: #736f88;
  font-size: 15px;
}
.tarot-page a { color: var(--tarot-gold); text-decoration: none; }
.tarot-page a:hover { text-decoration: underline; }

.tarot-page .cta-box {
  margin: 64px 0;
  padding: 48px 36px;
  text-align: center;
  border: 1px solid var(--tarot-line);
  background: var(--tarot-panel);
  border-radius: 3px;
}
.tarot-page .cta-box .eyebrow { margin-bottom: 10px; }
.tarot-page .cta-box h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tarot-cream);
  margin: 0 0 12px;
}
.tarot-page .cta-box p {
  max-width: 440px;
  margin: 0 auto 26px;
}
.tarot-page .cta-btn {
  display: inline-block;
  background: var(--tarot-gold);
  color: #060910;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  padding: 16px 42px;
  border-radius: 2px;
}
.tarot-page .cta-btn:hover { text-decoration: none; opacity: .9; }

.tarot-page .related { margin-top: 14px; }
.tarot-page .sitefoot {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--tarot-line);
  text-align: center;
  font-size: 13px;
  color: #5d5a70;
}
.tarot-page .sitefoot a { margin: 0 8px; }

/* ── hub CTA block (re-uses styling) ──────────────────────── */
.tarot-cta {
  text-align: center;
  padding: 56px 32px;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 3px;
  background: radial-gradient(ellipse at top, rgba(201, 168, 76, 0.06), transparent);
  margin: 56px 0;
}
.tarot-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--tarot-cream);
  margin: 0 0 14px;
}
.tarot-cta p {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--tarot-body);
  max-width: 460px;
  margin: 0 auto 26px;
}
.btn-gold {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(180deg, #e8c97a, #C9A84C);
  color: #1a1206;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: filter .2s;
}
.btn-gold:hover { filter: brightness(1.07); }

@media (max-width: 640px) {
  .tarot-hub  { padding: 110px 16px 60px; }
  .tarot-page { padding: 90px 18px 50px; }
  .tarot-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tarot-card { padding: 12px 12px 16px; }
  .tarot-card-name { font-size: 18px; }
  .tarot-page h1 { font-size: 46px; }
  .tarot-page .cta-box h2 { font-size: 28px; }
}
