/* ===== Accessibility ===== */
/* Hide content visually but keep it available to screen readers */
.sr-only,
.sr-only-focusable:not(:focus),
.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Link - Best Practices */
.skip-link {
  /* Hide visually but keep accessible to screen readers */
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 9999;

  /* Visual styling */
  background: #ffffff;
  color: #000000;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.25rem 0.25rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #000000;

  /* Hide by default */
  transform: translateY(-120%);
  transition: transform 0.2s ease-in-out;
}

/* Show when focused */
.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #0066cc;
  outline-offset: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
}

/* High contrast mode support */
@media (forced-colors: active) {
  .skip-link {
    border: 2px solid transparent;
    border-image: none;
  }

  .skip-link:focus {
    outline: 2px solid transparent;
    border-color: currentColor;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* Remove outline for mouse users but keep for keyboard navigation */
:focus:not(:focus-visible) {
  outline: none;
}

/* === Core Styles === */
:root {
  --primary-color: #3498db;
  --text-color: #7f8c8d;
  --background-color: #ffffff;
  --border-color: #ecf0f1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: 15px;
  font-weight: 100;
  line-height: 1.6em;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: subpixel-antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Modern layout container */
.site-container {
  flex: 1 0 auto;
  width: 100%;
}

/* Ensure flex items can shrink below content size */
.flex-item {
  min-height: 0;
}

/* Modern clearfix */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
p,
li,
dt,
dd {
  font-family: "Merriweather", "Open Sans", "Helvetica Neue", Helvetica, Arial, "Nimbus L", sans-serif;
}

h1,
.post-meta {
  text-align: center;
}

a,
a:visited {
  color: #3498db;
  text-decoration: none;
  -webkit-transition: color 0.7s ease;
  transition: color 0.7s ease;
}

a:focus,
a:hover {
  color: #02090e;
}

p,
li,
dt,
dd {
  font-size: 18px;
  font-weight: 100;
  line-height: 30px;
}

dt {
  font-weight: 400;
}

li {
  padding-left: 0.8em;
}

pre {
  font-family: "Consolas", Courier, monospace;
  font-size: 1em;
  line-height: 1.2em;
  padding: 1em;
  white-space: pre;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  white-space: pre-wrap;
  word-wrap: break-word;
  background-color: rgba(0, 0, 0, 0.05);
}

p code {
  font-family: "Consolas", Courier, monospace;
  font-size: .8em;
  line-height: 1.2em;
}

h1 {
  color: #151515;
  font-family: "Roboto Slab", "Merriweather", "Open Sans", "Helvetica Neue", Helvetica, Arial, "Nimbus L", sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 42px;
  margin: 0;
  padding: 0;
}

hr {
  border: none;
  background-color: #ecf0f1;
  height: 1px;
}

#site-head,
article,
article.preview,
a.archive-link,
.article-nav {
  margin: 20px auto;
  max-width: 600px;
  width: 90%;
}

#site-head img {
  max-width: 100%;
}

article.preview {
  margin-bottom: 4em;
}

article.preview p.readmore {
  font-family: "Open Sans Condensed", "Open Sans", "Helvetica Neue", Helvetica, Arial, "Nimbus L", sans-serif;
  margin-top: 1em;
  text-transform: uppercase;
  font-weight: 400;
}

/* === Header === */
#blog-logo {
  display: block;
  max-width: 100px;
  margin: 50px auto 0;
  text-align: center;
}

#blog-logo div.bloglogo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-image: var(--blog-logo-image, none);
  -webkit-background-size: cover !important;
  background-size: cover !important;
  background-position: center center !important;
  background-color: #ffffff;
}

h1.blog-title,
h2.blog-description {
  text-align: center;
}

h1.blog-title {
  font-size: 48px;
  line-height: 52px;
  margin-top: 10px;
  margin-bottom: 30px;
  padding: 0;
}

section.footer-description {
  margin-bottom: 1em;
}

header.article-header,
header.page-header {
  margin-bottom: 3em;
}

/* === Body === */
section.author,
section.share {
  width: 100%;
  text-align: left;
  text-transform: none;
}

section.share {
  margin-top: 1em;
  border-top: 1px solid #ecf0f1;
  padding-top: 1em;
  text-align: right;
}

section.author h4,
section.author p,
section.share p {
  padding: 0;
  margin: 0;
}

