/* ==========================================================
   Weblogism – main stylesheet
   Theme: white + cornflower blue (#6495ed), Lora serif
   ========================================================== */

/* ---- Reset & Base ---------------------------------------- */

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

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

body {
  margin: 0;
  padding: 0;
  font-family: 'EB Garamond', Georgia, 'Times New Roman', Times, serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #2c2c2c;
  background-color: #ffffff;
}

/* ---- Page Layout ----------------------------------------- */

#wrapper {
  max-width: 1500px;
  margin-left: 1.5rem;
  margin-right: 1rem;
  padding: 0;
}

/* Logo banner at top */
#head {
  padding: 1.8rem 0 1.2rem 0;
  border-bottom: 1px solid #e8eef8;
  margin-bottom: 2rem;
}

/* Main two-column row: content left, sidebar right */
#main {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

/* Main content area — gets all remaining space */
#content {
  flex: 1;
  min-width: 0;
}

/* Sidebar — right column */
#sidebar-1 {
  width: 185px;
  flex-shrink: 0;
  padding-left: 2rem;
  border-left: 1px solid #e8eef8;
}

/* Footer */
#footer {
  border-top: 1px solid #e8eef8;
  margin-top: 3rem;
  padding: 1.2rem 0;
  text-align: center;
  color: #888;
  font-family: 'Source Sans 3', Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

#footer p {
  margin: 0.15em 0;
}

#footer a:link,
#footer a:visited {
  color: #6495ed;
  text-decoration: none;
  border-bottom: 1px dotted #6495ed;
}

/* ---- Logo / Site Header ---------------------------------- */

#site-name {
  background: url(/images/banner.png) no-repeat top left;
  width: 198px;
  height: 49px;
  margin: 0;
  padding: 0;
}

#site-name a {
  display: block;
  width: 198px;
  height: 49px;
}

#site-name span {
  display: none;
}

/* ---- Navigation / Sidebar -------------------------------- */

#site-nav h2 {
  font-family: 'Source Sans 3', Helvetica, Arial, sans-serif;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6495ed;
  margin: 1.5rem 0 0.4rem 0;
  padding: 0;
  border: none;
}

#site-nav h2:first-child {
  margin-top: 0;
}

.section_list,
.category_list {
  list-style: none;
  margin: 0 0 0.5rem 0;
  padding: 0;
}

.section_list li,
.category_list li {
  margin: 0;
  padding: 0.1rem 0;
}

.section_list a:link,
.section_list a:visited,
.category_list a:link,
.category_list a:visited {
  font-family: 'Source Sans 3', Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #444;
  text-decoration: none;
}

.section_list a:hover,
.category_list a:hover {
  color: #6495ed;
}

.feed-links {
  margin-top: 0.3rem;
}

.feed-links a:link,
.feed-links a:visited {
  color: #6495ed;
  font-family: 'Source Sans 3', Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  text-decoration: none;
}

/* ---- Global Links ---------------------------------------- */

a:link,
a:visited {
  color: #6495ed;
  text-decoration: none;
}

a:hover,
a:active {
  color: #3a6fd8;
  text-decoration: underline;
}

/* ---- Articles -------------------------------------------- */

.article {
  margin-bottom: 3rem;
}

.article+.article {
  padding-top: 2.5rem;
  border-top: 1px solid #e8eef8;
}

/* Article body: flex row so .left top aligns with .entry-content top */
.article-body {
  display: flex;
  align-items: baseline;
  gap: 0;
}

/* Left metadata column (date / author / tags) */
.left {
  width: 190px;
  flex-shrink: 0;
  padding-right: 1.4rem;
  padding-top: 0;
  text-align: right;
}

.entry-content {
  flex: 1;
  min-width: 0;
}

/* Article title — above the flex row, indented to align with body text */
.entry-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  margin: 0 0 4rem 190px;
  padding: 0;
  text-transform: none;
  letter-spacing: normal;
  color: #2c2c2c;
}

/* On the homepage/category pages, title is a link */
.entry-title a:link,
.entry-title a:visited {
  color: #2c2c2c;
  text-decoration: none;
  border: none;
}

.entry-title a:hover {
  color: #6495ed;
}


/* Published date */
.published {
  font-family: 'Source Sans 3', Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.85;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6495ed;
  margin: 0 0 0.2rem 0;
}

/* Author */
address {
  font-family: 'Source Sans 3', Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  font-style: normal;
  color: #999;
  margin: 0 0 0.3rem 0;
}

address a:link,
address a:visited {
  color: #999;
  text-decoration: none;
}

/* Tags */
.tags {
  font-family: 'Source Sans 3', Helvetica, Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #bbb;
  margin: 0;
}

.tags a:link,
.tags a:visited {
  color: #aab4c8;
  text-decoration: none;
  border-bottom: 1px dotted #aab4c8;
}

.tags a:hover {
  color: #6495ed;
  border-color: #6495ed;
}

