body {
  font-family: 'Roboto', 'Lato', 'Lora', Verdana, sans-serif;
  margin: auto;
  padding: 20px;
  max-width: 720px;
  text-align: left;
  background-color: #f9f6ee;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
  color: #121212;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
  color: #222;
}

a {
  color: #3273dc;
  /*color: #ff5e6c;*/
}

.title {
  text-decoration: none;
  border: 0;
}

.title span {
  font-weight: 500;
}

nav a {
  margin-right: 10px;
}

textarea {
  width: 100%;
  font-size: 16px;
}

input {
  font-size: 16px;
}

content {
  line-height: 1.6;
}

table {
  width: 100%;
}

img {
  max-width: 100%;
}

code {
  padding: 2px 5px;
  background-color: #f2f2f2;
}

pre code {
  color: #222;
  display: block;
  padding: 20px;
  white-space: pre-wrap;
  font-size: 14px;
}

blockquote {
  border-left: 1px solid #999;
  color: #222;
  padding-left: 20px;
  font-style: italic;
}

footer {
  padding: 25px;
  text-align: center;
}

.helptext {
  color: #777;
  font-size: small;
}

.errorlist {
  color: #eba613;
  font-size: small;
}

.social-media {
  float: right;
}

/* image captions */
figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.4rem;
}

/* featured image */
.featured-image {
  margin: 1.5rem 0;
}

.featured-image img {
  width: 100%;
  border-radius: 4px;
}

/* social share buttons */
.share-section {
  margin: 2rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
  text-align: center;
}

.share-label {
  font-size: 0.8rem;
  color: #777;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.share-buttons {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.95rem;
  text-decoration: none;
  color: white;
  transition: opacity 0.15s, transform 0.15s;
}

.share-btn:hover {
  opacity: 0.82;
  transform: scale(1.1);
  color: white;
}

.share-facebook {
  background: #1877F2;
}

.share-bluesky {
  background: #0085ff;
}


.share-threads {
  background: #111;
}

.share-mastodon {
  background: #6364FF;
}

.share-whatsapp {
  background: #25D366;
}

.share-email {
  background: #555;
}

.share-twitter {
  background: #c00;
}

/* post cards (blog index) */
.post-cards {
  margin: 1.5rem 0;
}

.post-card {
  padding: 1.75rem 0;
  border-bottom: 1px solid #ccc;
}

.post-card:first-child {
  border-top: 1px solid #ccc;
}

.post-card-image-link {
  display: block;
  margin: 0.6rem 0 0.9rem;
}

.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.post-card-title {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0 0 0.35rem;
}

.post-card-title a {
  color: #222;
  text-decoration: none;
}

.post-card-title a:hover {
  color: #3273dc;
}

.post-card-meta {
  font-size: 0.8rem;
  color: #777;
  margin: 0 0 0.5rem;
}

.post-card-excerpt {
  color: #444;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #333;
    color: #ddd;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  strong,
  b {
    color: #eee;
  }

  a {
    color: #8cc2dd;
  }

  code {
    background-color: #777;
  }

  pre code {
    color: #ddd;
  }

  blockquote {
    color: #ccc;
  }

  textarea,
  input {
    background-color: #252525;
    color: #ddd;
  }

  .helptext {
    color: #aaa;
  }

  figcaption {
    color: #aaa;
  }

  .share-section {
    border-top-color: #555;
  }

  .share-label {
    color: #aaa;
  }

  .post-card {
    border-bottom-color: #666;
  }

  .post-card:first-child {
    border-top-color: #666;
  }

  .post-card-title a {
    color: #eee;
  }

  .post-card-title a:hover {
    color: #8cc2dd;
  }

  .post-card-meta {
    color: #aaa;
  }

  .post-card-excerpt {
    color: #bbb;
  }

  .share-threads {
    background: #ccc;
    color: #000;
  }

  .share-threads:hover {
    color: #000;
  }
}