:root {
    --text-color: #1C1B20;
    --bg-color: #FAA67C;
    --nav-bg: rgba(250, 166, 124, 0.88);
    --accent-color: #E94E64;
    --card-bg: rgba(255, 255, 255, 0.2);
    --border-color: rgba(28, 27, 32, 0.1);
}

body.dark-theme {
    --text-color: #fdf5f2;
    /* Light whitish shade */
    --bg-color: #1C1B20;
    --nav-bg: rgba(28, 27, 32, 0.88);
    --accent-color: #E94E64;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(253, 245, 242, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor for custom cursor */
}

body {
    font-family: 'Inria Serif', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/*
 * ── Night Light Overlay ──────────────────────────────────────────────────────
 * Exact replication of Windows Night Light @ 25% slider (5175 K).
 *
 * Math (from PowerShell KelvinToMultipliers, K = 5175, t = 51.75):
 *   R  mult = 1.0000  → overlay R = 255
 *   G  mult = 0.9066  → overlay G = 231   (99.4708·ln(51.75)−161.1196)/255.19
 *   B  mult = 0.8314  → overlay B = 212   (138.5177·ln(41.75)−305.0448)/255
 *
 * mix-blend-mode: multiply → result_channel = screen_channel × (overlay/255)
 * This is exactly the per-channel LUT the script applies: ptr[i] = bL[ptr[i]]
 * where bL[x] = round(x * mult). Identical mechanism, identical output.
 */
#night-light-overlay {
    position: fixed;
    inset: 0;
    background: rgb(255, 231, 212);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 2147483647;         /* max possible z-index */
    will-change: opacity;
    transition: opacity 0.4s ease;
}

h1,
h2,
h3,
.nav-brand,
.highlight {
    font-family: 'Playfair Display', serif;
}

.italic {
    font-style: italic;
}

/* Type-on-view typing cursor */
.type-on-view {
    position: relative;
}

.type-on-view.typing::after {
    content: "|";
    display: inline-block;
    margin-left: 2px;
    color: currentColor;
    animation: typing-blink 0.9s step-end infinite;
}

@keyframes typing-blink {
    50% {
        opacity: 0;
    }
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor.hovering {
    width: 40px;
    height: 40px;
    background-color: rgba(233, 78, 100, 0.2);
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Hero & Profile Animation */
.hero-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--accent-color);
    transition: transform 0.3s;
}

#profile-pic.in-nav {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 1rem 2rem;
    transform: translateY(-100%);
    transition: transform 0.5s ease, background 0.5s ease;
    border-bottom: 1px solid var(--border-color);
}

nav.visible {
    transform: translateY(0);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar-target {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    flex: 0 0 auto;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* (avatar is animated in via #profile-pic) */

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active-nav-link {
    color: var(--accent-color);
}

/* Main Content */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.section {
    /* min-height: 80vh; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 0;
}

/* Intro row: text left, avatar right */
.intro-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 0;
}

.intro-text {
    flex: 1 1 0;
    min-width: 0;
}

/* Remove the min-height reservation inside intro-text so avatar centers on real content */
.intro-text .content h1,
.intro-text h1 {
    min-height: unset;
}

.intro-avatar-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.intro-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: 0 8px 32px rgba(233, 78, 100, 0.25), 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.3s, opacity 0.6s ease;
    background: var(--card-bg);
    margin-bottom: 64px;
}

.intro-avatar:hover {
    transform: scale(1.06) rotate(2deg);
    box-shadow: 0 16px 48px rgba(233, 78, 100, 0.35), 0 4px 20px rgba(0, 0, 0, 0.18);
}

.content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    min-height: 5rem;
}

.content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.about-card,
.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Fully clickable project cards */
a.card-link {
    display: block;
    color: inherit;
}

a.card-link h3 {
    color: var(--accent-color);
}

a.card-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* Spotify interest card hover background */
.card.spotify {
    position: relative;
    overflow: hidden;
}

.card.spotify::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    background:
        radial-gradient(600px circle at 20% 20%, rgba(30, 215, 96, 0.18), transparent 55%),
        radial-gradient(600px circle at 70% 60%, rgba(233, 78, 100, 0.16), transparent 55%),
        linear-gradient(135deg, rgba(28, 27, 32, 0.08), rgba(250, 166, 124, 0.10));
}

body.dark-theme .card.spotify::before {
    background:
        radial-gradient(600px circle at 20% 20%, rgba(30, 215, 96, 0.14), transparent 55%),
        radial-gradient(600px circle at 70% 60%, rgba(233, 78, 100, 0.14), transparent 55%),
        linear-gradient(135deg, rgba(253, 245, 242, 0.06), rgba(233, 78, 100, 0.06));
}

