/* The RADIX Oracle — page styles */
:root {
    --black: #080808;
    --white: rgba(255,255,255,0.92);
    --w-90: rgba(255,255,255,0.9);
    --w-65: rgba(255,255,255,0.65);
    --w-45: rgba(255,255,255,0.45);
    --w-25: rgba(255,255,255,0.25);
    --w-08: rgba(255,255,255,0.08);
}
html { scroll-behavior: smooth; }
body {
    background: var(--black);
    color: var(--w-90);
    font-family: 'EB Garamond', Georgia, serif;
    margin: 0;
    min-height: 100vh;
    position: relative;
}
body::before {
    content: ''; position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0; opacity: 0.55; mix-blend-mode: overlay;
}
.vignette {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(0,0,0,0.75) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(0,0,0,0.75) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(0,0,0,0.75) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(0,0,0,0.75) 0%, transparent 50%);
}
a { color: inherit; }
.oracle-return {
    position: fixed; top: 1.5rem; left: 1.75rem; z-index: 100;
    font-style: italic; font-size: 0.92rem; color: var(--w-45);
    text-decoration: none; border-bottom: 1px solid var(--w-08);
    padding-bottom: 2px; transition: all 0.4s ease;
}
.oracle-return:hover { color: var(--white); border-bottom-color: rgba(255,255,255,0.4); }

/* ── single card page ────────────────────────────────────────────── */
.oracle-card-page {
    max-width: 680px; margin: 0 auto; padding: 7rem 2rem 5rem;
    position: relative; z-index: 2;
}
.oracle-card-hero { text-align: center; margin-bottom: 5rem; }
.oracle-eyebrow {
    font-family: 'Inter', sans-serif; font-size: 0.6rem;
    letter-spacing: 0.38em; text-transform: uppercase;
    color: var(--w-45); margin-bottom: 2rem;
}
.oracle-card-visual {
    max-width: 320px; margin: 0 auto 2.5rem;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
    animation: cardHover 6s ease-in-out infinite;
}
.oracle-card-visual img { width: 100%; height: auto; display: block; pointer-events: none; }
@keyframes cardHover {
    0%, 100% { transform: translateY(0) rotate(-0.2deg); }
    50%      { transform: translateY(-12px) rotate(0.2deg); }
}
.oracle-card-name {
    font-family: 'EB Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-style: italic; font-weight: 400;
    color: rgba(255,255,255,0.96); line-height: 1.1;
    margin: 0 0 1.5rem;
}
.oracle-card-essence {
    font-size: 1.25rem; font-style: italic;
    color: rgba(255,255,255,0.75);
    margin: 0 auto 1rem; max-width: 520px; line-height: 1.6;
}
.oracle-card-hidden {
    font-size: 1rem; color: var(--w-45);
    margin: 0; letter-spacing: 0.02em;
}

/* ── sections ───────────────────────────────────────────────────── */
.oracle-section { margin: 3.5rem 0; }
.oracle-section-label {
    font-family: 'Inter', sans-serif; font-size: 0.58rem;
    letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--w-45); margin: 0 0 1.25rem;
}
.oracle-section-body {
    font-size: 1.12rem; line-height: 1.85;
    color: rgba(255,255,255,0.78); margin: 0;
}
.oracle-section-body a {
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.25);
    text-decoration: none; padding-bottom: 1px;
    transition: border-color 0.3s ease;
}
.oracle-section-body a:hover { border-bottom-color: rgba(255,255,255,0.7); }

/* ── book quote ─────────────────────────────────────────────────── */
.oracle-section-book .oracle-quote {
    border-left: 1px solid rgba(255,255,255,0.18);
    padding: 0.5rem 0 0.5rem 1.5rem; margin: 1.5rem 0;
    font-style: italic;
}
.oracle-quote p {
    font-size: 1.18rem; line-height: 1.7;
    color: rgba(255,255,255,0.85); margin: 0 0 0.6rem;
}
.oracle-quote cite {
    font-style: normal; font-size: 0.85rem;
    color: var(--w-45); letter-spacing: 0.04em;
}
.oracle-quote-pending {
    font-size: 1rem; color: var(--w-25);
    border: 1px dashed rgba(255,255,255,0.12);
    padding: 1rem 1.5rem;
}

/* ── adjacent cards ─────────────────────────────────────────────── */
.oracle-adjacent { margin: 4rem 0; }
.oracle-adj-row {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.oracle-adj-card {
    text-decoration: none; padding: 1.25rem 1.25rem 1.5rem;
    border: 1px solid var(--w-08);
    background: rgba(255,255,255,0.012);
    transition: all 0.4s ease;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.oracle-adj-card:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.03);
}
.oracle-adj-id {
    font-family: 'Inter', sans-serif; font-size: 0.55rem;
    letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--w-45);
}
.oracle-adj-name {
    font-family: 'EB Garamond', serif; font-style: italic;
    font-size: 1.15rem; color: rgba(255,255,255,0.92);
}
.oracle-adj-quote {
    font-family: 'EB Garamond', serif;
    font-size: 0.92rem; font-style: italic; color: var(--w-45);
    line-height: 1.5;
}

