/* ==========================================================================
   natava.ch — Sharp Premium Dark Theme
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0f;
    --bg-card: rgba(255,255,255,0.03);
    --bg-card-hover: rgba(255,255,255,0.055);
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.16);
    --border-accent: rgba(59,130,246,0.3);
    --text: #e8edf5;
    --text-secondary: #8b95a8;
    --text-muted: #5a6478;
    --text-dim: #3d4557;
    --accent: #4f8fff;
    --accent-hover: #6ba1ff;
    --accent-subtle: rgba(79,143,255,0.08);
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --gradient: linear-gradient(135deg, #4f8fff, #8b5cf6);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1140px;
    --content-width: 720px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Background — subtle, not distracting */
.bg-gradient {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(79,143,255,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 85% 80%, rgba(139,92,246,0.04) 0%, transparent 60%);
    z-index: 0; pointer-events: none;
}

.grid-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1; pointer-events: none;
}

/* =================== HEADER =================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 56px;
}
.site-logo-link { text-decoration: none; }
.site-logo-text {
    font-size: 1.15rem; font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}
.nav-list { display: flex; gap: 0; list-style: none; }
.nav-link {
    display: block; padding: 0.45rem 0.85rem;
    font-size: 0.78rem; font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
    letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--text); }
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 24px; height: 18px; position: relative;
}
.nav-toggle span {
    display: block; width: 100%; height: 1.5px; background: var(--text-muted);
    position: absolute; left: 0; transition: all 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 8px; }
.nav-toggle span:nth-child(3) { top: 16px; }

/* =================== MAIN =================== */
.site-main { position: relative; z-index: 2; min-height: calc(100vh - 56px - 280px); }

/* =================== HOME — HERO =================== */
.hero-featured {
    max-width: var(--max-width); margin: 0 auto;
    padding: 3rem 2rem 2.5rem;
}
.hero-featured-inner { position: relative; }

.hero-label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.6rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.25em;
    color: var(--accent); margin-bottom: 1.5rem;
}
.hero-label-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-featured-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.35s ease;
    text-decoration: none; color: inherit;
    position: relative;
}
.hero-featured-card::after {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--gradient);
    opacity: 0; transition: opacity 0.35s;
}
.hero-featured-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: translateY(-2px);
}
.hero-featured-card:hover::after { opacity: 1; }

.hero-featured-image {
    position: relative; overflow: hidden;
    min-height: 300px;
    background: linear-gradient(135deg, rgba(79,143,255,0.04), rgba(139,92,246,0.04));
}
.hero-featured-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.hero-featured-card:hover .hero-featured-image img { transform: scale(1.02); }

.hero-featured-content {
    padding: 2.5rem 3rem;
    position: relative; z-index: 1;
}
.hero-tag {
    font-size: 0.58rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 1rem;
}
.hero-title {
    font-size: 2.2rem; font-weight: 700;
    letter-spacing: -0.035em; line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}
.hero-excerpt {
    font-size: 0.95rem; line-height: 1.75;
    color: var(--text-secondary); font-weight: 400;
    margin-bottom: 1.75rem;
    max-width: 560px;
}
.hero-meta {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.72rem; color: var(--text-dim);
    margin-bottom: 1.75rem;
}
.hero-meta span { display: flex; align-items: center; }
.hero-author { font-weight: 500; color: var(--text-muted); }
.hero-meta .hero-date::before,
.hero-meta .hero-reading::before {
    content: '\2014'; margin-right: 0.75rem;
    color: var(--text-dim); font-size: 0.65rem;
}
.hero-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.8rem; font-weight: 600;
    color: #fff; padding: 0.65rem 1.5rem;
    background: var(--accent);
    transition: all 0.25s;
    letter-spacing: 0.01em;
}
.hero-cta:hover,
.hero-featured-card:hover .hero-cta {
    background: var(--accent-hover);
}

/* =================== HOME — RECENT POSTS =================== */
.recent-posts {
    max-width: var(--max-width); margin: 0 auto 4rem;
    padding: 0 2rem;
}
.recent-posts-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem; padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.section-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.75rem; font-weight: 500;
    color: var(--text-dim); transition: color 0.2s;
}
.section-link:hover { color: var(--accent); }
.section-link svg { transition: transform 0.2s; }
.section-link:hover svg { transform: translateX(3px); }

