/* Blog-specific styles - extends styles.css */

/* Blog Page Layout */
.blog-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 80px 40px;
    animation: fadeIn 0.6s ease-out;
}

/* Blog Header (Index) */
.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--gray-050);
    margin-bottom: 12px;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.blog-subtitle {
    font-size: 18px;
    color: var(--gray-400);
    margin-bottom: 24px;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 15px;
}

.blog-meta .separator {
    color: var(--gray-600);
    user-select: none;
}

/* Navigation Links */
.back-link,
.home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

/* Only add margin when used as standalone nav, not in footer */
.blog-header .home-link,
.blog-nav .back-link {
    margin-bottom: 24px;
}

.back-link:hover,
.home-link:hover {
    color: var(--clay);
    color: var(--clay-hdr);
}

/* Meta Links (Archives, RSS) - styled like home page contact links */
.archive-link,
.rss-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-link:hover,
.rss-link:hover {
    color: var(--clay);
    color: var(--clay-hdr);
}

.archive-link i,
.rss-link i {
    font-size: 16px;
    color: inherit;
    font-weight: 300;
}

/* Blog Nav */
.blog-nav {
    margin-bottom: 32px;
}

/* Blog Posts List */
.blog-posts {
    margin-bottom: 40px;
}

.blog-entry {
    margin-bottom: 36px;
    padding: 16px;
    padding-left: 17px;
    margin-left: -16px;
    margin-right: -16px;
    border-left: 1px solid var(--gray-600);
    transition: border-color 0.2s ease;
    contain: layout style;
}

.blog-entry:hover {
    border-left-color: var(--clay);
    border-left-color: var(--clay-hdr);
}

.blog-entry:last-child {
    margin-bottom: 0;
}

.blog-entry-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.blog-entry:hover .blog-entry-title {
    color: var(--gray-050-hdr);
}

.blog-entry-title a {
    color: var(--gray-050);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-entry-title a:hover {
    color: var(--clay);
    color: var(--clay-hdr);
}

.blog-entry-meta {
    font-size: 14px;
    color: var(--gray-200);
    margin-bottom: 10px;
    font-weight: 300;
}

.blog-entry-meta .separator {
    color: var(--gray-600);
    margin: 0 4px;
}

.blog-entry-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.blog-entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    padding: 0;
    background: transparent;
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
    border: none;
}

.tag::before {
    content: '#';
    opacity: 0.6;
    margin-right: 1px;
    transition: opacity 0.2s ease;
}

.tag:hover {
    color: var(--clay);
    color: var(--clay-hdr);
}

.tag:hover::before {
    opacity: 1;
}

.tag.active {
    color: var(--clay);
    color: var(--clay-hdr);
}

.tag.active::before {
    opacity: 1;
}

/* Blog Post Page */
.blog-post {
    margin-bottom: 48px;
}

.blog-post-header {
    margin-bottom: 48px;
    text-align: center;
}

.blog-post-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--gray-050);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.blog-post-meta {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-post-meta .separator {
    color: var(--gray-600);
}

.blog-post-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Blog Post Content */
.blog-post-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-400);
}

.blog-post-content h2 {
    font-size: 24px;
    font-weight: 500;
    color: var(--gray-050);
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.blog-post-content h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--gray-050);
    margin-top: 32px;
    margin-bottom: 12px;
}

