/* Self-hosted fonts - download from https://gwfh.mranftl.com/fonts */
@font-face {
    font-family: 'Anton';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Anton Regular'), local('Anton-Regular'),
         url('/fonts/anton-v25-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Space Mono Regular'), local('SpaceMono-Regular'),
         url('/fonts/space-mono-v13-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Space Mono Bold'), local('SpaceMono-Bold'),
         url('/fonts/space-mono-v13-latin-700.woff2') format('woff2');
}

:root {
    --void-black: #0a0a0a;
    --void-deep: #111111;
    --void-edge: #1a1a1a;
    --text-primary: #e8e8e8;
    --text-muted: #666666;
    --accent-release: #ff4444;
    --accent-glow: rgba(255, 68, 68, 0.3);
    
    /* Font stacks with system fallbacks */
    --font-display: 'Anton', 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
    --font-mono: 'Space Mono', 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
}

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

body {
    background: var(--void-black);
    color: var(--text-primary);
    font-family: var(--font-mono);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background - subtle void pull */
/* .void-bg { */
    /* position: fixed; */
    /* top: 0; */
    /* left: 0; */
    /* width: 100%; */
    /* height: 100%; */
    /* background: */ 
        /* radial-gradient(ellipse at 50% 50%, transparent 0%, var(--void-black) 70%); */
    /* z-index: -1; */
/* } */

@keyframes voidPulse {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.5; transform: scale(1.1) rotate(180deg); }
}

/* Header */
header {
    padding: 4rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.header-compact {
    padding: 2rem;
}

.logo {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 10rem);
    letter-spacing: -0.02em;
    line-height: 0.9;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: var(--accent-release);
    box-shadow: 0 0 20px var(--accent-glow);
}

.logo-small {
    font-size: 2rem;
}

.logo-small::after {
    height: 2px;
    bottom: -5px;
}

.logo-link {
    text-decoration: none;
}

.tagline {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* Void visualization */
.void-center {
    position: fixed;
    top: 0%;
    left: 0%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        rgba(255, 68, 68, 1) 0deg 1deg,
        transparent 1deg 10deg
    );
    border-radius: 50%;
    animation: voidPulse 20s ease-in-out infinite;
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.void-hole {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #000 0%, var(--void-deep) 50%, transparent 70%);
    border-radius: 50%;
    position: relative;
    animation: voidBreathe 4s ease-in-out infinite;
    box-shadow: 
        0 0 60px 20px rgba(0,0,0,0.8),
        inset 0 0 30px rgba(255,68,68,0.1);
}

@keyframes voidBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes ringPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Main content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.intro {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    border: 1px solid var(--void-edge);
    background: linear-gradient(180deg, var(--void-deep) 0%, var(--void-black) 100%);
}

.intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.intro strong {
    color: var(--text-primary);
}

/* Entry list */
.entries-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--void-edge);
}

.entries-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 0.1em;
}

.entry-count {
    background: var(--accent-release);
    color: var(--void-black);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Individual entry */
.entry {
    position: relative;
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: var(--void-deep);
    border-left: 3px solid var(--accent-release);
    transition: all 0.3s ease;
    overflow: hidden;
}

.entry::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,68,68,0.05));
    pointer-events: none;
}

.entry:hover {
    transform: translateX(10px);
    box-shadow: -10px 0 30px rgba(255,68,68,0.1);
}

.entry-single {
    transform: none;
}

.entry-single:hover {
    transform: none;
}

.entry-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.entry-title::before {
    content: '∅';
    font-size: 1.2rem;
    color: var(--accent-release);
}

.entry-title a {
    color: inherit;
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--accent-release);
}

.entry-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.entry-body {
    color: var(--text-muted);
    line-height: 1.8;
}

.entry-body p {
    margin-bottom: 1rem;
}

.entry-body p:last-child {
    margin-bottom: 0;
}

.stoic-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--void-black);
    border: 1px dashed var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

.stoic-note::before {
    content: '— Stoic reflection: ';
    color: var(--text-muted);
    font-style: normal;
    font-weight: bold;
}

/* Entry navigation */
.entry-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--void-edge);
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-release);
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

footer a {
    color: var(--accent-release);
    text-decoration: none;
}

.manifesto {
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* Domain badge */
.domain-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--accent-release);
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-release);
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        padding: 2rem 1rem 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .entry {
        padding: 1.5rem;
    }
    
    .entry:hover {
        transform: none;
    }
    
    .entry-title {
        font-size: 1.4rem;
    }
}
