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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #d2d9e6;
  background-color: #282c34;
  padding: 2rem 1rem;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

/* Post page headings */
.post-content h1,
article > header h1 {
  color: #ff80ff;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: #55ffff;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

a {
  color: #55ffff;
  text-decoration: none;
}

a:hover {
  color: #39d4d4;
}

p {
  margin-bottom: 1rem;
}

ul,
ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

blockquote {
  border-left: 3px solid #3e4451;
  padding-left: 1rem;
  margin-bottom: 1rem;
  color: #636d83;
}

code {
  font-family: "Fira Code", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  background-color: #21252b;
  color: #98c379;
  padding: 0.15em 0.35em;
  border-radius: 3px;
  font-size: 0.9em;
}

pre {
  background-color: #21252b;
  border: 1px solid #3e4451;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

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

hr {
  border: none;
  border-top: 1px solid #3e4451;
  margin: 2rem 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* Site header */
.site-header {
  margin-bottom: 2rem;
  text-align: center;
}

.site-header a {
  color: inherit;
}

.site-header h1 {
  color: #f0f4fc;
  font-size: 2rem;
  margin-bottom: 0;
  line-height: 1.1;
}

.site-header h2 {
  color: #c8d0e0;
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 0.15rem;
  margin-bottom: 0;
  line-height: 1.2;
}

/* Contact icons */
.contact-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 0;
  margin-top: 0.6rem;
  margin-bottom: 0;
}

.contact-icon {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  color: #c8d0e0;
  transition: color 0.2s;
}

.contact-icon:hover {
  color: #55ffff;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

/* Post list */
.post-list {
  list-style: none;
  padding-left: 0;
}

.post-list li {
  margin-bottom: 1.5rem;
}

.post-list .post-date {
  display: block;
  color: #636d83;
  font-size: 0.85rem;
}

.post-list .post-title {
  color: #ff80ff;
  font-size: 1.1rem;
  font-weight: bold;
}

.post-list .post-description {
  color: #636d83;
  font-size: 0.95rem;
}

/* Post page */
.post-meta {
  color: #636d83;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.post-content {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: #636d83;
}

.back-link:hover {
  color: #61afef;
}