:root {
    /* Dark bases */
    --deep-black: #0a0a0f;
    --dark-slate: #16161d;
    --midnight-purple: #1f1f2e;
    --dark-indigo: #2a2a3e;
    
    /* Neon accents */
    --electric-pink: #ff006e;
    --hot-pink: #ff3d8f;
    --blazing-orange: #ff8500;
    --amber-glow: #ffa033;
    --cyber-green: #00ff88;
    --mint-glow: #33ffa3;
    
    /* Text */
    --text-primary: #e8e8e8;
    --text-secondary: #9a9a9a;
    --text-dim: #5a5a5a;
}

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

body {
    font-family: 'DM Mono', monospace;
    background: var(--deep-black);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Vertical neon lines feature - left side (matches blog post page) */
.neon-feature {
    position: fixed;
    left: 0;
    top: 0;
    width: 40px;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    display: flex;
    gap: 8px;
    padding: 0 10px;
}

.line {
    flex: 1;
    position: relative;
    animation: pulse 4s ease-in-out infinite;
}

.line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        currentColor 20%, 
        currentColor 80%, 
        transparent 100%);
    filter: blur(1px);
}

.line:nth-child(1) {
    color: var(--electric-pink);
    animation-delay: 0s;
}

.line:nth-child(2) {
    color: var(--blazing-orange);
    animation-delay: 0.8s;
}

