@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap');

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

/* Current Theme - Abstract Geometric */
:root {
    --paper: #FBF8F3;
    --ink: #1A1A1A;
    --faded-ink: #5A5A5A;
    --accent: #E8E2D5;
    --coral: #FF6B6B;
    --mint: #4ECDC4;
    --mustard: #FFD93D;
    --navy: #2A3D66;
    --blush: #FFB4A2;
    --sage: #95B99C;
    --sand: #F4EDE4;
}

body {
    font-family: 'Spectral', Georgia, serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Removed all background shapes for now */

.layout {
    display: flex;
    max-width: 100%;
    margin: 0;
    position: relative;
}

.sidebar {
    width: 280px;
    padding: 3.5rem 2rem;
    background: var(--paper);
    border-right: 2px solid var(--ink);
    height: 100vh;
    position: fixed;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--faded-ink);
}

/* Abstract shapes in sidebar */
.sidebar::before {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 60px;
    height: 60px;
    background: var(--mustard);
    border-radius: 50% 0 50% 0;
    opacity: 0.8;
    z-index: -1;
}

.sidebar::after {
    content: '';
    position: absolute;
    bottom: 2rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    background: var(--coral);
    transform: rotate(45deg);
    opacity: 0.6;
    z-index: -1;
}

.sidebar h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2rem;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.sidebar h1::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: -0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--mint);
    border-radius: 0 50% 50% 50%;
    z-index: -1;
    opacity: 0.3;
}

.sidebar h1::after {
    content: '';
    position: absolute;
    right: -0.5rem;
    bottom: -0.2rem;
    width: 80px;
    height: 3px;
    background: var(--coral);
    transform: skewX(-20deg);
}

nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--accent);
}

nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--coral) 0%, var(--mint) 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover {
    transform: translateX(5px);
}

nav a:hover::before {
    width: 100%;
}

.archive {
    margin-top: 1rem;
}

.archive h3 {
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: var(--ink);
}

.archive ul {
    list-style: none;
}

.archive li {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #e0e0e0;
}

.archive li:last-child {
    border-bottom: none;
}

.archive .post-link {
    display: block;
    color: var(--ink);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.25rem 0;
    margin: -0.25rem 0;
}

.archive .post-link:hover {
    color: var(--coral);
    transform: translateX(3px);
}

.archive .post-link time {
    display: block;
    font-size: 0.95rem;
    color: var(--faded-ink);
    margin-bottom: 0.3rem;
}

.archive .post-link .post-title {
    display: block;
    font-size: 1.05rem;
    line-height: 1.3;
}

.archive .post-link:hover time,
.archive .post-link:hover .sidebar-tags {
    color: var(--coral);
    opacity: 0.8;
}

.content {
    margin-left: 280px;
    padding: 2rem;
    flex: 1;
    background: var(--paper);
    position: relative;
}

/* Removed content decorations for now */

.post {
    max-width: 750px;
    position: relative;
    z-index: 1;
    padding: 0;
    margin: 0;
}

.post time {
    font-size: 1.1rem;
    color: var(--faded-ink);
    display: block;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.post h1.post-title {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    position: relative;
    padding-bottom: 1rem;
    text-align: left;
}

.post h1.post-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--coral) 0%, var(--mint) 50%, var(--mustard) 100%);
    border-radius: 2px;
}

.post h2 {
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.post p {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--ink);
    text-align: left;
    line-height: 1.7;
}

/* Reduce space when paragraph is followed by a list */
.post p + ul,
.post p + ol {
    margin-top: -0.75rem;
}

.post h2 {
    position: relative;
    padding-left: 1.5rem;
    text-align: left;
}

.post h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.2em;
    background: var(--navy);
    border-radius: 1px;
}

/* Mobile view - show list on homepage - removed as not needed anymore */

.mobile-title {
    font-size: 2.2rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.mobile-nav {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--accent);
}