.recent-posts-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    border: 1px solid var(--border);
}
.recent-card {
    background: var(--bg-card);
    transition: all 0.25s;
    display: flex; flex-direction: column;
}
.recent-card:hover {
    background: var(--bg-card-hover);
}
.recent-card-image {
    width: 100%; aspect-ratio: 16/9;
    object-fit: cover;
}
.recent-card-content { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.recent-card-title {
    font-size: 0.92rem; font-weight: 600;
    line-height: 1.4; margin-bottom: 0.4rem; color: var(--text);
}
.recent-card-excerpt {
    font-size: 0.78rem; color: var(--text-muted);
    line-height: 1.5; font-weight: 400; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* =================== SHARED =================== */
.divider-line {
    width: 40px; height: 1px;
    background: var(--accent); margin: 1.5rem auto;
}
.section-label {
    font-size: 0.62rem; color: var(--text-dim);
    letter-spacing: 0.3em; text-transform: uppercase;
    font-weight: 600; text-align: center;
    margin-bottom: 0.5rem;
}
.section-sublabel {
    font-size: 0.82rem; color: var(--text-muted);
    text-align: center; margin-bottom: 2rem;
    font-weight: 400; letter-spacing: 0.05em;
}

/* =================== PROJECTS =================== */
.projects-section { max-width: 960px; margin: 0 auto 4rem; padding: 0 2rem; }
.projects-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    border: 1px solid var(--border);
}
.project-card {
    background: var(--bg-card);
    padding: 2rem 1.5rem; text-align: center;
    transition: all 0.25s ease;
    display: flex; flex-direction: column; align-items: center;
    position: relative;
}
.project-card::after {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 1px;
    background: var(--gradient); opacity: 0;
    transition: opacity 0.3s;
}
.project-card:hover {
    background: var(--bg-card-hover);
}
.project-card:hover::after { opacity: 1; }

.project-badge {
    font-size: 0.55rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.75rem; position: relative; z-index: 1;
}
.project-card:nth-child(1) .project-badge { background: rgba(239,68,68,0.1); color: #f87171; }
.project-card:nth-child(2) .project-badge { background: rgba(59,130,246,0.1); color: #60a5fa; }
.project-card:nth-child(3) .project-badge { background: rgba(16,185,129,0.1); color: #34d399; }

.project-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.3rem; font-weight: 700;
    letter-spacing: -0.02em; position: relative; z-index: 1;
}
.project-icon.red {
    background: rgba(239,68,68,0.08);
    color: #f87171; border: 1px solid rgba(239,68,68,0.15);
}
.project-icon.blue {
    background: rgba(59,130,246,0.08);
    color: #60a5fa; border: 1px solid rgba(59,130,246,0.15);
}
.project-icon.green {
    background: rgba(16,185,129,0.08);
    color: #34d399; border: 1px solid rgba(16,185,129,0.15);
}

.project-name { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; z-index: 1; }
.project-domain { font-size: 0.72rem; color: var(--text-dim); margin-bottom: 1rem; z-index: 1; font-family: monospace; }
.project-desc { font-size: 0.82rem; line-height: 1.6; color: var(--text-muted); font-weight: 400; z-index: 1; }
.visit-arrow {
    display: inline-flex; align-items: center; gap: 0.4rem;
    margin-top: auto; padding-top: 1.25rem;
    font-size: 0.75rem; font-weight: 500;
    color: var(--text-dim); transition: color 0.2s; z-index: 1;
}
.project-card:hover .visit-arrow { color: var(--accent); }
.visit-arrow svg { width: 14px; height: 14px; transition: transform 0.2s; }
.project-card:hover .visit-arrow svg { transform: translateX(4px); }

/* =================== RSS FEEDS =================== */
.rss-section { max-width: var(--max-width); margin: 0 auto 3rem; padding: 0 2rem; }
.rss-section-header {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1rem; padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.rss-site-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700;
    flex-shrink: 0;
}
.rss-site-name { font-size: 0.88rem; font-weight: 600; }
.rss-site-url { font-size: 0.68rem; color: var(--text-dim); }
.rss-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    border: 1px solid var(--border);
}
.rss-item {
    display: flex; gap: 0.85rem;
    background: var(--bg-card);
    padding: 0.9rem 1rem;
    transition: all 0.2s;
}
.rss-item:hover {
    background: var(--bg-card-hover);
}
.rss-item-number {
    font-size: 0.65rem; font-weight: 700;
    color: var(--text-dim); min-width: 18px;
    padding-top: 2px; font-variant-numeric: tabular-nums;
    font-family: monospace;
}
.rss-item-content { flex: 1; min-width: 0; }
.rss-item-title {
    font-size: 0.82rem; font-weight: 500;
    color: var(--text); margin-bottom: 0.2rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.rss-item-meta {
    font-size: 0.68rem; color: var(--text-dim);
    display: flex; gap: 0.5rem; align-items: center;
}
.rss-loading {
    text-align: center; padding: 2rem;
    color: var(--text-dim); font-size: 0.82rem;
    grid-column: 1 / -1;
}

/* =================== BLOG / POST LIST =================== */
.page-header {
    text-align: center; padding: 4rem 2rem 2rem;
    max-width: var(--content-width); margin: 0 auto;
}
.page-header h1 {
    font-size: 2.2rem; font-weight: 700;
    letter-spacing: -0.035em; color: #fff;
}
.page-header p {
    color: var(--text-muted); font-size: 0.95rem;
    margin-top: 0.6rem; font-weight: 400;
}
.post-feed {
    max-width: var(--max-width); margin: 0 auto; padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1px;
    border: 1px solid var(--border);
}
.post-card {
    background: var(--bg-card);
    transition: all 0.25s;
    display: flex; flex-direction: column;
}
.post-card:hover {
    background: var(--bg-card-hover);
}
.post-card-image {
    width: 100%; aspect-ratio: 16/9;
    object-fit: cover;
}
.post-card-content { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.post-card-tag {
    font-size: 0.58rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--accent); margin-bottom: 0.5rem;
}
.post-card-title { font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.5rem; }
.post-card-excerpt {
    font-size: 0.82rem; color: var(--text-muted);
    line-height: 1.6; font-weight: 400; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-meta {
    display: flex; align-items: center; gap: 0.75rem;
    margin-top: 1rem; padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    font-size: 0.7rem; color: var(--text-dim);
}
.post-card-reading-time { margin-left: auto; }

/* Pagination */
.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 1rem; padding: 3rem 2rem;
    font-size: 0.82rem; color: var(--text-dim);
}
.pagination a {
    padding: 0.55rem 1.4rem;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); font-weight: 500;
    transition: all 0.2s;
}
.pagination a:hover {
    border-color: var(--border-hover); color: var(--text);
    background: var(--bg-card-hover);
}

/* =================== SINGLE POST =================== */
.post-full { max-width: var(--max-width); margin: 0 auto; padding: 3rem 2rem 4rem; }
.post-full-header {
    text-align: center; margin-bottom: 2.5rem;
    max-width: 800px; margin-left: auto; margin-right: auto;
    padding: 3rem 2rem 0;
}
.post-full-tags {
    display: flex; gap: 0.75rem; justify-content: center;
    margin-bottom: 1.5rem;
}
.post-full-tags a {
    font-size: 0.58rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--accent);
    transition: color 0.2s;
}
.post-full-tags a:hover { color: var(--accent-hover); }
.post-full-title {
    font-size: 2.6rem; font-weight: 700;
    letter-spacing: -0.04em; line-height: 1.15;
    margin-bottom: 1rem; color: #fff;
}
.post-full-excerpt {
    font-size: 1.1rem; color: var(--text-muted);
    font-weight: 400; line-height: 1.7;
    max-width: 600px; margin: 0 auto 1.5rem;
}

/* Meta bar */
.post-full-meta-bar {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; margin-top: 1.5rem;
    font-size: 0.75rem; color: var(--text-dim);
}
.post-meta-author {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 500; color: var(--text-secondary);
}
.post-meta-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    object-fit: cover; border: 1px solid var(--border);
}
.post-meta-avatar-placeholder {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700; color: #fff;
}
.post-meta-sep {
    width: 1px; height: 14px; background: var(--border);
}

