@font-face {
  font-family: 'Meslo LG';
  src: url('/fonts/MesloLGS-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Meslo LG';
  src: url('/fonts/MesloLGS-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Meslo LG';
  src: url('/fonts/MesloLGS-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

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

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background-color: #1a1a1a; }
::-webkit-scrollbar-thumb { background: white; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #88ba1c; }

html { scroll-behavior: smooth; }

body {
  background-color: #1d1f21;
  color: #c9cacc;
  font-family: 'Meslo LG', monospace, sans-serif;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ── Layout ── */

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

/* ── Navigation ── */

nav {
  border-bottom: 1px solid #2a2c2e;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background-color: #1d1f21;
  z-index: 100;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo a {
  color: #c9cacc;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.nav-logo a:hover { color: #4d79b7; }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: #4d79b7; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: #c9cacc;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ── Page header ── */

.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid #2a2c2e;
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: 1.4rem;
  color: #c9cacc;
  font-weight: bold;
  margin-bottom: 0.4rem;
}

.page-header p { color: #666; font-size: 0.8rem; }

/* ── Post list ── */

.post-list { list-style: none; display: flex; flex-direction: column; }

.post-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #2a2c2e;
}

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

.post-date { color: #666; font-size: 0.75rem; }

.post-tag {
  background: none;
  border: 1px solid #2a2c2e;
  color: #4d79b7;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.post-tag:hover { border-color: #4d79b7; }

.post-item h2 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
}

.post-item h2 a {
  color: #c9cacc;
  text-decoration: none;
  transition: color 0.2s;
}

.post-item h2 a:hover { color: #4d79b7; }

.post-item p { color: #666; font-size: 0.8rem; line-height: 1.6; }

.read-more {
  display: inline-block;
  margin-top: 0.6rem;
  color: #FF4700;
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
}

.read-more:hover { color: #FFA500; }

/* ── Single post ── */

.post-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid #2a2c2e;
  margin-bottom: 2rem;
}

.post-header .post-meta { margin-bottom: 1rem; }

.post-header h1 {
  font-size: 1.5rem;
  color: #c9cacc;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.post-header .post-description { color: #666; font-size: 0.85rem; line-height: 1.6; }

.post-content { padding-bottom: 3rem; }

.post-content h2 { font-size: 1.1rem; color: #4d79b7; margin: 2rem 0 0.75rem; }
.post-content h3 { font-size: 0.95rem; color: #c9cacc; margin: 1.5rem 0 0.5rem; }
.post-content p { margin-bottom: 1rem; color: #c9cacc; }

.post-content a {
  color: #4d79b7;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.post-content a:hover { border-bottom-color: white; }

.post-content ul,
.post-content ol { margin: 0.75rem 0 1rem 1.5rem; color: #c9cacc; }

.post-content li { margin-bottom: 0.3rem; }

.post-content blockquote {
  border-left: 2px solid #4d79b7;
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 1.5rem 0;
  color: #888;
  font-style: italic;
}

.post-content code {
  background: #252729;
  color: #FF4700;
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.85em;
}

.post-content pre {
  background: #252729;
  border: 1px solid #2a2c2e;
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.post-content pre code {
  background: none;
  color: #c9cacc;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.post-content hr { border: none; border-top: 1px solid #2a2c2e; margin: 2rem 0; }
.post-content img { max-width: 100%; border-radius: 4px; margin: 1rem 0; }

/* ── Post nav ── */

.post-nav {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid #2a2c2e;
  gap: 1rem;
}

.post-nav a { color: #4d79b7; text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.post-nav a:hover { color: white; }
.post-nav .prev::before { content: '← '; }
.post-nav .next::after  { content: ' →'; }

/* ── About / single pages ── */

.single-page { padding: 3rem 0; }
.single-page h1 { font-size: 1.4rem; color: #c9cacc; margin-bottom: 1.5rem; }
.single-page p { margin-bottom: 1rem; }

.single-page a {
  color: #4d79b7;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.single-page a:hover { border-bottom-color: white; }

/* ── Footer ── */

footer {
  border-top: 1px solid #2a2c2e;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy { color: #444; font-size: 0.75rem; }

.footer-links { display: flex; gap: 1rem; list-style: none; }

.footer-links a { color: #444; text-decoration: none; font-size: 0.75rem; transition: color 0.2s; }
.footer-links a:hover { color: #4d79b7; }

/* ── Responsive ── */

@media (max-width: 650px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1d1f21;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #2a2c2e;
  }

  .nav-links.open { display: flex; }
  nav { position: relative; }
  .nav-hamburger { display: block; }

  footer .container { flex-direction: column; gap: 0.75rem; text-align: center; }
  .post-nav { flex-direction: column; }
}