section.author h4 {
  font-family: "Roboto Slab", "Merriweather", "Open Sans", "Helvetica Neue", Helvetica, Arial, "Nimbus L", sans-serif;
  font-weight: 400;
  margin: 4px;
}

section.author p.attr,
section.share p.info {
  /* font-size: 16px; */
  line-height: 20px;
  text-transform: uppercase;
  font-family: "Open Sans Condensed", "Open Sans", "Helvetica Neue", Helvetica, Arial, "Nimbus L", sans-serif;
}

section.share p.info.prompt {
  top: -5px;
  margin-right: 5px;
  position: relative;
}

section.author p.attr {
  margin-bottom: 2px;
}

section.share p.info {
  display: inline-block;
}

section.author p.bio {
  font-size: 16px;
  margin-left: 82px;
  line-height: 1.4em;
}

.author-posts {
  padding: 15px 0 0 0;
}

blockquote,
blockquote p {
  font-family: "Open Sans Condensed", "Open Sans", "Helvetica Neue", Helvetica, Arial, "Nimbus L", sans-serif;
  font-size: 1.6em;
  font-weight: 300;
  line-height: 1.2em;
  font-style: italic;
  text-transform: uppercase;
}

blockquote {
  border-left: 0.5em solid rgba(0, 0, 0, 0.05);
  margin-left: 1em;
  padding-left: 1em;
}

.post-meta {
  color: #95a5a6;
  font-family: "Open Sans Condensed", "Open Sans", "Helvetica Neue", Helvetica, Arial, "Nimbus L", sans-serif;
  font-size: 20px;
  font-weight: 300;
  margin-top: 1em;
  margin-bottom: 1.2em;
  text-transform: uppercase;
}

.tags {
  font-size: 16px;
  margin-bottom: 0.6em;
}

img.postImage {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 0 1.5em 0;
  border-radius: 3px;
  object-fit: cover;
}

/* Desktop specific styles */
@media (min-width: 769px) {
  img.postImage {
    width: 625px;
    height: 320px;
  }
}

/* Mobile styles */
@media only screen and (max-width: 768px) {

  /* Improve content spacing on mobile */
  .post-content {
    padding: 0 15px 0 15px;
  }

  .post-content p,
  .post-content ul,
  .post-content ol,
  .post-content h2,
  .post-content h3,
  .post-content h4 {
    margin-bottom: 1.2em;
    line-height: 1.6;
  }

  /* Adjust share section for mobile */
  section.share {
    text-align: center;
    margin: 0.5em 0;
  }

  section.share .share-icons {
    justify-content: center;
  }

  img.postImage {
    width: 100vw;
    max-width: 100%;
    height: auto;
    max-height: 60vh;
    margin-left: calc(-1 * (100vw - 100%) / 2);
    margin-right: calc(-1 * (100vw - 100%) / 2);
    border-radius: 0;
  }
}

div.authorimage,
div.postthumb {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  -webkit-background-size: cover !important;
  background-size: cover !important;
  background-position: center center !important;
  margin-right: 10px;
  float: left;
}

div.authorimage {
  background-image: var(--author-image, none);
}

div.postthumb {
  background-image: var(--post-thumb-image, none);
}

h1.post-title a,
h1.blog-title a {
  color: #151515;
  -webkit-transition: color ease 0.7s;
  transition: color ease 0.7s;
}

h1.post-title a:focus,
h1.post-title a:hover,
h1.blog-title a:focus,
h1.blog-title a:hover {
  color: #3498db;
  text-decoration: none;
}

h2 {
  font-family: "Open Sans Condensed", "Open Sans", "Helvetica Neue", Helvetica, Arial, "Nimbus L", sans-serif;
  margin-top: 2em;
  text-transform: uppercase;
  font-weight: 300;
}

section.post-content img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

section.preview.archive h2 {
  text-align: left;
}

section.author {
  overflow: hidden;
}

img.userimage {
  width: 70px;
  max-width: 70px;
  max-height: 70px;
  border-radius: 50%;
  margin-right: 10px;
  float: left;
}

/* === Footer === */
footer {
  background: rgba(0, 0, 0, 0.05);
  margin: .5em 0 0;
  padding: 2em 0;
  text-align: center;
}

