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

:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #0066cc;
    --background-color: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e1e5e9;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--background-color);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.home-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.header .tagline {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.nav a:hover {
    color: var(--accent-color);
}

/* Notes Section */
.notes-section {
    margin-bottom: 60px;
}

.notes-section h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* Year Groups */
.year-group {
    margin-bottom: 50px;
}

.year-header {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

/* Note Entries */
.note-entry {
    margin-bottom: 5px;
}

.note-link {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.note-link:hover {
    background-color: var(--light-gray);
}

.note-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
    min-width: 60px;
    flex-shrink: 0;
}

.note-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    flex: 1;
    transition: color 0.2s ease;
}

.note-link:hover .note-title {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .note-link {
        flex-direction: column;
        gap: 5px;
        padding: 12px 15px;
    }

    .note-date {
        min-width: auto;
        font-size: 0.85rem;
    }

    .note-title {
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}