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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: #000;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 60px;
}

h1 {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.site-name {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    text-decoration: none;
    color: #000;
    line-height: 1.2;
}

.site-name:hover {
    color: #2357ff;
    text-decoration: underline;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    text-decoration: underline;
    color: #2357ff;
    font-size: 13px;
}

nav a:hover {
    color: #1a42cc;
}

main {
    margin-bottom: 80px;
}

main h1 {
    margin-bottom: 40px;
}

p {
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.7;
}

a {
    color: #2357ff;
    text-decoration: underline;
}

a:hover {
    color: #1a42cc;
}

footer {
    margin-top: 100px;
    padding-top: 40px;
    border-top: none;
}

footer .email {
    font-style: italic;
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}

footer .social {
    display: flex;
    gap: 16px;
}

footer .social a {
    color: #000;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
}

footer .social a:hover {
    opacity: 1;
    color: #2357ff;
}

footer .social svg {
    display: block;
}

.ideas {
    margin-top: 48px;
}

.ideas h2 {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: lowercase;
}

.ideas-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ideas-list li {
    margin-bottom: 28px;
}

.ideas-list h3 {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: lowercase;
}

.ideas-list p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

/* Article list styles */
.articles-list {
    margin-top: 40px;
}

.article-item {
    margin-bottom: 48px;
}

.article-link {
    text-decoration: none;
    color: #000;
    display: block;
}

.article-link:hover .article-item-title {
    color: #2357ff;
}

.article-item-title {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #000;
}

.article-item-excerpt {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Article page styles */
.article {
    margin-bottom: 60px;
}

.article-title {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-date {
    font-style: italic;
    font-weight: 400;
    color: rgb(75, 85, 99);
    font-size: 14px;
    margin-bottom: 32px;
}

.article-body {
    font-family: 'Crimson Text', Georgia, serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 20px;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 16px;
    line-height: 1.8;
}

@media (max-width: 600px) {
    body {
        padding: 30px 16px;
    }

    header {
        flex-direction: column;
        margin-bottom: 40px;
    }

    nav {
        margin-top: 16px;
        gap: 16px;
    }

    nav a {
        font-size: 13px;
    }

    h1 {
        font-size: 24px;
    }

    .site-name {
        font-size: 24px;
    }

    p {
        font-size: 12px;
    }

    footer {
        margin-top: 60px;
    }

    .article-item-title {
        font-size: 20px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-body,
    .article-body p {
        font-size: 15px;
    }

    .ideas h2 {
        font-size: 18px;
    }

    .ideas-list h3 {
        font-size: 16px;
    }
}

/* Reading list styles */
.bookshelf {
    max-width: 1000px;
}

.bookshelf h1 {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 32px;
    margin-bottom: 32px;
}

.bookshelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
}

.book-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: transform 200ms ease-out, box-shadow 200ms ease-out;
    cursor: pointer;
    min-height: 240px;
}

.book-card:focus {
    outline: none;
}

.book-card:hover,
.book-card:focus-visible {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    opacity: 0;
    transition: opacity 200ms ease-out;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.book-card:hover .book-overlay,
.book-card:focus-visible .book-overlay {
    opacity: 1;
}

.book-info {
    color: #fff;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.35);
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 200ms ease-out, transform 200ms ease-out;
}

.book-card:hover .book-info,
.book-card:focus-visible .book-info {
    opacity: 1;
    transform: translateY(0);
}

.book-title {
    font-family: 'Crimson Text', Georgia, serif;
    font-style: italic;
    font-size: 16px;
    margin-bottom: 4px;
}

.book-author {
    font-size: 12px;
    text-transform: lowercase;
    margin-bottom: 6px;
}

.book-note {
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 600px) {
    .bookshelf-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 16px;
    }

    .book-card {
        min-height: 200px;
    }

    .book-info {
        padding: 10px;
    }
}