footer section {
  font-family: "Open Sans Condensed", "Open Sans", "Helvetica Neue", Helvetica, Arial, "Nimbus L", sans-serif;
  font-weight: 300;
  font-size: 18px;
  margin: 0 auto;
  max-width: 600px;
  text-transform: uppercase;
  width: 90%;
}

footer.post-footer {
  background: none;
  border-top: 1px solid #ecf0f1;
  margin-top: 1em;
}

/* === Navigation and Pagination === */
nav {
  border-bottom: 1px solid #ecf0f1;
  border-top: 1px solid #ecf0f1;
  margin-bottom: 2em;
  text-align: center;
  margin: 20px auto 0px auto;
  max-width: 600px;
}

nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

nav ul li {
  display: inline-block;
  font-family: "Open Sans Condensed", "Open Sans", "Helvetica Neue", Helvetica, Arial, "Nimbus L", sans-serif;
  font-size: 18px;
  font-weight: 300;
  margin: 0;
  padding: 0 .5em;
  text-align: center;
  text-transform: uppercase;
}

nav ul li a,
nav ul li .articulate-search {
  display: block;
  padding: .5em 0;
}

nav ul li .articulate-search input {
  font-size: smaller;
  padding-left: 5px;
  padding-right: 5px;
  border: 1px solid #ecf0f1;
}

ul li .articulate-search button {
  font-size: 14px;
  border: none;
  background: none;
  color: #3498db;
}

nav.menu li {
  margin: 0 .5em;
  padding: 0;
}

nav.menu li:last-child {
  margin: 0;
}

@media only screen and (min-width: 320px) and (max-width: 662px) {
  nav.menu li {
    display: block;
  }
}

nav.pagination li:first-child {
  margin-left: 0;
  margin-right: 0;
  text-align: right;
}

