/* The card meaning guide (/tarot-card-meanings/). Its own small stylesheet: the guide pages are plain
   HTML built by scripts/build-guide.ts and never load the reading app. Same night sky, gold and fonts. */

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/jost-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --sky-deep: #0e1236;
  --sky: #1a1d4f;
  --gold: #e0b96c;
  --gold-soft: #b89458;
  --starlight: #eef0fb;
  --mist: #a8acd6;
  --text: #dfe2f4;
  --hairline: rgba(168, 172, 214, 0.22);
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --measure: 40rem;
  --gutter: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(68, 58, 140, 0.45), transparent 70%),
    linear-gradient(180deg, var(--sky) 0%, var(--sky-deep) 60%) fixed;
  background-color: var(--sky-deep);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; }

.masthead { padding: 22px var(--gutter) 0; text-align: center; }
.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gold);
  text-decoration: none;
}
.wordmark::before {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.4em;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.guide {
  width: 100%;
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}

.crumbs { margin-top: 28px; font-size: 0.85rem; color: var(--mist); }
.crumbs a { color: var(--mist); }

.card-head { margin-top: 26px; text-align: center; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
h1 {
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 7vw, 3.4rem);
  line-height: 1.1;
  color: var(--starlight);
}
.summary {
  margin: 16px auto 0;
  max-width: 34rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--starlight);
}

.card-top {
  margin-top: 36px;
  display: grid;
  gap: 24px;
  align-items: start;
}
@media (min-width: 640px) {
  .card-top { grid-template-columns: 220px 1fr; }
}
.card-art { justify-self: center; max-width: 220px; }
.card-art img {
  border-radius: 10px;
  border: 1px solid rgba(224, 185, 108, 0.55);
  box-shadow: 0 18px 50px rgba(3, 4, 20, 0.6), 0 0 30px rgba(224, 185, 108, 0.12);
}
.card-art figcaption { margin-top: 10px; font-size: 0.78rem; line-height: 1.5; color: var(--mist); text-align: center; }

.facts {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(19, 22, 66, 0.7);
  border: 1px solid rgba(224, 185, 108, 0.3);
  border-radius: 8px;
}
.facts dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.facts dd { font-size: 0.98rem; line-height: 1.55; }

article section { margin-top: 40px; }
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--starlight);
}
h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--gold);
}
section p { margin-top: 12px; }
section h3 + p { margin-top: 4px; }
.advice p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--gold);
}

.spread-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }

.ask-oracle {
  margin-top: 48px;
  padding: 26px 22px;
  text-align: center;
  background: rgba(19, 22, 66, 0.9);
  border: 1px solid rgba(224, 185, 108, 0.4);
  border-radius: 8px;
}
.ask-title { font-family: var(--serif); font-size: 1.45rem; color: var(--starlight); }
.ask-oracle p + p { margin-top: 6px; color: var(--mist); }
.ask-button {
  display: inline-block;
  margin-top: 16px;
  padding: 13px 28px;
  font-weight: 500;
  color: var(--sky-deep);
  background: var(--gold);
  border-radius: 4px;
  text-decoration: none;
}
.ask-button:hover { background: #ecc982; }

.pager {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}
.pager a { text-decoration: none; }

/* The index: every card as a small picture with its name. */
.group { margin-top: 44px; }
.group-about { margin-top: 6px; color: var(--mist); }
.card-grid {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 18px 14px;
}
.card-grid a,
.card-grid li.soon { display: grid; gap: 8px; text-align: center; font-size: 0.85rem; line-height: 1.3; text-decoration: none; color: var(--text); }
.card-grid img { border-radius: 6px; border: 1px solid rgba(224, 185, 108, 0.35); }
.card-grid a:hover img { border-color: var(--gold); }
.card-grid li.soon { opacity: 0.45; }

.footer {
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--mist);
  border-top: 1px solid var(--hairline);
}
.footer ul { margin: 0 0 10px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer a { color: var(--starlight); }

/* Privacy, Terms and Refunds (content/pages/). */
.legal .updated { margin-top: 10px; font-size: 0.85rem; color: var(--mist); }
.legal ul { margin-top: 12px; padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--gold); }
