/* ═══════════════════════════════════════════════════════════════
   DUMBPHONE DELIVERANCE — Divine Computing Stylesheet
   Color Palette:
   - Earthen Brown: #85756e
   - Sacred Teal: #42765e
   - Golden Revelation: #fbb13c
   - Royal Purple: #602e5d
   - Deep Indigo: #26337d
   ═══════════════════════════════════════════════════════════════ */

:root {
    --earthen: #85756e;
    --sacred-teal: #42765e;
    --golden: #fbb13c;
    --purple: #602e5d;
    --indigo: #26337d;

    --earthen-dark: #5c4f4a;
    --sacred-teal-dark: #2d5242;
    --golden-light: #fcc565;
    --purple-deep: #3d1c3a;
    --indigo-deep: #1a2254;

    --parchment: #f5f0e8;
    --ink: #1a1a1a;
    --ghost: rgba(251, 177, 60, 0.1);
}

/* ─────────────────────────────────────────────────────────────────
   COSMIC RESET
   ───────────────────────────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    font-family: 'EB Garamond', Georgia, serif;
    background: linear-gradient(180deg, var(--purple-deep) 0%, var(--indigo-deep) 50%, var(--ink) 100%);
    color: var(--parchment);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ─────────────────────────────────────────────────────────────────
   SIGIL CANVAS — Background Sacred Geometry
   ───────────────────────────────────────────────────────────────── */

#sigil-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

.veil {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(66, 118, 94, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(96, 46, 93, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(251, 177, 60, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────────
   SACRED NAVIGATION
   ───────────────────────────────────────────────────────────────── */

.sacred-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem 2rem;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--earthen-dark);
}

.nav-sigil {
    font-size: 1.5rem;
    color: var(--golden);
    text-shadow: 0 0 10px var(--golden);
    animation: pulse-glow 4s ease-in-out infinite;
}

.sacred-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.sacred-nav a {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--parchment);
    text-decoration: none;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.sacred-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--golden);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.sacred-nav a:hover {
    color: var(--golden);
}

.sacred-nav a:hover::before {
    width: 100%;
    box-shadow: 0 0 10px var(--golden);
}

/* ─────────────────────────────────────────────────────────────────
   THE ALTAR — Header
   ───────────────────────────────────────────────────────────────── */

.altar {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 4rem;
}

.divine-frame {
    position: relative;
    max-width: 800px;
    padding: 4rem;
    text-align: center;
    border: 1px solid var(--earthen);
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(5px);
}

.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--golden);
    border-style: solid;
}

.corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.title-sacred {
    font-family: 'Space Mono', monospace;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1.2;
    color: var(--parchment);
    text-shadow:
        0 0 40px rgba(251, 177, 60, 0.3),
        0 0 80px rgba(251, 177, 60, 0.1);
    margin-bottom: 2rem;
}

.title-sacred .glyph {
    display: inline-block;
    color: var(--golden);
    animation: rotate-glyph 20s linear infinite;
}

.title-sacred .glyph:last-child {
    animation-direction: reverse;
}

.invocation {
    font-size: 1.1rem;
    color: var(--earthen);
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.invocation em {
    color: var(--sacred-teal);
    font-style: italic;
}

.seal {
    display: inline-block;
    padding: 0.5rem 2rem;
    border: 1px solid var(--purple);
    position: relative;
}

.seal::before,
.seal::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple);
    font-size: 0.6rem;
}

.seal::before { left: 0.5rem; }
.seal::after { right: 0.5rem; }

.seal-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--purple);
}

/* ─────────────────────────────────────────────────────────────────
   MAIN SECTIONS
   ───────────────────────────────────────────────────────────────── */

main {
    position: relative;
    z-index: 10;
}

section {
    padding: 6rem 2rem;
}

.section-border {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    border: 1px solid var(--earthen-dark);
    background: rgba(26, 26, 26, 0.5);
    position: relative;
}

.section-border::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(251, 177, 60, 0.1);
    pointer-events: none;
}

.section-title {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--golden);
}

.section-title .numeral {
    display: block;
    font-size: 0.9rem;
    color: var(--earthen);
    margin-bottom: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────
   SANCTUM — Doctrine Section
   ───────────────────────────────────────────────────────────────── */

.doctrine p {
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
}

.drop-cap::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    padding-right: 0.5rem;
    color: var(--golden);
    font-weight: 700;
    text-shadow: 2px 2px 0 var(--purple);
}

