/* dylanroy Theme - Clean personal blog inspired by dylanroy.com */

body {
    background: #ffffff !important;
    color: #111827 !important;
    font-family: 'Inter var', 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* ── Nav ── */
.blog-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 48rem !important;
    margin: 0 auto !important;
    padding: 1.5rem 1.25rem !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.blog-nav-brand {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    text-decoration: none !important;
    letter-spacing: -0.01em !important;
}

.blog-nav-brand:hover {
    color: #374151 !important;
}

.blog-nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.blog-nav-links a {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    transition: color 0.15s !important;
}

.blog-nav-links a:hover {
    color: #111827 !important;
}

/* ── Container ── */
.blog-container {
    max-width: 48rem !important;
    margin: 0 auto !important;
    padding: 0 1.25rem 5rem !important;
}

/* ── Blog Header ── */
.blog-title {
    margin: 3rem 0 0.5rem !important;
    color: #111827 !important;
    font-family: 'Inter var', 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: clamp(2rem, 5vw, 2.75rem) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
}

.blog-subtitle {
    margin: 0 0 2rem !important;
    color: #6b7280 !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
}

/* ── Post List ── */
.post-meta {
    color: #9ca3af !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
}

.post-title {
    margin: 0.4rem 0 0 !important;
    color: #111827 !important;
    font-size: clamp(1.3rem, 3vw, 1.6rem) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.015em !important;
}

.post-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.post-title a:hover {
    color: #374151 !important;
}

.post-excerpt {
    margin-top: 0.5rem !important;
    color: #6b7280 !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
}

.blog-container article {
    padding: 2rem 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.blog-container article:last-child {
    border-bottom: none !important;
}

/* ── Post Content ── */
.post-content {
    color: #1f2937 !important;
    font-size: 1.0625rem !important;
    line-height: 1.8 !important;
}

.post-content p {
    margin: 0 0 1.5rem !important;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2.5rem !important;
    margin-bottom: 1rem !important;
    color: #111827 !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.015em !important;
}

.post-content h1 { font-size: 1.875rem !important; }
.post-content h2 { font-size: 1.5rem !important; }
.post-content h3 { font-size: 1.25rem !important; }

.post-content a {
    color: #111827 !important;
    text-decoration: underline !important;
    text-decoration-color: #d1d5db !important;
    text-underline-offset: 3px !important;
}

.post-content a:hover {
    text-decoration-color: #111827 !important;
}

.post-content blockquote {
    margin: 2rem 0 !important;
    padding: 0.125rem 0 0.125rem 1.25rem !important;
    border-left: 3px solid #e5e7eb !important;
    color: #6b7280 !important;
    font-style: italic !important;
}

.post-content pre {
    margin: 2rem 0 !important;
    padding: 1.25rem !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    overflow-x: auto !important;
}

.post-content code {
    padding: 0.1rem 0.3rem !important;
    background: #f3f4f6 !important;
    border-radius: 0.25rem !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 0.875em !important;
    color: #374151 !important;
}

.post-content pre code {
    padding: 0 !important;
    background: transparent !important;
    color: inherit !important;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.5rem 1.5rem !important;
}

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

.post-content img,
.post-content iframe {
    margin: 2rem 0 !important;
    max-width: 100% !important;
    border-radius: 0.5rem !important;
}

.post-content hr {
    border: none !important;
    border-top: 1px solid #e5e7eb !important;
    margin: 2.5rem 0 !important;
}

@media (max-width: 640px) {
    .blog-nav {
        padding: 1rem !important;
    }

    .blog-nav-links {
        gap: 1rem !important;
    }

    .blog-container {
        padding: 0 1rem 3rem !important;
    }

    .blog-title {
        font-size: 1.75rem !important;
    }
}
