:root {
  --text: #000;
  --bg: #fbfbfb;
  --a: #5b6ee1;
  --v: #306082;
  --d: #666;
  --a-bg: #f3f3f3;
}

body {
    color: var(--text);
    background-color: var(--bg);
    font-size: 24px;
    font-family: 'Linux Libertine',serif;
    line-height: 140%;
    text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #e8e6e3;
        --bg: #151718;
        --a: #5b6ee1;
        --v: #7faed0;
        --d: #a8a095;
        --a-bg: #3a3b3c;
    }
}

h1, h2, h3 {
    font-family: 'Linux Biolinum',sans;
}

h1 {
    font-size: 150%;
    line-height: 110%;
}

h2 {
    font-size: 115%;
}

h3 {
    font-size: 100%;
}

a {
    color: var(--a);
    text-decoration: none;
}

a:hover {
    color: var(--v);
    background-color: var(--a-bg);
}

a:visited {
    color: var(--v);
}

td {
    margin: 2px;
}

pre {
    font-family: "Inconsolata",monospace;
    line-height: 110%;
    min-width: 100%;
    padding: 1rem;
    background-color: #222034;
    color: #deeed6;
    border-radius: 4px;
    display: inline-block;
}

code {
    font-family: "Inconsolata",monospace;
}

blockquote {
    padding-left: 2rem;
    border-left: 5px solid #eee;
    font-style: italic;
}

/* Footer */

footer {
    border-top: 1px solid #ccc;
    font-size: 80%;
}

.copyright {
    text-align: center;
}

.cc-button {
    margin-left: 1rem;
}

/* Navigation */

.nav {
    font-family: 'Linux Biolinum',sans;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
}

.nav ul {
    list-style-type: none;
    display: inline-block;
    margin: 0;
    padding: 0;
}

.nav li {
    display: inline;
    padding: 1rem;
}

.nav li:first-child {
    padding-left: 0;
}

.nav a {
    display: inline-block;
    color: var(--text);
}

.nav a:hover {
    color: var(--text);
}

.nav a:visited {
    color: var(--text);
}

@media (min-width: 1140px) {
    .container {
        margin-left: 14rem;
        margin-right: 4rem;
        max-width: 52rem;
    }
}

@media (min-width: 800px) and (max-width: 1140px) {
    .container {
        margin-left: 6rem;
        margin-right: 4rem;
        max-width: 52rem;
    }
}

@media (max-width: 800px) {
    .container {
        margin: 1rem;
    }
}

.fade-text {
    color: #ddd;
}

/* Summaries */

.summary {
    margin-bottom: 3rem;
}

.summary .date {
    margin-bottom: 0rem;
}

.summary p {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Posts */

.date {
    margin-top: -1rem;
    margin-bottom: 2rem;
    color: var(--d);
}

.tags {
    margin-top: -1rem;
    color: var(--d);
    font-size: 80%;
}

.tags ul {
    display: inline-block;
    padding-left: 0.5rem;
}

.tags li {
    display: inline-block;
    padding: 0.5rem;
}

.post img, .centered-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0px;
    border-radius: 4px;
}

.post video {
    display: block;
    margin: 0 auto;
    padding: 0px;
    max-width: 100%;
}

.caption {
    text-align: center;
    margin: 0;
    margin-left: 4rem;
    margin-right: 4rem;
}

/* Syntax Highlighting */

.syntax-special, .syntax-element {
    color: #8ac6f2;
    font-weight: bold;
}

.syntax-string {
    color: #95e454;
}

.syntax-keyword, .syntax-attribute {
    color: #e5786d;
}

.syntax-comment {
    color: #999;
}

.syntax-open, .syntax-close {
    color: #999;
}

.right-box {
    border-style: none;
    display: block;
    float: right;
}

.hide {
    display: none;
}

/* Tag pages */

/* Tags navigation */
.tags ul {
    display: inline;
    padding-left: 0.5rem;
    margin: 0;
}

.tags li {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.2rem 0.5rem;
    background-color: var(--a-bg);
    border-radius: 3px;
}

.tags li a {
    text-decoration: none;
}

.tags li a:hover {
    text-decoration: underline;
    background-color: transparent;
}

/* Tag pages CSS additions for lovergine.com */

/* Tags navigation */
.tags ul {
    display: inline;
    padding-left: 0.5rem;
    margin: 0;
}

.tags li {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.2rem 0.5rem;
    background-color: var(--a-bg);
    border-radius: 3px;
}

.tags li a {
    text-decoration: none;
}

.tags li a:hover {
    text-decoration: underline;
    background-color: transparent;
}

/* Tag index page styles */
#tags-index {
    list-style-type: none;
    padding-left: 0;
}

#tags-index li {
    margin: 0.5rem 0;
    line-height: 1.5;
}

/* Feed icon styling - better for dark mode */
.feed-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-left: 5px;
    text-indent: -9999px;
    overflow: hidden;
    opacity: 0.7;
    position: relative;
}

.feed-icon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11a9 9 0 0 1 9 9'%3E%3C/path%3E%3Cpath d='M4 4a16 16 0 0 1 16 16'%3E%3C/path%3E%3Ccircle cx='5' cy='19' r='1'%3E%3C/circle%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11a9 9 0 0 1 9 9'%3E%3C/path%3E%3Cpath d='M4 4a16 16 0 0 1 16 16'%3E%3C/path%3E%3Ccircle cx='5' cy='19' r='1'%3E%3C/circle%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.feed-icon:hover {
    opacity: 1;
}

/* Pagination controls */

.pagination {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 1.5rem 0;
  position: relative;
}

.pagination .prev {
  text-align: left;
  margin-right: auto;
}

.pagination .next {
  text-align: right;
  margin-left: auto;
}

/* Logo styles */
.site-logo {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-right: 1.05rem;
  vertical-align: middle;
}

.site-title {
  display: flex;
  align-items: center;
}

h2.site-title {
  line-height: 1.2;
}

/* Mastodon comments section */
.mastodon-comments {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    /* border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;*/
    font-size: 90%;
	text-align: center;
}

.mastodon-comments p {
    margin: 0;
    color: var(--d);
}

.mastodon-comments a {
    color: var(--a);
}
