@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&display=swap");

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
    --primary:        #2a9d8f;
    --primary-dark:   #21867a;
    --primary-light:  #3dbdad;
    --secondary:      #e76f51;
    --secondary-dark: #d65a42;
    --bg:             #020617;
    --bg-card:        #0f172a;
    --bg-card2:       rgba(30, 41, 59, 0.8);
    --border:         rgba(42, 157, 143, 0.2);
    --text:           #f8fafc;
    --text-muted:     #94a3b8;
    --text-dim:       #64748b;
    --radius:         12px;
    --radius-sm:      8px;
    --transition:     0.25s ease;
    --shadow:         0 4px 24px rgba(0,0,0,0.4);
    --shadow-hover:   0 8px 40px rgba(42, 157, 143, 0.25);
    --max-width:      1200px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

.site-logo .logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.site-logo span { color: var(--primary); }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }

.site-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text);
    background: rgba(42, 157, 143, 0.1);
}

.nav-cta {
    background: var(--primary) !important;
    color: var(--text) !important;
    padding: 0.4rem 1rem !important;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.nav-cta:hover { background: var(--primary-dark) !important; }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(42,157,143,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(231,111,81,0.1) 0%, transparent 60%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(42,157,143,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42,157,143,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(42, 157, 143, 0.12);
    border: 1px solid rgba(42, 157, 143, 0.3);
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(42,157,143,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.hero-stat .num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-light);
}
.hero-stat .label {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.15rem;
}

/* ============================================================
   Section Shared
   ============================================================ */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-card); }

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    line-height: 1.2;
}

.section-title .accent { color: var(--primary-light); }

.section-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 0.4rem;
}

.view-all {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}
.view-all:hover { color: var(--primary); }
.view-all::after { content: "→"; transition: transform var(--transition); }
.view-all:hover::after { transform: translateX(3px); }

/* ============================================================
   Series Cards
   ============================================================ */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.series-card {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.series-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.series-card:hover {
    border-color: rgba(42,157,143,0.4);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.series-card:hover::before { transform: scaleX(1); }

.series-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
}

.series-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.series-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.series-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.series-progress {
    margin-bottom: 1.25rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}

.progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 100px;
    transition: width 0.8s ease;
}

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    letter-spacing: 0.02em;
}
.badge-done  { background: rgba(42,157,143,0.15); color: var(--primary-light); }
.badge-wip   { background: rgba(231,111,81,0.15); color: #f4a182; }
.badge-soon  { background: rgba(100,116,139,0.2); color: var(--text-dim); }

.series-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.series-link:hover { color: var(--primary-light); }
.series-link::after { content: "→"; transition: transform var(--transition); }
.series-link:hover::after { transform: translateX(3px); }

/* ============================================================
   Post Cards
   ============================================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    border-color: rgba(42,157,143,0.35);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.post-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-card);
}

.post-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(42,157,143,0.1), rgba(231,111,81,0.05));
}

.post-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.cat-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(42,157,143,0.1);
    padding: 0.15rem 0.55rem;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

.post-card h3 {
    font-size: 0.97rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 0.5rem;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card h3 a { color: inherit; }
.post-card h3 a:hover { color: var(--primary-light); }

.post-card-excerpt {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 1rem;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-dim);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 0.8rem;
    margin-top: auto;
}

.post-date { display: flex; align-items: center; gap: 0.3rem; }

.read-more {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 500;
}
.read-more:hover { color: var(--primary-light); }

/* ============================================================
   Dev Log
   ============================================================ */
.devlog-list { display: flex; flex-direction: column; gap: 0; }

.devlog-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    align-items: start;
    transition: background var(--transition);
}
.devlog-item:last-child { border-bottom: none; }
.devlog-item:hover { background: rgba(42,157,143,0.03); }

.devlog-date {
    font-size: 0.78rem;
    color: var(--text-dim);
    padding-top: 0.2rem;
    font-variant-numeric: tabular-nums;
}

.devlog-dot {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 0.45rem;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--primary);
}

.devlog-body { display: flex; gap: 1rem; }

