        :root {
            --bg-primary: #f8fafc;
            --bg-secondary: #ffffff;
            --bg-tertiary: #f1f5f9;
            --bg-hover: #f0fdf4;
            --text-primary: #0f172a;
            --text-secondary: #334155;
            --text-tertiary: #475569;
            --text-muted: #64748b;
            --text-light: #94a3b8;
            --border-primary: #e2e8f0;
            --border-secondary: #cbd5e1;
            --accent: #047857;
            --accent-hover: #047857;
            --accent-active: #065f46;
            --accent-light: #dcfce7;
            --accent-lighter: #f0fdf4;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
            --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
        
--header-bg: rgba(255, 255, 255, 0.85);
            --teal-bg: #ccfbf1;
            --teal-text: #0d9488;
            --cyan-bg: #cffafe;
            --cyan-text: #0891b2;
            --loading-bg: rgba(255, 255, 255, 0.9);
            --error-bg: #fef2f2;
            --error-border: #fecaca;
            --error-text: #dc2626;
        }
        [data-theme="dark"] {
            --header-bg: rgba(30, 41, 59, 0.85);

            --bg-primary: #0f172a;
            --bg-secondary: #1e293b;
            --bg-tertiary: #334155;
            --bg-hover: #064e3b;
            --text-primary: #f1f5f9;
            --text-secondary: #e2e8f0;
            --text-tertiary: #cbd5e1;
            --text-muted: #94a3b8;
            --text-light: #64748b;
            --border-primary: #334155;
            --border-secondary: #475569;
            --accent: #10b981;
            --accent-hover: #34d399;
            --accent-light: #064e3b;
            --accent-lighter: #022c22;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
            --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
        
            --accent-active: #6ee7b7;
            --teal-bg: #134e4a;
            --teal-text: #5eead4;
            --cyan-bg: #164e63;
            --cyan-text: #67e8f9;
            --loading-bg: rgba(15, 23, 42, 0.9);
            --error-bg: #450a0a;
            --error-border: #991b1b;
            --error-text: #fca5a5;
        }
        *{ box-sizing:border-box; margin:0; padding:0; }
        html, body { min-width: 320px; }
        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        select:focus-visible,
        textarea:focus-visible {
            outline: 3px solid var(--accent);
            outline-offset: 4px;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--bg-primary);
            color: var(--text-secondary);
            line-height: 1.7;
        }
        body.ready, body.ready * {
            transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }
        /* ICON SYSTEM */
        .icon {
            display: inline-block; width:20px; height:20px;
            background-color: currentColor;
            -webkit-mask-size: contain; mask-size: contain;
            -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
            -webkit-mask-position: center; mask-position: center;
            vertical-align: middle; flex-shrink: 0;
        }
        .icon-logo { -webkit-mask-image: url('/assets/icons/logo.svg'); mask-image: url('/assets/icons/logo.svg'); }
        .icon-moon  { -webkit-mask-image: url('/assets/icons/icon-moon.svg'); mask-image: url('/assets/icons/icon-moon.svg'); }
        .icon-sun   { -webkit-mask-image: url('/assets/icons/icon-sun.svg'); mask-image: url('/assets/icons/icon-sun.svg'); }
        .icon-coffee{ -webkit-mask-image: url('/assets/icons/icon-coffee.svg'); mask-image: url('/assets/icons/icon-coffee.svg'); }
        .icon-github{ -webkit-mask-image: url('/assets/icons/icon-github.svg'); mask-image: url('/assets/icons/icon-github.svg'); }
        .icon-youtube{-webkit-mask-image: url('/assets/icons/icon-youtube.svg'); mask-image: url('/assets/icons/icon-youtube.svg'); }
        .icon-codepen{-webkit-mask-image: url('/assets/icons/icon-codepen.svg'); mask-image: url('/assets/icons/icon-codepen.svg'); }
        .icon-blog  { -webkit-mask-image: url('/assets/icons/icon-blog.svg'); mask-image: url('/assets/icons/icon-blog.svg'); }
        /* HEADER */

        .skip-link {
            position: absolute;
            top: -100%;
            left: 0;
            background: var(--accent);
            color: white;
            padding: 0.5rem 1rem;
            font-weight: 600;
            font-size: 0.875rem;
            z-index: 99999;
            border-radius: 0 0 8px 0;
            text-decoration: none;
            transition: top 0.15s ease;
        }
        .skip-link:focus { top: 0; }
        .header {
            background: var(--header-bg);
            -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-primary);
            padding: 1rem 1.5rem;
            position: sticky; top: 0; z-index: 100;
            transition: background 0.3s ease, border-color 0.3s ease;
        }
        .header-content {
            max-width: 1200px; margin: 0 auto;
            display: flex; align-items: center; justify-content: space-between; gap:1rem;
        }
        .header-left { display:flex; align-items:center; gap:0.75rem; min-width:0; }
        .logo {
            width:40px; height:40px;
            background: linear-gradient(135deg,#047857,#0d9488);
            border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0;
            text-decoration:none;
        }
        .logo .icon { color:white; width:24px; height:24px; }
        .brand a { text-decoration:none; }
        .brand-name {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text-primary);
            white-space: nowrap;
            display: block;
            line-height: 1.2;
        }
        .brand h1 { font-size:1.25rem; font-weight:700; color:var(--text-primary); white-space:nowrap; }
        .brand p  { font-size:0.75rem; color:var(--text-muted); }
        .header-right { display:flex; align-items:center; gap:0.5rem; }
        .nav-link {
            color:var(--text-muted); text-decoration:none; font-size:0.875rem;
            padding:0.5rem 0.75rem; border-radius:6px;
        }
        .nav-link:hover { color:var(--accent); background:var(--accent-lighter); }
        .nav-link[aria-current="page"] { color: var(--accent); background: var(--accent-lighter); font-weight: 600; }
        .theme-btn {
            width:40px; height:40px; border-radius:10px;
            background:var(--bg-tertiary); border:1px solid var(--border-primary);
            display:flex; align-items:center; justify-content:center;
            cursor:pointer; color:var(--text-muted); flex-shrink:0;
        }
        .theme-btn:hover { background:var(--accent-light); color:var(--accent); border-color:var(--accent); }
        .theme-btn .icon { width:20px; height:20px; }
        .theme-btn .icon-sun  { display:none; }
        .theme-btn .icon-moon { display:block; }
        [data-theme="dark"] .theme-btn .icon-sun  { display:block; }
        [data-theme="dark"] .theme-btn .icon-moon { display:none; }
        .coffee-btn {
            display:flex; align-items:center; gap:0.5rem;
            background:#FFDD00; color:#000; padding:0.5rem 1rem;
            border-radius:8px; font-weight:600; font-size:0.875rem;
            text-decoration:none; flex-shrink:0;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }
        .coffee-btn:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(255,221,0,0.4); }
        .coffee-btn .icon { width:20px; height:20px; }
        @media(max-width:640px){
            .brand p { display:none; }
            .nav-link { display:none; }
            .coffee-btn .coffee-text { display:none; }
            .coffee-btn { padding:0.5rem; }
        }
        /* BLOG LAYOUT */
        .blog-wrap {
            max-width: 780px; margin: 3rem auto; padding: 0 1.5rem 4rem;
        }
        /* ARTICLE */
        .article-header { margin-bottom: 2.5rem; }
        .article-tag {
            display:inline-block; background:var(--accent-light); color:var(--accent);
            font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.05em;
            padding:0.25rem 0.75rem; border-radius:999px; margin-bottom:1rem;
        }
        .article-title {
            font-size:2rem; font-weight:800; color:var(--text-primary);
            line-height:1.25; margin-bottom:1rem;
        }
        .article-meta {
            display:flex; align-items:center; gap:1rem; flex-wrap:wrap;
            font-size:0.85rem; color:var(--text-muted);
            border-top:1px solid var(--border-primary);
            padding-top:1rem; margin-top:1rem;
        }
        .article-body h2 {
            font-size:1.4rem; font-weight:700; color:var(--text-primary);
            margin:2.5rem 0 1rem;
        }
        .article-body h3 {
            font-size:1.1rem; font-weight:700; color:var(--text-primary);
            margin:2rem 0 0.75rem;
        }
        .article-body p { margin-bottom:1.25rem; font-size:1.05rem; }
        .article-body ul, .article-body ol {
            margin-bottom:1.25rem; padding-left:1.75rem; font-size:1.05rem;
        }
        .article-body li { margin-bottom:0.6rem; }
        .article-body strong { color:var(--text-primary); font-weight:600; }
        .article-body a { color:var(--accent); text-decoration:none; }
        .article-body a:hover { text-decoration:underline; }
        /* CTA BOX */
        .cta-box {
            background:var(--accent-lighter); border:1px solid var(--accent-light);
            border-radius:12px; padding:1.75rem; margin-top:3rem; text-align:center;
        }
        .cta-box p { font-size:1rem; color:var(--text-secondary); margin-bottom:1rem; }
        .cta-box a {
            display:inline-block; background:var(--accent); color:white;
            padding:0.75rem 1.75rem; border-radius:8px; font-weight:700;
            font-size:0.95rem; text-decoration:none;
            transition: background 0.15s ease, transform 0.15s ease;
        }
        .cta-box a:hover { background:var(--accent-hover); transform:translateY(-1px); }
        /* BLOG INDEX CARD */
        .blog-hero {
            text-align:center; padding:3rem 0 2rem;
            border-bottom:1px solid var(--border-primary); margin-bottom:3rem;
        }
        .blog-hero h1 { font-size:2.25rem; font-weight:800; color:var(--text-primary); margin-bottom:0.75rem; }
        .blog-hero p  { font-size:1.1rem; color:var(--text-muted); max-width:540px; margin:0 auto; }
        .cards-grid { display:grid; gap:1.5rem; }
        .card {
            background:var(--bg-secondary); border:1px solid var(--border-primary);
            border-radius:12px; padding:1.75rem;
            box-shadow:var(--shadow-sm);
            transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
        }
        .card:hover { box-shadow:var(--shadow-lg); transform:translateY(-2px); border-color:var(--accent); }
        .card-tag {
            display:inline-block; background:var(--accent-light); color:var(--accent);
            font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.05em;
            padding:0.2rem 0.6rem; border-radius:999px; margin-bottom:0.75rem;
        }
        .card h2 { font-size:1.2rem; font-weight:700; color:var(--text-primary); margin-bottom:0.6rem; line-height:1.3; }
        .card p  { font-size:0.9rem; color:var(--text-muted); margin-bottom:1rem; }
        .card a.read-more {
            font-size:0.875rem; font-weight:600; color:var(--accent); text-decoration:none;
        }
        .card a.read-more:hover { text-decoration:underline; }
        /* FOOTER */
        .footer {
            background:var(--bg-secondary); border-top:1px solid var(--border-primary);
            margin-top:4rem; padding:2.5rem 1.5rem;
        }
        .footer-inner { max-width:1200px; margin:0 auto; text-align:center; }
        .footer-brand {
            display:flex; align-items:center; justify-content:center;
            gap:0.75rem; margin-bottom:1.5rem;
        }
        .footer-brand .logo { width:32px; height:32px; }
        .footer-brand .logo .icon { width:20px; height:20px; }
        .footer-brand h3 { font-size:1rem; font-weight:700; color:var(--text-primary); }
        .socials { display:flex; justify-content:center; gap:0.75rem; margin-bottom:1.5rem; flex-wrap:wrap; }
        .social {
            width:38px; height:38px; background:var(--bg-tertiary); border-radius:8px;
            display:flex; align-items:center; justify-content:center;
            color:var(--text-muted); text-decoration:none;
            transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
        }
        .social:hover { background:var(--accent); color:white; transform:translateY(-2px); }
        .social .icon { width:18px; height:18px; }
        .footer-text { font-size:0.8rem; color:var(--text-muted); margin-bottom:0.5rem; }
        .footer-text a { color:var(--accent); text-decoration:none; }
        .footer-text a:hover { text-decoration:underline; }
        .coffee-footer {
            display:inline-flex; align-items:center; gap:0.5rem;
            background:#FFDD00; color:#000; padding:0.6rem 1.25rem;
            border-radius:8px; font-weight:600; font-size:0.8rem;
            text-decoration:none; margin-top:1rem;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }
        .coffee-footer:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(255,221,0,0.4); }
        .coffee-footer .icon { width:18px; height:18px; }
        .legal-links {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.25rem 0.1rem;
            margin-top: 1.25rem;
            padding-top: 1.25rem;
            border-top: 1px solid var(--border-primary);
        }
        .legal-links a {
            font-size: 0.78rem;
            color: var(--text-muted);
            text-decoration: none;
            padding: 0.25rem 0.6rem;
            border-radius: 4px;
            transition: color 0.15s ease, background 0.15s ease;
            white-space: nowrap;
        }
        .legal-links a:hover {
            color: var(--accent);
            background: var(--accent-lighter);
        }
        .legal-links a:not(:last-child)::after {
            content: "·";
            margin-left: 0.6rem;
            color: var(--border-secondary);
            pointer-events: none;
        }
        .footer-copyright {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 0.75rem;
        }
        .footer-copyright a {
            color: var(--text-muted);
            text-decoration: none;
        }
        .footer-copyright a:hover {
            color: var(--accent);
        }

        .article-nav {
            margin: 3rem 0 0;
            padding-top: 1.5rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            border-top: 1px solid var(--border-primary);
        }
        .article-back {
            color: var(--accent);
            font-weight: 700;
            text-decoration: none;
            padding: 0;
            border: none;
            background: transparent;
            transition: color 0.15s ease, text-decoration 0.15s ease;
        }
        .article-back:hover {
            color: var(--accent-hover);
            text-decoration: underline;
        }
        .article-nav-links {
            display: flex;
            flex: 1 1 auto;
            gap: 1.25rem;
            min-width: 0;
            justify-content: flex-end;
            flex-wrap: wrap;
        }
        .article-nav-card {
            display: inline-flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.35rem;
            min-width: 210px;
            flex: 1 1 210px;
            padding: 0.35rem 0;
            border: none;
            background: transparent;
            color: var(--text-primary);
            text-decoration: none;
            transition: color 0.15s ease;
        }
        .article-nav-card:hover {
            color: var(--accent);
        }
        .article-nav-card .nav-label,
        .article-nav-card strong {
            display: block;
        }
        .article-nav-card .nav-label {
            font-size: 0.78rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.09em;
            color: var(--text-muted);
        }
        .article-nav-card strong {
            margin-top: 0.15rem;
            font-size: 0.95rem;
            line-height: 1.35;
            color: inherit;
        }
        .article-nav-prev .nav-label::before {
            content: "← ";
        }
        .article-nav-next .nav-label::after {
            content: " →";
        }
        @media(max-width:720px) {
            .article-nav {
                flex-direction: column;
                align-items: stretch;
            }
            .article-nav-links {
                justify-content: stretch;
            }
            .article-nav-card {
                min-width: 0;
                width: 100%;
            }
        }

        
