/* --- Base Styles --- */
:root {
    --bg-color: #fdfbf7;       /* Warm paper color */
    --text-color: #2a2a2a;     /* Soft black */
    --accent-color: #c0392b;   /* Deep red for links */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Proza Libre', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.8;
}

/* --- Layout --- */
main, header, footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Nav --- */
header {
    padding-top: 60px;
    padding-bottom: 60px;
    margin-bottom: 40px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 20px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.links a {
    margin-left: 20px;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.links a:hover {
    color: var(--text-color);
}

/* --- Typography for Posts --- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: #000;
    margin-top: 2em;
    margin-bottom: 0.5em;
}

h1 { font-size: 3rem; line-height: 1.1; }
h2 { font-size: 2rem; }

p {
    font-size: 1.1rem;
    margin-bottom: 1.5em;
    color: #333;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border 0.3s;
}

a:hover {
    border-bottom: 1px solid var(--accent-color);
}

/* --- Lists --- */
ul { padding-left: 20px; }
li { margin-bottom: 10px; }

/* --- Footer --- */
footer {
    margin-top: 100px;
    padding-top: 40px;
    padding-bottom: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* --- Project Grid Styles --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease; /* This creates the smooth animation */
    text-decoration: none; /* Remove underline */
    display: block;
}

/* The "Cool" Hover Effect */
.project-card:hover {
    transform: translateY(-5px); /* Moves up slightly */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); /* Soft shadow appears */
    border-color: var(--accent-color);
}

.project-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--text-color);
}

.project-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Update the List Style for Essays */
.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    margin-bottom: 2rem;
    border-left: 2px solid transparent;
    padding-left: 0;
    transition: padding 0.2s;
}

.post-list li:hover {
    border-left: 2px solid var(--accent-color);
    padding-left: 15px;
}