/* Styles for the homepage and about page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #fafafa;
    color: #2d3748;
    line-height: 1.7;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

header {
    margin-bottom: 64px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
}

h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c;
    letter-spacing: -0.02em;
}

.back-link {
    color: #4299e1;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-block;
    margin-bottom: 24px;
}

.back-link:hover {
    color: #2b6cb0;
}

.back-link::before {
    content: '← ';
}

.subtitle {
    color: #718096;
    font-size: 17px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.links {
    display: flex;
    gap: 24px;
}

.links a {
    color: #4299e1;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.links a:hover {
    color: #2b6cb0;
}

.nav-links {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.nav-links a {
    color: #718096;
    text-decoration: none;
    font-size: 14px;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: #2d3748;
    border-bottom-color: #2d3748;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1a202c;
}

.writeup-item {
    background: white;
    padding: 28px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.writeup-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.writeup-item:hover {
    border-color: #2d3748;
    box-shadow: 8px 8px 0 #2d3748;
    transform: translateY(-2px);
}

.writeup-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    gap: 20px;
}

.writeup-title {
    font-family: 'Fira Code', monospace;
    font-size: 16px;
    font-weight: 500;
    color: #2d3748;
}

.writeup-date {
    font-size: 14px;
    color: #a0aec0;
    white-space: nowrap;
}

.writeup-desc {
    color: #718096;
    font-size: 15px;
    line-height: 1.6;
}

.writeup-item.wip {
    background: #f7fafc;
    border-color: #edf2f7;
    cursor: default;
}

.writeup-item.wip:hover {
    border-color: #edf2f7;
    box-shadow: none;
    transform: none;
}

.writeup-item.wip .writeup-title {
    color: #a0aec0;
}

.writeup-item.wip .writeup-title::after {
    content: ' (WIP)';
    font-size: 13px;
    font-weight: 400;
    color: #cbd5e0;
}

.featured-badge {
    font-size: 12px;
    font-weight: 500;
    color: #d69e2e;
    background: #fefcbf;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

.featured-section {
    margin-bottom: 48px;
}

.featured-section .section-title {
    margin-bottom: 24px;
}

.all-section .section-title {
    margin-bottom: 24px;
}

/* About page content block */
.content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.content h2 {
    font-family: 'Fira Code', monospace;
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-top: 32px;
    margin-bottom: 16px;
}

.content h2:first-child {
    margin-top: 0;
}

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

.content ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.content li {
    margin-bottom: 8px;
}

.content code {
    font-family: 'Fira Code', monospace;
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    color: #2d3748;
}

/* Cat button */
.cat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #2d3748;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1000;
}

.cat-button:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 0 #2d3748;
}

.cat-button:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    .writeup-header {
        flex-direction: column;
        gap: 6px;
    }

    .writeup-item {
        padding: 20px;
    }

    .content {
        padding: 24px;
    }
}
