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

:root {
  --text: #1a1a1a;
  --text-muted: #666;
  --text-faint: #999;
  --border: #e5e5e5;
  --bg: #fff;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e8e8;
    --text-muted: #aaa;
    --text-faint: #666;
    --border: #2a2a2a;
    --bg: #111;
  }
}

body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.7; }

.container { max-width: 720px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { padding: 1.5rem 0; border-bottom: 0.5px solid var(--border); margin-bottom: 3rem; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-name { font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; }
nav { display: flex; gap: 1.5rem; }
nav a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
nav a:hover { color: var(--text); }

/* Featured */
.featured { padding-bottom: 2.5rem; border-bottom: 0.5px solid var(--border); margin-bottom: 2rem; }
.featured-title { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.3; margin-bottom: 0.75rem; }
.featured-title a { color: var(--text); text-decoration: none; }
.featured-title a:hover { text-decoration: underline; }
.featured-excerpt { font-size: 15px; color: var(--text-muted); margin-bottom: 1rem; }

/* Tags y meta */
.tag { display: block; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.75rem; }
.meta { font-size: 12px; color: var(--text-faint); }

/* Filtros */
.filters-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-btn { font-size: 12px; font-family: var(--sans); padding: 5px 14px; border-radius: 999px; border: 0.5px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
.filter-btn:hover { background: var(--border); }
.filter-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Lista artículos */
.article-list { display: flex; flex-direction: column; }
.article-item { padding: 1.25rem 0; border-bottom: 0.5px solid var(--border); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.article-title { font-family: var(--serif); font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--text); margin-bottom: 0.3rem; }
.article-title:hover { text-decoration: underline; }
.article-cat { font-size: 12px; color: var(--text-faint); }
.article-date { font-size: 12px; color: var(--text-faint); white-space: nowrap; flex-shrink: 0; }
.article-left a { text-decoration: none; }

/* Post individual */
.post { padding: 2rem 0; }
.post-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 0.5px solid var(--border); }
.post-header h1 { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.3; margin-bottom: 0.5rem; }
.post-content { font-size: 16px; line-height: 1.8; }
.post-content h2, .post-content h3 { font-family: var(--serif); font-weight: 500; margin: 2rem 0 1rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content a { color: var(--text); }
.post-content img { max-width: 100%; border-radius: 4px; margin: 1.5rem 0; }
.post-content pre { background: var(--border); padding: 1rem; border-radius: 4px; overflow-x: auto; margin-bottom: 1.25rem; }
.post-content code { font-family: monospace; font-size: 14px; }
.post-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 0.5px solid var(--border); font-size: 14px; }
.post-footer a { color: var(--text-muted); text-decoration: none; }
.post-footer a:hover { color: var(--text); }

/* Sección título */
.section-title { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 2rem; }

/* Footer */
.site-footer { margin-top: 4rem; padding: 2rem 0; border-top: 0.5px solid var(--border); font-size: 13px; color: var(--text-faint); }
.site-footer a { color: var(--text-faint); }