/* ---- Article Body Text ----------------------------------- */

.entry-content p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.65;
  margin: 0 0 1.1em 0;
  color: #2c2c2c;
}

.entry-content a:link,
.entry-content a:visited {
  color: #6495ed;
  text-decoration: none;
  border-bottom: 1px solid #c8d9f8;
}

.entry-content a:hover {
  color: #3a6fd8;
  border-color: #6495ed;
}

/* Headings inside articles (section headings) */
.entry-content h2 {
  font-family: 'Source Sans 3', Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6495ed;
  margin: 2em 0 0.6em 0;
  padding: 0;
}

.entry-content h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  color: #2c2c2c;
  margin: 1.6em 0 0.4em 0;
}

.entry-content h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  margin: 1.4em 0 0.4em 0;
}

/* Code & pre */
.entry-content code,
.entry-content kbd,
.entry-content samp {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  font-size: 0.875em;
  background-color: #f2f5fb;
  color: #3a4a66;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

.entry-content pre,
.entry-content pre.example {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  background-color: #f2f5fb;
  border-left: 3px solid #6495ed;
  color: #2c2c2c;
  padding: 0.9em 1.1em;
  margin: 1.2em 0;
  overflow-x: auto;
  border-radius: 0 4px 4px 0;
}

.entry-content pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* Blockquotes */
.entry-content blockquote {
  margin: 1.4em 0 1.4em 0;
  padding: 0.5em 0 0.5em 1.4em;
  border-left: 3px solid #6495ed;
  color: #555;
  font-style: italic;
}

blockquote[cite]:after {
  content: "\A0\2014 [" attr(cite) "]";
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-style: normal;
  font-size: 0.75em;
  color: #6495ed;
  margin-top: 0.5em;
}

/* Lists */
.entry-content ul,
.entry-content ol {
  margin: 0 0 1em 0;
  padding-left: 1.5em;
}

.entry-content li {
  margin-bottom: 0.3em;
  line-height: 1.75;
}

/* hreflang indicator */
a[hreflang]:after {
  content: "\A0[" attr(hreflang) "]";
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7em;
  font-weight: normal;
  color: #aab4c8;
}

/* ---- Images ---------------------------------------------- */

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

.img-shadow {
  float: left;
  background: url(/images/shadow.gif) no-repeat bottom right;
  margin: 8px 16px 8px 0;
}

.img-shadow img {
  display: block;
  position: relative;
  background-color: #fff;
  border: 1px solid #dde4f0;
  margin: -5px 5px 5px -5px;
  padding: 3px;
}

/* ---- Article Navigation ---------------------------------- */

.article-nav {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e8eef8;
  overflow: hidden;
  font-family: 'Source Sans 3', Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.older {
  float: left;
  color: #999;
  text-decoration: none;
}

.newer {
  float: right;
  color: #999;
  text-decoration: none;
}

.older:hover,
.newer:hover {
  color: #6495ed;
}

/* ---- Divider --------------------------------------------- */

.divider {
  margin: 1.5rem 0 0 0;
  border: none;
}

.divider img {
  display: none;
}

/* ---- Pagination ------------------------------------------ */

.pagination {
  margin: 2.5rem 0;
  padding-top: 1.2rem;
  border-top: 1px solid #e8eef8;
  overflow: hidden;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pagination a:link,
.pagination a:visited {
  color: #6495ed;
  text-decoration: none;
  padding: 0.3em 0.7em;
  border: 1px solid #c8d9f8;
  border-radius: 3px;
}

.pagination a:hover {
  background-color: #6495ed;
  color: #fff;
  border-color: #6495ed;
}

/* ---- Category Pages -------------------------------------- */

.content h1.title {
  font-family: 'EB Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  font-style: italic;
  color: #2c2c2c;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #6495ed;
}

.content h2 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6495ed;
  margin: 1.5rem 0 0.5rem 0;
}

.content ul.org-ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content ul.org-ul li {
  padding: 0.3em 0;
  border-bottom: 1px solid #f0f3fa;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  color: #666;
}

.content ul.org-ul li a:link,
.content ul.org-ul li a:visited {
  color: #2c2c2c;
  text-decoration: none;
  border: none;
}

.content ul.org-ul li a:hover {
  color: #6495ed;
}

/* ---- Responsive ------------------------------------------ */

@media screen and (max-width: 820px) {
  #wrapper {
    padding: 0 1rem;
  }

  #main {
    flex-direction: column;
  }

  #sidebar-1 {
    width: 100%;
    padding-left: 0;
    padding-top: 1.5rem;
    border-left: none;
    border-top: 2px solid #6495ed;
  }

  .left {
    width: auto;
    text-align: left;
    padding-right: 0;
    margin-bottom: 0.5rem;
  }

  .article-body {
    flex-direction: column;
  }

  .entry-title {
    font-size: 1.6rem;
    margin-left: 0;
  }
}