/* --------------------------------------------------------------------------
   Ledger123 blog theme — typography and layout ported from the Shoreditch
   WordPress theme used on ledger123blog.wordpress.com.  Everything is scoped
   under .sl-blog so the rest of the site keeps its plain Bootstrap look.
   Palette: text #7a7c84, headings/links #2c313f, accent #3e69dc, rules #f3f3f3.
   -------------------------------------------------------------------------- */

.sl-blog {
  color: #7a7c84;
  font-family: Lato, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------- layout --- */

.sl-blog-wrap {
  margin: 0 auto;
  max-width: 56.25rem;          /* 900px, as in the WP theme */
  width: calc(100% - 3em);
}

.sl-blog-content {
  padding-bottom: 1.5em;
  width: 100%;
}

.sl-blog .widget-area {
  border-top: 1.5em solid #2c313f;
  padding: 1.5em 0 0;
  width: 100%;
}

@media screen and (min-width: 896px) {
  .sl-blog-wrap {
    display: flex;
    flex-flow: row wrap;
  }
  .sl-blog-content {
    order: 1;
    padding-bottom: 3em;
    width: 66.666667%;
  }
  .sl-blog .widget-area {
    border-top: 0;
    order: 2;
    padding: 4.5em 0 2.25em 2em;
    width: 33.333333%;
  }
}

/* ----------------------------------------------------------- typography --- */

.sl-blog h1,
.sl-blog h2,
.sl-blog h3,
.sl-blog h4,
.sl-blog h5,
.sl-blog h6 {
  clear: both;
  color: #2c313f;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.sl-blog h1,
.sl-blog .entry-title {
  font-size: 2.5rem;
  line-height: 1.2;
}

.sl-blog h2 {
  font-size: 2rem;
  line-height: 1.125;
}

.sl-blog h3,
.sl-blog .page-title,
.sl-blog .widget-title {
  font-size: 1.5625rem;
  line-height: 1.2;
}

.sl-blog h4 {
  font-size: 1.25rem;
  line-height: 1.5;
}

.sl-blog h5 {
  font-size: 1rem;
  line-height: 1.5;
}

.sl-blog h6 {
  font-size: 0.8125rem;
  line-height: 1.3847;
}

.sl-blog .entry-content h2,
.sl-blog .entry-content h3,
.sl-blog .entry-content h4,
.sl-blog .entry-content h5,
.sl-blog .entry-content h6 {
  margin-top: 2.25rem;
}

.sl-blog p,
.sl-blog address,
.sl-blog pre,
.sl-blog figure,
.sl-blog table {
  margin: 0 0 1.5em;
}

.sl-blog ul,
.sl-blog ol {
  margin: 0 0 1.5em 1.25em;
  padding: 0;
}

.sl-blog li > ul,
.sl-blog li > ol {
  margin-bottom: 0;
  margin-left: 1.25em;
}

.sl-blog ul { list-style: outside disc; }
.sl-blog ol { list-style: outside decimal; }

.sl-blog dfn,
.sl-blog cite,
.sl-blog em,
.sl-blog i { font-style: italic; }

.sl-blog b,
.sl-blog strong { font-weight: 700; }

.sl-blog blockquote {
  border: 0 solid #3e69dc;
  border-left-width: 2px;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.sl-blog blockquote > :last-child { margin-bottom: 0; }

.sl-blog blockquote cite {
  color: #2c313f;
  display: block;
}

.sl-blog code,
.sl-blog kbd,
.sl-blog tt,
.sl-blog var {
  background: #f3f3f3;
  color: #2c313f;
  font-family: Inconsolata, monospace;
  font-size: 1em;
  padding: 0 0.25em;
}

.sl-blog pre {
  background: none;
  border: 1px solid #f3f3f3;
  color: #2c313f;
  font-family: Inconsolata, monospace;
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 100%;
  overflow: auto;
  padding: 1.5em;
}

.sl-blog pre code {
  background: none;
  padding: 0;
}

.sl-blog hr {
  background-color: #f3f3f3;
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
  opacity: 1;
}

.sl-blog img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

.sl-blog figure img { display: block; }

.sl-blog table {
  border-collapse: collapse;
  width: 100%;
}

.sl-blog th,
.sl-blog td {
  border-bottom: 1px solid #f3f3f3;
  padding: 0.5em 0.75em 0.5em 0;
  text-align: left;
  vertical-align: top;
}

.sl-blog th {
  color: #2c313f;
  font-family: Poppins, sans-serif;
}

/* --------------------------------------------------------------- links --- */

.sl-blog a {
  color: #2c313f;
  text-decoration: none;
}

.sl-blog a:focus,
.sl-blog a:hover {
  color: #3e69dc;
  outline: 0;
}

.sl-blog .entry-content a,
.sl-blog .entry-summary a {
  box-shadow: 0 1px 0 0;          /* the theme's underline-on-links effect */
}

.sl-blog .entry-content a:focus,
.sl-blog .entry-content a:hover,
.sl-blog .entry-summary a:focus,
.sl-blog .entry-summary a:hover {
  box-shadow: none;
}

.sl-blog .entry-content a:has(img) { box-shadow: none; }

/* --------------------------------------------------------------- posts --- */

.sl-blog .page-header {
  border-bottom: 1px solid #f3f3f3;
  padding-bottom: 1.5em;
  padding-top: 3em;
}

.sl-blog .page-header .page-title { margin-bottom: 0.375rem; }

.sl-blog .page-title span { color: #7a7c84; }
.sl-blog .page-header p:last-child { margin-bottom: 0; }

.sl-blog .hentry {
  border-bottom: 1px solid #f3f3f3;
  padding-bottom: 3em;
  padding-top: 3em;
}

.sl-blog .hentry:last-of-type { border-bottom: 0; }

.sl-blog .entry-header { color: #2c313f; }

.sl-blog .entry-title { margin-bottom: 1.5rem; }

.sl-blog .entry-title a { color: inherit; }

.sl-blog .entry-meta,
.sl-blog .entry-footer {
  font-size: 0.8125rem;
  line-height: 1.3847;
}

.sl-blog .entry-meta {
  font-weight: 700;
  margin-bottom: 0.375rem;
  text-transform: uppercase;
}

.sl-blog .entry-footer { margin-top: 1.5rem; }

.sl-blog .entry-footer > span {
  display: inline-block;
  padding: 0.1875rem 0;
}

.sl-blog .entry-footer > span:not(:last-child):after {
  color: #f3f3f3;
  content: "\002f";
  display: inline-block;
  padding: 0 0.5em;
}

.sl-blog .tags-links a { color: inherit; }

.sl-blog .tags-links a:focus,
.sl-blog .tags-links a:hover { color: #3e69dc; }

.sl-blog .entry-meta a,
.sl-blog .entry-footer a { color: inherit; }

.sl-blog .entry-meta a:focus,
.sl-blog .entry-meta a:hover,
.sl-blog .entry-footer a:focus,
.sl-blog .entry-footer a:hover { color: #3e69dc; }

.sl-blog .entry-content > :last-child { margin-bottom: 0; }

/* WordPress block markup carried over from the imported posts */
.sl-blog .wp-block-image { margin: 0 0 1.5em; }

.sl-blog .wp-block-gallery.is-layout-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin: 0 0 1.5em;
}

.sl-blog .wp-block-gallery.is-layout-flex > .wp-block-image {
  flex-grow: 1;
  margin: 0;
  width: calc(50% - 0.5em);
}

@media screen and (max-width: 599px) {
  .sl-blog .wp-block-gallery.is-layout-flex > .wp-block-image { width: 100%; }
}

.sl-blog figcaption {
  font-size: 0.8125rem;
  line-height: 1.3847;
  padding-top: 0.5em;
}

/* ---------------------------------------------------------- navigation --- */

.sl-blog .posts-navigation {
  display: flex;
  flex-wrap: wrap;
  font-family: Poppins, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  justify-content: space-between;
  padding-top: 3em;
  text-transform: uppercase;
}

.sl-blog .posts-navigation .nav-next { margin-left: auto; }

.sl-blog .post-navigation {
  border-top: 1px solid #f3f3f3;
  margin-top: 3em;
  padding-top: 1.5em;
}

/* ------------------------------------------------------------- widgets --- */

.sl-blog .widget { margin: 0 0 1.5em; }

.sl-blog .widget:last-child { margin-bottom: 0; }

.sl-blog .widget-title {
  margin-bottom: 1rem;
}

.sl-blog .widget ul {
  border-bottom: 1px solid #f3f3f3;
  list-style: none;
  margin: 0;
}

.sl-blog .widget li {
  border-top: 1px solid #f3f3f3;
  padding: 0.75em 0;
}

/* Tag cloud — sizes come inline from the WordPress 8pt..22pt formula */
.sl-blog .tagcloud {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 1.25em;
}

.sl-blog .tagcloud a {
  background: #f3f3f3;
  display: block;
  line-height: 1.4;
  margin: 0 0.25em 0.25em 0;
  padding: 0.25em 0.5em;
}

.sl-blog .widget .post-date {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
}
