/* ==========================================================================
   Madame Vespera — The Wandering Orb
   Palette, type and layout tokens
   ========================================================================== */

:root {
  --ink:        #0D0910;
  --ink-2:      #150E19;
  --velvet:     #2E0A16;
  --oxblood:    #4A0F1E;
  --oxblood-dk: #300A14;
  --brass:      #C9932F;
  --brass-lt:   #EBC46A;
  --brass-dk:   #6E4E17;
  --parchment:  #EFE0C4;
  --parchment-2:#D8C39C;
  --smoke:      #B9A9B4;
  /* the séance green appears ONLY inside the orb and the light it casts */
  --seance:     #6FE0C6;
  --seance-dim: #2C7D6C;

  --display: "UnifrakturMaguntia", "Cinzel Decorative", serif;
  --playbill: "IM Fell English SC", Georgia, serif;
  --body: "Cormorant Garamond", Georgia, serif;

  --stage-max: 68rem;
  --divine-ms: 2400ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--body);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ambient: faint star dust + vignette + film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(239,224,196,.55), transparent 60%),
    radial-gradient(1px 1px at 78% 12%, rgba(239,224,196,.4), transparent 60%),
    radial-gradient(1px 1px at 34% 62%, rgba(239,224,196,.35), transparent 60%),
    radial-gradient(1px 1px at 88% 71%, rgba(239,224,196,.45), transparent 60%),
    radial-gradient(1px 1px at 61% 34%, rgba(239,224,196,.3), transparent 60%),
    radial-gradient(120% 90% at 50% 8%, rgba(74,15,30,.55), transparent 62%),
    radial-gradient(100% 80% at 50% 110%, rgba(46,10,22,.7), transparent 70%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.stage { position: relative; z-index: 2; }

/* ---------- tent valance ---------- */
.valance {
  position: relative;
  height: 74px;
  background: repeating-linear-gradient(
    90deg,
    var(--oxblood) 0 34px,
    var(--oxblood-dk) 34px 68px
  );
  border-bottom: 2px solid var(--brass-dk);
  -webkit-mask-image:
    linear-gradient(#000, #000),
    radial-gradient(circle 17px at 17px 57px, #000 0 17px, transparent 17.5px);
  mask-image:
    linear-gradient(#000, #000),
    radial-gradient(circle 17px at 17px 57px, #000 0 17px, transparent 17.5px);
  -webkit-mask-size: 100% 57px, 34px 74px;
  mask-size: 100% 57px, 34px 74px;
  -webkit-mask-repeat: no-repeat, repeat-x;
  mask-repeat: no-repeat, repeat-x;
  -webkit-mask-composite: source-over;
  mask-composite: add;
}
.valance__glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: .7;
}

/* ---------- header ---------- */
.marquee {
  max-width: var(--stage-max);
  margin: 0 auto;
  padding: 2.6rem 1.25rem 0.5rem;
  text-align: center;
}
.marquee__eyebrow {
  font-family: var(--playbill);
  font-size: .82rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 .9rem;
}
.marquee__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.9rem, 1.6rem + 6.4vw, 6rem);
  line-height: .95;
  margin: 0;
  color: var(--parchment);
  text-shadow: 0 0 26px rgba(201,147,47,.35), 0 3px 0 rgba(0,0,0,.6);
}
.marquee__sub {
  font-family: var(--playbill);
  font-size: clamp(.95rem, .9rem + .2vw, 1.1rem);
  letter-spacing: .12em;
  color: var(--smoke);
  margin: 1rem auto 0;
  max-width: 34rem;
}
.rule {
  width: min(22rem, 70%);
  margin: 1.8rem auto 0;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--brass-dk), var(--brass), var(--brass-dk), transparent);
  position: relative;
}
.rule::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--brass);
  background: var(--ink);
  padding: 0 .6rem;
  font-size: .8rem;
}

/* ==========================================================================
   THE ORB — the signature element
   ========================================================================== */
.parlour {
  max-width: var(--stage-max);
  margin: 0 auto;
  padding: 2.2rem 1.25rem 0;
  text-align: center;
}

.orb-rig {
  position: relative;
  display: inline-block;
  padding-bottom: 92px; /* room for the stand */
}

/* the light the orb casts on the table */
.orb-rig::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 130%;
  height: 60px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(111,224,198,.16), transparent 70%);
  filter: blur(6px);
  opacity: .5;
  transition: opacity .6s ease;
  pointer-events: none;
}
.orb-rig.is-lit::after { opacity: 1; }