.sacred-quote {
    margin: 2rem 0;
    padding: 2rem;
    text-align: center;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--sacred-teal);
    border-top: 1px solid var(--earthen-dark);
    border-bottom: 1px solid var(--earthen-dark);
    position: relative;
}

.quote-mark {
    color: var(--golden);
    font-size: 1.5rem;
    vertical-align: middle;
    opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────────────
   CIRCUIT — Cyberkinetic Loop Animation
   ───────────────────────────────────────────────────────────────── */

.circuit-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cyberkinetic-loop {
    width: 100%;
    max-width: 500px;
    margin-bottom: 3rem;
}

.loop-svg {
    width: 100%;
    height: auto;
}

/* Node circles */
.node-circle {
    fill: none;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.human-circle {
    stroke: var(--sacred-teal);
    filter: drop-shadow(0 0 8px rgba(66, 118, 94, 0.5));
}

.machine-circle {
    stroke: var(--purple);
    filter: drop-shadow(0 0 8px rgba(96, 46, 93, 0.5));
}

.node-text {
    font-size: 24px;
    fill: var(--golden);
    text-anchor: middle;
    dominant-baseline: middle;
}

.node-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    fill: var(--earthen);
    text-anchor: middle;
    letter-spacing: 0.15em;
}

/* Data paths */
.data-path {
    fill: none;
    stroke-width: 1.5;
    stroke-dasharray: 5 3;
}

.upload-path {
    stroke: var(--earthen-dark);
}

.download-path {
    stroke: var(--earthen-dark);
}

.path-label {
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    fill: var(--earthen-dark);
    letter-spacing: 0.1em;
}

/* Data particles */
.data-particle {
    fill: var(--golden);
    filter: drop-shadow(0 0 6px rgba(251, 177, 60, 0.8));
}

.upload-particle {
    fill: var(--sacred-teal);
    filter: drop-shadow(0 0 6px rgba(66, 118, 94, 0.8));
}

.download-particle {
    fill: var(--golden);
    filter: drop-shadow(0 0 6px rgba(251, 177, 60, 0.8));
}

/* Infinity symbol */
.infinity-symbol {
    font-size: 36px;
    fill: var(--golden);
    text-anchor: middle;
    dominant-baseline: middle;
    opacity: 0.6;
    animation: pulse-infinity 4s ease-in-out infinite;
}

@keyframes pulse-infinity {
    0%, 100% {
        opacity: 0.4;
        filter: drop-shadow(0 0 5px rgba(251, 177, 60, 0.3));
    }
    50% {
        opacity: 0.8;
        filter: drop-shadow(0 0 15px rgba(251, 177, 60, 0.6));
    }
}

/* Circuit doctrine text */
.circuit-doctrine {
    max-width: 700px;
    text-align: justify;
    hyphens: auto;
}

.circuit-doctrine p {
    margin-bottom: 1.5rem;
}

.circuit-doctrine em {
    color: var(--sacred-teal);
}

.circuit-doctrine strong {
    color: var(--golden);
}

/* Hover effects on nodes */
.human-node:hover .human-circle {
    stroke: var(--golden);
    filter: drop-shadow(0 0 15px rgba(251, 177, 60, 0.7));
}

.machine-node:hover .machine-circle {
    stroke: var(--golden);
    filter: drop-shadow(0 0 15px rgba(251, 177, 60, 0.7));
}

/* Responsive */
@media (max-width: 500px) {
    .cyberkinetic-loop {
        max-width: 100%;
    }

    .node-label {
        font-size: 8px;
    }

    .infinity-symbol {
        font-size: 28px;
    }
}

/* ─────────────────────────────────────────────────────────────────
   VESSEL — Embodied Selves
   ───────────────────────────────────────────────────────────────── */

.vessel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.selves-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.self-card {
    width: 260px;
    padding: 2rem 1.5rem;
    border: 1px solid var(--earthen-dark);
    background: rgba(26, 26, 26, 0.6);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.self-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    border: 1px solid transparent;
    transition: border-color 0.4s ease;
}

.url-self {
    border-color: var(--purple);
}

.url-self::before {
    border-color: rgba(96, 46, 93, 0.3);
}

.url-self:hover {
    border-color: var(--golden);
    box-shadow: 0 0 30px rgba(96, 46, 93, 0.3);
}

.irl-self {
    border-color: var(--sacred-teal);
}

.irl-self::before {
    border-color: rgba(66, 118, 94, 0.3);
}

.irl-self:hover {
    border-color: var(--golden);
    box-shadow: 0 0 30px rgba(66, 118, 94, 0.3);
}

.self-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--golden);
}

