:root {
    --bg: #f5efe4;
    --bg2: #ede1cc;
    --panel: rgba(255, 250, 239, 0.92);
    --panel2: rgba(255, 255, 255, 0.72);
    --ink: #23180f;
    --muted: #6f5f4d;
    --gold: #c9a45b;
    --gold2: #f0d38a;
    --line: rgba(80, 55, 20, 0.18);
    --shadow: 0 22px 60px rgba(52, 34, 10, 0.18);
    --soft-shadow: 0 12px 28px rgba(52, 34, 10, 0.12);
    --radius: 24px;
}

[data-theme="dark"] {
    --bg: #08070b;
    --bg2: #15101d;
    --panel: rgba(20, 16, 28, 0.88);
    --panel2: rgba(31, 23, 42, 0.72);
    --ink: #f6ecd6;
    --muted: #c7b99d;
    --gold: #d7ad55;
    --gold2: #ffe2a0;
    --line: rgba(255, 216, 139, 0.18);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --soft-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 10%, rgba(201, 164, 91, 0.22), transparent 32%),
        radial-gradient(circle at 85% 20%, rgba(122, 74, 160, 0.16), transparent 35%),
        linear-gradient(145deg, var(--bg), var(--bg2));
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "✦ ✧ ☽ ✧ ✦";
    position: fixed;
    inset: auto 0 4vh 0;
    text-align: center;
    font-size: clamp(5rem, 16vw, 14rem);
    letter-spacing: 0.4em;
    color: rgba(201, 164, 91, 0.055);
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #1b1208;
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    box-shadow: 0 0 24px rgba(201, 164, 91, 0.35);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-nav a,
.theme-toggle,
.btn,
.btn-gold,
.btn-ghost,
.ghost-link {
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    background: var(--panel2);
    color: var(--ink);
    box-shadow: var(--soft-shadow);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.theme-toggle:hover,
.btn:hover,
.btn-gold:hover,
.btn-ghost:hover,
.ghost-link:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 164, 91, 0.65);
    box-shadow: 0 16px 36px rgba(201, 164, 91, 0.22);
}

.theme-toggle {
    cursor: pointer;
    font-family: inherit;
}

.btn-gold,
.btn.btn-gold {
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    color: #1c1308;
    font-weight: 700;
}

.btn-ghost,
.ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
}

.page-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 70px;
    animation: pageRise 550ms ease both;
}

@keyframes pageRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.hero-panel,
.meaning-panel,
.oracle-card,
.card-text-panel,
.card-image-panel,
.symbol-hero,
.mini-card,
.tarot-tile,
.symbol-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero,
.hero-panel {
    padding: clamp(24px, 4vw, 46px);
    margin-bottom: 28px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

h1,
h2,
h3 {
    line-height: 1.12;
    margin-top: 0;
}

h1 {
    font-size: clamp(2.2rem, 6vw, 5rem);
    margin-bottom: 16px;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

h3 {
    font-size: 1.1rem;
}

.lead,
.muted {
    color: var(--muted);
}

.hero-actions,
.nav-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 18px;
}

.card-profile,
.detail-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.card-image-panel,
.card-text-panel,
.meaning-panel,
.symbol-hero {
    padding: 24px;
}

.card-image-panel img,
.symbol-hero img,
.oracle-card img {
    display: block;
    margin: 0 auto;
    border-radius: 18px;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.24));
    transition: transform 220ms ease, filter 220ms ease;
}

.card-image-panel:hover img,
.symbol-hero:hover img,
.oracle-card:hover img {
    transform: scale(1.025);
    filter: drop-shadow(0 24px 38px rgba(201, 164, 91, 0.28));
}

.oracle-card {
    padding: 24px;
    text-align: center;
}

.sigil {
    width: 86px;
    height: 86px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    color: #1b1208;
    font-size: 2.4rem;
    box-shadow: 0 0 35px rgba(201, 164, 91, 0.35);
    animation: pulseGold 4s ease-in-out infinite;
}

@keyframes pulseGold {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 26px rgba(201, 164, 91, 0.28);
    }
    50% {
        transform: scale(1.035);
        box-shadow: 0 0 46px rgba(201, 164, 91, 0.48);
    }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 18px;
}