.post-full-image {
    width: 100%; max-width: 900px;
    margin: 0 auto 2.5rem;
    border: 1px solid var(--border);
}

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

/* Sidebar */
.post-sidebar {
    position: sticky; top: 76px;
    display: flex; flex-direction: column; gap: 1px;
    border: 1px solid var(--border);
}
.sidebar-card {
    background: var(--bg-card);
    padding: 1.25rem;
}
.sidebar-author { text-align: center; }
.sidebar-author-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    margin: 0 auto 0.75rem; border: 1px solid var(--border);
    object-fit: cover;
}
.sidebar-author-avatar-placeholder {
    width: 48px; height: 48px; border-radius: 50%;
    margin: 0 auto 0.75rem; background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700; color: #fff;
}
.sidebar-author-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; }
.sidebar-author-bio { font-size: 0.72rem; color: var(--text-muted); line-height: 1.5; font-weight: 400; }
.sidebar-meta-item {
    display: flex; justify-content: space-between;
    align-items: center; padding: 0.45rem 0;
}
.sidebar-meta-item + .sidebar-meta-item { border-top: 1px solid var(--border); }
.sidebar-meta-label {
    font-size: 0.6rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--text-dim); display: block; margin-bottom: 0.5rem;
}
.sidebar-meta .sidebar-meta-label { margin-bottom: 0; }
.sidebar-meta-value { font-size: 0.78rem; color: var(--text-secondary); font-weight: 500; }
.sidebar-tag-list { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.sidebar-tag {
    font-size: 0.62rem; font-weight: 500;
    padding: 0.2rem 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-muted); transition: all 0.2s;
}
.sidebar-tag:hover { border-color: var(--accent); color: var(--accent); }
.sidebar-nav-links { display: flex; flex-direction: column; gap: 0.3rem; }
.sidebar-nav-link {
    font-size: 0.78rem; color: var(--text-muted); font-weight: 400;
    padding: 0.35rem 0; transition: color 0.2s;
}
.sidebar-nav-link:hover { color: var(--accent); }