.blog-post-content h4 {
    font-size: 17px;
    font-weight: 500;
    color: var(--gray-200);
    margin-top: 24px;
    margin-bottom: 8px;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content a {
    color: var(--clay-hdr);
    text-decoration: underline;
    text-decoration-color: var(--clay-alpha-30);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.blog-post-content a:hover {
    text-decoration-color: var(--clay-hdr);
}

/* Lists */
.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

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

.blog-post-content li::marker {
    color: var(--gray-600);
}

/* Blockquotes */
.blog-post-content blockquote {
    border-left: 3px solid var(--clay);
    border-left: 3px solid var(--clay-hdr);
    padding-left: 20px;
    margin: 24px 0;
    color: var(--gray-400);
    font-style: italic;
}

.blog-post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Images */
.blog-post-content img {
    max-width: 100%;
    height: auto;
    margin: 24px 0;
}

/* Horizontal Rule */
.blog-post-content hr {
    border: none;
    border-top: 1px solid var(--gray-800);
    margin: 40px 0;
}

/* Inline Code */
.blog-post-content code {
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    font-size: 0.9em;
    background: var(--gray-850);
    padding: 2px 6px;
}

/* Code Blocks */
.blog-post-content pre {
    background: transparent;
    border: none;
    border-left: 1px solid var(--gray-600);
    padding: 16px 0 16px 20px;
    overflow-x: auto;
    margin: 24px 0;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-200);
}

/* Syntax Highlighting (highlight.js compatible) */
.hljs-keyword,
.hljs-selector-tag,
.hljs-built_in,
.hljs-name {
    color: #c792ea;
}

.hljs-string,
.hljs-attr,
.hljs-symbol,
.hljs-bullet {
    color: #c3e88d;
}

.hljs-comment,
.hljs-quote {
    color: #637777;
    font-style: italic;
}

.hljs-number,
.hljs-literal {
    color: #f78c6c;
}

.hljs-function,
.hljs-title {
    color: #82aaff;
}

.hljs-class .hljs-title,
.hljs-type {
    color: #ffcb6b;
}

.hljs-variable,
.hljs-template-variable {
    color: #f07178;
}

.hljs-attribute,
.hljs-tag {
    color: #89ddff;
}

.hljs-meta {
    color: #ffcb6b;
}

.hljs-params {
    color: var(--gray-200);
}

/* Tables */
.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.blog-post-content th,
.blog-post-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-800);
}

.blog-post-content th {
    color: var(--gray-200);
    font-weight: 500;
}

/* Blog Post Footer (navigation links) */
.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    color: var(--gray-600);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-page {
        padding: 60px 30px;
    }

    .blog-header {
        margin-bottom: 48px;
    }

    .blog-title {
        font-size: 36px;
        line-height: 1.2;
    }

    .blog-subtitle {
        font-size: 17px;
        line-height: 1.5;
    }

    .blog-entry {
        margin-bottom: 32px;
        padding: 12px;
        margin-left: -12px;
        margin-right: -12px;
    }

    .blog-entry-title {
        font-size: 17px;
        line-height: 1.4;
    }

    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }

    .blog-meta .separator {
        display: none;
    }

    .blog-post-title {
        font-size: 28px;
    }

    .blog-post-content {
        font-size: 16px;
    }

    .blog-post-content h2 {
        font-size: 22px;
        margin-top: 40px;
    }

    .blog-post-content h3 {
        font-size: 18px;
    }

    .blog-post-content pre {
        padding: 12px 0 12px 16px;
    }

    .blog-post-content pre code {
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .blog-page {
        padding: 50px 20px;
    }

    .blog-title {
        font-size: 34px;
    }

    .blog-post-title {
        font-size: 26px;
    }

    .blog-entry-title {
        font-size: 16px;
    }

    .blog-entry-description {
        font-size: 15px;
        line-height: 1.65;
    }

    .blog-search {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-page {
        padding: 50px 20px;
    }

    .blog-header {
        margin-bottom: 40px;
    }

    .blog-title {
        font-size: 32px;
    }

    .blog-subtitle {
        font-size: 16px;
    }

    .blog-post-title {
        font-size: 24px;
    }

    .blog-entry {
        margin-bottom: 28px;
        padding: 10px;
        margin-left: -10px;
        margin-right: -10px;
    }

    .blog-entry-title {
        font-size: 16px;
    }

    .blog-entry-meta {
        font-size: 13px;
    }

    .blog-entry-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .blog-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ==========================================================================
   Blog Search
   ========================================================================== */

.blog-search {
    max-width: 400px;
    margin: 0 auto 48px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 0;
    color: var(--gray-500);
    font-size: 16px;
    pointer-events: none;
}

#blog-search {
    width: 100%;
    padding: 8px 0 8px 28px;
    font-size: 15px;
    font-family: inherit;
    color: var(--gray-200);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gray-700);
    border-radius: 0;
    transition: border-color 0.2s ease;
}