.self-card h3 {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--parchment);
    margin-bottom: 0.5rem;
}

.self-location {
    font-size: 0.75rem;
    color: var(--earthen-dark);
    font-style: italic;
    margin-bottom: 1rem;
}

.self-description {
    font-size: 0.85rem;
    color: var(--earthen);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.self-description em {
    color: var(--sacred-teal);
}

.self-link {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--golden);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--golden);
    transition: all 0.3s ease;
}

a.self-link:hover {
    background: var(--golden);
    color: var(--ink);
}

.link-arrow {
    margin-right: 0.5rem;
}

/* Divider between selves */
.self-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--earthen-dark);
}

.divider-symbol {
    font-size: 1rem;
    color: var(--golden);
    opacity: 0.5;
}

.divider-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--earthen-dark);
}

/* Vessel doctrine text */
.vessel-doctrine {
    max-width: 700px;
    text-align: justify;
    hyphens: auto;
}

.vessel-doctrine p {
    margin-bottom: 1.5rem;
}

.vessel-doctrine em {
    color: var(--sacred-teal);
}

.vessel-doctrine strong {
    color: var(--golden);
}

/* Responsive */
@media (max-width: 600px) {
    .selves-diagram {
        flex-direction: column;
    }

    .self-divider {
        flex-direction: row;
        gap: 1rem;
    }

    .divider-text {
        writing-mode: horizontal-tb;
    }

    .self-card {
        width: 100%;
        max-width: 280px;
    }
}

/* ─────────────────────────────────────────────────────────────────
   COORDINATES — P.K. Era Compass Graph
   ───────────────────────────────────────────────────────────────── */

.coordinates-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.compass-graph {
    width: 100%;
    max-width: 400px;
    margin-bottom: 3rem;
    padding: 1rem;
    border: 1px solid var(--earthen-dark);
    background: rgba(26, 26, 26, 0.6);
    position: relative;
}

.compass-graph::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(251, 177, 60, 0.15);
    pointer-events: none;
}

.compass-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Axis lines */
.compass-axis {
    stroke: var(--earthen);
    stroke-width: 1;
    opacity: 0.6;
}

/* Arrow markers */
.arrow-marker {
    fill: var(--earthen);
    opacity: 0.6;
}

/* Quadrant dividers - very subtle */
.quadrant-divider {
    stroke: var(--earthen-dark);
    stroke-width: 1;
    stroke-dasharray: 2 4;
    opacity: 0.3;
}

/* Axis labels - prominent and readable */
.axis-label {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    fill: var(--golden);
    text-anchor: middle;
    letter-spacing: 0.2em;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(251, 177, 60, 0.3);
}

.axis-label-left {
    text-anchor: start;
}

.axis-label-right {
    text-anchor: end;
}

/* Center point - minimal */
.center-point {
    fill: var(--earthen);
    opacity: 0.4;
}

/* Coordinates doctrine text */
.coordinates-doctrine {
    max-width: 700px;
    text-align: justify;
    hyphens: auto;
}

.coordinates-doctrine p {
    margin-bottom: 1.5rem;
}

.coordinates-doctrine em {
    color: var(--sacred-teal);
}

.coordinates-doctrine strong {
    color: var(--golden);
}

/* Quadrant descriptions grid */
.quadrant-descriptions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid var(--earthen-dark);
    background: rgba(26, 26, 26, 0.4);
}

.quadrant-desc {
    padding: 1rem;
    border-left: 2px solid var(--earthen-dark);
    transition: all 0.3s ease;
}

.quadrant-desc:hover {
    border-left-color: var(--golden);
    background: rgba(251, 177, 60, 0.03);
}

.quadrant-desc h4 {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--golden);
    margin-bottom: 0.5rem;
}

.quadrant-desc p {
    font-size: 0.85rem;
    color: var(--earthen);
    line-height: 1.5;
    margin-bottom: 0;
    text-align: left;
}

/* URL quadrants get teal accent */
.public-url,
.private-url {
    border-left-color: var(--purple);
}

.public-url:hover,
.private-url:hover {
    border-left-color: var(--golden);
}

