@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=IBM+Plex+Mono:wght@400&display=swap');

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

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.75;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #2d5fd4;
  text-decoration: underline;
  text-decoration-color: rgba(45, 95, 212, 0.35);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

a:hover {
  text-decoration-color: #2d5fd4;
}

/* Layout */

#wrapper {
  display: flex;
  min-height: 100vh;
}

#sidebar {
  width: 210px;
  min-width: 210px;
  padding: 48px 28px 48px 40px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
}

#content {
  margin-left: 210px;
  padding: 48px 56px;
  max-width: 760px;
  flex: 1;
}

/* Sidebar */

#site-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 32px;
}

#site-title a {
  color: #111;
  text-decoration: none;
}

#site-title a:hover {
  color: #2d5fd4;
}

nav ul {
  list-style: none;
}

nav ul li {
  margin-bottom: 0;
}

nav ul li a {
  display: inline-block;
  color: #666;
  text-decoration: none;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color 0.2s;
}

nav ul li a:hover {
  color: #2d5fd4;
}

nav ul li a.active {
  color: #2d5fd4;
  font-weight: 500;
}

/* Content */

#content p {
  margin-bottom: 1.1em;
}

#content strong {
  font-weight: 500;
  color: #2d5fd4;
}

#content em {
  font-style: italic;
  color: #333;
}

#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 0.4em;
  margin-top: 2em;
  color: #111;
}

#content h1:first-child,
#content h2:first-child,
#content h3:first-child {
  margin-top: 0;
}

#content ul,
#content ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

#content li {
  margin-bottom: 0.3em;
}

#content blockquote {
  margin: 1em 0;
  padding-left: 1em;
  border-left: 2px solid rgba(45, 95, 212, 0.4);
  color: #555;
}

#content pre {
  font-family: 'IBM Plex Mono', "Courier New", monospace;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 1em;
  overflow-x: auto;
  background: #f0f0f0;
  padding: 1em;
  border-radius: 3px;
}

#content code {
  font-family: 'IBM Plex Mono', "Courier New", monospace;
  font-size: 12px;
  background: #f0f0f0;
  padding: 1px 4px;
  border-radius: 2px;
}

#content pre code {
  background: none;
  padding: 0;
}

#content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1.5em;
}

#content table {
  border-collapse: collapse;
  margin-bottom: 1.5em;
  width: 100%;
}

#content table td,
#content table th {
  padding: 6px 12px 6px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e0e0e0;
}

#content table th {
  font-weight: 500;
  color: #111;
}

#content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2.5em 0;
}

/* Post list */

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

.post-list li {
  margin-bottom: 6px;
}

.post-meta {
  color: #888;
  font-size: 12px;
}

/* Post */

.post-header {
  margin-bottom: 2em;
}

.post-title {
  font-weight: 500;
  color: #111;
}

/* Syntax highlighting */
.highlight {
  margin-bottom: 1em;
}

.highlight pre {
  margin: 0;
}

/* Responsive */

@media (max-width: 680px) {
  #wrapper {
    flex-direction: column;
  }

  #sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 28px 24px;
  }

  #site-title {
    margin-bottom: 16px;
  }

  nav ul {
    display: flex;
    gap: 16px;
  }

  nav ul li {
    margin-bottom: 0;
  }

  #content {
    margin-left: 0;
    padding: 32px 24px;
    max-width: 100%;
  }
}
