/* The Haunted House Tarot - Ghost theme
   Black, candlelit gold and deep purple. Mobile first. */

:root {
    --bg: #000;
    --bg-raised: #0b0910;
    --bg-panel: #110d1a;
    --ink: #ece5d8;
    --ink-soft: #c9c0b1;
    --muted: #a39a8b;
    --gold: #c9a24b;
    --gold-bright: #e9c873;
    --gold-dim: rgba(201, 162, 75, .35);
    --purple: var(--ghost-accent-color, #1e0175);
    --purple-glow: #4a2bd1;
    --line: rgba(236, 229, 216, .12);
    --font-heading: var(--gh-font-heading, "Cormorant Garamond", "Iowan Old Style", Georgia, serif);
    --font-display: "IM Fell English SC", var(--gh-font-heading, "Cormorant Garamond", Georgia, serif);
    --font-body: var(--gh-font-body, "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
    --radius: 6px;
    --container: 1180px;
    --narrow: 720px;
    --gutter: clamp(20px, 5vw, 48px);
    --card-ratio: 750 / 1247;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff3cf; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: .005em; }
p { margin: 0 0 1.2em; }
button { font: inherit; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #000; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.site { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.container.wide { max-width: calc(1200px + var(--gutter) * 2); }
.center { text-align: center; }

/* ---------- Type helpers ---------- */
.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: .95rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 .9rem;
    text-decoration: none;
}
.section-title { font-size: clamp(2rem, 5.2vw, 3.25rem); text-wrap: balance; }
.page-title, .article-title { font-size: clamp(2.4rem, 7vw, 4rem); }
.lede { font-size: clamp(1.08rem, 2.2vw, 1.25rem); color: var(--ink-soft); }
.text-link { font-family: var(--font-display); letter-spacing: .08em; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 48px; padding: .75em 1.6em;
    border-radius: 999px; border: 1px solid var(--gold);
    font-family: var(--font-display); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase;
    text-decoration: none; cursor: pointer;
    transition: background .25s, color .25s, box-shadow .35s, transform .25s;
}
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #120c02; box-shadow: 0 0 0 rgba(233, 200, 115, 0); }
.btn-gold:hover { color: #000; box-shadow: 0 0 28px rgba(233, 200, 115, .45); transform: translateY(-1px); }
.btn-ghost { background: rgba(10, 6, 20, .55); color: var(--gold-bright); border-color: var(--gold-dim); backdrop-filter: blur(4px); }
.btn-ghost:hover { color: #fff3cf; border-color: var(--gold); box-shadow: 0 0 26px rgba(74, 43, 209, .55), inset 0 0 18px rgba(74, 43, 209, .35); }
.btn-lg { min-height: 56px; padding: .9em 2.2em; font-size: 1.08rem; }

/* ---------- Atmosphere ---------- */
.fog { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fog-layer {
    position: absolute; left: -50%; width: 200%; height: 60%;
    background:
        radial-gradient(ellipse 30% 40% at 20% 60%, rgba(150, 140, 190, .07), transparent 70%),
        radial-gradient(ellipse 25% 35% at 55% 50%, rgba(120, 110, 170, .06), transparent 70%),
        radial-gradient(ellipse 35% 45% at 85% 65%, rgba(160, 150, 200, .05), transparent 70%);
    filter: blur(10px);
}
.fog-a { bottom: -10%; animation: fog-drift 70s linear infinite alternate; }
.fog-b { bottom: 20%; opacity: .7; animation: fog-drift 110s linear infinite alternate-reverse; }
@keyframes fog-drift { from { transform: translate3d(-12%, 0, 0); } to { transform: translate3d(12%, -3%, 0); } }

.has-atmosphere .flicker { animation: candle 6s ease-in-out infinite; }
@keyframes candle {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(233, 200, 115, .35); }
    42% { opacity: .92; text-shadow: 0 0 6px rgba(233, 200, 115, .2); }
    45% { opacity: .78; text-shadow: 0 0 3px rgba(233, 200, 115, .12); }
    48% { opacity: .95; text-shadow: 0 0 12px rgba(233, 200, 115, .4); }
    70% { opacity: .9; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .82); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header.is-overlay { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); border-bottom-color: transparent; backdrop-filter: none; transition: background .35s; }
.site-header.is-overlay.is-scrolled { background: rgba(0, 0, 0, .85); backdrop-filter: blur(8px); border-bottom-color: var(--line); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 14px var(--gutter); }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.site-brand:hover { color: var(--gold-bright); }
.site-brand-icon { width: 30px; height: 30px; border-radius: 4px; }
.site-brand-name { font-family: var(--font-display); font-size: clamp(.85rem, 3.6vw, 1.1rem); white-space: nowrap; letter-spacing: .12em; text-transform: uppercase; }
.site-logo { max-height: 40px; width: auto; }

.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
.nav-toggle-bar { display: block; height: 1.5px; background: var(--gold-bright); transition: transform .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-of-type { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }

.site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 4px; padding: 12px var(--gutter) 24px; background: rgba(0, 0, 0, .96); border-bottom: 1px solid var(--line); }
.site-nav.is-open { display: flex; }
.site-nav .nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-nav .nav a { display: block; padding: 10px 0; color: var(--ink-soft); text-decoration: none; font-family: var(--font-display); letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; }
.site-nav .nav a:hover, .site-nav .nav-current a { color: var(--gold-bright); }
.nav-cta { align-self: flex-start; margin-top: 8px; padding: 8px 18px; border: 1px solid var(--gold-dim); border-radius: 999px; color: var(--gold-bright); text-decoration: none; font-family: var(--font-display); letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }
.nav-cta:hover { border-color: var(--gold); box-shadow: 0 0 18px rgba(233, 200, 115, .25); }

@media (min-width: 860px) {
    .nav-toggle { display: none; }
    .site-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 28px; padding: 0; background: none; border: 0; }
    .site-nav .nav { flex-direction: row; gap: 26px; }
    .site-nav .nav a { padding: 6px 0; font-size: .85rem; }
    .nav-cta { margin: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; isolation: isolate; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-image {
    object-fit: cover; object-position: center 35%;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0, 0, 0, .55) 75%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0, 0, 0, .55) 75%, transparent 100%);
}
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(ellipse 70% 45% at 50% 82%, rgba(0, 0, 0, .7), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 25%, transparent 55%, #000 100%); }
.hero-content { width: 100%; max-width: 860px; padding: 0 var(--gutter) clamp(84px, 13vh, 140px); text-align: center; }
.hero-title { font-size: clamp(2.9rem, 10.5vw, 6.4rem); font-weight: 600; line-height: .98; margin-bottom: .25em; text-shadow: 0 2px 30px rgba(0, 0, 0, .9), 0 0 60px rgba(30, 1, 117, .5); }
.hero-hook { font-family: var(--font-heading); font-style: italic; font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--ink-soft); max-width: 40ch; margin: 0 auto 2rem; text-wrap: balance; text-shadow: 0 2px 16px rgba(0, 0, 0, .9); }
.hero-ctas { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-ctas .btn { width: min(100%, 300px); }
@media (min-width: 600px) { .hero-ctas { flex-direction: row; justify-content: center; } .hero-ctas .btn { width: auto; } }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; width: 22px; height: 36px; margin-left: -11px; border: 1px solid var(--gold-dim); border-radius: 12px; }
.scroll-cue::after { content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 12vw, 140px) 0; }
.section + .section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(60%, 420px); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.split { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- Deck / tarot cards ---------- */
.deck { padding-top: clamp(56px, 8vw, 100px); }
.card-row { list-style: none; margin: clamp(40px, 6vw, 64px) auto 0; padding: 10px var(--gutter) 30px; display: flex; justify-content: center; gap: clamp(12px, 3vw, 32px); max-width: calc(var(--container) + var(--gutter) * 2); scrollbar-width: thin; scrollbar-color: var(--gold-dim) transparent; }
@media (min-width: 1000px) { .card-row { justify-content: center; overflow: visible; } }
.tarot-slot { flex: 0 1 220px; min-width: 0; scroll-snap-align: center; }
.tarot-card { display: block; width: 100%; aspect-ratio: var(--card-ratio); padding: 0; border: 0; background: none; cursor: pointer; perspective: 1200px; color: inherit; border-radius: 10px; }
.tarot-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.tarot-face { position: absolute; inset: 0; display: block; border-radius: 10px; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; border: 1px solid rgba(201, 162, 75, .45); box-shadow: 0 10px 30px rgba(0, 0, 0, .8); transition: box-shadow .4s; }
.tarot-back-img, .tarot-front img { width: 100%; height: 100%; object-fit: cover; }
.tarot-front img { object-fit: contain; background: #000; }
.tarot-front { transform: rotateY(180deg); background: radial-gradient(ellipse at 50% 35%, #1b1230, #07050c 75%); }
.tarot-placeholder { position: absolute; inset: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--gold-dim); border-radius: 6px; }
.tarot-numeral { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); letter-spacing: .1em; }
.tarot-sigil { font-size: 2.4rem; color: var(--gold-bright); text-shadow: 0 0 18px rgba(233, 200, 115, .6); }
.tarot-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 8px 12px; font-family: var(--font-display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-align: center; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.tarot-card.is-flipped .tarot-inner { transform: rotateY(180deg); }
.tarot-card:hover .tarot-face, .tarot-card:focus-visible .tarot-face, .tarot-card.is-flipped .tarot-face { box-shadow: 0 0 0 1px var(--gold), 0 0 34px rgba(233, 200, 115, .35), 0 0 70px rgba(74, 43, 209, .45); }
@media (hover: hover) {
    .tarot-card:hover .tarot-inner { transform: translateY(-8px) rotateY(180deg); }
    .tarot-card.is-flipped:hover .tarot-inner { transform: translateY(-8px) rotateY(180deg); }
}
.card-hint { margin: 6px 0 0; text-align: center; font-size: .9rem; color: var(--muted); font-style: italic; }

/* ---------- Interpreter teaser ---------- */
.interpreter-teaser { background: radial-gradient(ellipse 60% 70% at 25% 50%, rgba(30, 1, 117, .45), transparent 70%); }
.teaser-fan { position: relative; height: clamp(260px, 50vw, 380px); display: flex; justify-content: center; align-items: center; }
.fan-card { position: absolute; width: clamp(130px, 26vw, 190px); aspect-ratio: var(--card-ratio); border-radius: 10px; overflow: hidden; border: 1px solid rgba(201, 162, 75, .45); box-shadow: 0 16px 40px rgba(0, 0, 0, .85); }
.fan-card .tarot-back-img { width: 100%; height: 100%; object-fit: cover; }
.fan-1 { transform: translateX(-46%) rotate(-12deg); }
.fan-2 { transform: translateY(-6%); z-index: 1; box-shadow: 0 0 40px rgba(74, 43, 209, .55), 0 16px 40px rgba(0, 0, 0, .85); }
.fan-3 { transform: translateX(46%) rotate(12deg); }
.teaser-copy { text-align: center; }
@media (min-width: 900px) { .teaser-copy { text-align: left; } }

/* ---------- Spreads / rooms ---------- */
.room-grid { display: grid; gap: clamp(18px, 3vw, 30px); margin-top: clamp(36px, 5vw, 56px); }
@media (min-width: 700px) { .room-grid { grid-template-columns: repeat(3, 1fr); } }
.room-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; background: linear-gradient(180deg, var(--bg-panel), var(--bg-raised)); border: 1px solid var(--line); border-radius: 160px 160px var(--radius) var(--radius); padding: 18px 18px 26px; transition: border-color .3s, box-shadow .4s, transform .3s; }
a.room-link:hover { border-color: var(--gold-dim); box-shadow: 0 0 40px rgba(74, 43, 209, .35); transform: translateY(-4px); color: inherit; }
.room-door { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 140px 140px 4px 4px; overflow: hidden; background: #050309; border: 1px solid rgba(201, 162, 75, .3); }
.room-door img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .4s, transform .8s; }
a.room-link:hover .room-door img { opacity: 1; transform: scale(1.04); }
.room-door-glow { position: absolute; inset: 0; background:
    radial-gradient(ellipse 30% 22% at 50% 62%, rgba(233, 200, 115, .5), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 70%, rgba(30, 1, 117, .7), transparent 75%),
    linear-gradient(180deg, #07040f, #000); }
.has-atmosphere .room-door-glow { animation: candle-glow 7s ease-in-out infinite; }
.room:nth-child(2) .room-door-glow { animation-delay: -2.3s; }
.room:nth-child(3) .room-door-glow { animation-delay: -4.6s; }
@keyframes candle-glow { 0%, 100% { opacity: 1; } 46% { opacity: .82; } 49% { opacity: .95; } 52% { opacity: .78; } 60% { opacity: .96; } }
.room-count { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); font-family: var(--font-display); font-size: .8rem; letter-spacing: .2em; color: var(--gold); white-space: nowrap; }
.room-count::after { content: " cards"; }
.room-body { display: flex; flex-direction: column; flex: 1; padding-top: 20px; text-align: center; }
.room-title { font-size: 1.75rem; margin-bottom: .35em; }
.room-excerpt { color: var(--ink-soft); font-size: .98rem; margin-bottom: 1.1em; }
.room-enter { margin-top: auto; font-family: var(--font-display); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.room.is-placeholder .room-enter { color: var(--muted); }

/* ---------- Buy ---------- */
.buy { background: radial-gradient(ellipse 55% 60% at 72% 55%, rgba(201, 162, 75, .09), transparent 70%); }
.buy-image { margin: 0; display: flex; justify-content: center; }
.buy-image img { width: min(100%, 520px); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .9), 0 0 60px rgba(30, 1, 117, .45); }
.buy-image img.is-cardback { width: min(70%, 340px); border-radius: 12px; border: 1px solid rgba(201, 162, 75, .45); transform: rotate(-3deg); }
.buy-copy { text-align: center; }
@media (min-width: 900px) { .buy-copy { text-align: left; } }
.price { font-family: var(--font-heading); font-size: 2.2rem; color: var(--gold-bright); margin: 0 0 .6em; }
.buy-note { margin-top: 1rem; font-size: .92rem; color: var(--muted); }

/* ---------- Footer & signup ---------- */
.site-footer { position: relative; margin-top: auto; border-top: 1px solid var(--line); background: linear-gradient(180deg, #000, #07050d); }
.signup { padding: clamp(64px, 10vw, 110px) 0; background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(30, 1, 117, .5), transparent 70%); border-bottom: 1px solid var(--line); }
.signup-text { color: var(--ink-soft); }
.signup-form { display: grid; gap: 12px; max-width: 520px; margin: 28px auto 0; }
@media (min-width: 560px) { .signup-form { grid-template-columns: 1fr auto; } .form-msg { grid-column: 1 / -1; } }
.signup-input { min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--gold-dim); background: rgba(0, 0, 0, .6); color: var(--ink); font: inherit; }
.signup-input::placeholder { color: #8a8274; }
.signup-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 200, 115, .2); }
.btn-loading, .form-msg { display: none; }
.signup-form.loading .btn-label { display: none; }
.signup-form.loading .btn-loading { display: inline; }
.form-msg { margin: 4px 0 0; font-size: .95rem; }
.signup-form.success .form-success { display: block; color: var(--gold-bright); }
.signup-form.error .form-error { display: block; color: #ff9c8a; }
.footer-inner { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 24px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; align-items: start; } }
.footer-desc { margin-top: 10px; color: var(--muted); font-size: .95rem; max-width: 40ch; }
.footer-nav .nav, .social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
@media (min-width: 800px) { .footer-nav .nav, .social { flex-direction: column; } }
.footer-nav a, .social a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover, .social a:hover { color: var(--gold-bright); }
.copyright { margin: 0; padding: 20px var(--gutter) 32px; text-align: center; font-size: .85rem; color: var(--muted); }

/* ---------- Lists, articles ---------- */
.page-head, .article-head { padding-top: clamp(56px, 10vw, 110px); padding-bottom: clamp(28px, 5vw, 48px); }
.article-meta { color: var(--muted); font-size: .95rem; }
.article-image { margin: 0 auto clamp(32px, 5vw, 56px); }
.article-image img { width: 100%; border-radius: var(--radius); }
figcaption { margin-top: 10px; text-align: center; font-size: .9rem; color: var(--muted); }
.post-grid { display: grid; gap: 28px; padding-bottom: 64px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card-link { display: block; height: 100%; color: inherit; text-decoration: none; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.post-card-link:hover { color: inherit; border-color: var(--gold-dim); box-shadow: 0 0 30px rgba(74, 43, 209, .3); }
.post-card-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 22px; }
.post-card-title { font-size: 1.6rem; }
.post-card-excerpt { color: var(--ink-soft); font-size: .98rem; }
.post-card-date { color: var(--muted); font-size: .85rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 0 var(--gutter) 80px; color: var(--muted); font-family: var(--font-display); letter-spacing: .1em; }
.pagination a { text-decoration: none; }
.author-avatar { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 50%; }
.error-page { padding-top: 18vh; padding-bottom: 18vh; }
.error-code { font-family: var(--font-display); font-size: clamp(4rem, 16vw, 8rem); line-height: 1; color: var(--gold); margin-bottom: .2em; text-shadow: 0 0 40px rgba(233, 200, 115, .3); }

/* ---------- Interpreter / spread / shop pages ---------- */
.interpreter-slot { margin-bottom: clamp(40px, 6vw, 72px); }
.interpreter-frame { width: 100%; min-height: 80vh; border: 1px solid var(--gold-dim); border-radius: var(--radius); background: var(--bg-raised); }
.interpreter-placeholder { max-width: 720px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gutter); text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(30, 1, 117, .45), transparent 70%), var(--bg-raised); }
.spread-diagram { margin-bottom: clamp(40px, 6vw, 72px); }
.spread-figure { margin: 0; }
.spread-figure img { width: 100%; border-radius: var(--radius); }
.spread-positions { list-style: none; margin: 0 auto; padding: clamp(28px, 5vw, 56px) 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 4vw, 40px); max-width: 900px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(30, 1, 117, .35), transparent 75%); }
.spread-position { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.spread-slot { display: flex; align-items: center; justify-content: center; width: clamp(80px, 18vw, 130px); aspect-ratio: var(--card-ratio); border: 1px dashed var(--gold-dim); border-radius: 8px; font-family: var(--font-display); font-size: 2rem; color: var(--gold); }
.spread-label { font-family: var(--font-display); letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: var(--ink-soft); }
.spread-cta { padding-bottom: 72px; }
.shop-page .buy { padding-top: clamp(56px, 8vw, 100px); }

/* ---------- Ghost content & cards ---------- */
.gh-canvas {
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--gutter), 1fr)
        [wide-start] minmax(0, 200px)
        [main-start] min(var(--narrow), calc(100% - var(--gutter) * 2))
        [main-end] minmax(0, 200px)
        [wide-end] minmax(var(--gutter), 1fr) [full-end];
    padding-bottom: clamp(48px, 8vw, 96px);
}
.gh-canvas > * { grid-column: main; }
.gh-content > * + * { margin-top: 1.4em; }
.gh-content > * { margin-bottom: 0; }
.gh-content h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-top: 1.8em; }
.gh-content h3 { font-size: clamp(1.45rem, 3vw, 1.8rem); margin-top: 1.6em; }
.gh-content p, .gh-content li { color: var(--ink-soft); }
.gh-content strong { color: var(--ink); }
.gh-content blockquote { margin-left: 0; margin-right: 0; padding-left: 1.2em; border-left: 2px solid var(--gold); font-family: var(--font-heading); font-style: italic; font-size: 1.35rem; color: var(--ink); }
.gh-content hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); margin: 3em 0; }
.gh-content pre { overflow-x: auto; padding: 18px; background: var(--bg-panel); border-radius: var(--radius); }
.gh-content code { font-size: .9em; }
.gh-content figure { margin-left: 0; margin-right: 0; }
.gh-content img { border-radius: var(--radius); }
.gh-content table { width: 100%; border-collapse: collapse; }
.gh-content th, .gh-content td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.kg-width-wide { grid-column: wide; }
.kg-width-full { grid-column: full; }
.kg-width-full img { border-radius: 0; width: 100%; }
.kg-image { margin: 0 auto; }
.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; gap: 10px; }
.kg-gallery-row + .kg-gallery-row { margin-top: 10px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-bookmark-card a.kg-bookmark-container { color: var(--ink); background: var(--bg-raised); border-color: var(--line); }
.kg-bookmark-title { color: var(--ink); }
.kg-bookmark-description, .kg-bookmark-metadata { color: var(--muted); }
.kg-callout-card { color: var(--ink); }
.kg-toggle-card, .kg-product-card-container, .kg-file-card-container { background: var(--bg-raised) !important; color: var(--ink) !important; }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-video-card, .kg-audio-card { border-radius: var(--radius); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .fog { display: none; }
}

/* Compact rooms on small screens: arched door beside the text */
@media (max-width: 699px) {
    .room-link { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; border-radius: 70px var(--radius) var(--radius) var(--radius); padding: 14px 16px 14px 14px; }
    .room-door { border-radius: 60px 60px 4px 4px; }
    .room-count { font-size: .62rem; letter-spacing: .14em; }
    .room-body { padding-top: 0; text-align: left; }
    .room-title { font-size: 1.5rem; }
    .room-excerpt { font-size: .93rem; margin-bottom: .6em; }
}

.section-more { margin: clamp(28px, 4vw, 44px) 0 0; }
.spreads-intro { padding-bottom: 0; }
.spreads-index { padding-top: clamp(24px, 4vw, 48px); }
.spreads-index::before { display: none; }
.room.is-placeholder .room-enter { display: inline-block; align-self: center; padding: 3px 12px; border: 1px dashed var(--gold-dim); border-radius: 999px; }
@media (max-width: 699px) { .room.is-placeholder .room-enter { align-self: flex-start; } }

/* Random draw: with JS, flips are driven by script (hover = mouse reveal) */
.js-draw [data-card-row] .tarot-card:hover .tarot-inner { transform: none; }
.js-draw [data-card-row] .tarot-card.is-flipped .tarot-inner,
.js-draw [data-card-row] .tarot-card.is-flipped:hover .tarot-inner { transform: rotateY(180deg); }
@media (hover: hover) {
    .js-draw [data-card-row] .tarot-card:hover .tarot-inner { transform: translateY(-8px); }
    .js-draw [data-card-row] .tarot-card.is-flipped:hover .tarot-inner { transform: translateY(-8px) rotateY(180deg); }
}