nav.pagination li:last-child {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

a.archive-link {
  border-bottom: 1px solid #ecf0f1;
  border-top: 1px solid #ecf0f1;
  display: block;
  font-family: "Open Sans Condensed", "Open Sans", "Helvetica Neue", Helvetica, Arial, "Nimbus L", sans-serif;
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 3em;
  margin-top: 3em;
  padding: .5em 0;
  text-align: center;
  text-transform: uppercase;
}

.pagination {
  position: relative;
  width: 90%;
  max-width: 600px;
  font-family: "Open Sans Condensed", "Open Sans", "Helvetica Neue", Helvetica, Arial, "Nimbus L", sans-serif;
  text-transform: uppercase;
  font-size: 20px;
  color: #7f8c8d;
  text-align: center;
  padding: 0.5em 0;
}

.pagination a {
  color: #3498db;
}

.older-posts,
.newer-posts {
  position: absolute;
  display: inline-block;
  padding: 0;
  text-decoration: none;
  -webkit-transition: color ease 0.7s;
  transition: color ease 0.7s;
}

.older-posts {
  right: 0;
}

.page-number {
  display: inline-block;
  padding: 0;
  margin: 0;
}

.newer-posts {
  left: 0;
}

.older-posts:hover,
.newer-posts:hover {
  color: #02090e;
  text-decoration: none;
}

/* === Extras === */
.gist {
  margin-top: 1em;
  margin-bottom: 1em;
  border-collapse: collapse !important;
}

.gist .gist-file {
  font-family: "Consolas", Courier, monospace;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.gist .gist-file .gist-meta {
  font-family: "Open Sans Condensed", "Open Sans", "Helvetica Neue", Helvetica, Arial, "Nimbus L", sans-serif !important;
  font-weight: 300 !important;
  text-transform: uppercase !important;
  display: none !important;
  /* Hide GitHub attribution */
}

.gist .gist-file .gist-meta a:visited {
  color: #3498db !important;
}

.gist .gist-file .gist-data {
  background: #fdfdfd !important;
  border-bottom: none !important;
  /* Hide GitHub attribution */
}

.gist .gist-file .gist-data .line-numbers {
  border-right: none !important;
}

.gist .gist-file .gist-data .line-numbers,
.gist .gist-file .gist-meta {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

.gist .gist-file .gist-data .line-numbers,
.gist .gist-file .gist-data .line-pre {
  line-height: 1.2em !important;
}

@font-face {
  font-family: 'icons';
  src: url('../fonts/icons.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.icon-ghost,
.icon-feed {
  font-family: 'icons';
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  text-decoration: none;
}

.icon-ghost:before {
  content: "\e000";
}

.icon-feed:before {
  content: "\e001";
}

.icon-ghost {
  font-size: 12px;
  position: relative;
  top: -1px;
}

/* Comments */
#disqus_thread {
  color: #787878;
}

/* Tables */
table {
  width: 100%;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, "Nimbus L", sans-serif;
  border-collapse: collapse;
  margin: 1em 0 3em;
}

table td {
  padding: .5em;
}

table thead {
  font-weight: 600;
  border-bottom: 1px solid #ecf0f1;
}

table tbody tr {
  border-bottom: 1px solid #e3e9eb;
}

/* === Tag cloud === */
.tag-cloud-large {
  font-size: 2.2em;
  margin: 20px 0px 20px 0px;
}

ul.tag-cloud {
  list-style: none;
  padding: 0;
  text-transform: capitalize;
  text-align: center;
}

ul.tag-cloud li {
  display: inline-block;
  padding: 0.2em 0.4em;
}

ul.tag-cloud .tag-cloud-1 {
  font-size: 40%;
}

ul.tag-cloud .tag-cloud-2 {
  font-size: 50%;
}

ul.tag-cloud .tag-cloud-3 {
  font-size: 60%;
}

ul.tag-cloud .tag-cloud-4 {
  font-size: 75%;
}

ul.tag-cloud .tag-cloud-5 {
  font-size: 90%;
}

ul.tag-cloud .tag-cloud-6 {
  font-size: 100%;
}

ul.tag-cloud .tag-cloud-7 {
  font-size: 110%;
}

ul.tag-cloud .tag-cloud-8 {
  font-size: 120%;
}

ul.tag-cloud .tag-cloud-9 {
  font-size: 130%;
}

ul.tag-cloud .tag-cloud-10 {
  font-size: 140%;
}

/* === Tag list === */
ul.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list table td:nth-child(1) {
  width: 100px;
}

.tag-list a.fa-solid,
.post-title a.fa-solid {
  font-size: 60%;
  margin-right: 4px;
  float: right;
}

.tag-list a.fa-solid span,
.post-title a.fa-solid span {
  display: none;
}

.tag-list>h2 {
  margin-top: 2rem;
}

.tag-list>h2>a>i {
  margin-right: 0.5rem;
}


/* This hides the first image displayed in an RTE blog post - used in conjunction with Windows Live Writer */
.a-image-0 {
  display: none;
}

/* Also hide the wrapper paragraph to prevent empty spacing */
p:has(> .a-image-0) {
  display: none;
}

.postImage {
  padding: 10px 25px 10px 0px;
  max-width: 100%;
}

/*.thumb {
    float: left;
    padding: 0px 10px 0px 0px;
}*/

ul.nostyle {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

ul.nostyle li {
  margin: 0;
  padding: 0;

}

ul.recent-posts li {
  margin: 20px 0;
  min-height: 70px;
  clear: both;
}

/* === Media Queries === */
@media only screen and (min-width: 320px) and (max-width: 500px) {
  footer section span.copyright {
    display: block;
  }

  nav li {
    width: auto;
  }

  .older-posts,
  .newer-posts {
    position: static;
  }

  .newer-posts {
    margin-bottom: 10px;
  }

  .older-posts {
    margin-top: 10px;
  }

  .page-number {
    display: block;
  }
}


section.share .share-icons {
  display: inline-flex;
  gap: 10px;
  justify-content: flex-end;
  width: auto;
  margin: 0;
}

section.share .share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: #ffffff;
  color: #000000;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

section.share .share-icon:hover,
section.share .share-icon:focus-visible {
  background: #000000;
  color: #ffffff;
  outline: none;
}

section.share .share-icon i.fa-share-nodes {
  font-size: 16px;
}

section.share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 2px;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* X (Twitter) icon - white background by default */
section.share a:first-child {
  background: #ffffff;
  color: #000000;
}

/* Facebook icon - blue background */
section.share a:last-child {
  background: #3498db;
  color: #ffffff;
}

/* Hover state for both icons - black background */
section.share a:hover {
  background: #000000 !important;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

section.share .fa-brands {
  font-size: 1em;
  line-height: 1;
  vertical-align: middle;
}
