/* CSS Variables */
:root {
    --color-bg: #ffffff;
    --color-text: #000000;
    --color-text-light: #444444;
    --color-primary: #000000;
    --color-accent: #000000;
    --color-border: #000000;
    --color-card-bg: #eeeeee;
    /* Light gray for cards as per reference */

    --font-serif: 'Merriweather', serif;
    --font-sans: 'Merriweather', serif;
    /* Use Serif for everything for that academic look */

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    --container-width: 1400px;
    /* Wider container */
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-serif);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header */
.site-header {
    border-bottom: 2px solid var(--color-text);
    padding: 0.5rem 0;
    /* Reduced from 1.5rem */
    margin-bottom: var(--spacing-lg);
}

.site-header .container {
    max-width: 95vw;
    /* Widen header content to edges */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 1.1rem;
    color: var(--color-text);
}

.nav-link:hover {
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
}

/* Hero - Minimal/Removed mostly */
.hero-section {
    display: none;
    /* Hidden */
}

/* Main Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two distinct columns */
    gap: 4rem;
    margin-bottom: var(--spacing-lg);
    align-items: start;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
    font-weight: 700;
    color: var(--color-primary);
}

/* Card Styling */
.card {
    background-color: var(--color-card-bg);
    margin-bottom: 2.5rem;
    border: none;
    padding: 0.25rem;
    /* Hard shadow offset */
    box-shadow: 10px 10px darkgray;
    /* Matches target webpage shadow */
    position: relative;
    top: 0;
    transition: top ease 0.25s, box-shadow ease 0.25s;
}

.card:hover {
    top: -10px;
    box-shadow: 10px 20px darkgray;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-date {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.card-excerpt {
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    border-top: 2px solid var(--color-text);
    padding: 0.5rem 0;
    margin-top: auto;
}

.site-footer .container {
    max-width: 95vw;
    /* Widen footer content to edges */
}

.footer-inner {
    display: flex;
    justify-content: center;
    /* Changed from space-between to center */
    align-items: center;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .nav-list {
        display: none;
        /* simple hide for now, JS toggle can handle */
    }

    .menu-toggle {
        display: flex;
    }

    .nav-list.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: var(--spacing-md);
        border-bottom: 2px solid black;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
}