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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16px;
  line-height: 1.5;
  color: #111;
  background-color: #fdfdfd;
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  border-top: 5px solid #424242;
  border-bottom: 1px solid #e8e8e8;
  position: relative;
  background: #fff;
}

.site-title {
  display: inline-block;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 0;
  color: #424242;
  text-decoration: none;
  line-height: 56px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: #1756a9;
  text-decoration: none;
  font-weight: 500;
}

.nav-list a:hover {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #ddd;
  padding: 6px 10px;
  border-radius: 4px;
}

.nav-trigger {
  display: none;
}

.page-content {
  padding: 30px 0;
  flex: 1;
}

.breadcrumbs {
  font-size: 14px;
  color: #666;
  margin-bottom: 18px;
}

.breadcrumbs .breadcrumbs-inner a {
  color: #1756a9;
  text-decoration: none;
}

.breadcrumbs .sep {
  margin: 0 8px;
  color: #aaa;
}

.content-area {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.main-column {
}

.sidebar {
  background: #fff;
  border-left: 1px solid #eee;
  padding-left: 20px;
}

.widget h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.recent-posts,
.category-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.recent-posts li,
.category-list li {
  margin-bottom: 8px;
}

.post-list {
  list-style: none;
  margin-left: 0;
}

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

.post-meta {
  font-size: 14px;
  color: #828282;
}

.post-link {
  display: inline-block;
  font-size: 24px;
  color: #1756a9;
  text-decoration: none;
}

.post-link:hover {
  text-decoration: underline;
}

.post-title {
  font-size: 42px;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 300;
}

.post-header {
  margin-bottom: 30px;
}

.post-content {
  margin-bottom: 30px;
}

.post-content > h2:first-child {
  margin-top: 30px;
}

.post-content > p,blockquote,pre,ul,ol,dl,div {
  margin-bottom: 15px;
}

.post-content > ul {
  margin-left: 30px;
}

.post-content > p > img {
    max-width: 100%;
    vertical-align: middle
}
.site-footer {
  border-top: 1px solid #e8e8e8;
  padding: 30px 0;
  margin-top: 30px;
  background-color: #f9f9f9;
}

.footer-col-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: start;
}

.footer-col-left {
}

.footer-col-right {
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #1756a9;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-description {
  font-size: 14px;
  color: #666;
  margin: 0;
}



/* Code styling - light theme */
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  overflow-x: auto;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
}

/* Inline code */
:not(pre) > code {
  background-color: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  color: #d73a49;
}

/* Syntax highlighting classes */
.chroma {
  color: #333;
}

.chroma .c { color: #999; } /* Comment */
.chroma .k { color: #000; font-weight: bold; } /* Keyword */
.chroma .l { color: #099; } /* Literal */
.chroma .n { color: #333; } /* Name */
.chroma .o { color: #000; font-weight: bold; } /* Operator */
.chroma .s { color: #d14; } /* String */
.chroma .t { color: #458; font-weight: bold; } /* Type */

/* Line numbers */
.highlight {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px;
  overflow-x: auto;
}

.highlight table {
  border-collapse: collapse;
  width: 100%;
}

.highlight .lnt {
  color: #999;
  user-select: none;
  padding-right: 12px;
  width: 45px;
  text-align: right;
  border-right: 1px solid #e0e0e0;
}

/* Video styling */
video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin: 20px 0;
}

@media screen and (max-width: 800px) {
  .nav-list {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .content-area {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sidebar {
    border-left: none;
    padding-left: 0;
    order: 2;
  }

  .main-column {
    order: 1;
  }

  .post-title {
    font-size: 28px;
  }

  .footer-col-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* checkbox-based reveal */
.site-nav .nav-trigger:checked ~ .nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.site-nav .nav-trigger:checked + .nav-toggle {
  background: #f0f0f0;
}
