/* okurairi.com - Dark-Mode Archival Noir */
/* Colors: #0C0C0C, #6A8A4A, #A43A2A, #D4A040, #2A2A2A, #D8D0C4, #6A6458, #161616 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: #D8D0C4;
    background-color: #0C0C0C;
    overflow-x: hidden;
}

.vault-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0C0C0C;
    z-index: -3;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    z-index: -2;
    pointer-events: none;
}

/* Shelf Lines */
.shelf-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shelf-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(106, 100, 88, 0.02);
    left: 0;
}

.shelf-line:nth-child(1) { top: 20%; }
.shelf-line:nth-child(2) { top: 40%; }
.shelf-line:nth-child(3) { top: 60%; }
.shelf-line:nth-child(4) { top: 80%; }
.shelf-line:nth-child(5) { top: 95%; }

/* Dust Container */
.dust-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.dust-particle {
    position: absolute;
    border-radius: 50%;
    background: #D4A040;
    pointer-events: none;
    opacity: 0;
}

/* Archive Corridor */
.archive-corridor {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Archive Sections */
.archive-section {
    padding: 100px 0;
    position: relative;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1s ease, transform 1s ease;
}

.archive-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero */
.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
}

.hero-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: #D4A040;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    opacity: 0;
    animation: letterAssemble 1.5s ease 0.5s forwards;
}

.hero-mono {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: #6A6458;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
}

/* Archive Cards */
.archive-card {
    background: #161616;
    border: 1px solid rgba(106, 100, 88, 0.12);
    border-radius: 4px;
    padding: 32px;
    position: relative;
}

.archive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #D4A040, #A43A2A);
    border-radius: 2px 0 0 2px;
    opacity: 0.4;
}

/* Archive Labels */
.archive-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.label-code {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: #6A6458;
}

.label-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

.status-shelved {
    color: #D4A040;
    background: rgba(212, 160, 64, 0.1);
}

.status-abandoned {
    color: #A43A2A;
    background: rgba(164, 58, 42, 0.1);
}

.status-forgotten {
    color: #6A6458;
    background: rgba(106, 100, 88, 0.1);
}

/* Archive Heading */
.archive-heading {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #D8D0C4;
    margin-bottom: 12px;
}

/* Archive Body */
.archive-body {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    line-height: 1.85;
    color: #6A6458;
    margin-bottom: 16px;
}

/* Archive Meta */
.archive-meta {
    display: flex;
    gap: 24px;
    padding-top: 12px;
    border-top: 1px solid rgba(106, 100, 88, 0.08);
}

.meta-item {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #6A6458;
}

/* Collage Fragments */
.collage-fragment {
    position: absolute;
    border: 1px solid rgba(212, 160, 64, 0.15);
    pointer-events: none;
}

.frag-1 {
    width: 80px;
    height: 120px;
    right: -40px;
    top: 30%;
    transform: rotate(3deg);
}

.frag-2 {
    width: 60px;
    height: 90px;
    left: -30px;
    top: 50%;
    transform: rotate(-4deg);
}

.frag-3 {
    width: 70px;
    height: 100px;
    right: -35px;
    top: 20%;
    transform: rotate(5deg);
}

/* Leaf SVGs */
.leaf-svg {
    position: absolute;
    pointer-events: none;
}

.leaf-1 {
    width: 40px;
    height: 60px;
    right: -60px;
    bottom: 20%;
}

.leaf-2 {
    width: 35px;
    height: 50px;
    left: -50px;
    top: 30%;
}

.leaf-3 {
    width: 30px;
    height: 45px;
    right: -45px;
    top: 40%;
}

/* Keyframes */
@keyframes letterAssemble {
    0% { opacity: 0; filter: blur(8px); transform: scale(1.1); }
    100% { opacity: 1; filter: blur(0); transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dustFloat {
    0% { transform: translate(0, 0); opacity: 0; }
    20% { opacity: 0.3; }
    80% { opacity: 0.15; }
    100% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .archive-corridor {
        padding: 0 16px;
    }

    .archive-section {
        padding: 60px 0;
    }

    .archive-card {
        padding: 20px;
    }

    .collage-fragment {
        display: none;
    }

    .leaf-svg {
        display: none;
    }
}