#blog-search::placeholder {
    color: var(--gray-500);
}

#blog-search:focus {
    outline: none;
    border-bottom-color: var(--clay);
    border-bottom-color: var(--clay-hdr);
}

/* Hide browser's native clear button */
#blog-search::-webkit-search-cancel-button,
#blog-search::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

.clear-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-500);
    background: transparent;
    border: 1px solid var(--gray-700);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.clear-search-btn:hover {
    border-color: var(--gray-500);
    color: var(--gray-300);
}

/* ==========================================================================
   Reading Progress Bar
   ========================================================================== */

.reading-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--clay) 0%, var(--clay-hdr) 100%);
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   Table of Contents
   ========================================================================== */

.toc {
    margin: 32px 0;
    padding: 16px 0 16px 20px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--gray-600);
}

.toc details {
    margin: 0;
}

.toc summary {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--gray-400);
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 0;
    transition: color 0.2s ease;
}

.toc summary:hover {
    color: var(--gray-200);
}

.toc summary::-webkit-details-marker {
    display: none;
}

.toc summary::before {
    content: '\25B6';
    font-size: 10px;
    color: var(--gray-500);
    transition: transform 0.2s ease;
}

.toc details[open] summary::before {
    transform: rotate(90deg);
}

.toc summary:focus-visible {
    outline: 2px solid var(--clay);
    outline: 2px solid var(--clay-hdr);
    outline-offset: 4px;
    border-radius: 4px;
    box-shadow: 0 0 0 4px rgba(167, 123, 91, 0.2);
    box-shadow: 0 0 0 4px color(display-p3 0.72 0.52 0.38 / 0.2);
}

.toc ul {
    margin: 12px 0 0 0;
    padding: 0;
    list-style: none;
}

.toc li {
    margin: 0;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.4;
}

.toc li.toc-h3 {
    padding-left: 16px;
    font-size: 13px;
    color: var(--gray-500);
}

.toc li.toc-h3::before {
    content: '—';
    margin-right: 8px;
    color: var(--gray-600);
}

.toc a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.toc a:hover {
    color: var(--clay);
    color: var(--clay-hdr);
}

/* ==========================================================================
   Code Blocks with Copy Button
   ========================================================================== */

.code-block {
    position: relative;
    margin: 24px 0;
}

.code-block pre {
    margin: 0;
    padding-top: 36px;
}

.code-lang {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.code-block:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    color: var(--gray-300);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    color: var(--clay-hdr);
}

.copy-btn i {
    font-size: 16px;
}

/* ==========================================================================
   Mermaid Diagrams
   ========================================================================== */

.mermaid-container {
    background: transparent;
    border: none;
    border-left: 1px solid var(--gray-600);
    margin: 24px 0;
    overflow: visible;
}

.mermaid-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 0 12px 20px;
    border-bottom: none;
    background: transparent;
}

.mermaid-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    transition: color 0.15s ease;
}

.mermaid-controls button:hover {
    color: var(--gray-300);
}

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

.mermaid-zoom-level {
    min-width: 48px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
    font-variant-numeric: tabular-nums;
}

.mermaid-viewport {
    overflow: visible;
    min-height: 80px;
    padding: 20px;
    cursor: grab;
    position: relative;
}

.mermaid-viewport:active {
    cursor: grabbing;
}

