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

:root {
  --black:   #000000;
  --border:  #2a2a2a;
  --white:   #b3b3b3;
  --muted:   #8e8e8e;
  --orange:  #f3b37c;
  --mono: 'IBM Plex Mono', monospace;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
}

nav {
  padding: 1.4rem 2rem;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  text-decoration: none;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.02em;
}

main {
  max-width: 840px;
  margin: 0 auto;
  padding: 3.5rem 2rem 6rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.4rem 2rem;
  font-size: 11px;
  color: var(--muted);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border); }

/* ── INDEX ── */

.post-list {
  list-style: none;
}

.post-item {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
}

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

.post-meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.post-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 0.4rem;
  line-height: 1.4;
  transition: color 0.15s;
}

.post-title:hover { color: var(--orange); }

.post-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.post-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 14px;
  color: var(--orange);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.post-more:hover { opacity: 1; }

/* ── POST PAGE ── */

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post-header .post-title {
  font-size: 18px;
  display: block;
  pointer-events: none;
}

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

.post-body p:last-child { margin-bottom: 0; }

.post-body h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin: 2rem 0 0.6rem;
}

.post-body h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin: 1.5rem 0 0.5rem;
}

.post-body a {
  color: var(--orange);
  text-decoration: none;
  opacity: 0.85;
}

.post-body a:hover { opacity: 1; }

.post-body code {
  font-family: var(--mono);
  font-size: 13px;
  background: #161616;
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 2px;
  color: var(--orange);
}

.post-body pre {
  background: #161616;
  border: 1px solid var(--border);
  padding: 1.2rem;
  margin: 1.4rem 0;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--white);
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.post-body blockquote {
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  color: var(--muted);
  margin: 1.4rem 0;
}

.back {
  display: inline-block;
  margin-top: 3rem;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.back:hover { color: var(--orange); }