.mobile-nav a {
    color: var(--faded-ink);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

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

.mobile-posts {
    margin-top: 2rem;
}

.mobile-posts h3 {
    font-size: 1.4rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: var(--ink);
}

.mobile-posts .month-group {
    margin-bottom: 2rem;
}

.mobile-posts .month-group h4 {
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.mobile-posts ul {
    list-style: none;
}

.mobile-posts li {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #e0e0e0;
}

.mobile-posts li:last-child {
    border-bottom: none;
}

.mobile-posts time {
    display: block;
    font-size: 1rem;
    color: var(--faded-ink);
    margin-bottom: 0.25rem;
}

.mobile-posts a {
    color: var(--ink);
    text-decoration: none;
    font-size: 1.15rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.mobile-posts a:hover {
    color: var(--faded-ink);
}

.mobile-header {
    display: none;
}

.back-link {
    color: var(--faded-ink);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: inline-block;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--ink);
}

/* Mobile only header */
.mobile-only-header {
    display: none;
}

/* Mobile quick links */
.mobile-quick-links {
    display: none;
}

.mobile-latest-link,
.mobile-loving-link {
    display: none;
}

/* Mobile burger menu */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
    background: var(--sand);
    border: 2px solid transparent;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    border-color: var(--mint);
    background: var(--blush);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    margin: 5px auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-only-header {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--paper);
        padding: 2rem 2rem 1.5rem;
        z-index: 999;
        height: auto;
    }
    
    .mobile-only-header h1 {
        font-size: 1.8rem;
        font-weight: bold;
        margin: 0;
        letter-spacing: -1px;
        position: relative;
        z-index: 1;
    }
    
    /* Copy all the sidebar h1 decorations */
    .mobile-only-header h1::before {
        content: '';
        position: absolute;
        left: -0.5rem;
        top: -0.5rem;
        width: 2.5rem;
        height: 2.5rem;
        background: var(--mint);
        border-radius: 0 50% 50% 50%;
        z-index: -1;
        opacity: 0.3;
    }
    
    .mobile-only-header h1::after {
        content: '';
        position: absolute;
        right: -0.5rem;
        bottom: -0.2rem;
        width: 80px;
        height: 3px;
        background: var(--coral);
        transform: skewX(-20deg);
    }
    
    .mobile-header {
        display: block;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 1px dashed var(--accent);
    }
    
    .layout {
        flex-direction: column;
    }
    
    /* Sidebar as fullscreen overlay on mobile */
    .sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        background: var(--paper);
        overflow-y: auto;
        padding: 2rem 2rem 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: none;
    }
    
    .sidebar.mobile-open {
        display: block;
        transform: translateX(0);
    }
    
    /* Make sidebar h1 match mobile header h1 size */
    .sidebar h1 {
        font-size: 1.8rem;
    }
    
    /* Show quick links on mobile homepage only */
    .mobile-quick-links {
        display: block;
        margin: 0 1.5rem 1.5rem;
    }
    
    .mobile-latest-link,
    .mobile-loving-link {
        display: block;
        margin-bottom: 1rem;
    }
    
    .latest-post-button,
    .loving-button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: var(--sand);
        border: 2px solid transparent;
        border-radius: 25px;
        padding: 0.8rem 1.2rem;
        text-decoration: none;
        color: var(--ink);
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .latest-post-button:hover,
    .loving-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        border-color: var(--mint);
        background: var(--blush);
    }
    
    .latest-label {
        color: var(--coral);
        font-size: 0.9rem;
        font-weight: 600;
        margin-right: 0.5rem;
    }
    
    .latest-title {
        flex: 1;
        font-size: 1rem;
    }
    
    .latest-arrow,
    .loving-arrow {
        color: var(--mint);
        font-size: 1.2rem;
        margin-left: 0.5rem;
    }
    
    .loving-icon {
        color: var(--coral);
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }
    
    .loving-text {
        flex: 1;
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Content is shown normally on mobile */
    
    .content {
        margin-left: 0;
        padding: 7rem 1.5rem 2rem;
    }
    
    /* Adjust post content for mobile */
    .post {
        max-width: 100%;
    }
    
    .post h1.post-title {
        font-size: 2rem;
    }
    
    .post p {
        font-size: 1.1rem;
    }
}
.archive .post-link.active .post-title {
    color: var(--ink);
    font-weight: bold;
}

.month-group {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.month-group::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 3px;
    height: 12px;
    background: var(--coral);
    border-radius: 1px;
}

.month-group h4 {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--ink);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.month-group h4::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: var(--mustard);
    border-radius: 50%;
}

.post img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 2px;
}

/* Bullet point styling */
.post ul,
.post ol {
    margin-left: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.post li {
    margin-bottom: 0.5rem;
}

/* Code block styling */
.post pre {
    background: rgba(0, 0, 0, 0.02) !important;
    padding: 1.25rem;
    padding-left: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--mint);
    position: relative;
}

.post pre code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    font-weight: 400;
    background: transparent !important;
    letter-spacing: -0.5px;
}

.post p code {
    background: var(--accent);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    font-weight: 400;
}

/* Override Prism theme colors to match blog */
.post pre[class*="language-"] {
    background: rgba(0, 0, 0, 0.02);
}

.post code[class*="language-"] {
    color: var(--ink);
}

/* Blockquote styling */
.post blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    font-style: italic;
    color: var(--faded-ink);
}

.post blockquote::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 15px;
    height: 15px;
    background: var(--mint);
    opacity: 0.3;
    border-radius: 50%;
}

.post blockquote::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid var(--coral);
    opacity: 0.3;
}

.post blockquote p {
    margin-bottom: 0;
    font-size: 1.15rem;
    line-height: 1.8;
    position: relative;
}