.related-section {
    max-width: var(--max-width); margin: 0 auto;
    padding: 3rem 2rem 2rem; border-top: 1px solid var(--border);
}

/* =================== POST CONTENT =================== */
.post-content {
    font-size: 1rem; line-height: 1.85;
    color: var(--text-secondary); min-width: 0;
}
.post-content h2 {
    font-size: 1.4rem; font-weight: 700;
    color: #fff; margin: 3rem 0 1rem;
    letter-spacing: -0.02em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.post-content h3 {
    font-size: 1.1rem; font-weight: 600;
    color: var(--text); margin: 2rem 0 0.75rem;
    padding-left: 0.85rem;
    border-left: 2px solid var(--accent);
}
.post-content p { margin-bottom: 1.25rem; }
.post-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(79,143,255,0.3);
    transition: text-decoration-color 0.2s;
}
.post-content a:hover { text-decoration-color: rgba(79,143,255,0.8); }

.post-content ul, .post-content ol {
    margin: 0.5rem 0 1.5rem; padding-left: 0; list-style: none;
}
.post-content li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
}
.post-content li::before {
    content: '';
    position: absolute; left: 0.5rem; top: 0.9rem;
    width: 5px; height: 1px;
    background: var(--accent);
}
.post-content li strong { color: var(--text); }

.post-content ol { counter-reset: post-ol; }
.post-content ol li { counter-increment: post-ol; }
.post-content ol li::before {
    content: counter(post-ol);
    width: auto; height: auto;
    font-size: 0.65rem; font-weight: 700;
    color: var(--accent);
    left: 0.3rem; top: 0.6rem;
    background: none;
}

.post-content blockquote {
    padding: 1.5rem 1.75rem; margin: 2rem 0;
    background: var(--accent-subtle);
    border-left: 2px solid var(--accent);
    font-size: 1.05rem; font-weight: 400;
    line-height: 1.6; color: var(--text);
}
.post-content blockquote p { margin-bottom: 0; }
.post-content pre {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    padding: 1.25rem; margin: 1.5rem 0;
    overflow-x: auto; font-size: 0.85rem;
}
.post-content code {
    background: rgba(255,255,255,0.06);
    padding: 0.15rem 0.4rem; font-size: 0.85em;
}
.post-content pre code { background: none; padding: 0; }
.post-content img {
    margin: 1.5rem 0; border: 1px solid var(--border);
}
.post-content hr {
    border: none; height: 1px;
    background: var(--border);
    margin: 2.5rem 0;
}
.post-content table {
    width: 100%; border-collapse: collapse;
    margin: 1.5rem 0; font-size: 0.88rem;
}
.post-content th, .post-content td {
    padding: 0.65rem 1rem; text-align: left;
    border-bottom: 1px solid var(--border);
}
.post-content th {
    font-weight: 600; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* =================== PAGES =================== */
.page-content {
    max-width: var(--content-width);
    margin: 0 auto; padding: 0 2rem 4rem;
}
.page-header-full {
    text-align: center; padding: 4rem 2rem 0;
    max-width: var(--content-width);
    margin: 0 auto 2rem;
}
.page-title {
    font-size: 2.6rem; font-weight: 700;
    letter-spacing: -0.035em; text-align: center;
    margin-bottom: 0.5rem; color: #fff;
}
.page-subtitle {
    text-align: center; color: var(--text-muted);
    font-size: 1rem; font-weight: 400; line-height: 1.7;
}

/* Contact form */
.contact-form { max-width: 560px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-size: 0.75rem; font-weight: 500;
    color: var(--text-secondary); margin-bottom: 0.4rem;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.7rem 0.9rem;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font); font-size: 0.88rem;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-subtle);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-submit {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 1.75rem; background: var(--accent);
    color: white; font-weight: 600; font-size: 0.85rem;
    border: none; cursor: pointer; font-family: var(--font);
    transition: all 0.2s; letter-spacing: 0.01em;
}
.form-submit:hover {
    background: var(--accent-hover);
}
.form-success {
    display: none; text-align: center; padding: 1.5rem;
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.15);
    color: #34d399; font-weight: 500; font-size: 0.9rem;
}
.form-success.show { display: block; }