.mermaid-viewport .mermaid {
    display: block;
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

/* Mermaid SVG - no opacity tricks, panzoom handles display */
.mermaid svg {
    display: block;
    max-width: none !important;
    width: auto;
    height: auto;
    user-select: none;
    background: transparent !important;
}

/* Remove ALL mermaid background rects */
.mermaid rect[class=""],
.mermaid svg > rect,
.mermaid .sequenceDiagram > rect {
    fill: transparent !important;
    stroke: none !important;
}

/* Flowchart nodes - need fill to hide crossing lines */
.mermaid .node rect,
.mermaid .node circle,
.mermaid .node polygon,
.mermaid .node ellipse {
    fill: var(--gray-950) !important;
    stroke: var(--gray-600) !important;
    stroke-width: 1px !important;
    rx: 0 !important;
    ry: 0 !important;
}

.mermaid .node .label,
.mermaid .nodeLabel {
    color: var(--gray-300) !important;
}

/* Edge styling */
.mermaid .edgeLabel {
    background-color: var(--gray-950) !important;
    color: var(--gray-500) !important;
}

.mermaid .edgePath path,
.mermaid .flowchart-link {
    stroke: var(--gray-600) !important;
    stroke-width: 1px !important;
}

.mermaid .marker,
.mermaid marker path {
    fill: var(--gray-600) !important;
    stroke: var(--gray-600) !important;
}

/* Sequence diagram actors - transparent fill, just border */
.mermaid .actor {
    fill: transparent !important;
    stroke: var(--gray-600) !important;
    stroke-width: 1px !important;
    rx: 0 !important;
    ry: 0 !important;
}

.mermaid .actor-line {
    stroke: var(--gray-700) !important;
    stroke-dasharray: 4, 4 !important;
}

.mermaid .messageLine0,
.mermaid .messageLine1 {
    stroke: var(--gray-600) !important;
    stroke-width: 1px !important;
}

.mermaid .messageText {
    fill: var(--gray-400) !important;
}

/* Notes with clay accent - transparent fill */
.mermaid .note {
    fill: transparent !important;
    stroke: var(--clay) !important;
    stroke-width: 1px !important;
}

.mermaid .noteText {
    fill: var(--gray-400) !important;
}

/* Activation bars - transparent */
.mermaid .activation0,
.mermaid .activation1,
.mermaid .activation2 {
    fill: transparent !important;
    stroke: var(--gray-600) !important;
    stroke-width: 1px !important;
}

/* Text styling */
.mermaid text {
    fill: var(--gray-300) !important;
}

.mermaid .labelText,
.mermaid .cluster-label text {
    fill: var(--gray-400) !important;
}

/* Cluster/subgraph - dashed outline */
.mermaid .cluster rect {
    fill: var(--gray-950) !important;
    stroke: var(--gray-700) !important;
    stroke-width: 1px !important;
    stroke-dasharray: 4, 4 !important;
}

/* ==========================================================================
   Series Navigation
   ========================================================================== */

.series-nav {
    margin: 32px 0;
    padding: 16px 0 16px 20px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--gray-600);
}

.series-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.series-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.series-name {
    font-size: 14px;
    color: var(--gray-200);
}

.series-list {
    margin: 0;
    padding: 0 0 0 20px;
    list-style-position: inside;
}

.series-list li {
    margin: 8px 0;
    font-size: 14px;
    color: var(--gray-400);
}

.series-list li.current {
    color: var(--gray-050);
    font-weight: 500;
}

.series-list li.current::marker {
    color: var(--gray-050);
}

.series-list a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.series-list a:hover {
    color: var(--clay);
    color: var(--clay-hdr);
}

.series-list li:has(a:hover) {
    color: var(--clay);
    color: var(--clay-hdr);
}

.series-list li:has(a:hover)::marker {
    color: var(--clay);
    color: var(--clay-hdr);
}

/* ==========================================================================
   Related Posts
   ========================================================================== */

.related-posts {
    margin: 48px 0;
}

.related-posts h2 {
    font-size: 18px;
    font-weight: 500;
    color: var(--gray-200);
    margin-bottom: 20px;
}

.related-posts-grid {
    display: grid;
    gap: 16px;
}

.related-post-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0 12px 16px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--gray-600);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease;
}

.related-post-card:visited {
    color: inherit;
}

.related-post-card:hover {
    border-left-color: var(--clay);
    border-left-color: var(--clay-hdr);
}

