/* witch-trial.com - Holographic Historical Archive */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --parchment-light: #F0E0C8;
    --flame-gold: #E0A040;
    --dark-parchment: #1A1008;
    --text-body: #C8B090;
    --aurora-blue: #80A0E0;
    --burnt-orange: #C87030;
    --anno-muted: #A08060;
    --warm-dark: #2A1A10;
}

body {
    background: var(--dark-parchment);
    color: var(--parchment-light);
    font-family: 'Courier Prime', monospace;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
    overflow-x: hidden;
}

/* Aurora Background */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(200, 112, 48, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 70% at 80% 60%, rgba(128, 160, 224, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 90% 40% at 50% 80%, rgba(224, 160, 64, 0.04) 0%, transparent 50%);
    animation: auroraDrift 30s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
    0% { background-position: 0% 0%, 100% 100%, 50% 50%; }
    50% { background-position: 30% 20%, 70% 30%, 20% 80%; }
    100% { background-position: 60% 40%, 40% 60%, 80% 20%; }
}

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}
.hero-card {
    text-align: center;
}

/* Trial Title (typed) */
.trial-title {
    font-family: 'Courier Prime', monospace;
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--parchment-light);
    margin-bottom: 0.5rem;
    min-height: 1.2em;
}
.trial-sub {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--anno-muted);
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.trial-sub.visible { opacity: 1; }

/* Holographic Card */
.holo-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
    border: 2px solid transparent;
    border-radius: 4px;
    background-clip: padding-box;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.holo-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.holo-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 6px;
    padding: 2px;
    background: conic-gradient(from var(--holo-angle, 0deg), var(--burnt-orange), var(--flame-gold), var(--aurora-blue), var(--burnt-orange));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.holo-card.visible::before {
    opacity: 1;
    animation: holoRotate 3s linear infinite;
}
@keyframes holoRotate {
    to { --holo-angle: 360deg; }
}
@property --holo-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Archive Blocks */
.archive-block {
    position: relative;
    z-index: 1;
    padding: 0 2rem;
    margin-bottom: clamp(3rem, 5vh, 6rem);
}

/* Record Content */
.record-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--flame-gold);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.75rem;
}
.record-title {
    font-family: 'Courier Prime', monospace;
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--parchment-light);
    margin-bottom: 0.75rem;
}
.record-body {
    font-family: 'Courier Prime', monospace;
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}
.record-anno {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--anno-muted);
    letter-spacing: 0.05em;
    display: block;
}

/* Dividers */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
    position: relative;
    z-index: 1;
}
.divider-icon {
    width: 24px;
    height: 24px;
    color: var(--burnt-orange);
    opacity: 0.6;
    animation: iconPulse 2s ease-in-out infinite;
}
@keyframes iconPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Icon Navigation */
.icon-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background: rgba(26, 16, 8, 0.9);
    backdrop-filter: blur(8px);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.icon-nav.visible {
    transform: translateY(0);
}
.nav-icon {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--flame-gold);
    padding: 6px;
    border-radius: 50%;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.3s ease;
}
.nav-icon svg {
    width: 100%;
    height: 100%;
}
.nav-icon:hover {
    transform: scale(1.2);
    background: conic-gradient(from 0deg, rgba(200, 112, 48, 0.2), rgba(224, 160, 64, 0.2), rgba(128, 160, 224, 0.2), rgba(200, 112, 48, 0.2));
}
.nav-icon.active {
    transform: scale(1.2);
}
.nav-icon.dimmed {
    opacity: 0.5;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem 6rem;
}
.footer-card {
    text-align: center;
}
.footer-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--anno-muted);
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .archive-block { padding: 0 1.25rem; }
    .holo-card { padding: 18px; }
    .icon-nav { gap: 1rem; padding: 0.75rem 1rem; }
}