/* =================== ABOUT PAGE =================== */
.about-page { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem 4rem; }

.about-hero {
    text-align: center;
    padding: 4rem 2rem 0;
    max-width: 800px;
    margin: 0 auto 3rem;
}
.about-hero-inner { position: relative; }
.about-hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.6rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.25em;
    color: var(--accent); margin-bottom: 1.5rem;
}
.about-hero-title {
    font-size: 2.8rem; font-weight: 700;
    letter-spacing: -0.04em; line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
}
.about-hero-subtitle {
    font-size: 1.1rem; color: var(--text-muted);
    font-weight: 400; line-height: 1.7;
    max-width: 560px; margin: 0 auto;
}
.about-hero-line {
    width: 40px; height: 1px;
    background: var(--accent);
    margin: 2rem auto 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}
.about-main { min-width: 0; }
.about-main h2 {
    font-size: 1.4rem; font-weight: 700;
    color: #fff; margin: 3rem 0 1rem;
    letter-spacing: -0.02em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.about-main h2:first-child { margin-top: 0; }
.about-main h3 {
    font-size: 1.05rem; font-weight: 600;
    color: var(--text); margin: 2rem 0 0.75rem;
    padding-left: 0.85rem;
    border-left: 2px solid var(--accent);
}
.about-main p {
    font-size: 1rem; line-height: 1.85;
    color: var(--text-secondary); margin-bottom: 1.25rem;
}
.about-main a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(79,143,255,0.3);
    transition: text-decoration-color 0.2s;
}
.about-main a:hover { text-decoration-color: rgba(79,143,255,0.8); }
.about-main ul, .about-main ol {
    margin: 0.5rem 0 1.5rem; padding-left: 0; list-style: none;
}
.about-main li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
}
.about-main li::before {
    content: '';
    position: absolute; left: 0.5rem; top: 0.9rem;
    width: 5px; height: 1px;
    background: var(--accent);
}
.about-main li strong { color: var(--text); }
.about-main strong { color: var(--text); }

.about-sidebar {
    position: sticky; top: 76px;
    display: flex; flex-direction: column; gap: 1px;
    border: 1px solid var(--border);
}
.about-sidebar-card {
    background: var(--bg-card);
    padding: 1.25rem;
}
.about-sidebar-highlight {
    background: var(--accent-subtle);
    text-align: center;
}
.about-sidebar-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(79,143,255,0.1);
    border: 1px solid rgba(79,143,255,0.15);
    margin: 0 auto 1rem;
    color: var(--accent);
}
.about-sidebar-highlight h3 {
    font-size: 0.92rem; font-weight: 600;
    margin-bottom: 0.4rem; color: var(--text);
}
.about-sidebar-highlight p {
    font-size: 0.8rem; color: var(--text-muted);
    line-height: 1.6; font-weight: 400;
}
.about-sidebar-label {
    font-size: 0.6rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--text-dim); margin-bottom: 0.85rem;
}

.about-platform-list { display: flex; flex-direction: column; gap: 0; }
.about-platform {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.55rem 0.5rem;
    transition: background 0.2s;
}
.about-platform:hover { background: rgba(255,255,255,0.03); }
.about-platform-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700;
    flex-shrink: 0;
}
.about-platform-icon.red {
    background: rgba(239,68,68,0.08);
    color: #f87171; border: 1px solid rgba(239,68,68,0.15);
}
.about-platform-icon.blue {
    background: rgba(59,130,246,0.08);
    color: #60a5fa; border: 1px solid rgba(59,130,246,0.15);
}
.about-platform-icon.green {
    background: rgba(16,185,129,0.08);
    color: #34d399; border: 1px solid rgba(16,185,129,0.15);
}
.about-platform-name { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); }
.about-platform-desc { display: block; font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }

