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

:root {
    --primary-color: #a37acc; 
    --accent-color: #8a59c2;
    --bg-color: #120a1a; 
    --text-color: #e3ddeb;
    --font-main: 'Vollkorn', Georgia, 'Times New Roman', serif;
    --content-bg: #1c1226; 
}

/* --- Accessibility & Defaults --- */ 

:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.7;
    /* Use a darker purple gradient for depth, not sand */
    background: radial-gradient(circle at top, #1e132b 0%, var(--bg-color) 100%);
}

header, footer, main { position: relative; z-index: 10; }

/* --- Navigation & Links --- */
.reset-link { 
    text-decoration: none; 
    color: inherit; 
    text-align: center; 
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.site-title {
    /* 1. Optical Balance */
    font-size: clamp(2.5rem, 10vw, 4.5rem); 
    font-weight: 800;
    letter-spacing: -0.02em; /* Tighter kerning looks more "editorial" */
    line-height: 1.2;
    padding-bottom: 0.2em;
    margin-bottom: 0;
    margin: 3rem auto 0.5rem auto;
    display: block; 
    overflow: visible;
    
    /* 2. Advanced Depth (The "Professional" Secret) */
    background: linear-gradient(
        180deg, 
        #ffffff 20%, 
        var(--primary-color) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* 3. Layered Shadows for Crispness */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    
    /* 4. Smooth Animation */
    transition: letter-spacing 0.4s ease, filter 0.4s ease;
}

.site-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

main { 
    flex: 1; 
    max-width: 750px; 
    margin: 2rem auto; 
    padding: 40px; 
    width: 100%; 
    box-sizing: border-box; 
    font-size: 1.2rem;
    background-color: var(--content-bg); 
    
    /* Softened transitions for dark mode */
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.05); /* Logical highlight edge */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); /* Deeper shadow for dark depth */
} 

/* --- Post & List Styling --- */
 {
    margin-bottom: 3.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 2rem; 
}

article.post { 
    margin-bottom: 4rem; 
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03); /* Subtle separation */
}

article.post h2 { 
    font-size: 1.8rem; 
    margin-bottom: 0.8rem; 
    margin-left: -12px; /* Pulls the 'ghost' padding back for alignment */
}

article.post h2 a { 
    text-decoration: none; 
    color: var(--text-color); 
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(163, 122, 204, 0); /* Start fully transparent */
    display: inline-block;
}

article.post h2 a:hover { 
    color: #fff; /* Brighten text on hover */
    background: rgba(163, 122, 204, 0.08); /* Logical ghost tint */
}

.post-date { 
    color: rgba(227, 221, 235, 0.6); /* Faded lavender */
    font-style: italic; 
    font-size: 0.9rem; 
    margin-bottom: 1.5rem; 
}

/* --- Archive Items (Static Text Logic) --- */
.archive-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: baseline;
    padding: 12px 0; /* Remove horizontal padding that creates the "box" feel */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    text-decoration: none;
    background: none; /* Explicitly remove any background */
    transition: color 0.2s ease;
}

.archive-item:hover {
    background: transparent; /* Ensures no pill appears */
}

/* Logic: Only the text elements change state */
.archive-item:hover .archive-title {
    color: var(--primary-color);
}

.archive-item .post-date {
    margin-bottom: 0;
    color: rgba(227, 221, 235, 0.4);
    font-size: 0.9rem;
    font-style: italic;
}

/* --- UI Elements --- */
.nav-button { 
    display: inline-block; 
    padding: 10px 24px; 
    margin: 5px; 
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    background: rgba(255, 255, 255, 0.03); /* Glass effect */
    text-decoration: none; 
    font-weight: 600; 
    color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 8px; /* Match the main container's softness */
}

.nav-button:hover { 
    background: var(--primary-color); 
    color: var(--bg-color);
    transform: translateY(-2px); /* Logical feedback for interaction */
}

.read-more, .back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.25rem;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(163, 122, 204, 0); /* Transparent primary */
    transition: all 0.3s ease;
}

.read-more:hover, .back-link:hover {
    background: rgba(163, 122, 204, 0.1); /* Subtle tint */
    color: var(--text-color);
}

.read-more:hover::after, .back-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.read-more:hover {
    color: var(--text-color);
}

/* --- Socials & Footer --- */

footer { 
    text-align: center; 
    padding: 50px 20px 40px 20px; 
    margin-top: auto; 
}

.social-links {
    margin-top: 20px;
}

.social-links a { 
    font-size: 1.8rem; /* Increased from 1.6rem */
    margin: 0 18px;    /* Increased spacing for touch targets */
    color: var(--text-color); 
    transition: color 0.2s; 
} 

.social-links a:hover {article.post
    color: var(--primary-color);
}

@media (max-width: 600px) {
    .archive-item {
        flex-direction: column; gap: 5px;
    }
    .nav-button {
        width: 100%; box-sizing: border-box;
    }
}

/* style.css */

#sand-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 5; /* Lower than header/main (10) so particles stay in background */
}

/* Target only the about page */
.about-page main {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    justify-content: center;
    min-height: 50vh; /* Optional: adds vertical balance */
}

/* Ensure images within this container are also centered */
.about-page main img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

/* Ensure all links in the main content are visible */
main a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

main a:hover {
    color: var(--text-color); /* Changes to the lighter lavender on hover */
    text-decoration-thickness: 2px;
}