/* ============================================
   digitaltelomere.com - Archival Vault Aesthetic
   ============================================ */

/* --- Palette ---
   Vault:         #1a1510
   Chamber:       #241e16
   Amber:         #c4963a
   Gold:          #e8c468
   Preservation:  #2a6b4a
   Degraded:      #8a6040
   Text:          #d4c4a8
   Muted:         #7a6a54
   Deep Border:   #4a3a28
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Old Standard TT', serif;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
    color: #d4c4a8;
    background: #1a1510;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Cardo', serif;
    font-weight: 700;
    line-height: 1.3;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    color: #e8c468;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #c4963a;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

em {
    font-style: italic;
    color: #e8c468;
}

/* ============================================
   Vault Door Hero
   ============================================ */

#vault-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1510;
    position: relative;
}

.vault-frame {
    border: 24px solid #241e16;
    background: #1a1510;
    padding: 0;
    position: relative;
    width: 80%;
    max-width: 900px;
    box-shadow:
        inset 0 0 60px rgba(196, 150, 58, 0.04),
        0 0 80px rgba(26, 21, 16, 0.8);
}

.vault-window {
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    padding: 80px 60px;
    background: radial-gradient(ellipse at 50% 40%, rgba(196, 150, 58, 0.1), transparent 70%);
    transition: width 1.5s ease-out;
}

.vault-window.open {
    width: 100%;
}

.vault-title {
    font-family: 'Cardo', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: #c4963a;
    text-shadow: 0 0 40px rgba(196, 150, 58, 0.3);
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.domain-dot {
    color: #e8c468;
}

.vault-subtitle {
    font-family: 'Anonymous Pro', monospace;
    font-size: 0.85rem;
    color: #7a6a54;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0;
}

/* ============================================
   Conservation Chambers (Sections)
   ============================================ */

.chamber {
    border: 12px solid #241e16;
    position: relative;
    background: #1a1510;
    padding: 48px;
    margin: 40px auto;
    max-width: 1000px;
    width: 90%;
    background-image: radial-gradient(ellipse at 50% 30%, rgba(196, 150, 58, 0.06) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.99);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.chamber.visible {
    opacity: 1;
    transform: scale(1);
}

/* Label Plates */
.label-plate {
    position: absolute;
    top: -12px;
    left: 24px;
    background: #c4963a;
    color: #1a1510;
    font-family: 'Anonymous Pro', monospace;
    font-size: 0.7rem;
    padding: 2px 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
}

.chamber-content {
    position: relative;
    z-index: 1;
}

/* ============================================
   Degradation Timeline
   ============================================ */

.timeline-container {
    position: relative;
    margin: 40px 0 30px;
    padding-top: 30px;
}

.timeline-bar {
    height: 4px;
    background: linear-gradient(90deg, #c4963a, #e8c468, #8a6040, #7a6a54, #4a3a28);
    border-radius: 0;
    width: 100%;
}

.timeline-markers {
    position: relative;
    height: 40px;
}

.timeline-marker {
    position: absolute;
    top: 8px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-dot {
    display: block;
    width: 8px;
    height: 8px;
    background: #c4963a;
    border: 2px solid #241e16;
    margin-bottom: 6px;
}

.marker-label {
    font-family: 'Anonymous Pro', monospace;
    font-size: 0.65rem;
    color: #7a6a54;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Degradation demo text */
.degradation-demo {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.degrade-step {
    font-family: 'Anonymous Pro', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.degrade-1 { color: #c4963a; }
.degrade-2 { color: #e8c468; }
.degrade-3 { color: #8a6040; }
.degrade-4 { color: #7a6a54; opacity: 0.7; }
.degrade-5 { color: #4a3a28; opacity: 0.6; }
.degrade-6 { color: #4a3a28; opacity: 0.3; }

/* ============================================
   Techniques Grid
   ============================================ */

.techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.technique {
    border: 1px solid #4a3a28;
    padding: 24px;
    position: relative;
    background: rgba(36, 30, 22, 0.5);
}

.technique-id {
    font-family: 'Anonymous Pro', monospace;
    font-size: 0.7rem;
    color: #2a6b4a;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.technique h3 {
    font-size: 1.1rem;
}

.technique p {
    font-size: 0.9rem;
    color: #7a6a54;
    line-height: 1.7;
}

/* ============================================
   Analogy Columns
   ============================================ */

.analogy-columns {
    display: flex;
    gap: 0;
    margin-top: 32px;
    align-items: stretch;
}

.analogy-col {
    flex: 1;
    padding: 24px;
}

.analogy-bio {
    border-right: none;
}

.analogy-divider {
    width: 2px;
    background: linear-gradient(180deg, transparent, #c4963a, #2a6b4a, transparent);
    flex-shrink: 0;
}

.analogy-col h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.analogy-bio h3 {
    color: #c4963a;
}

.analogy-dig h3 {
    color: #2a6b4a;
}

.analogy-col ul {
    list-style: none;
    padding: 0;
}

.analogy-col li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(74, 58, 40, 0.3);
    font-size: 0.95rem;
    color: #d4c4a8;
}

.analogy-col li:last-child {
    border-bottom: none;
}

.analogy-bio li::before {
    content: "\2022";
    color: #c4963a;
    margin-right: 10px;
}

.analogy-dig li::before {
    content: "\25A0";
    color: #2a6b4a;
    margin-right: 10px;
    font-size: 0.6em;
    vertical-align: middle;
}

/* ============================================
   Archive Stats
   ============================================ */

.archive-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 24px;
}

.stat-item {
    text-align: center;
    min-width: 140px;
}

.stat-value {
    font-family: 'Cardo', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #e8c468;
    display: inline;
}

.stat-unit {
    font-family: 'Anonymous Pro', monospace;
    font-size: 1rem;
    color: #c4963a;
    vertical-align: super;
    margin-left: 2px;
}

.stat-label {
    display: block;
    font-family: 'Anonymous Pro', monospace;
    font-size: 0.7rem;
    color: #7a6a54;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 8px;
}

/* ============================================
   Blockquote
   ============================================ */

blockquote {
    border-left: 4px solid #c4963a;
    padding: 24px 32px;
    margin: 24px 0;
    background: rgba(36, 30, 22, 0.5);
    font-family: 'Cardo', serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-style: italic;
    color: #e8c468;
    line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */

#site-footer {
    border-top: 12px solid #241e16;
    padding: 40px;
    margin-top: 60px;
    text-align: center;
}

.footer-checksum {
    font-family: 'Anonymous Pro', monospace;
    font-size: 0.75rem;
    color: #7a6a54;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.checksum-label {
    color: #2a6b4a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.checksum-value {
    color: #4a3a28;
    word-break: break-all;
}

.footer-copy {
    font-family: 'Anonymous Pro', monospace;
    font-size: 0.7rem;
    color: #4a3a28;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 700px) {
    .vault-frame {
        width: 95%;
        border-width: 16px;
    }

    .vault-window {
        padding: 48px 24px;
    }

    .chamber {
        padding: 32px 20px;
        border-width: 8px;
        margin: 24px auto;
        width: 95%;
    }

    .label-plate {
        top: -8px;
        left: 12px;
    }

    .analogy-columns {
        flex-direction: column;
    }

    .analogy-divider {
        width: 100%;
        height: 2px;
    }

    .archive-stats {
        flex-direction: column;
        align-items: center;
    }

    .techniques-grid {
        grid-template-columns: 1fr;
    }

    .degradation-demo {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-marker .marker-label {
        font-size: 0.55rem;
    }
}