/* IRL quadrants get sacred-teal accent */
.public-irl,
.private-irl {
    border-left-color: var(--sacred-teal);
}

.public-irl:hover,
.private-irl:hover {
    border-left-color: var(--golden);
}

/* Responsive */
@media (max-width: 600px) {
    .compass-graph {
        max-width: 100%;
    }

    .quadrant-descriptions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .axis-label {
        font-size: 11px;
        letter-spacing: 0.15em;
    }
}

/* ─────────────────────────────────────────────────────────────────
   LITURGY — Pillars
   ───────────────────────────────────────────────────────────────── */

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pillar {
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--earthen-dark);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(251, 177, 60, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pillar:hover::before {
    opacity: 1;
}

.pillar:hover {
    border-color: var(--golden);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(251, 177, 60, 0.1);
}

.pillar-icon {
    font-size: 2.5rem;
    color: var(--sacred-teal);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(66, 118, 94, 0.5);
}

.pillar h3 {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--golden);
    margin-bottom: 1rem;
}

.pillar p {
    font-size: 0.95rem;
    color: var(--earthen);
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────
   GRIMOIRE — Works/Projects
   ───────────────────────────────────────────────────────────────── */

.works {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.work-entry {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    border-left: 3px solid var(--purple);
    background: rgba(96, 46, 93, 0.1);
    transition: all 0.3s ease;
}

.work-entry:hover {
    border-left-color: var(--golden);
    background: rgba(251, 177, 60, 0.05);
}

.work-sigil {
    font-size: 2rem;
    color: var(--golden);
    min-width: 50px;
    text-align: center;
}

.work-details h4 {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--parchment);
    margin-bottom: 0.25rem;
}

.work-details h4 a {
    color: var(--parchment);
    text-decoration: none;
    transition: all 0.3s ease;
}

.work-details h4 a:hover {
    color: var(--golden);
    text-shadow: 0 0 10px rgba(251, 177, 60, 0.3);
}

.work-type {
    font-size: 0.8rem;
    color: var(--sacred-teal);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.work-details > p:not(.work-type) {
    color: var(--earthen);
    margin-bottom: 0.75rem;
}

.work-status {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--golden);
}

/* ─────────────────────────────────────────────────────────────────
   COMMUNION — Contact
   ───────────────────────────────────────────────────────────────── */

.communion-content {
    text-align: center;
}

.communion-content > p {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--earthen);
}

.contact-sigils {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-glyph {
    font-size: 2rem;
    color: var(--sacred-teal);
    transition: all 0.3s ease;
}

.contact-link:hover .contact-glyph {
    color: var(--golden);
    text-shadow: 0 0 20px var(--golden);
    transform: scale(1.2);
}

.contact-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--earthen);
}

.contact-link:hover .contact-label {
    color: var(--parchment);
}

/* ─────────────────────────────────────────────────────────────────
   AUTHOR — Special Mirror Portrait
   ───────────────────────────────────────────────────────────────── */

.author-content {
    text-align: center;
}

.special-mirror {
    position: relative;
    width: 200px;
    height: 300px;
    margin: 0 auto 3rem;
    cursor: none;
    border: 1px solid var(--earthen-dark);
    background: rgba(26, 26, 26, 0.9);
    overflow: hidden;
}

.special-mirror::before {
    content: '⟁ SCRY THE SURFACE ⟁';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--earthen-dark);
    z-index: 10;
    pointer-events: none;
}

#mirror-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mirror-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.mirror-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--golden);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 1s ease-out forwards;
}

@keyframes particle-float {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) scale(0);
    }
}

.special-mirror:hover {
    border-color: var(--golden);
    box-shadow: 0 0 30px rgba(251, 177, 60, 0.2);
}

/* Author bio styling */
.author-bio {
    max-width: 700px;
    margin: 0 auto;
    text-align: justify;
    hyphens: auto;
}

.author-bio p {
    margin-bottom: 1.5rem;
    color: var(--earthen);
}

.author-bio em {
    color: var(--sacred-teal);
}

/* ─────────────────────────────────────────────────────────────────
   PORTAL — Otherworldly Gateway
   ───────────────────────────────────────────────────────────────── */

.section-portal {
    background: radial-gradient(ellipse at center, rgba(38, 51, 125, 0.3) 0%, transparent 70%);
}

.portal-border {
    border-color: var(--indigo);
    background: rgba(26, 34, 84, 0.4);
}

