/* Homepage */
.home {
    padding: 1rem 0;
}

.home h1 {
    margin-top: 0;
}

.home .subtitle {
    color: var(--muted);
    margin-bottom: 2rem;
}

.home h2 {
    margin-top: 2rem;
}

/* Post list on homepage and list pages */
.post-list {
    list-style: none;
    padding: 0;
}

.post-item {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid var(--muted);
}

.post-item:last-child {
    border-bottom: none;
}

.post-item a {
    text-decoration: none;
    display: block;
}

.post-title {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
}

.post-description {
    color: var(--muted);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.25rem;
}

.post-date {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Post summary in lists */
.post-summary {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--muted);
}

.post-summary:last-child {
    border-bottom: none;
}

.post-summary a {
    text-decoration: none;
    display: block;
}

/* Single post page */
.post-header {
    margin-bottom: 2rem;
}

.post-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.post-date {
    margin-right: 1rem;
}

.post-tags a {
    color: var(--muted);
    text-decoration: none;
    margin-right: 0.5rem;
}

.post-tags a:hover {
    color: var(--link);
}

.post-description {
    font-style: italic;
    color: var(--muted);
    margin-bottom: 2rem;
}

.post-content {
    line-height: 1.6;
}

/* Fix code blocks */
pre {
    background: var(--inner-bg) !important;
    border: 1px solid var(--muted);
    overflow-x: auto;
}

code {
    background: var(--inner-bg) !important;
    padding: 0.1rem 0.3rem;
    font-family: var(--font-monospace);
}

pre code {
    padding: 0;
    background: transparent !important;
}

/* Hugo highlight shortcode */
.highlight {
    margin: 0 0 1.5rem 0;
}

.highlight pre {
    background: var(--inner-bg) !important;
    border: 1px solid var(--muted);
    padding: 1rem;
    margin: 0;
}

.highlight code {
    background: transparent !important;
}

/* Override inline styles from Hugo highlight */
.highlight div {
    background: var(--inner-bg) !important;
}

/* Table of Contents in aside */
.aside__toc {
    margin-top: 1.5rem;
}

.aside__toc h3 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--fg);
}

.aside__toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.aside__toc li {
    margin-bottom: 0.25rem;
}

.aside__toc li::marker {
    content: '';
}

.aside__toc ul ul {
    padding-left: 1rem;
}

.aside__toc a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.4;
}

.aside__toc a:hover {
    color: var(--link);
}

/* Social links in aside */
.aside__social-links {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
}

.aside__social-links li {
    display: inline-block;
}

.aside__social-links a {
    color: var(--muted);
    font-size: 1.25rem;
    transition: color 0.2s;
}

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