/* Card meaning pages (generated by docs/card-pages/build.js; copied to docs/site/assets/cards.css).
   Same colours, fonts and background as the home page. */
:root {
  --bg: #0e0a18; --card: rgba(26,18,48,0.72);
  --text: #e8e4e0; --muted: #b8a8d8; --dim: #9888b8;
  --gold: #e9c97a; --gold-light: #f7e3a8; --gold-dim: #a8823f;
  --line: rgba(233,201,122,0.22);
  --yes: #7fd49a; --no: #f08a8a; --maybe: #e9c97a;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--text); font: 17px/1.7 Georgia, "Times New Roman", serif;
  background-color: var(--bg); min-height: 100vh;
}
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body::before { z-index: -2; background: url(background.jpg) center / cover no-repeat; opacity: 0.2; }
body::after {
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(154,108,255,0.22), transparent 60%),
    radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(14,10,24,0.75) 100%);
}
a { color: var(--gold); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.title { font-family: Cinzel, Georgia, serif; color: var(--gold); letter-spacing: 1.2px; font-weight: 600; }
.center { text-align: center; }

/* Header: logo and language menu */
.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 8px; }
.top .logo { height: 72px; display: block; }
.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer; font: 13px Cinzel, serif; letter-spacing: 1px; color: var(--gold);
  border: 1px solid var(--gold-dim); border-radius: 6px; padding: 6px 12px;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: " ▾"; }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 2; margin: 0; padding: 6px 0; list-style: none;
  background: #1a1230; border: 1px solid var(--gold-dim); border-radius: 10px; min-width: 150px;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.langs a { display: block; padding: 6px 16px; color: var(--text); text-decoration: none; font-size: 15px; }
.langs a:hover, .langs a[aria-current] { color: var(--gold); }

.crumbs { font-size: 14px; color: var(--dim); margin: 4px 0 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* Card page */
.hero { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; max-width: 860px; margin: 0 auto 20px; }
.hero figure { margin: 0; }
.hero figcaption { color: var(--dim); font-size: 14px; margin-top: 10px; text-align: center; }
.card {
  display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--gold-dim);
  box-shadow: 0 18px 50px rgba(0,0,0,.6), 0 0 40px rgba(154,108,255,.25);
}
div.card.hidden { border: 0; aspect-ratio: 100 / 175; }
.cardback { display: block; width: 100%; height: 100%; }
.kicker { font: 600 13px Cinzel, serif; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin: 6px 0 4px; }
h1.title { font-size: clamp(32px, 5vw, 48px); line-height: 1.15; margin: 0 0 14px; }
.intro { font-size: 19px; color: var(--text); margin: 0 0 18px; }
.keys { margin: 0; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.keys dt { font: 600 12px Cinzel, serif; letter-spacing: 1.2px; color: var(--gold-light); text-transform: uppercase; }
.keys dd { margin: 2px 0 12px; color: var(--muted); }
.keys dd:last-child { margin-bottom: 0; }
.answer { font: 700 15px Cinzel, serif; letter-spacing: 1.5px; text-transform: uppercase; }
.answer.yes { color: var(--yes); }
.answer.no { color: var(--no); }
.answer.maybe { color: var(--maybe); }

article { max-width: 760px; margin: 0 auto; }
article section { padding: 22px 0 6px; border-top: 1px solid var(--line); }
article h2 { font-size: clamp(21px, 3vw, 26px); margin: 0 0 10px; }
article h3 { font: 600 14px Cinzel, serif; letter-spacing: 1.5px; color: var(--gold-light); text-transform: uppercase; margin: 16px 0 4px; }
article p { margin: 0 0 14px; }
.verdict { font-size: 18px; }
.advice p { font-size: 19px; font-style: italic; color: var(--gold-light); }

.cta {
  margin: 36px 0 28px; padding: 30px 24px; text-align: center; background: var(--card);
  border: 1px solid var(--gold-dim); border-radius: 18px; box-shadow: 0 0 40px rgba(233,201,122,.08);
}
.cta h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 8px; }
.cta p { color: var(--muted); max-width: 36em; margin: 0 auto 20px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.cta .stores, main > .stores { justify-content: center; }
.store.soon { opacity: .55; }
.store {
  display: inline-flex; min-width: 190px; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 12px;
  text-decoration: none; color: #fff; background: #000; border: 1px solid rgba(255,255,255,.35);
}
.store svg { width: 28px; height: 28px; }
.store small { display: block; font: 11px/1.2 system-ui, sans-serif; letter-spacing: .3px; opacity: .85; text-align: left; }
.store strong { display: block; font: 600 19px/1.2 system-ui, sans-serif; }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-bottom: 36px; }
.pager a { text-decoration: none; color: var(--gold-light); font-family: Cinzel, serif; font-size: 15px; }
.pager small { display: block; font: 12px Georgia, serif; color: var(--dim); }
.pager .next { text-align: right; }
.pager .all { border: 1px solid var(--gold-dim); border-radius: 8px; padding: 8px 14px; font-size: 13px; letter-spacing: 1px; }

/* Index of the cards */
.lead { text-align: center; color: var(--muted); max-width: 40em; margin: 0 auto 10px; font-size: 18px; }
main > section { padding: 24px 0 8px; }
main > section h2 { font-size: clamp(21px, 3vw, 26px); text-align: center; margin: 0 0 18px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 18px 12px; }
.cards a, .cards li.soon { display: block; text-align: center; text-decoration: none; color: var(--text); font-size: 14px; line-height: 1.3; }
.cards li.soon { opacity: .45; }
.thumb { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 6px; transition: transform .15s; }
div.thumb.hidden { border: 0; aspect-ratio: 100 / 175; }
.cards a:hover .thumb { transform: translateY(-3px); }

/* Spread pages (Tarot 2027) */
.spread-hero { max-width: 760px; margin: 0 auto 10px; text-align: center; }
.spread-hero .stores { justify-content: center; }
.diagram { max-width: 420px; margin: 18px auto 26px; text-align: center; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram .ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.diagram .slot { fill: rgba(26,18,48,0.9); stroke: var(--gold-dim); stroke-width: 1.2; }
.diagram .slot.theme { stroke: var(--gold); stroke-width: 2; }
.diagram .num { font: 700 17px Cinzel, Georgia, serif; fill: var(--gold-light); text-anchor: middle; }
.diagram .label { font: 14px system-ui, sans-serif; fill: var(--muted); text-anchor: middle; }
.diagram .label.theme { fill: var(--gold); }
.diagram figcaption { color: var(--dim); font-size: 14px; margin-top: 6px; }
article ol, article ul { margin: 0 0 14px; padding-left: 1.4em; }
article li { margin: 0 0 8px; }
.positions dt { font: 600 14px Cinzel, serif; letter-spacing: 1.2px; color: var(--gold-light); text-transform: uppercase; margin-top: 10px; }
.positions dd { margin: 4px 0 12px; }

footer { border-top: 1px solid var(--line); padding: 24px 0 36px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 18px; }
  .hero figure { width: min(240px, 70vw); margin: 0 auto; }
  .kicker, h1.title { text-align: center; }
  .stores { justify-content: center; }
  .store { min-width: 0; flex: 1 1 150px; max-width: 220px; justify-content: center; padding: 8px 12px; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager .all { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .top .logo { height: 56px; }
}