/* ── CTA ────────────────────────────────────────────────────────── */
.oracle-cta-block {
    text-align: center; margin-top: 5rem;
    padding-top: 3.5rem; border-top: 1px solid var(--w-08);
}
.oracle-cta-lede {
    font-style: italic; color: var(--w-65);
    font-size: 1.15rem; line-height: 1.7; margin: 0 0 2rem;
}
.oracle-cta {
    display: inline-block; font-family: 'Inter', sans-serif;
    font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
    text-decoration: none; padding: 1.05rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.42);
    color: rgba(255,255,255,0.92);
    transition: all 0.4s ease;
}
.oracle-cta:hover { border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.05); }

/* ── footer ─────────────────────────────────────────────────────── */
.oracle-footer {
    text-align: center; padding: 4rem 2rem 3rem;
    color: var(--w-25); font-size: 0.85rem;
    position: relative; z-index: 2;
}
.oracle-footer a {
    color: var(--w-45); text-decoration: none;
    border-bottom: 1px solid var(--w-08); transition: all 0.3s ease;
}
.oracle-footer a:hover { color: var(--white); border-bottom-color: var(--w-25); }
.oracle-foot-copy {
    margin-top: 1.25rem; font-size: 0.7rem;
    letter-spacing: 0.02em; color: var(--w-25);
}

/* ── hub ────────────────────────────────────────────────────────── */
.oracle-hub {
    max-width: 1180px; margin: 0 auto; padding: 6rem 2rem 4rem;
    position: relative; z-index: 2;
}
.oracle-hub-head { text-align: center; margin-bottom: 6rem; }
.oracle-hub-head h1 {
    font-family: 'EB Garamond', serif; font-style: italic;
    font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: rgba(255,255,255,0.95); margin: 0.75rem 0 1.75rem;
    line-height: 1.2;
}
.oracle-hub-sub {
    font-style: italic; color: var(--w-65);
    font-size: 1.18rem; max-width: 580px; margin: 0 auto;
    line-height: 1.7;
}
.oracle-domain { margin: 5rem 0 6rem; }
.oracle-domain-head {
    text-align: center; margin-bottom: 2.5rem;
    padding-bottom: 2rem; border-bottom: 1px solid var(--w-08);
}
.oracle-domain-head h2 {
    font-family: 'EB Garamond', serif; font-style: italic;
    font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: rgba(255,255,255,0.92); margin: 0 0 1rem;
}
.oracle-domain-head p {
    color: var(--w-65); font-size: 1.05rem; max-width: 520px;
    margin: 0 auto 1.25rem; line-height: 1.6;
}
.oracle-domain-link {
    font-family: 'Inter', sans-serif; font-size: 0.66rem;
    letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--w-45); text-decoration: none;
    border-bottom: 1px solid var(--w-08); padding-bottom: 2px;
    transition: all 0.4s ease;
}
.oracle-domain-link:hover { color: var(--white); border-bottom-color: var(--w-45); }
.oracle-domain-grid {
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.oracle-hub-card {
    text-decoration: none; text-align: center;
    padding: 1rem; border: 1px solid transparent;
    transition: all 0.4s ease; display: flex; flex-direction: column;
    align-items: center; gap: 0.6rem;
}
.oracle-hub-card:hover {
    border-color: var(--w-08); background: rgba(255,255,255,0.012);
    transform: translateY(-3px);
}
.oracle-hub-card img {
    width: 100%; max-width: 150px; height: auto; display: block;
    filter: drop-shadow(0 12px 22px rgba(0,0,0,0.5));
    pointer-events: none;
}
.oracle-hub-id {
    font-family: 'Inter', sans-serif; font-size: 0.52rem;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--w-45);
}
.oracle-hub-name {
    font-family: 'EB Garamond', serif; font-style: italic;
    font-size: 1rem; color: rgba(255,255,255,0.85); line-height: 1.3;
}
.oracle-hub-quote {
    font-family: 'EB Garamond', serif; font-style: italic;
    font-size: 0.85rem; color: var(--w-45);
    line-height: 1.45; margin-top: 0.25rem;
}
.oracle-subhub-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Elemental hero block — featured card above each phase's archetype grid.
   Larger, side-by-side, more visual weight. The phase essence presented as
   the section hero rather than first in the grid. */