.portal-border::before {
    border-color: rgba(66, 118, 94, 0.2);
}

.portal-content {
    text-align: center;
}

.portal-invocation {
    max-width: 500px;
    margin: 0 auto 3rem;
    font-style: italic;
    color: var(--sacred-teal);
    font-size: 1.1rem;
}

.portal-gateway {
    position: relative;
    width: 312px;
    height: 312px;
    margin: 0 auto 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#portal-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Concentric rings */
.portal-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid;
    pointer-events: none;
}

.outer-ring {
    width: 300px;
    height: 300px;
    margin-top: -150px;
    margin-left: -150px;
    border-color: var(--indigo);
    animation: portal-spin 30s linear infinite;
    box-shadow:
        0 0 20px rgba(38, 51, 125, 0.3),
        inset 0 0 20px rgba(38, 51, 125, 0.2);
}

.middle-ring {
    width: 225px;
    height: 225px;
    margin-top: -113px;
    margin-left: -113px;
    border-color: var(--purple);
    animation: portal-spin 20s linear infinite reverse;
    box-shadow:
        0 0 15px rgba(96, 46, 93, 0.4),
        inset 0 0 15px rgba(96, 46, 93, 0.2);
}

.inner-ring {
    width: 150px;
    height: 150px;
    margin-top: -75px;
    margin-left: -75px;
    border-color: var(--sacred-teal);
    animation: portal-spin 15s linear infinite;
    box-shadow:
        0 0 10px rgba(66, 118, 94, 0.5),
        inset 0 0 10px rgba(66, 118, 94, 0.3);
}

@keyframes portal-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Center link */
.portal-link {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 177, 60, 0.1) 0%, rgba(26, 26, 26, 0.9) 70%);
    border: 1px solid var(--golden);
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow:
        0 0 20px rgba(251, 177, 60, 0.2),
        inset 0 0 20px rgba(251, 177, 60, 0.1);
}

.portal-link:hover {
    background: radial-gradient(circle, rgba(251, 177, 60, 0.3) 0%, rgba(26, 26, 26, 0.8) 70%);
    box-shadow:
        0 0 40px rgba(251, 177, 60, 0.4),
        0 0 60px rgba(251, 177, 60, 0.2),
        inset 0 0 30px rgba(251, 177, 60, 0.2);
    transform: scale(1.1);
}

.portal-symbol {
    font-size: 2.25rem;
    color: var(--golden);
    text-shadow: 0 0 10px var(--golden);
    animation: portal-pulse 3s ease-in-out infinite;
}

.portal-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--golden);
    margin-top: 0.25rem;
}

@keyframes portal-pulse {
    0%, 100% {
        opacity: 0.8;
        text-shadow: 0 0 10px var(--golden);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 20px var(--golden), 0 0 30px var(--golden);
    }
}

.portal-warning {
    max-width: 400px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--earthen-dark);
    font-style: italic;
}

/* Portal hover effects on rings */
.portal-gateway:hover .outer-ring {
    border-color: var(--golden);
    box-shadow:
        0 0 30px rgba(251, 177, 60, 0.3),
        inset 0 0 30px rgba(251, 177, 60, 0.1);
}

.portal-gateway:hover .middle-ring {
    border-color: var(--golden-light);
    box-shadow:
        0 0 25px rgba(251, 177, 60, 0.4),
        inset 0 0 25px rgba(251, 177, 60, 0.2);
}

.portal-gateway:hover .inner-ring {
    border-color: var(--golden);
    box-shadow:
        0 0 20px rgba(251, 177, 60, 0.5),
        inset 0 0 20px rgba(251, 177, 60, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
    .portal-gateway {
        width: 200px;
        height: 200px;
    }

    .outer-ring {
        width: 190px;
        height: 190px;
        margin-top: -95px;
        margin-left: -95px;
    }

    .middle-ring {
        width: 140px;
        height: 140px;
        margin-top: -70px;
        margin-left: -70px;
    }

    .inner-ring {
        width: 90px;
        height: 90px;
        margin-top: -45px;
        margin-left: -45px;
    }

    .portal-link {
        width: 60px;
        height: 60px;
    }

    .portal-symbol {
        font-size: 1.4rem;
    }
}

/* ─────────────────────────────────────────────────────────────────
   COLOPHON — Footer
   ───────────────────────────────────────────────────────────────── */

.colophon {
    position: relative;
    z-index: 10;
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--earthen-dark);
}

