/* Xiaolei Wang's Blog - Catppuccin Theme */

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #c6d0f5;
  background: #303446;
  max-width: 55em;
  margin: 1.2em auto;
  padding: 1em;
}

header {
  margin-bottom: 2em;
}

header > nav:last-child {
  border-bottom: 1px solid #414559;
}

.title {
  font-size: 1.2rem;
  font-weight: normal;
  margin-bottom: 1em;
}

.title a {
  text-decoration: none;
  color: #c6d0f5;
}

.title a:hover {
  color: #8caaee;
}

nav ul {
  margin-left: 0;
  padding-left: 0;
  margin-top: 1em;
  list-style: none;
}

nav ul li {
  font-size: 1.1em;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5em;
}

nav a {
  text-decoration: none;
  color: #8caaee;
  padding: 0.2rem 0.4rem;
}

nav a:hover,
nav a[aria-current="page"] {
  text-decoration: underline;
}

nav a.colorscheme {
  background-color: currentColor;
  width: 1.4rem;
  height: 1.4rem;
  display: inline-block;
  content: "";
  margin: 0.14rem;
  vertical-align: middle;
  border-radius: 50%;
  position: relative;
}

nav a.colorscheme::before {
  content: "🎨";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
  background: none;
}

article {
  margin-bottom: 2rem;
}

article header h1,
article header h2 {
  margin-bottom: 0;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  color: #D2B48C;
}

article header h1 a,
article header h2 a {
  text-decoration: none;
  color: #D2B48C;
}

article header h1 a:hover,
article header h2 a:hover {
  color: #8caaee;
  text-decoration: underline;
}

article p {
  margin-bottom: 1rem;
  color: #c6d0f5;
  line-height: 1.6;
}

article time {
  color: #626880;
  font-size: 0.9rem;
}

a {
  color: #8caaee;
  text-decoration: underline;
}

a:hover {
  color: #8caaee;
}

code {
  background: #292c3c;
  color: #e5c890;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.85em;
}

pre {
  background: #292c3c;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid #414559;
}

pre code {
  background: none;
  padding: 0;
  color: #c6d0f5;
}

h1, h2, h3, h4, h5, h6 {
  margin: 1.5rem 0 1rem 0;
  line-height: 1.3;
  color: #D2B48C;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #D2B48C;
}

@media (max-width: 600px) {
  body {
    padding: 1em;
  }
}
