@import url('/asset?u=https%3A%2F%2Ffonts.googleapis.com%2Fcss2%3Ffamily%3DInter%3Awght%40400%3B500%26display%3Dswap');

body {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: #333;
    line-height: 1.8em;
    font-size: 17px;
}

a {
    color: #3700ff;
    text-decoration: none;
    word-break: break-word;
}
    a:hover {
        border-bottom: 2px solid #3700ff;
    }

html,button,input,select,textarea {
    color: #333;
}

::-moz-selection {
    background: #3700ff;
    text-shadow: none;
    color: #fff;
}

::selection {
    background: #3700ff;
    text-shadow: none;
    color: #fff;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1rem 0;
    padding: 0;
}

img {
    margin: 10px auto 10px auto;
    max-width: 100%;
    display: block;
}

a img {
    border:none;
}

figure {
    margin: 0;
    text-align: center;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

table {
  -ms-overflow-style: -ms-autohiding-scrollbar;
  -webkit-overflow-scrolling: touch;
  background-color: transparent;
  margin-bottom: 1rem;
  overflow-x: auto;
  width: 100%;
}

table th,
table td {
  border-bottom: 1px solid #dee2e6;
  padding: 0.75rem;
  vertical-align: top;
}

table thead th {
  border-bottom: 2px solid #dee2e6;
  vertical-align: bottom;
}

table tbody + tbody {
  border-top: 2px solid #dee2e6;
}

table tbody tr:nth-of-type(even) {
  background-color: rgba(0, 0, 0, 0.15);
}

table th {
  background-color: #212529;
  border-color: #32383e;
  color: #fff;
}

textarea {
    resize: vertical;
}

blockquote {
    margin-left: 1rem;
    font-style: italic;
    font-size: 1.4rem;
    font-family: Georgia,bitstream charter,serif;
    border-left: 3px solid;
    border-color: #3700ff;
    padding-left: 20px;
}

blockquote cite {
    font-size: 70%;
    opacity: .8;
}

blockquote em {
    font-weight: 600;
}


h1, h2, h3, h4, h5, h6 {
    color: #333;
    font-weight: 500;
    line-height: 1.3em;
    margin: 30px 0 20px 0;
}

h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.2rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: .9rem;
}