.footer-ornament {
    color: var(--earthen-dark);
    margin: 1rem 0;
    letter-spacing: 0.5em;
}

.colophon p {
    font-size: 0.9rem;
    color: var(--earthen);
    margin: 0.5rem 0;
}

.colophon .year {
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.1em;
}

.blessing {
    font-style: italic;
    color: var(--sacred-teal);
}

.contact-email {
    margin: 1rem 0;
}

.contact-email a {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--sacred-teal);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.contact-email a:hover {
    color: var(--golden);
    text-shadow: 0 0 10px rgba(251, 177, 60, 0.5);
}

.authorship {
    font-size: 0.75rem;
    color: var(--earthen-dark);
    margin-top: 1.5rem;
    line-height: 1.8;
}

.authorship code {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--purple);
    background: rgba(96, 46, 93, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
}

/* Sacred Citations */
.sacred-citations {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--earthen-dark);
    background: rgba(26, 26, 26, 0.5);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.citations-header {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--earthen);
    margin-bottom: 1rem;
}

.citations-list {
    list-style: none;
    text-align: left;
}

.citations-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    transition: background 0.3s ease;
}

.citations-list li:hover {
    background: rgba(251, 177, 60, 0.05);
}

.citation-sigil {
    font-size: 1rem;
    color: var(--golden);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.citations-list a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: all 0.3s ease;
}

.citation-type {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--sacred-teal);
    text-transform: uppercase;
}

.citation-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--parchment);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.citations-list a:hover .citation-title {
    color: var(--golden);
    text-shadow: 0 0 10px rgba(251, 177, 60, 0.3);
}

.citations-list a:hover .citation-type {
    color: var(--golden-light);
}

/* ─────────────────────────────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────────────────────────────── */

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--golden);
    }
    50% {
        opacity: 0.7;
        text-shadow: 0 0 20px var(--golden), 0 0 40px var(--golden);
    }
}

@keyframes rotate-glyph {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ─────────────────────────────────────────────────────────────────
   SACRED SCROLLBAR
   ───────────────────────────────────────────────────────────────── */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ink);
}

::-webkit-scrollbar-thumb {
    background: var(--earthen-dark);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--golden);
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE RITES
   ───────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .sacred-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-sigil {
        display: none;
    }

    .sacred-nav ul {
        gap: 1rem;
    }

    .divine-frame {
        padding: 2rem;
    }

    .section-border {
        padding: 2rem 1.5rem;
    }

    .work-entry {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .contact-sigils {
        flex-direction: column;
        gap: 2rem;
    }
}

/* ─────────────────────────────────────────────────────────────────
   SELECTION BLESSING
   ───────────────────────────────────────────────────────────────── */

::selection {
    background: var(--golden);
    color: var(--ink);
}

::-moz-selection {
    background: var(--golden);
    color: var(--ink);
}

/* ─────────────────────────────────────────────────────────────────
   OFFERING WIDGET — Buy Me a Coffee
   ───────────────────────────────────────────────────────────────── */

.offering-widget {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 1000;
    font-family: 'EB Garamond', serif;
}

.offering-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--purple);
    background: rgba(26, 26, 26, 0.95);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 15px rgba(96, 46, 93, 0.3),
        inset 0 0 10px rgba(96, 46, 93, 0.1);
}

.offering-toggle:hover {
    border-color: var(--golden);
    box-shadow:
        0 0 25px rgba(251, 177, 60, 0.3),
        inset 0 0 15px rgba(251, 177, 60, 0.1);
    transform: scale(1.05);
}

.offering-icon {
    font-size: 1.5rem;
    color: var(--purple);
    transition: all 0.3s ease;
}

.offering-toggle:hover .offering-icon {
    color: var(--golden);
    text-shadow: 0 0 10px var(--golden);
}

.offering-widget.active .offering-icon {
    color: var(--golden);
}

.offering-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 280px;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid var(--purple);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow:
        0 0 30px rgba(96, 46, 93, 0.3),
        inset 0 0 20px rgba(96, 46, 93, 0.05);
}

.offering-widget.active .offering-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.offering-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--earthen-dark);
}

.offering-glyph {
    color: var(--purple);
    font-size: 0.8rem;
}

.offering-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--parchment);
}

.offering-message {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--earthen);
    margin-bottom: 1.25rem;
    text-align: center;
}