.related-post-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-200);
    line-height: 1.4;
}

.related-post-date {
    font-size: 13px;
    color: var(--gray-500);
}

/* ==========================================================================
   Post Navigation (Prev/Next)
   ========================================================================== */

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 48px 0;
}

.prev-post,
.next-post {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0 12px 16px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--gray-600);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease;
}

.prev-post:visited,
.next-post:visited {
    color: inherit;
}

.prev-post:hover {
    border-left-color: var(--clay);
    border-left-color: var(--clay-hdr);
}

.prev-post:empty,
.next-post:empty {
    border-left-color: transparent;
    border-right-color: transparent;
}

.prev-post:empty:hover,
.next-post:empty:hover {
    border-left-color: transparent;
    border-right-color: transparent;
}

.next-post {
    text-align: right;
    padding: 12px 16px 12px 0;
    border-left: none;
    border-right: 1px solid var(--gray-600);
}

.next-post:hover {
    border-right-color: var(--clay);
    border-right-color: var(--clay-hdr);
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.next-post .nav-label {
    justify-content: flex-end;
}

.nav-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-300);
    line-height: 1.4;
}

/* ==========================================================================
   Archives Page
   ========================================================================== */

.archives-content {
    margin-top: 32px;
}

.archive-year {
    margin-bottom: 40px;
}

.archive-year h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--clay-hdr);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-850);
}

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

.archive-list li {
    display: flex;
    gap: 16px;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-850);
}

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

.archive-list time {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--gray-500);
    font-family: 'JetBrains Mono', monospace;
}

.archive-list a {
    font-size: 15px;
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.2s ease;
}

.archive-list a:hover {
    color: var(--clay);
    color: var(--clay-hdr);
}

/* ==========================================================================
   Post Author
   ========================================================================== */

.post-author {
    font-style: italic;
}

/* ==========================================================================
   Responsive Adjustments for New Components
   ========================================================================== */

@media (max-width: 768px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }

    .next-post {
        text-align: left;
        padding: 12px 0 12px 16px;
        border-right: none;
        border-left: 1px solid var(--gray-600);
    }

    .next-post:hover {
        border-right-color: transparent;
        border-left-color: var(--clay);
        border-left-color: var(--clay-hdr);
    }

    .next-post .nav-label {
        justify-content: flex-start;
    }

    .code-block .copy-btn {
        opacity: 1;
    }

    .archive-list li {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 600px) {
    .toc {
        padding: 12px 0 12px 16px;
    }

    .series-nav {
        padding: 12px 0 12px 16px;
    }
}

@media (max-width: 480px) {
    #blog-search {
        padding: 8px 0 8px 24px;
        font-size: 14px;
    }

    .search-input-wrapper i {
        font-size: 14px;
    }

    .reading-progress {
        height: 2px;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reading-progress {
        transition: none;
    }

    .divider::before {
        animation: none;
        opacity: 0.4;
    }
}

/* Touch device support */
@media (hover: none) and (pointer: coarse) {
    .tag:active,
    .copy-btn:active,
    .blog-entry-title a:active,
    .archive-link:active,
    .rss-link:active,
    .back-link:active,
    .home-link:active {
        opacity: 0.7;
        transform: scale(0.98);
    }

    /* Minimum tap target size */
    .tag {
        min-height: 44px;
    }

    /* Always show copy button on touch devices */
    .code-block .copy-btn {
        opacity: 1;
    }
}

/* Focus states for interactive elements */
.tag:focus-visible,
.copy-btn:focus-visible,
.mermaid-controls button:focus-visible,
.clear-search-btn:focus-visible,
.prev-post:focus-visible,
.next-post:focus-visible,
.related-post-card:focus-visible {
    outline: 2px solid var(--clay);
    outline: 2px solid var(--clay-hdr);
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(167, 123, 91, 0.2);
    box-shadow: 0 0 0 4px color(display-p3 0.72 0.52 0.38 / 0.2);
}
