:root {
  --cream: #faf6f0;
  --linen: #f2ebe1;
  --plum: #3b1f4a;
  --plum-deep: #2a1535;
  --lavender: #b9a3d0;
  --gold: #c9a45c;
  --gold-soft: #e6c98a;
  --gold-ink: #80591c; /* gold for text on light backgrounds (5.3:1 on linen) */
  --ink: #2b2230;
  --muted: #6b5f72;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--plum);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.6rem; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--gold-ink); }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.center { text-align: center; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-weight: 500;
  margin-bottom: 0.8em;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.wordmark {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 600;
  color: var(--plum); text-decoration: none; white-space: nowrap;
}
.wordmark em { color: var(--gold-ink); font-weight: 500; }
nav { display: flex; gap: 22px; }
nav a {
  text-decoration: none; font-size: 0.95rem; color: var(--muted);
  padding: 4px 0; border-bottom: 1px solid transparent;
}
nav a:hover, nav a:focus-visible { color: var(--plum); border-color: var(--gold); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 500;
  padding: 13px 26px; border-radius: 999px; font-size: 1rem;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-deep); }
.btn-ghost { border: 1px solid var(--plum); color: var(--plum); }
.btn-ghost:hover { background: var(--plum); color: #fff; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 96px) 0;
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--lavender) 35%, transparent), transparent 45%),
    radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--gold-soft) 30%, transparent), transparent 40%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 72px); align-items: center;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }

.hero-card { margin: 0; justify-self: center; text-align: center; }
.card-frame {
  width: min(420px, 80vw);
  aspect-ratio: 2 / 3;
  padding: 12px;
  border-radius: 18px;
  background: var(--plum);
  box-shadow: 0 24px 50px -20px rgba(59, 31, 74, .55);
  position: relative;
}
.card-frame::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid var(--gold-soft); border-radius: 14px; pointer-events: none;
}
.card-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  border-radius: 10px;
}
.hero-card figcaption {
  font-family: var(--serif); font-style: italic; font-size: 1.2rem;
  color: var(--plum); margin-top: 14px;
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.about { background: var(--linen); }
.about p { font-size: 1.1rem; }

.readings { background: var(--plum); color: #eee6f3; }
.readings h2 { color: #fff; }
.readings .eyebrow { color: var(--gold-soft); }
.readings .sub { color: var(--lavender); max-width: 36em; margin-inline: auto; }

.cards {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.tarot {
  position: relative; text-align: center;
  padding: 44px 28px 36px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid color-mix(in srgb, var(--gold-soft) 45%, transparent);
  transition: transform .2s ease, border-color .2s ease;
}
.tarot::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid color-mix(in srgb, var(--gold-soft) 18%, transparent);
  border-radius: 10px; pointer-events: none;
}
.tarot:hover { transform: translateY(-4px); border-color: var(--gold-soft); }
.tarot.featured { background: linear-gradient(180deg, rgba(230,201,138,.16), rgba(230,201,138,.04)); }
.tarot h3 { color: #fff; margin-bottom: 0.2em; }
.tarot .numeral {
  display: block; font-family: var(--serif); font-size: 1.1rem;
  letter-spacing: .2em; color: var(--gold-soft); margin-bottom: 14px;
}
.tarot .tag {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: var(--gold-soft); margin-bottom: 1em;
}
.tarot p:last-child { margin: 0; color: #ddd2e6; }

.steps { padding-left: 1.3em; margin: 0 0 0.5em; }
.steps li { margin-bottom: 0.7em; padding-left: 0.3em; }
.steps li::marker { font-family: var(--serif); font-weight: 600; color: var(--gold-ink); }
.steps strong { color: var(--plum); font-weight: 500; }

.notice {
  margin-top: 48px; padding: 24px 28px;
  border-left: 3px solid var(--gold);
  background: var(--linen); border-radius: 0 var(--radius) var(--radius) 0;
}
.notice h3 { font-size: 1.35rem; }
.notice p { margin: 0; color: var(--muted); }

.follow { background: var(--linen); }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 1.4em; }
.socials a {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--plum); font-weight: 500;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--plum) 30%, transparent);
  background: var(--cream);
}
.socials a:hover { border-color: var(--plum); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

/* Footer */
.site-footer {
  background: var(--plum-deep); color: #cbbfd6;
  padding: 48px 0; text-align: center; font-size: 0.92rem;
}
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark em { color: var(--gold-soft); }
.disclaimer { max-width: 40em; margin: 0.8em auto 1em; }
.copy { margin: 0; opacity: .7; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost .actions { justify-content: center; }

/* Responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-inner .actions { justify-content: center; }
  .lede { margin-inline: auto; }
  .hero-card { order: -1; }
  .card-frame { width: min(300px, 72vw); }
  .cards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}
@media (max-width: 560px) {
  nav { display: none; }
  .wordmark { font-size: 1.3rem; }
  .btn { width: 100%; text-align: center; }
  .actions { flex-direction: column; }
}
