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

:root {
    --bg: #0f1117;
    --surface: #1a1d27;
    --border: #2a2d3a;
    --accent: #4f8ef7;
    --accent-dim: #1e3a6e;
    --text: #e2e8f0;
    --text-muted: #8892a4;
    --tag-bg: #1e2535;
}

html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav {
    position: sticky;
    top: 0;
    background: rgba(15, 17, 23, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

nav .logo {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    letter-spacing: 0.05em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

nav ul a:hover {
    color: var(--text);
    text-decoration: none;
}

/* SECTIONS */
section {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

section + section {
    border-top: 1px solid var(--border);
}

.section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* HERO */
#hero {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

#hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

#hero h1 span { color: var(--accent); }

#hero .tagline {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 480px;
}

/* TAGS */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    background: var(--tag-bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

/* POSTS */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.post-card {
    background: var(--surface);
    padding: 1.25rem 1.5rem;
    transition: background 0.15s;
    cursor: default;
}

.post-card:hover {
    background: #1f2335;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.post-card h2 {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* MOBILE */
@media (max-width: 600px) {
    nav { padding: 0.85rem 1.25rem; }
    nav ul { gap: 1.25rem; }
    section { padding: 3rem 1.25rem; }
    #hero { padding-top: 4rem; padding-bottom: 3rem; }
    #hero h1 { font-size: 1.9rem; }
    .post-card { padding: 1rem 1.1rem; }
}