.align-center {
    text-align: center;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

ul {
    padding-left: 15px;
}

ul.flat {
    margin: 0;
    padding: 0;
}

ul.flat li {
    display: block;
    list-style: none;
    margin-left: 0;
}

.prevent-collapse {
    min-height: .1rem
}

.smaller {
    font-size: 70%;
}

ul {
    list-style: disc inside;
}

.post ul li {
    margin-bottom: 10px;
}

.post ul li p {
    display: inline;
}

.highlight pre {
    margin-bottom: 0;
    margin-top: 0;
    padding: 20px;
    background-color: transparent !important;
}

.highlight {
    background: 0 0;
    background-color: #FAFAFA;
}

.wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.container {
    max-width: 800px;
    margin-top: 30px;
}

.header {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.header .avatar {
    float: left;
    margin: 0 20px 0 0;
}
.header .avatar img {
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 100%;
}
.header .site-title {
    margin: 0;
}
    .site-title a {
        color: #333;
        text-decoration: none !important;
    }
    .site-title a:hover {
        border-bottom-width: 3px;
    }

.header .site-description {
    display: flex;
    justify-content: space-between;
}
    .header .site-description p {
        margin: 0 0 10px 0;
    }

.header nav {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.header nav ul,
.header nav li {
    margin: 0;
    padding: 0;
}

.header nav li {
    display: inline-block;
    list-style: none;
    margin: 0 30px 0 0;
}
    .header nav.social a {
        color: #333;
    }
    .header nav.social a:hover {
        color: #3700ff;
    }

.header .site-description nav {
    margin: 0;
    padding: 0;
    border: none;
    min-width: 50px;
    margin-left: 15px;
}

.header .site-description nav ul svg {
    max-height: 15px;
}

.header .site-description .scheme-toggle {
    height: 100%;
}

.header .site-description .scheme-toggle a svg {
    max-height: 15px;
}

.header .site-description .scheme-toggle a.dark svg {
    fill: #f8e04f;
    color: #f8e04f;
}

.header .site-description .scheme-toggle a.light svg {
    fill: grey;
    color: black;
}

.section .section-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.recent-posts .posts .post {
    margin-bottom: 45px;
}

.post-header {
    display: flex;
}
.post-header .meta .date {
    margin-right: 30px;
    width: 64px;
    text-align: center;
}
.post-header .meta .date .day {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    line-height: 0.45em;
    font-size: 3em;
    display: block;
    margin-bottom: 20px;
}
.post-header .meta .date .rest {
    display: block;
    font-size: 0.75em;
}
.post-header h1.title {
    margin: -10px 0 0 0;
}

.post .title.small {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}
.post .post-header {
    margin-bottom: 30px;
}

.post .draft-label {
    color: #3700ff;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: 6px;
    background-color: #f9f2f4;
}

.post .tags a {
    display: inline-block;
    border: 1px solid #3700ff;
    border-radius: 3px;
    padding: 0px 6px;
    color: #3700ff;
    line-height: 20px;
    font-size: 0.85em;
    text-decoration: none;
    margin: 0 10px 0 0;
}

.list .posts .post-header .meta {
    margin-bottom: 0;
    margin-left: 5px;
}

.footer {
    text-align: right;
    font-size: 0.75em;
    color: #999;
    border-top: 1px solid #f4f4f4;
    margin-top: 40px;
    padding: 15px 0;
}
    .footer a {
        color: #666;
    }
    .footer a:hover {
        color: #3700ff;
    }

.tag-cloud {
    margin-top: 20px;
}

.tag-cloud a {
    margin-right: 15px;
}

.pagination {
    margin: 0;
    padding: 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
}

.pagination li {
    list-style: none;
    display: inline-block;
    margin: 0;
    padding: 0;
}

.pagination .page-prev {
    margin-right: 20px;
    padding-right: 20px;
}

.pagination .page-item.page-prev {
    text-align: left;
}

.pagination .page-item.page-next {
    text-align: right;
}

@media (max-width: 900px) {
    body {
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1rem;
    }

    .container {
        margin-top: 10px;
    }

    .header .nav.social li {
        margin: 0;
    }
    .header .nav li {
        margin: 0 10px 0 0;
        font-size: 0.875em;
    }

    table {
      -ms-overflow-style: -ms-autohiding-scrollbar;
      -webkit-overflow-scrolling: touch;
      display: block;
      overflow-x: auto;
      width: 100%;
    }
}

@media (max-width: 400px) {
    .header .nav.social {
        min-width: auto;
        margin: 0;
    }
    .header .site-description {
        font-size: 1em;
        margin-top: 10px;
        font-size: 0.875em;
        line-height: 1.4em;
    }
}


  /* Linux Terminal / Vim Style */
pre, .highlight pre, .chroma pre {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    font-family: "Courier New", monospace !important;
    border: 1px solid #444444;
    padding: 10px;
    display: block;
    white-space: pre-wrap;
    box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 0.2);
  }

code {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    font-family: "Courier New", monospace !important;
    border: 1px solid #ddd;
    padding: 2px 4px;
    border-radius: 3px;
    display: inline !important;
    font-size: 0.9em;
  }

pre code {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: inherit !important;
    display: inline !important;
  }
  
.chroma .s, pre .s {
    color: #FFFF00 !important; /* Bright Yellow */
    font-weight: bold;
  }
  
  /* ✅ All Other Code in Light Green (Like Vim) */
  .chroma .n, pre .n,   /* Normal Text */
  .chroma .k, pre .k,   /* Keywords */
  .chroma .o, pre .o,   /* Operators */
  .chroma .f, pre .f,   /* Function Names */
  .chroma .p, pre .p,   /* Punctuation */
  .chroma .m, pre .m {  /* Numbers */
    color: #00FF00 !important; /* Light Green */
    font-weight: bold;
  }
  
  /* ✅ Comments in Light Gray */
  .chroma .c, pre .c, code .c {
    color: #AAAAAA !important; /* Light Gray */
    font-style: italic;
  }
  
  /* ✅ Function Names Slightly Brighter */
  .chroma .nf, pre .nf, code .nf {
    color: #33FF33 !important; /* Brighter Green */
  }
  
  /* ✅ Operators (`+`, `=`, `*`, etc.) */
  .chroma .o, pre .o, code .o {
    color: #55FF55 !important; /* Green */
    font-weight: bold;
  }
  
  /* ✅ Built-in Functions (`len()`, `print()`) */
  .chroma .nb, pre .nb, code .nb {
    color: #00FF55 !important; /* Green */
  }
  
  /* ✅ Window Border (Optional) */
  .pre-container {
    background-color: #111111 !important; /* Darker Black Frame */
    border: 2px solid #FFFFFF; /* White Terminal Border */
    padding: 5px;
    border-radius: 3px;
  }
  
  /* ✅ Terminal Title Bar */
  .pre-title {
    background-color: #333333;
    color: #FFFFFF;
    font-weight: bold;
    font-family: "Courier New", monospace;
    padding: 5px;
    text-align: left;
    border-bottom: 2px solid #FFFFFF;
  }

/* Featured Section Styles */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 20px 0;
    color: #333;
}

.featured-section {
    margin-bottom: 40px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.featured-card {
    display: block;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: #333;
    transition: box-shadow 0.2s ease;
}

.featured-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e0e0e0;
}

.featured-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}

.featured-image.no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.featured-title {
    padding: 15px;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Article List Styles */
.recent-section,
.all-articles {
    margin-bottom: 40px;
}

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

.article-item {
    margin-bottom: 8px;
}

.article-link {
    display: flex;
    align-items: baseline;
    text-decoration: none;
    color: #333;
    gap: 8px;
}

.article-link:hover {
    border-bottom: none;
}

.article-link:hover .article-title {
    color: #3700ff;
}

.article-title {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 120px);
}

.article-line {
    flex-grow: 1;
    border-bottom: 1px solid #ccc;
    min-width: 20px;
    margin-bottom: 4px;
}

.article-date {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Year Group Styles */
.year-group {
    margin-bottom: 30px;
}

.year-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 30px 0 20px 0;
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 700px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        max-width: calc(100% - 100px);
    }

    .article-date {
        font-size: 0.85rem;
    }
}
  
/* series + related post navigation */
.series, .related {
    margin: 2em 0 1em;
    padding: 1em 1.25em;
    border-left: 3px solid #ccc;
    background: rgba(127, 127, 127, 0.06);
}
.series-title, .related-title {
    margin: 0 0 0.5em;
    font-weight: 600;
}
.series ol, .related ul {
    margin: 0;
    padding-left: 1.25em;
}
.series li, .related li {
    margin: 0.25em 0;
}