/* Additional decorative element */
.post blockquote p::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -30px;
    width: 8px;
    height: 8px;
    background: var(--mustard);
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.25;
}

.post-navigation {
    max-width: 750px;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 2px dashed var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.post-navigation::before {
    content: url("data:image/svg+xml,%3Csvg width='30' height='30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='15,5 25,25 5,25' fill='%23FF6B6B' opacity='0.5'/%3E%3C/svg%3E");
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.nav-btn {
    color: var(--ink);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem;
    background: var(--sand);
    border-radius: 25px;
    border: 2px solid transparent;
}

.nav-btn:hover {
    background: linear-gradient(135deg, var(--blush) 0%, var(--sand) 100%);
    border-color: var(--coral);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.theme-selector-container {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--accent);
}

.theme-selector {
    padding: 0.6rem 1.2rem;
    background: var(--sand);
    color: var(--ink);
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.theme-selector:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--mint);
    background-color: var(--blush);
}

.theme-selector:focus {
    outline: none;
    border-color: var(--mint);
    box-shadow: 0 2px 4px rgba(78, 205, 196, 0.15);
}

.content-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--accent);
    text-align: center;
}

.content-footer p {
    font-size: 0.85rem;
    color: var(--faded-ink);
    margin-bottom: 0.5rem;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--faded-ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--ink);
}

/* Post meta (date and tags on same line) */
.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--faded-ink);
}

.post-meta time {
    font-size: inherit;
    color: inherit;
    display: inline;
    margin: 0;
    letter-spacing: 0.5px;
}

.post-meta .tag {
    color: inherit;
    margin-right: 0.35rem;
}

.post-meta .clickable-tag {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    background: transparent;
    border: 1.5px solid var(--mint);
    color: var(--ink);
    font-weight: 500;
}

.post-meta .clickable-tag:hover {
    background: var(--mint);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(78,205,196,0.3);
}

/* Tag filters in sidebar */
.tag-filters {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--accent);
}

.tag-filters h3 {
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: var(--ink);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-filter {
    background: var(--sand);
    border: 2px solid transparent;
    color: var(--ink);
    padding: 0.4rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.tag-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--mint);
}

.tag-filter.active {
    background: var(--mint);
    color: white;
    border-color: var(--mint);
    font-weight: 600;
}

.clear-filter {
    background: var(--sand);
    border: 2px solid transparent;
    color: var(--ink);
    padding: 0.4rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 25px;
}

.clear-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--coral);
    background: var(--blush);
}

/* Sidebar tags display */
.sidebar-tags {
    font-size: 0.85rem;
    color: var(--faded-ink);
    margin-top: 0.3rem;
}

.no-posts {
    font-size: 0.8rem;
    color: var(--faded-ink);
    font-style: italic;
    margin-top: 1rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: calc(280px - 4rem);
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    z-index: 100;
    text-align: center;
}

.back-to-top:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-2px);
}

/* Hide back to top on mobile */
@media (max-width: 768px) {
    .back-to-top {
        display: none !important;
    }
}
.archive a.active {
    color: var(--ink);
    font-weight: bold;
}

.post img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 2px;
}

/* Posts page styles */
.posts-page {
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    padding-right: 1rem;
}

.all-posts-container {
    max-width: 750px;
}

.post-item {
    margin-bottom: 2rem;
}

.post-item h2.post-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.post-item h2.post-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-item h2.post-title a:hover {
    color: var(--coral);
}

.post-item .post-content {
    margin-top: 1rem;
}

.post-item .post-content h1 {
    display: none; /* Hide duplicate h1 in content */
}

.post-item .post-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-item .post-content p:last-of-type {
    margin-bottom: 0;
}

.post-item .post-content h2,
.post-item .post-content h3,
.post-item .post-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-item .post-content ul,
.post-item .post-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-item .post-content li {
    margin-bottom: 0.5rem;
}

.post-item .post-content blockquote {
    margin: 1.5rem 0;
}

.post-item .post-content pre {
    margin: 1.5rem 0;
}

.post-item .post-content code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

.post-item .post-content iframe {
    margin: 1.5rem 0;
}

.post-divider {
    margin: 3rem 0;
    border: none;
    border-top: 1px solid var(--accent);
    opacity: 0.5;
}

.post-item:last-child .post-divider {
    display: none;
}

/* Truncated post content */
.post-item .post-excerpt {
    max-height: 350px;
    overflow: hidden;
    position: relative;
}

.post-item .post-excerpt.expanded {
    max-height: none;
}

.post-item .post-excerpt::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: linear-gradient(to bottom, transparent 0%, var(--paper) 75%);
    pointer-events: none;
}

.post-item .post-excerpt.expanded::after {
    display: none;
}

.read-more-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--coral);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.read-more-link:hover {
    color: var(--navy);
}