.orb {
  position: relative;
  display: block;
  width: clamp(15rem, 42vw, 21rem);
  height: clamp(15rem, 42vw, 21rem);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.orb:focus-visible {
  outline: 2px dashed var(--brass-lt);
  outline-offset: 14px;
}

/* glass sphere */
.orb__glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.22), transparent 42%),
    radial-gradient(circle at 50% 55%, #17323A 0%, #0C1A22 55%, #06090E 100%);
  box-shadow:
    inset 0 -22px 44px rgba(0,0,0,.75),
    inset 0 14px 34px rgba(255,255,255,.06),
    0 0 0 1px rgba(201,147,47,.22),
    0 0 42px rgba(111,224,198,.18),
    0 26px 60px rgba(0,0,0,.65);
  transition: box-shadow .7s ease;
}
.orb.is-divining .orb__glass,
.orb.is-lit .orb__glass {
  box-shadow:
    inset 0 -18px 40px rgba(0,0,0,.6),
    inset 0 14px 34px rgba(111,224,198,.14),
    0 0 0 1px rgba(235,196,106,.5),
    0 0 90px rgba(111,224,198,.55),
    0 26px 70px rgba(0,0,0,.7);
}

/* the fog inside */
.fog {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  mix-blend-mode: screen;
  opacity: .5;
  will-change: transform, opacity;
}
.fog--a {
  inset: 8% 22% 30% 6%;
  background: radial-gradient(circle, rgba(111,224,198,.85), transparent 68%);
  animation: drift-a 17s linear infinite;
}
.fog--b {
  inset: 26% 6% 8% 28%;
  background: radial-gradient(circle, rgba(168,140,214,.8), transparent 68%);
  animation: drift-b 21s linear infinite;
}
.fog--c {
  inset: 22% 24% 22% 24%;
  background: radial-gradient(circle, rgba(239,224,196,.55), transparent 70%);
  animation: drift-c 13s linear infinite;
}
.orb.is-divining .fog { opacity: .95; }
.orb.is-divining .fog--a { animation-duration: 2.1s; }
.orb.is-divining .fog--b { animation-duration: 2.6s; }
.orb.is-divining .fog--c { animation-duration: 1.7s; }

@keyframes drift-a {
  0%   { transform: translate3d(0,0,0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(14%, -10%, 0) scale(1.25) rotate(180deg); }
  100% { transform: translate3d(0,0,0) scale(1) rotate(360deg); }
}
@keyframes drift-b {
  0%   { transform: translate3d(0,0,0) scale(1.1) rotate(0deg); }
  50%  { transform: translate3d(-16%, 12%, 0) scale(.85) rotate(-180deg); }
  100% { transform: translate3d(0,0,0) scale(1.1) rotate(-360deg); }
}
@keyframes drift-c {
  0%   { transform: scale(.8) rotate(0deg); opacity: .35; }
  50%  { transform: scale(1.35) rotate(140deg); opacity: .8; }
  100% { transform: scale(.8) rotate(360deg); opacity: .35; }
}

/* the swirl that only appears while divining */
.orb__vortex {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  opacity: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(111,224,198,.5) 40deg,
    transparent 110deg,
    rgba(168,140,214,.45) 190deg,
    transparent 260deg,
    rgba(239,224,196,.35) 320deg,
    transparent 360deg
  );
  filter: blur(14px);
  mix-blend-mode: screen;
  transition: opacity .4s ease;
}
.orb.is-divining .orb__vortex {
  opacity: .9;
  animation: vortex 1.05s linear infinite;
}
@keyframes vortex { to { transform: rotate(360deg); } }

/* glass highlight, always on top of the fog */
.orb__sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 26%, rgba(255,255,255,.4) 0 6%, rgba(255,255,255,.09) 14%, transparent 34%),
    radial-gradient(circle at 70% 82%, rgba(201,147,47,.16), transparent 42%);
  pointer-events: none;
}

/* brass armillary rings */
.orb__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,147,47,.55);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(201,147,47,.25);
}
.orb__ring--a {
  inset: -6%;
  border-width: 2px;
  border-color: rgba(201,147,47,.75) transparent rgba(201,147,47,.35) transparent;
  transform: rotate(-14deg) scaleY(.34);
}
.orb__ring--b {
  inset: -11%;
  border-color: transparent rgba(235,196,106,.6) transparent rgba(110,78,23,.8);
  transform: rotate(74deg) scaleY(.42);
}
.orb.is-divining .orb__ring--a { animation: ring-a 1.6s linear infinite; }
.orb.is-divining .orb__ring--b { animation: ring-b 2.4s linear infinite reverse; }
@keyframes ring-a {
  from { transform: rotate(-14deg) scaleY(.34); }
  to   { transform: rotate(346deg) scaleY(.34); }
}
@keyframes ring-b {
  from { transform: rotate(74deg) scaleY(.42); }
  to   { transform: rotate(434deg) scaleY(.42); }
}

/* the brass stand */
.orb__stand {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 190px;
  transform: translateX(-50%);
  color: var(--brass-dk);
  pointer-events: none;
}

/* orb caption */
.orb-cue {
  font-family: var(--playbill);
  letter-spacing: .26em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--brass);
  margin: .2rem 0 0;
  min-height: 1.4em;
}
.orb-cue.is-working { color: var(--seance); }

/* ==========================================================================
   THE FORTUNE CARD
   ========================================================================== */
.reading {
  max-width: 44rem;
  margin: 2.4rem auto 0;
  padding: 0 1.25rem;
}

