/* Gregory Gundersen's Minimal Theme */
/* Based on: https://github.com/gwgundersen/blog-theme */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #24292e;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

#wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Header & Navigation */
#name {
  margin-bottom: 20px;
}

#name a {
  font-size: 28px;
  font-weight: 600;
  color: #24292e;
  text-decoration: none;
}

#name a:hover {
  opacity: 0.6;
}

#nav {
  margin-bottom: 60px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e1e4e8;
  margin-left: -30px;
}

/* #nav ul {
  list-style: none;
} */

#nav ul {
    display: flex;
    align-items: center;
    gap: 20px;              /* spacing between all items */
}

.theme-toggle-wrapper {
    margin-left: auto;      /* pushes toggle to the right */
}

#theme-toggle {
    padding: 4px 8px;
}

#nav li {
  display: inline;
  margin-right: 20px;
}

#nav li:last-child {
  margin-right: 0;
}

#nav a {
  color: #24292e;
  text-decoration: none;
  font-size: 16px;
}

#nav a:hover {
  text-decoration: underline;
}

/* Typography */
h1 {
  font-size: 25px;
  font-weight: 600;
  margin: 40px 0 20px;
  line-height: 1.25;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 40px 0 20px;
  line-height: 1.25;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 30px 0 15px;
  line-height: 1.25;
}

p {
  margin-bottom: 20px;
}

a {
  color: #0366d6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Blog listing */
.post-row {
  margin-bottom: 30px;
}

.post-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 3px;
}

.post-title a {
  color: #24292e;
}

.post-subtitle {
  color: #586069;
  font-size: 15px;
  margin-bottom: 2px;
}

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

/* Post page */
#post-header {
  margin-bottom: 25px;
    margin-left: 30px;
}

#post-header h1 {
  margin-bottom: 10px;
}

#post-header .meta {
  font-size: 16px;
}

#post-content {
  line-height: 1.75;
   font-size: 13px;
   width: 800px;
   margin: 0 auto;
}

/* Code */
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 10px;
  background-color: #f6f8fa;
  padding: 3px 6px;
  border-radius: 3px;
}

pre {
  background-color: #f6f8fa;
  padding: 16px;
  overflow: auto;
  font-size: 11px;
  line-height: 1.45;
  border-radius: 6px;
  margin: 30px auto;
  width: 85%;
}

pre code {
  background-color: transparent;
  padding: 0;
  font-size: 100%;
}

/* Math */
.MathJax_Display {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0;
}

/* Lists */
ul, ol {
  margin: 20px 0 20px 30px;
}

li {
  margin-bottom: 8px;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #dfe2e5;
  padding-left: 20px;
  margin: 30px 0;
  color: #6a737d;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  margin: 30px 0;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 30px 0;
}

th, td {
  border: 1px solid #dfe2e5;
  padding: 8px 12px;
  text-align: left;
}

th {
  background-color: #f6f8fa;
  font-weight: 600;
}

/* Horizontal rule */
hr {
  border: 0;
  border-top: 1px solid #e1e4e8;
  margin: 40px 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  #wrapper {
    padding: 40px 15px;
  }
  
  #name a {
    font-size: 14px;
  }
  
  h1 {
    font-size: 20px;
  }
  
  h2 {
    font-size: 17px;
  }
  
  h3 {
    font-size: 15px;
  }
}
.post-divider {
  width: 50%;                 /* half the page width */
  border: 0;
  border-bottom: 1px solid #e1e4e8;
  margin: 30px auto;          /* auto centers it */
}


/* Theme Toggle Button */
#theme-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  color: inherit;
  vertical-align: middle;
}

#theme-toggle:hover {
  opacity: 0.6;
}

/* Dark Theme Styles */
body.dark-theme {
  background-color: #0d1117;
  color: #c9d1d9;
}

body.dark-theme #name a {
  color: #c9d1d9;
}

body.dark-theme #nav {
  border-bottom-color: #30363d;
}

body.dark-theme #nav a {
  color: #c9d1d9;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3 {
  color: #c9d1d9;
}

body.dark-theme a {
  color: #58a6ff;
}

body.dark-theme code {
  background-color: #161b22;
  color: #c9d1d9;
}

body.dark-theme pre {
  background-color: #161b22;
}

body.dark-theme .meta,
body.dark-theme .post-subtitle,
body.dark-theme .pub-authors,
body.dark-theme .pub-venue {
  color: #8b949e;
}

body.dark-theme .post-title a {
  color: #c9d1d9;
}

body.dark-theme hr,
body.dark-theme #nav {
  border-color: #30363d;
}

body.dark-theme blockquote {
  border-left-color: #30363d;
  color: #8b949e;
}

body.dark-theme table th {
  background-color: #161b22;
}

body.dark-theme table td,
body.dark-theme table th {
  border-color: #30363d;
}

/* Light Theme (default) */
body.light-theme {
  background-color: #fff;
  color: #24292e;
}