.offering-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(189, 95, 255, 0.2) 0%, rgba(96, 46, 93, 0.3) 100%);
    border: 1px solid var(--purple);
    text-decoration: none;
    transition: all 0.3s ease;
}

.offering-link:hover {
    background: linear-gradient(135deg, rgba(251, 177, 60, 0.2) 0%, rgba(189, 95, 255, 0.2) 100%);
    border-color: var(--golden);
    box-shadow: 0 0 20px rgba(251, 177, 60, 0.2);
}

.offering-symbol {
    font-size: 1.2rem;
}

.offering-cta {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--parchment);
}

.offering-link:hover .offering-cta {
    color: var(--golden);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .offering-panel {
        width: 250px;
        right: -5px;
    }

    .offering-message {
        font-size: 0.8rem;
    }
}

/* ─────────────────────────────────────────────────────────────────
   DISCORD WIDGET — Congregation Portal
   ───────────────────────────────────────────────────────────────── */

.discord-widget {
    position: fixed;
    bottom: 18px;
    left: 18px;
    z-index: 1000;
    font-family: 'EB Garamond', serif;
}

.discord-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--indigo);
    background: rgba(26, 26, 26, 0.95);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 15px rgba(38, 51, 125, 0.3),
        inset 0 0 10px rgba(38, 51, 125, 0.1);
}

.discord-toggle:hover {
    border-color: var(--sacred-teal);
    box-shadow:
        0 0 25px rgba(66, 118, 94, 0.3),
        inset 0 0 15px rgba(66, 118, 94, 0.1);
    transform: scale(1.05);
}

.discord-icon {
    font-size: 1.5rem;
    color: var(--indigo);
    transition: all 0.3s ease;
}

.discord-toggle:hover .discord-icon {
    color: var(--sacred-teal);
    text-shadow: 0 0 10px var(--sacred-teal);
}

.discord-widget.active .discord-icon {
    color: var(--sacred-teal);
}

.discord-panel {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 280px;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid var(--indigo);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow:
        0 0 30px rgba(38, 51, 125, 0.3),
        inset 0 0 20px rgba(38, 51, 125, 0.05);
}

.discord-widget.active .discord-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.discord-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--earthen-dark);
}

.discord-glyph {
    color: var(--indigo);
    font-size: 0.8rem;
}

.discord-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--parchment);
}

.discord-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.discord-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sacred-teal);
    box-shadow: 0 0 8px var(--sacred-teal);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.discord-status-text {
    font-size: 0.8rem;
    color: var(--earthen);
    font-style: italic;
}

.discord-members {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(38, 51, 125, 0.1);
    border: 1px solid rgba(38, 51, 125, 0.2);
}

.discord-members::-webkit-scrollbar {
    width: 4px;
}

.discord-members::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
}

.discord-members::-webkit-scrollbar-thumb {
    background: var(--indigo);
    border-radius: 2px;
}

.discord-member {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.75rem;
    color: var(--parchment);
}

.discord-member-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--earthen-dark);
}

.discord-member-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-member-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.discord-member-status.online {
    background: var(--sacred-teal);
    box-shadow: 0 0 5px var(--sacred-teal);
}

.discord-member-status.idle {
    background: var(--golden);
    box-shadow: 0 0 5px var(--golden);
}

.discord-member-status.dnd {
    background: #ed4245;
    box-shadow: 0 0 5px #ed4245;
}

.discord-join-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(38, 51, 125, 0.3) 0%, rgba(66, 118, 94, 0.2) 100%);
    border: 1px solid var(--indigo);
    text-decoration: none;
    transition: all 0.3s ease;
}

.discord-join-link:hover {
    background: linear-gradient(135deg, rgba(66, 118, 94, 0.3) 0%, rgba(38, 51, 125, 0.2) 100%);
    border-color: var(--sacred-teal);
    box-shadow: 0 0 20px rgba(66, 118, 94, 0.2);
}

.discord-join-symbol {
    font-size: 1rem;
    color: var(--sacred-teal);
}

.discord-join-cta {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--parchment);
}

.discord-join-link:hover .discord-join-cta {
    color: var(--sacred-teal);
}

.discord-empty {
    text-align: center;
    font-size: 0.75rem;
    color: var(--earthen-dark);
    font-style: italic;
    padding: 1rem 0;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .discord-panel {
        width: 250px;
        left: -5px;
    }

    .discord-members {
        max-height: 120px;
    }
}