.card {
  position: relative;
  padding: 2.4rem 1.7rem 2rem;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(170deg, #1B1119 0%, #241320 55%, #170D14 100%);
  border: 1px solid var(--brass-dk);
  box-shadow: 0 0 0 6px rgba(13,9,16,.9), 0 0 0 7px rgba(110,78,23,.45), 0 30px 70px rgba(0,0,0,.6);
  opacity: 0;
  transform: translateY(14px) rotate(-.5deg);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.3,1);
}
.card.is-revealed { opacity: 1; transform: translateY(0) rotate(0deg); }

/* corner diamonds instead of fussy filigree */
.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--brass);
  transform: rotate(45deg);
  opacity: .8;
}
.card::before { top: -5px; left: -5px; }
.card::after  { bottom: -5px; right: -5px; }

.card__label {
  font-family: var(--playbill);
  font-size: .74rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 .7rem;
}
.card__title {
  font-family: var(--playbill);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--parchment);
}
.card__text {
  margin: 0;
  font-size: clamp(1.15rem, 1.05rem + .5vw, 1.42rem);
  line-height: 1.55;
  color: var(--parchment-2);
  font-style: italic;
}
.card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(110,78,23,.5);
  font-family: var(--playbill);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--smoke);
}

.link-btn {
  font-family: var(--playbill);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  background: none;
  border: 1px solid rgba(201,147,47,.4);
  padding: .5rem .95rem;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.link-btn:hover { background: rgba(201,147,47,.14); color: var(--brass-lt); border-color: var(--brass); }
.link-btn:focus-visible { outline: 2px solid var(--brass-lt); outline-offset: 3px; }

/* ---------- house rules / about ---------- */
.column {
  max-width: 44rem;
  margin: 4.5rem auto 0;
  padding: 0 1.25rem;
}
.column h2 {
  font-family: var(--playbill);
  font-size: clamp(1.35rem, 1.2rem + .8vw, 1.8rem);
  letter-spacing: .05em;
  color: var(--parchment);
  margin: 0 0 .9rem;
}
.column h3 {
  font-family: var(--playbill);
  font-size: 1.15rem;
  color: var(--brass-lt);
  margin: 1.9rem 0 .5rem;
}
.column p, .column li { color: var(--smoke); }
.column a { color: var(--brass); }
.column a:hover { color: var(--brass-lt); }
.column ul { padding-left: 1.2rem; }
.column li { margin-bottom: .5rem; }

/* ---------- advertisement slots ---------- */
.ad-rail {
  max-width: 44rem;
  margin: 3.5rem auto 0;
  padding: 0 1.25rem;
  text-align: center;
}
.ad-rail__label {
  font-family: var(--playbill);
  font-size: .66rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(185,169,180,.55);
  margin: 0 0 .6rem;
}
.ad-rail ins { display: block; }

/* ---------- footer ---------- */
.footer {
  margin-top: 5rem;
  border-top: 1px solid rgba(110,78,23,.4);
  background: linear-gradient(180deg, transparent, rgba(46,10,22,.5));
  padding: 2.4rem 1.25rem 3rem;
  text-align: center;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  justify-content: center;
  font-family: var(--playbill);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer a { color: var(--brass); text-decoration: none; }
.footer a:hover { color: var(--brass-lt); text-decoration: underline; }
.footer__fine {
  font-size: .92rem;
  color: rgba(185,169,180,.75);
  max-width: 40rem;
  margin: 0 auto;
}

/* ---------- cookie / consent notice ---------- */
.consent {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(46rem, calc(100% - 2rem));
  z-index: 30;
  background: rgba(13,9,16,.97);
  border: 1px solid var(--brass-dk);
  box-shadow: 0 20px 50px rgba(0,0,0,.7);
  padding: 1.2rem 1.3rem;
  display: none;
}
.consent.is-open { display: block; }
.consent p {
  margin: 0 0 1rem;
  font-size: .98rem;
  color: var(--smoke);
}
.consent a { color: var(--brass); }
.consent__row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- legal pages ---------- */
.doc {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 0;
}
.doc h1 {
  font-family: var(--playbill);
  font-size: clamp(1.9rem, 1.5rem + 2vw, 2.8rem);
  color: var(--parchment);
  margin: 0 0 .4rem;
}
.doc__date {
  font-family: var(--playbill);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 2.2rem;
}
.doc h2 {
  font-family: var(--playbill);
  font-size: 1.3rem;
  color: var(--brass-lt);
  margin: 2.4rem 0 .6rem;
}
.doc p, .doc li { color: var(--smoke); }
.doc a { color: var(--brass); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .45rem; }
.doc .back {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--playbill);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ---------- motion & small screens ---------- */
@media (max-width: 32rem) {
  .orb-rig { padding-bottom: 72px; }
  .orb__stand { width: 150px; }
  .card { padding: 1.9rem 1.25rem 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fog, .orb__vortex, .orb__ring { animation: none !important; }
  .card { transition: opacity .3s linear; transform: none; }
  .card.is-revealed { transform: none; }
  .orb.is-divining .orb__vortex { opacity: .6; }
}