.card.spotify:hover::before {
    opacity: 1;
}

.card.spotify>* {
    position: relative;
    z-index: 1;
}

.playlist-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.10);
    color: var(--text-color);
    font-family: 'Playfair Display', serif;
}

.playlist-link:hover {
    border-color: var(--accent-color);
}

.quote {
    font-size: 1.2rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    margin: 2rem 0;
    opacity: 0.8;
}

/* Education flowchart */
.education-flowchart {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
}

.education-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.education-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.education-marker {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(233, 78, 100, 0.22), rgba(250, 166, 124, 0.18));
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.education-marker-college {
    background: linear-gradient(145deg, rgba(250, 166, 124, 0.24), rgba(233, 78, 100, 0.12));
}

.education-logo-slot {
    font-family: 'Playfair Display', serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-color);
    opacity: 0.85;
}

.education-line {
    width: 3px;
    flex: 1;
    margin-top: 0.75rem;
    background: linear-gradient(to bottom, var(--accent-color), rgba(233, 78, 100, 0.15));
    border-radius: 999px;
}

.education-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
        var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(700px circle at top right, rgba(233, 78, 100, 0.10), transparent 40%);
    pointer-events: none;
}

.education-card>* {
    position: relative;
    z-index: 1;
}

.education-card-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.education-stage {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(233, 78, 100, 0.12);
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.education-period {
    font-size: 0.9rem;
    opacity: 0.72;
}

.education-card h3 {
    font-size: 1.7rem;
    margin-bottom: 0.6rem;
}

.education-note {
    margin-bottom: 0.75rem;
    opacity: 0.88;
}

.education-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.education-stats span {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.education-card-college {
    margin-top: 0.25rem;
}

body.dark-theme .education-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
        var(--card-bg);
}

body.dark-theme .education-stats span {
    background: rgba(255, 255, 255, 0.04);
}

/* Links & Buttons */
a {
    color: var(--accent-color);
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    transition: all 0.3s;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Grids */
.grid,
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skills-container img,
.rig-badges img {
    max-width: 100%;
    margin-top: 1rem;
}

.rig-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

/* Hidden secret text */
.hidden-secret {
    margin-top: 5rem;
    text-align: center;
    opacity: 0.2;
    transition: opacity 0.5s;
}

.hidden-secret:hover {
    opacity: 1;
}

.subtle-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.site-footer {
    padding: 2rem 0 4rem;
    text-align: center;
    opacity: 0.7;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    z-index: 1000;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.theme-icon {
    display: none;
}

body[data-theme-mode="auto"] .icon-auto {
    display: block;
}

body[data-theme-mode="light"] .icon-light {
    display: block;
}

body[data-theme-mode="dark"] .icon-dark {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .content h1 {
        font-size: 2.5rem;
    }

    #profile-pic {
        width: 150px;
        height: 150px;
    }

    .nav-links {
        display: none;
    }

    .intro-row {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .intro-avatar {
        width: 130px;
        height: 130px;
        align-self: center;
    }

    .education-item {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 0.85rem;
    }

    .education-marker {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .education-card {
        padding: 1.25rem 1.1rem;
    }

    .education-card h3 {
        font-size: 1.35rem;
    }
}

img#profile-pic {
    box-sizing: content-box;
}

/* ═══════════════════════════════════════════════════════════════
   BLOG SYSTEM — blog/index.html + blog/post.html
   All tokens use the existing CSS vars so theme switching works.
   ═══════════════════════════════════════════════════════════════ */

/* ── Page header (blog listing / post title bar) ── */
.blog-header {
    padding: 5rem 0 2.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.blog-header h1 {
    font-size: 3rem;
    min-height: unset;
    margin-bottom: 0.5rem;
}

.blog-header p {
    opacity: 0.7;
    font-size: 1.1rem;
}

/* ── Blog cards grid ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.8rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(500px circle at top right, rgba(233, 78, 100, 0.08), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--accent-color);
    border-color: var(--accent-color);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-date {
    font-size: 0.82rem;
    opacity: 0.65;
    font-family: 'Inria Serif', serif;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.blog-tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(233, 78, 100, 0.12);
    color: var(--accent-color);
    font-size: 0.72rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.05em;
    border: 1px solid rgba(233, 78, 100, 0.2);
}

.blog-card h2 {
    font-size: 1.35rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    line-height: 1.35;
    font-family: 'Playfair Display', serif;
}

.blog-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.7;
    flex: 1;
}

.blog-card-footer {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s, transform 0.25s;
}

.blog-card:hover .blog-card-footer {
    opacity: 1;
    transform: translateX(0);
}

/* ── Blog "all posts" link ── */
.blog-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
    transition: background 0.25s, color 0.25s;
    text-decoration: none;
}

.blog-all-link:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* ── Skeleton loader ── */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--card-bg) 25%,
        rgba(233, 78, 100, 0.07) 50%,
        var(--card-bg) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-line {
    height: 14px;
    border-radius: 4px;
}

.skeleton-line.wide  { width: 70%; }
.skeleton-line.med   { width: 50%; }
.skeleton-line.short { width: 30%; }
.skeleton-line.full  { width: 100%; }
.skeleton-line.tall  { height: 20px; }

/* ── Blog state messages ── */
.blog-empty,
.blog-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    opacity: 0.7;
}

.blog-error {
    color: var(--accent-color);
}

/* ── Post page ── */
.post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 2rem;
    transition: opacity 0.2s, color 0.2s;
    text-decoration: none;
}