.devlog-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text);
}
.devlog-content h4 a { color: inherit; }
.devlog-content h4 a:hover { color: var(--primary-light); }

.devlog-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    line-height: 1.7;
    max-width: 240px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.footer-col a:hover { color: var(--primary-light); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ============================================================
   Single Post
   ============================================================ */
.post-hero {
    background: var(--bg-card);
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--border);
}

.post-hero-inner { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

.post-hero .post-card-cats { margin-bottom: 1rem; }

.post-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.82rem;
    color: var(--text-dim);
    flex-wrap: wrap;
}

.post-meta span { display: flex; align-items: center; gap: 0.3rem; }

.post-featured-img {
    max-width: 900px;
    margin: 2.5rem auto 0;
    padding: 0 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
}
.post-featured-img img { border-radius: var(--radius); }

.post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    max-width: var(--max-width);
    margin: 3rem auto;
    padding: 0 1.5rem;
    align-items: start;
}

/* Post Content */
.post-content {
    min-width: 0;
    font-size: 1.0rem;
    line-height: 1.85;
    color: #cbd5e1;
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.post-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin: 2rem 0 0.75rem; }
.post-content h4 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 1.5rem 0 0.5rem; }

.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { margin: 0 0 1.25rem 1.5rem; }
.post-content li { margin-bottom: 0.4rem; }

.post-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(42,157,143,0.06);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
    font-style: italic;
}

.post-content pre {
    background: #0d1424;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.25rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}
.post-content code {
    font-family: "JetBrains Mono", "Fira Code", monospace;
    background: rgba(255,255,255,0.07);
    padding: 0.15em 0.45em;
    border-radius: 4px;
    font-size: 0.875em;
    color: var(--primary-light);
}
.post-content pre code { background: none; padding: 0; color: #e2e8f0; }

.post-content img { border-radius: var(--radius-sm); margin: 1.25rem 0; }
.post-content a { color: var(--primary); border-bottom: 1px solid rgba(42,157,143,0.3); }
.post-content a:hover { color: var(--primary-light); border-bottom-color: var(--primary-light); }

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}
.post-content th {
    background: rgba(42,157,143,0.12);
    padding: 0.6rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border);
}
.post-content td {
    padding: 0.55rem 1rem;
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
}
.post-content tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* Sidebar */
.post-sidebar { position: sticky; top: 84px; }

.sidebar-widget {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.sidebar-widget h4 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.toc-list { display: flex; flex-direction: column; gap: 0.3rem; }
.toc-list a {
    font-size: 0.83rem;
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: all var(--transition);
    display: block;
}
.toc-list a:hover {
    color: var(--primary-light);
    border-left-color: var(--primary);
    background: rgba(42,157,143,0.06);
    padding-left: 0.75rem;
}

.related-posts { display: flex; flex-direction: column; gap: 0.75rem; }
.related-post-item { display: flex; gap: 0.75rem; align-items: center; }
.related-post-item img {
    width: 56px; height: 42px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.related-post-item a {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-post-item a:hover { color: var(--primary-light); }

/* ============================================================
   Archive
   ============================================================ */
.archive-header {
    background: var(--bg-card);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}
.archive-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.4rem; }
.archive-header p { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 3rem 0;
}
.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--transition);
    padding: 0 0.75rem;
}
.pagination .page-numbers:hover,
.pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ============================================================
   404
   ============================================================ */
.page-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 4rem 1.5rem;
}
.page-404 .num {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-404 h2 { font-size: 1.5rem; margin: 1rem 0 0.5rem; }
.page-404 p { color: var(--text-muted); margin-bottom: 2rem; }

/* ============================================================
   Utilities
   ============================================================ */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%       { opacity: 0.8; transform: scale(1.05); }
}

.animate-in { animation: fadeInUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .site-nav { display: none; }
    .site-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: rgba(2,6,23,0.97);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        gap: 0.25rem;
    }
    .nav-toggle { display: flex; }

    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }

    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { position: static; }

    .devlog-item { grid-template-columns: 90px 1fr; gap: 1rem; }

    .hero-stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .series-grid { grid-template-columns: 1fr; }
}