.oracle-elemental-hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    text-decoration: none;
    max-width: 720px;
    margin: 0 auto 3.5rem;
    padding: 2.5rem 3rem;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,210,160,0.04) 0%, transparent 65%),
        rgba(255,255,255,0.012);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.oracle-elemental-hero:hover {
    border-color: rgba(255,200,140,0.32);
    transform: translateY(-3px);
}
.oracle-elemental-visual {
    width: 200px;
    flex-shrink: 0;
}
.oracle-elemental-visual img {
    width: 100%; height: auto; display: block;
    pointer-events: none;
}
.oracle-elemental-copy {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.oracle-elemental-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: rgba(255, 210, 160, 0.7);
}
.oracle-elemental-name {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 2.2rem;
    color: rgba(255,255,255,0.97);
    line-height: 1.1;
    margin: 0;
}
.oracle-elemental-quote {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    margin: 0;
    max-width: 340px;
}
.oracle-elemental-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
    margin-top: 0.5rem;
    transition: color 0.4s ease;
}
.oracle-elemental-hero:hover .oracle-elemental-link {
    color: rgba(255, 220, 180, 1);
}
.oracle-domain-grid-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--w-45);
    text-align: center;
    margin: 0 auto 1.75rem;
}

@media (max-width: 640px) {
    .oracle-elemental-hero {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.75rem 1.5rem;
        text-align: center;
    }
    .oracle-elemental-visual { width: 160px; }
    .oracle-elemental-name { font-size: 1.7rem; }
    .oracle-elemental-copy { align-items: center; }
}

/* Elemental hub-cards — the phase essence, marked distinct */
.oracle-hub-card-elemental .oracle-hub-id {
    color: rgba(255, 220, 180, 0.62);
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.34em;
}
.oracle-hub-card-elemental .oracle-hub-name {
    color: rgba(255,255,255,0.95);
    font-weight: 500;
}
.oracle-hub-card-elemental img {
    filter: drop-shadow(0 16px 28px rgba(0,0,0,0.6))
            drop-shadow(0 6px 12px rgba(255, 195, 135, 0.18));
}

/* DRAFT badge — for unflagged-but-pending content */
.oracle-draft-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 200, 140, 0.65);
    border: 1px solid rgba(255, 200, 140, 0.32);
    padding: 0.35rem 0.85rem;
    margin: 0.5rem 0 1.25rem;
    background: rgba(255, 200, 140, 0.04);
}

/* Find-your-card hook on the hub */
.oracle-hub-find {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    text-decoration: none;
    margin: 2.5rem auto 0;
    padding: 1.75rem 2.25rem;
    border: 1px solid var(--w-08);
    background: rgba(255,255,255,0.012);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 520px;
    text-align: left;
}
.oracle-hub-find:hover {
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.025);
    transform: translateY(-3px);
}
.oracle-hub-find-back {
    width: 92px; flex-shrink: 0;
    display: block;
    filter: drop-shadow(0 14px 22px rgba(0,0,0,0.55)) drop-shadow(0 5px 10px rgba(0,0,0,0.35));
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.oracle-hub-find:hover .oracle-hub-find-back { transform: rotate(-2.5deg) translateY(-4px); }
.oracle-hub-find-back img { width: 100%; height: auto; display: block; pointer-events: none; }
.oracle-hub-find-copy {
    display: flex; flex-direction: column; gap: 0.5rem;
}
.oracle-hub-find-q {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 1.12rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.4;
}
.oracle-hub-find-cta {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
    transition: color 0.4s ease;
}
.oracle-hub-find:hover .oracle-hub-find-cta { color: rgba(255,255,255,1); }
.oracle-hub-find-meta {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.42);
    letter-spacing: 0.02em;
}

/* Pre-footer Profile CTA — persistent across non-homepage pages */
.oracle-pre-footer-cta {
    max-width: 640px;
    margin: 0 auto 3.5rem;
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--w-08);
    border-bottom: 1px solid var(--w-08);
    text-align: center;
}
.oracle-pre-cta-q {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--w-65);
    margin: 0 0 1.5rem;
    line-height: 1.6;
}
.oracle-pre-cta-link {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.9rem 2rem;
    border: 1px solid rgba(255,255,255,0.42);
    color: var(--white);
    transition: all 0.4s ease;
}
.oracle-pre-cta-link:hover {
    border-color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.04);
}

@media (max-width: 560px) {
    .oracle-hub-find { flex-direction: column; text-align: center; gap: 1.25rem; padding: 1.5rem; }
    .oracle-hub-find-back { width: 80px; }
    .oracle-hub-find-copy { align-items: center; }
}

@media (max-width: 640px) {
    .oracle-card-page { padding: 5rem 1.25rem 3rem; }
    .oracle-card-visual { max-width: 240px; }
    .oracle-card-name { font-size: 2rem; }
    .oracle-hub-head h1 { font-size: 2rem; }
}