.post-back:hover {
    opacity: 1;
    color: var(--accent-color);
}

.post-header {
    margin-bottom: 2.5rem;
}

.post-header h1 {
    font-size: 2.8rem;
    min-height: unset;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.post-header-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    opacity: 0.8;
}

/* ── Post body prose ── */
.post-body {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    line-height: 1.85;
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.post-body h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin: 2.5rem 0 1rem;
}

.post-body h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin: 2rem 0 0.75rem;
}

.post-body h4 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.6rem;
    opacity: 0.9;
}

.post-body p {
    margin-bottom: 1.2rem;
}

.post-body ul,
.post-body ol {
    margin: 1rem 0 1.2rem 1.5rem;
}

.post-body li {
    margin-bottom: 0.4rem;
}

.post-body a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-body blockquote {
    border-left: 3px solid var(--accent-color);
    padding: 0.6rem 1.2rem;
    margin: 1.5rem 0;
    opacity: 0.85;
    font-style: italic;
    background: rgba(233, 78, 100, 0.06);
    border-radius: 0 8px 8px 0;
}

.post-body code {
    font-family: 'Fira Code', 'Cascadia Code', Consolas, Monaco, monospace;
    background: rgba(233, 78, 100, 0.12);
    padding: 0.2em 0.45em;
    border-radius: 5px;
    font-size: 0.88em;
}

/* ── Code Block Container & Header ── */
.code-block-wrapper {
    margin: 1.75rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #1a1b26;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Playfair Display', serif;
    user-select: none;
}

.code-lang-label {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 700;
    opacity: 0.9;
}

.copy-code-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #a9b1d6;
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.copy-code-btn:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.copy-code-btn.copied {
    background: #41a6b5;
    color: #fff;
    border-color: #41a6b5;
}

.post-body pre {
    background: transparent;
    padding: 1.25rem 1.25rem;
    overflow-x: auto;
    margin: 0;
}

.post-body pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    font-family: 'Fira Code', 'Consolas', monospace;
}

/* Syntax theme selector pill */
.code-theme-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.code-theme-picker select {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
}

.post-body hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2.5rem 0;
}

/* Callout block */
.post-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: rgba(233, 78, 100, 0.07);
    border: 1px solid rgba(233, 78, 100, 0.18);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.callout-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1.6;
}

.callout-content {
    flex: 1;
}

/* Image block */
.post-image {
    margin: 1.75rem 0;
    text-align: center;
}

.post-image img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.post-image figcaption {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ── Notion Toggle / Collapsed Block ── */
.post-toggle {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 1.2rem;
    margin: 1.2rem 0;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.post-toggle[open] {
    background: rgba(233, 78, 100, 0.04);
    border-color: rgba(233, 78, 100, 0.25);
}

.post-toggle summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    user-select: none;
}

.post-toggle summary::-webkit-details-marker {
    display: none;
}

.toggle-arrow {
    display: inline-block;
    font-size: 0.75rem;
    transition: transform 0.25s ease;
    color: var(--accent-color);
}

.post-toggle[open] > summary .toggle-arrow {
    transform: rotate(90deg);
}

.toggle-title {
    flex: 1;
}

.toggle-body {
    padding-top: 0.85rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.list-children {
    margin-left: 1.25rem;
    margin-top: 0.35rem;
}

/* To-do item */
.post-todo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.post-todo input[type="checkbox"] {
    accent-color: var(--accent-color);
    width: 16px;
    height: 16px;
    cursor: default;
}

/* Ad slots */
.ad-container {
    min-height: 90px;
    margin: 1.5rem 0;
    border-radius: 10px;
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    font-size: 0.8rem;
    font-style: italic;
}

/* ── Home page blog teaser section ── */
.blog-teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-body {
        padding: 1.5rem 1.25rem;
    }
}