.line:nth-child(3) {
    color: var(--cyber-green);
    animation-delay: 1.6s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

/* Header (matches blog post page) */
body > header {
    position: fixed;
    top: 0;
    left: 40px;
    right: 0;
    height: 140px;
    background: linear-gradient(180deg, var(--deep-black) 0%, var(--deep-black) 70%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    z-index: 100;
}

.home-link {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    animation: fadeInLeft 0.8s ease-out;
}

.home-link:hover {
    color: var(--cyber-green);
}

.logo {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 0 10px rgba(255, 0, 110, 0.3));
}

.wordmark-small {
    font-family: 'Space Mono', monospace;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
}

.wordmark-small .d { color: var(--electric-pink); }
.wordmark-small .a { color: var(--blazing-orange); }
.wordmark-small .y { color: var(--cyber-green); }

nav {
    display: flex;
    gap: 30px;
    animation: fadeInRight 0.8s ease-out;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cyber-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav a:hover {
    color: var(--text-primary);
}

nav a:hover::after {
    transform: scaleX(1);
}

/* Archive content */
.archive-content {
    margin-left: 40px;
    padding: 200px 60px 120px 60px;
    max-width: 1400px;
    position: relative;
    z-index: 10;
}

.archive-header {
    margin-bottom: 60px;
    padding-left: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.archive-title {
    font-family: 'Space Mono', monospace;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.archive-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Tile grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Individual tile */
.tile {
    background: var(--dark-slate);
    border: 1px solid var(--midnight-purple);
    border-radius: 8px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cyber-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tile:hover {
    border-color: var(--dark-indigo);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.tile:hover::before {
    transform: scaleX(1);
}

.tile:hover .tile-title {
    color: var(--cyber-green);
}

/* Rotate accent colour per tile */
.tile:nth-child(3n+2)::before { background: var(--electric-pink); }
.tile:nth-child(3n+2):hover .tile-title { color: var(--electric-pink); }

.tile:nth-child(3n+3)::before { background: var(--blazing-orange); }
.tile:nth-child(3n+3):hover .tile-title { color: var(--blazing-orange); }

/* Tile content */
.tile-date {
    font-size: 11px;
    color: var(--cyber-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.tile-category {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.tile-title {
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.tile-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: auto;
}

/* Staggered tile entry animations */
.tile:nth-child(1)  { animation: tileIn 0.5s ease-out 0.3s both; }
.tile:nth-child(2)  { animation: tileIn 0.5s ease-out 0.35s both; }
.tile:nth-child(3)  { animation: tileIn 0.5s ease-out 0.4s both; }
.tile:nth-child(4)  { animation: tileIn 0.5s ease-out 0.45s both; }
.tile:nth-child(5)  { animation: tileIn 0.5s ease-out 0.5s both; }
.tile:nth-child(6)  { animation: tileIn 0.5s ease-out 0.55s both; }
.tile:nth-child(7)  { animation: tileIn 0.5s ease-out 0.6s both; }
.tile:nth-child(8)  { animation: tileIn 0.5s ease-out 0.65s both; }
.tile:nth-child(9)  { animation: tileIn 0.5s ease-out 0.7s both; }
.tile:nth-child(10) { animation: tileIn 0.5s ease-out 0.75s both; }
.tile:nth-child(11) { animation: tileIn 0.5s ease-out 0.8s both; }
.tile:nth-child(12) { animation: tileIn 0.5s ease-out 0.85s both; }
.tile:nth-child(13) { animation: tileIn 0.5s ease-out 0.9s both; }
.tile:nth-child(14) { animation: tileIn 0.5s ease-out 0.95s both; }
.tile:nth-child(15) { animation: tileIn 0.5s ease-out 1.0s both; }
.tile:nth-child(16) { animation: tileIn 0.5s ease-out 1.05s both; }

@keyframes tileIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Navigation corner (matches other pages) */
.corner-nav {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 20px;
    z-index: 200;
}

.corner-button {
    width: 100px;
    height: 100px;
    background: var(--dark-slate);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
}

.corner-button.home {
    border: 2px solid var(--electric-pink);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.3);
}

.corner-button:hover {
    transform: scale(1.1);
}

.corner-button.home:hover {
    box-shadow: 0 0 50px rgba(255, 0, 110, 0.6);
}

.corner-text {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-align: center;
    line-height: 1.3;
    font-weight: 700;
}

.corner-button.home .corner-text { color: var(--electric-pink); }

.corner-overlay {
    position: fixed;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 150;
    pointer-events: none;
}

.corner-overlay.active {
    transform: scale(50);
    border-radius: 0;
}

.corner-overlay.home {
    background: var(--electric-pink);
    bottom: 40px;
    right: 40px;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive — 3 columns on tablet */
@media (max-width: 1100px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .tile {
        min-height: 180px;
        padding: 22px;
    }
}

/* Responsive — tablet */
@media (max-width: 768px) {
    .neon-feature {
        width: 20px;
        gap: 4px;
        padding: 0 5px;
    }

    body > header {
        left: 20px;
        right: 0;
        height: 100px;
        padding: 0 20px;
    }

    .logo {
        width: 35px;
        height: 35px;
    }

    .wordmark-small {
        font-size: 16px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 12px;
    }

    .archive-content {
        margin-left: 20px;
        padding: 140px 20px 80px;
    }

    .archive-header {
        padding-left: 0;
        margin-bottom: 40px;
    }

    .archive-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .archive-subtitle {
        font-size: 16px;
    }

    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .tile {
        min-height: 160px;
        padding: 20px;
    }

    .tile-title {
        font-size: 16px;
    }

    .tile-excerpt {
        font-size: 12px;
    }

    .corner-nav {
        bottom: 20px;
        right: 20px;
    }

    .corner-button {
        width: 65px;
        height: 65px;
    }

    .corner-text {
        font-size: 9px;
    }
}

/* Responsive — small phones */
@media (max-width: 480px) {
    .neon-feature {
        width: 15px;
        gap: 3px;
        padding: 0 3px;
    }

    body > header {
        left: 15px;
        height: 80px;
        padding: 0 15px;
    }

    .home-link {
        gap: 12px;
    }

    .logo {
        width: 30px;
        height: 30px;
    }

    .wordmark-small {
        font-size: 14px;
    }

    nav {
        gap: 10px;
    }

    nav a {
        font-size: 11px;
    }

    .archive-content {
        margin-left: 15px;
        padding: 120px 15px 80px;
    }

    .archive-title {
        font-size: 26px;
    }

    .archive-subtitle {
        font-size: 14px;
    }

    .archive-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tile {
        min-height: auto;
        padding: 18px;
    }

    .tile-title {
        font-size: 16px;
    }

    .tile-excerpt {
        font-size: 12px;
    }

    .corner-nav {
        bottom: 15px;
        right: 15px;
    }

    .corner-button {
        width: 55px;
        height: 55px;
    }

    .corner-text {
        font-size: 8px;
    }
}
