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

:root {
    --bg: #0d1117;
    --surface: #161b22;
    --surface2: #1c2128;
    --border: #30363d;
    --text: #e6edf3;
    --muted: #7d8590;
    --accent: #58a6ff;
    --accent-dim: #1f3a5a;
    --green: #3fb950;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}

nav {
    border-bottom: 1px solid var(--border);
    padding: 0 clamp(1rem, 5vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    position: sticky;
    top: 0;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
}

.nav-logo span { color: var(--muted); }

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

nav ul li a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

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

.hero {
    padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem) clamp(2rem, 5vw, 4rem);
    max-width: 720px;
}

.hero-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--green);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

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

.hero h1 span { color: var(--muted); font-weight: 400; }

.hero p {
    color: var(--muted);
    font-size: 15px;
    max-width: 500px;
    margin-bottom: 1.5rem;
}

.hero-contact {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--muted);
}

.hero-contact a {
    color: var(--accent);
    text-decoration: none;
}

.hero-contact a:hover { text-decoration: underline; }

.section-header {
    padding: 0 clamp(1rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    white-space: nowrap;
}

.section-header h2 span { color: var(--accent); }

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    margin: 0 clamp(1rem, 5vw, 3rem) 4rem;
}

.card {
    background: var(--surface);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: background 0.15s;
    cursor: pointer;
}

.card:hover { background: var(--surface2); }

.card a {
    text-decoration: none;
    color: inherit;
}

.card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--surface2);
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

.card-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    flex: 1;
}

.card-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    opacity: 0.6;
}

.skeleton {
    animation: pulse 1.5s ease-in-out infinite;
    background: var(--surface2);
    border-radius: 4px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.skeleton-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 0.5rem;
}

.skeleton-line {
    height: 12px;
    margin-bottom: 8px;
}

.skeleton-line.short { width: 60%; }

.empty {
    grid-column: 1 / -1;
    padding: 3rem;
    text-align: center;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem clamp(1rem, 5vw, 3rem);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    opacity: 0.5;
}
