@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

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

:root {
  --red: #e53e3e;
  --red-soft: #fc8181;
  --red-dim: #742a2a;
  --red-faint: #1a0a0a;
  --fg: #e8e6e3;
  --fg2: #b0ada8;
  --fg3: #6b6763;
  --fg4: #3d3a37;
  --bg: #111110;
  --bg2: #1a1917;
  --bg3: #222120;
  --border: #2c2a28;
  --border2: #3a3835;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

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

/* LAYOUT */
.layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 100vh;
  max-width: 860px;
  margin: 0;
  padding: 0 1.5rem 0 0;
}

/* SIDEBAR */
#sidebar { border-right: 1px solid var(--border); }

.sidebar-inner {
  padding: 2.5rem 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  text-align: center;
}

.sidebar-avatar-link {
  display: block;
  margin-bottom: 2rem;
}

.sidebar-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  border: 2px solid var(--border2);
}

.nav-section { margin-bottom: 1.75rem; }

.nav-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg4);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.nav-link {
  display: block;
  font-size: 13px;
  color: var(--fg2);
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.12s;
  line-height: 1.5;
}

.nav-link:hover { color: var(--red); }
.nav-link.active { color: var(--red); font-weight: 600; }

.social-links { display: flex; flex-direction: column; gap: 4px; align-items: center; }

.social-link {
  font-size: 12px;
  color: var(--fg3);
  text-decoration: none;
  transition: color 0.12s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-link:hover { color: var(--red); }
.social-link i { font-size: 13px; }

.sidebar-note {
  font-size: 11px;
  color: var(--fg4);
  line-height: 1.6;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* MAIN */
.main { padding: 2.5rem 0 4rem 2.5rem; }

/* TYPOGRAPHY */
.page-title {
  font-family: 'Source Serif 4', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.page-desc {
  font-size: 14px;
  color: var(--fg3);
  font-weight: 300;
  margin-bottom: 1rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.75rem 0;
}

.section-head {
  font-family: 'Source Serif 4', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 2.5rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* HERO */
.hero-intro {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  color: var(--fg2);
  line-height: 1.75;
  border-left: 2px solid var(--red-dim);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.hero-tag {
  font-size: 11px;
  color: var(--fg3);
  border: 1px solid var(--border2);
  padding: 2px 8px;
  border-radius: 2px;
}

.hero-tag.on {
  color: var(--red-soft);
  border-color: var(--red-dim);
  background: var(--red-faint);
}

/* NOW GRID */
.now-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.now-cell { background: var(--bg2); padding: 0.75rem 1rem; }

.now-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg4);
  font-weight: 600;
  margin-bottom: 3px;
}

.now-val { font-size: 13px; color: var(--fg2); }

/* CATEGORY FILTERS */
.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1rem;
}

.cat-filter {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg3);
  background: none;
  border: 1px solid var(--border2);
  padding: 3px 10px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.cat-filter:hover,
.cat-filter.active {
  color: var(--red-soft);
  border-color: var(--red-dim);
  background: var(--red-faint);
}

/* EXTERNAL PILL */
.external-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg2);
  text-decoration: none;
  border: 1px solid var(--border2);
  background: var(--bg2);
  padding: 3px 9px;
  border-radius: 3px;
  transition: color 0.12s, border-color 0.12s;
}

.external-pill:hover { color: var(--fg); border-color: var(--fg3); }

/* RSS PILL */
.rss-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-soft);
  text-decoration: none;
  border: 1px solid var(--red-dim);
  background: var(--red-faint);
  padding: 3px 9px;
  border-radius: 3px;
}

.rss-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* EMPTY BLOCK */
.empty-block {
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  background: var(--bg2);
  margin-top: 1rem;
}

.empty-title {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  color: var(--fg3);
  font-style: italic;
  margin-bottom: 5px;
}

.empty-sub { font-size: 12px; color: var(--fg4); }

/* POST LIST ITEMS */
.post-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.post-item:first-child { border-top: 1px solid var(--border); }

.post-date {
  font-size: 12px;
  color: var(--fg3);
  padding-top: 3px;
  font-weight: 300;
  line-height: 1.4;
}

.post-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }

.post-cat {
  font-size: 10px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-cat + .post-cat::before { content: "·"; margin-right: 4px; color: var(--fg4); }

.post-title {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 5px;
  transition: color 0.12s;
}

.post-item:hover .post-title { color: var(--red-soft); }

.post-excerpt {
  font-size: 13px;
  color: var(--fg3);
  font-weight: 300;
  line-height: 1.55;
}

/* BLOG POST BODY */
.post-body {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  font-weight: 300;
  color: var(--fg2);
  line-height: 1.85;
}

.post-body p { margin-bottom: 1.5rem; }

.post-body h2 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg4);
  margin: 2.5rem 0 1rem;
}

.post-body h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
  margin: 2rem 0 0.75rem;
}

.post-body a {
  color: var(--red-soft);
  border-bottom: 1px solid var(--red-dim);
  transition: border-color 0.12s;
}

.post-body a:hover { border-color: var(--red-soft); }

.post-body code {
  font-family: monospace;
  font-size: 13px;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 2px 6px;
  color: var(--fg);
}

.post-body pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
}

.post-body blockquote {
  border-left: 2px solid var(--red-dim);
  padding-left: 1.25rem;
  color: var(--fg3);
  margin: 1.5rem 0;
  font-style: italic;
}

.post-body ul, .post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-body li { margin-bottom: 0.4rem; }

.post-meta-block { margin-bottom: 2rem; }

.post-meta-date {
  font-size: 11px;
  font-family: 'Source Sans 3', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg4);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.post-meta-title {
  font-family: 'Source Serif 4', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.post-meta-desc {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  color: var(--fg3);
  border-left: 2px solid var(--red-dim);
  padding-left: 1rem;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg4);
  text-decoration: none;
  transition: color 0.12s;
  font-family: 'Source Sans 3', sans-serif;
}

.back-link:hover { color: var(--red-soft); }
