/* Colors and type follow the original WordPress theme (Blissful Blog) the blog used in 2016-2017. */
:root {
  --page-background: #eaf6f7;
  --card-background: #ffffff;
  --text: #444444;
  --text-muted: #777777;
  --heading: #333333;
  --link: #336666;
  --link-hover: #669999;
  --rule: #d5e8ea;
  --comment-odd-depth: #f9f9f9;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page-background);
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.125rem;
  line-height: 1.7;
}

a {
  color: var(--link);
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

.page {
  max-width: 920px;
  margin: 0 auto;
  background: var(--card-background);
  min-height: 100vh;
}

.masthead {
  text-align: center;
  border-bottom: 1px solid var(--rule);
}

.masthead-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding-bottom: 1.25rem;
}

.masthead img {
  display: block;
  width: 100%;
  height: auto;
}

.site-title {
  margin: 1rem 1rem 0;
  color: var(--heading);
  font-size: 2.25rem;
  font-weight: normal;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.site-description {
  margin: 0.25rem 1rem 0;
  color: var(--text-muted);
  font-style: italic;
}

main {
  padding: 2rem 2.5rem 1rem;
}

.section-title {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.post-summary {
  padding: 0 0 1.5rem;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.post-summary:last-child {
  border-bottom: 0;
}

.post-summary h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.3;
}

.post-summary h2 a {
  text-decoration: none;
}

.post-summary p {
  margin: 0.5rem 0 0;
}

.post-meta {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.post-title {
  margin: 0;
  color: var(--heading);
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.25;
}

.post-content {
  margin-top: 1.5rem;
  overflow-wrap: break-word;
}

.post-content p,
.post-content ol {
  margin: 0 0 1.25em;
}

/* The original post's numbered list only wraps item 1; items 2+ are plain paragraphs, so the list must sit flush with them. */
.post-content ol {
  padding-left: 0;
  list-style-position: inside;
}

.post-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
}

.post-nav .nav-newer {
  margin-left: auto;
  text-align: right;
}

.comments {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.comments-title {
  margin: 0 0 1rem;
  color: var(--heading);
  font-size: 1.375rem;
  font-weight: normal;
  line-height: 1.3;
}

.comment-list,
.comment-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Alternating shades by thread depth, as in the original theme, keep replies visually distinct from their parent. */
.comment {
  margin: 1rem 0 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule);
  background: var(--comment-odd-depth);
}

.comment.depth-2,
.comment.depth-4 {
  background: var(--card-background);
}

.comment-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.comment-author {
  color: var(--heading);
  font-size: 1rem;
  font-style: normal;
  font-weight: bold;
}

.comment-permalink {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
}

.comment-content {
  overflow-wrap: break-word;
}

.comment-content p,
.comment-content blockquote {
  margin: 0.5rem 0;
}

.site-footer {
  padding: 1.5rem 2.5rem 2rem;
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 600px) {
  body {
    font-size: 1.0625rem;
  }

  main {
    padding: 1.5rem 1rem 0.5rem;
  }

  .site-footer {
    padding: 1.25rem 1rem 1.5rem;
  }

  .site-title {
    font-size: 1.75rem;
  }

  .post-title {
    font-size: 1.625rem;
  }
}