.about-quick-links { display: flex; flex-direction: column; gap: 0.25rem; }
.about-quick-links a {
    font-size: 0.82rem; color: var(--text-muted);
    padding: 0.3rem 0; transition: color 0.2s;
}
.about-quick-links a:hover { color: var(--accent); }

.about-sidebar-location {
    display: flex; align-items: center; gap: 0.75rem;
    flex-wrap: wrap;
}
.about-sidebar-location p {
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary); margin: 0;
}
.about-sidebar-flag { font-size: 1.3rem; margin-left: auto; }

/* =================== TAG / AUTHOR =================== */
.tag-header { text-align: center; padding: 4rem 2rem 1rem; }
.tag-header h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
.tag-header p { color: var(--text-muted); font-size: 0.88rem; }

/* =================== ERROR =================== */
.error-page {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: 60vh; text-align: center; padding: 2rem;
}
.error-code {
    font-size: 7rem; font-weight: 800;
    color: var(--accent); line-height: 1;
}
.error-page h1 { font-size: 1.3rem; margin-top: 1rem; color: var(--text-secondary); font-weight: 500; }
.error-page a {
    margin-top: 2rem; padding: 0.6rem 1.5rem;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); font-weight: 500; transition: all 0.2s;
}
.error-page a:hover { border-color: var(--accent); color: var(--text); }

/* =================== FOOTER =================== */
.site-footer {
    position: relative; z-index: 2;
    border-top: 1px solid var(--border); margin-top: 4rem;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto; padding: 3rem 2rem 2rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem; margin-bottom: 2rem;
}
.footer-logo {
    font-size: 1.1rem; font-weight: 700;
    color: #fff;
}
.footer-tagline { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.5rem; line-height: 1.5; }
.footer-links h4 {
    font-size: 0.6rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--text-secondary); margin-bottom: 0.75rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a { font-size: 0.82rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    display: flex; justify-content: center;
    padding-top: 1.5rem; border-top: 1px solid var(--border);
    font-size: 0.72rem; color: var(--text-dim);
}

/* =================== RESPONSIVE =================== */
@media (max-width: 960px) {
    .post-layout { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.5rem; }
    .post-sidebar {
        position: static; display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1px; border-top: 1px solid var(--border); padding-top: 0;
    }
    .about-content { grid-template-columns: 1fr; gap: 2rem; }
    .about-sidebar {
        position: static; display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1px; border-top: 1px solid var(--border); padding-top: 0;
    }
}
@media (max-width: 768px) {
    .hero-featured { padding: 1.5rem 1.5rem 2rem; }
    .hero-featured-content { padding: 1.75rem 1.5rem; }
    .hero-title { font-size: 1.5rem; }
    .hero-excerpt { font-size: 0.88rem; }
    .hero-cta { font-size: 0.78rem; padding: 0.55rem 1.2rem; }
    .recent-posts-grid { grid-template-columns: 1fr; }
    .recent-posts { padding: 0 1.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .rss-grid { grid-template-columns: 1fr; }
    .post-feed { grid-template-columns: 1fr; padding: 1.5rem; gap: 1px; }
    .post-full-title { font-size: 1.9rem; }
    .post-full-header { padding: 2rem 1.5rem 0; }
    .page-title { font-size: 1.9rem; }
    .about-hero-title { font-size: 2rem; }
    .about-page { padding: 0 1.5rem 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .page-header h1 { font-size: 1.8rem; }
    .post-sidebar { grid-template-columns: 1fr 1fr; gap: 1px; }
    .nav-list {
        display: none; position: fixed; top: 56px; left: 0;
        width: 100%; background: rgba(10,10,15,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column; padding: 0.75rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-list.open { display: flex; }
    .nav-toggle { display: block; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.3rem; }
    .hero-featured-content { padding: 1.25rem 1rem; }
    .hero-meta { flex-wrap: wrap; gap: 0.4rem; }
    .rss-item { padding: 0.75rem; }
    .post-full { padding: 2rem 1.25rem 3rem; }
    .post-sidebar { grid-template-columns: 1fr; gap: 1px; }
    .post-full-title { font-size: 1.6rem; }
    .about-hero-title { font-size: 1.7rem; }
}