.chakra-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.mini-card,
.tarot-tile,
.symbol-card {
    padding: 16px;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.mini-card::before,
.tarot-tile::before,
.symbol-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(201, 164, 91, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 190ms ease;
    pointer-events: none;
}

.mini-card:hover,
.tarot-tile:hover,
.symbol-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 164, 91, 0.72);
    box-shadow: 0 22px 48px rgba(201, 164, 91, 0.2);
}

.mini-card:hover::before,
.tarot-tile:hover::before,
.symbol-card:hover::before {
    opacity: 1;
}

.mini-card img,
.tarot-tile img,
.symbol-card img {
    max-height: 190px;
    width: auto;
    margin: 0 auto 12px;
    display: block;
    border-radius: 14px;
    transition: transform 190ms ease;
}

.chakra-row .mini-card img {
    max-height: 82px;
}

.mini-card:hover img,
.tarot-tile:hover img,
.symbol-card:hover img {
    transform: scale(1.04);
}

.tarot-tile span,
.symbol-card span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.data-list {
    display: grid;
    gap: 10px;
}

.data-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.data-row span {
    color: var(--gold);
    font-weight: 700;
}

.data-row strong {
    font-weight: 500;
}

.wide {
    margin-top: 28px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 26px 22px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 1120px) {
    .chakra-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .hero,
    .card-profile,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .chakra-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .data-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-shell {
        width: min(100% - 20px, 1240px);
    }

    .chakra-row {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   SLOGIT GOLD/PURPLE STICKY NAVIGATION
   ========================================================= */

.slogit-topnav {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    min-height: 76px;
    padding: 12px 22px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(215, 173, 85, 0.18), transparent 32%),
        linear-gradient(135deg, #16091f, #251135 55%, #120717);
    border-bottom: 2px solid rgba(215, 173, 85, 0.72);
    box-shadow:
        0 6px 0 rgba(215, 173, 85, 0.12),
        0 18px 45px rgba(0, 0, 0, 0.45);
}

.slogit-nav-left,
.slogit-nav-right,
.slogit-main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slogit-main-nav {
    justify-content: center;
    flex-wrap: wrap;
}

.slogit-brand,
.slogit-main-nav a,
.slogit-login,
.slogit-join,
.slogit-back-btn,
.slogit-theme-toggle {
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(215, 173, 85, 0.34);
    background: rgba(255, 245, 220, 0.07);
    color: #f8e7bd;
    padding: 9px 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        color 180ms ease;
}

.slogit-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.slogit-brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #1b1006;
    background: linear-gradient(135deg, #ffe2a0, #c99f47);
    box-shadow: 0 0 28px rgba(215, 173, 85, 0.45);
}

.slogit-brand:hover,
.slogit-main-nav a:hover,
.slogit-login:hover,
.slogit-join:hover,
.slogit-back-btn:hover,
.slogit-theme-toggle:hover {
    transform: translateY(-3px);
    color: #fff8e8;
    border-color: rgba(255, 226, 160, 0.95);
    background: rgba(255, 226, 160, 0.14);
    box-shadow:
        0 0 22px rgba(215, 173, 85, 0.34),
        0 18px 34px rgba(0, 0, 0, 0.35);
}

.slogit-join {
    color: #1b1006;
    font-weight: 700;
    background: linear-gradient(135deg, #ffe2a0, #c99f47);
}

.slogit-join:hover {
    color: #1b1006;
    filter: brightness(1.08);
}

.slogit-login {
    border-color: rgba(185, 147, 255, 0.38);
}

.slogit-theme-toggle,
.slogit-back-btn {
    appearance: none;
}

@media (max-width: 1050px) {
    .slogit-topnav {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .slogit-nav-left,
    .slogit-nav-right,
    .slogit-main-nav {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 520px) {
    .slogit-topnav {
        padding: 10px 12px;
    }

    .slogit-brand,
    .slogit-main-nav a,
    .slogit-login,
    .slogit-join,
    .slogit-back-btn,
    .slogit-theme-toggle {
        font-size: 0.84rem;
        padding: 8px 10px;
    }
}