/*
Theme Name: Stublog
Author: Paul Carroll
Author URI: https://stublag.com
Description:
Version: 2.0
*/

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

:root {
    --dark-mode-darker-accent-color: #444;
    --acumin-normal: 'acumin-pro', sans-serif;
    --acumin-condensed: 'acumin-pro-extra-condensed', sans-serif;

    --full-width: 860px;
    --inner-width: 700px;
}

body {
    font-family: var(--acumin-normal);
    font-weight: 350;
    font-size: 20px;
    background-color: #fafafa;
    color: #222222;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 30px;
    margin: 0 auto;
    max-width: var(--full-width);
    transition: padding 0.1s ease;
    transition: background 0.1s ease;
    transition: color 0.1s ease;
}

h1 {
    font-size: 40px;
    margin: 20px 0;
}

h1 a {
    text-decoration: none;
    font-weight: 600;
}
h2 {
    font-family: var(--acumin-condensed);
    font-weight: 700;
    margin: 10px 0;
    font-size: 40px;
}
h3 {
    font-family: var(--acumin-condensed);
    font-size: 30px;
    margin: 15px 0;
}
.blue {
    color: #1BBBCB;
}
.purple {
    color: #D935D3;
}

p,
ul,
ol {
    line-height: 36px;
    margin: 20px 0;
}
ul {
    list-style-type: square;
}
a {
    /* font-weight: bold; */
    text-decoration: none;
    color: inherit;
}
a:hover {
    text-decoration: underline;
    text-decoration-color: #ccc;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.sr-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: -5px;
    margin: 0 6px 0 3px;
}
.external-link {
    background: url(img/icon-external-link.svg) top left no-repeat;
}
.email {
    background: url(img/icon-email.svg) top left no-repeat;
}
.mastodon {
    background: url(img/icon-mastodon.svg) top left no-repeat;
}
.insta {
    background: url(img/icon-instagram.svg) top left no-repeat;
}
.rss {
    background: url(img/icon-rss.svg) top left no-repeat;
}
.arrow-right {
    background: url(img/icon-arrow-right.svg) top left no-repeat;
}
.arrow-left {
    background: url(img/icon-arrow-left.svg) top left no-repeat;
}
.tag {
    background: url(img/icon-tag.svg) top left no-repeat;
}


/* Header */

header {
    margin-bottom: 30px;
    padding: 10px 0 15px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-items: space-between;
    border-bottom: 1px solid #eee;
    max-width: var(--inner-width);
    margin-left: auto;
    margin-right: auto;
}

header nav {
    margin-left: auto;
}

header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;

}
header nav ul a {
    font-size: 16px;
    font-weight: 350;
    padding:10px;
    color: #aaa;
}

.face {
    background: url('img/face.svg');
    width: 30px;
    height: 30px;
    background-size: 100%;
    margin-right: 5px;
    display: inline-block;
    align-items: baseline;
    position: absolute;
    top: 3px;
    left: 0;
}
.title {
    display: flex;
    align-items: baseline;
    position: relative;
}
.title h1 {
    font-family: var(--acumin-normal);
    font-size: 16px;
    line-height: 1;
    margin: 10px 0;
}
.title h1 a {
    padding-left: 38px;
    display: block;
}
.title h1 a:hover {
    text-decoration: none;
}
.subtitle {
    color: #2BB0CC;
    font-size: 16px;
    padding: 3px 0;
    font-weight: 350;
    margin-left: 5px;
    background: -webkit-linear-gradient(45deg, #1BBBCB, #D935D3, #1BBBCB);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 400% 400%;
    -webkit-animation: titleGradient 15s ease infinite;
    -moz-animation: titleGradient 15s ease infinite;
    animation: titleGradient 15s ease infinite;
}
.subtitle a {
    font-weight: normal;
}

@-webkit-keyframes titleGradient {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@-moz-keyframes titleGradient {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@keyframes titleGradient {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

/* Layout  */

.post-content {
    margin-bottom: 30px;
}
.post-content .post-meta,
.post-content p,
.post-content ul,
.post-content ol,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content blockquote {
    max-width: var(--inner-width);
    margin-left: auto;
    margin-right: auto;
}
.post-content p a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    text-decoration-color: #ccc;
}

.category-header {
    color: #aaa;
    font-family: var(--acumin-condensed);
    font-size: 24px;
    max-width: var(--inner-width);
    margin: 0 auto;
}
.category-header .icon {
    vertical-align: -3px;
    margin-right: 3px;
}

.post-image {
    position: relative;
    overflow: hidden;
}
.post-image:hover .project-title {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,.1);
    margin: 20px 0;
}
/* @keyframes fadeIn {
    0% {opacity:0;}
    100% {opacity:1;}
} */

.no-shadow,
.no-shadow img {
    box-shadow: none !important;
}

.wp-block-embed.is-type-video {
    margin: 20px 0;
}
.wp-block-embed.is-type-video iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    box-shadow: 0 5px 25px rgba(0,0,0,.1);
    border-radius: 10px;
}

.post-image {
    display: block;
}

.wp-block-image {
    margin: 30px 0;
}
.wp-block-gallery {
    margin: 30px 0;
}
.wp-block-gallery img {
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

figure img {
    margin: 0 auto;
}

figure.size-medium {
    max-width: var(--inner-width);
    margin-left: auto;
    margin-right: auto;
}
figure.size-medium.responsive-image,
figure.size-medium.enlarged-image {
    max-width: unset;
}

.enlarged-image img,
.responsive-image img {
    box-shadow: none !important;
}

.wp-block-image .wp-element-caption {
    color: #888;
    font-size: 16px;
    max-width: var(--inner-width);
    margin: 20px auto;
}
.wp-block-gallery .wp-element-caption {
    color: #888;
    font-size: 16px;
    max-width: var(--inner-width);
    margin: 10px auto 0;
}
.wp-block-video .wp-element-caption {
    text-align: center;
    color: #888;
    font-size: 16px;
    max-width: var(--inner-width);
    margin: 20px auto;
}

.wp-block-separator {
    height: 1px;
    border: none;
    background: #ddd;
    width: 300px;
    margin: 40px auto;
}

.pagination {
    display: flex;
    max-width: var(--inner-width);
    margin: -20px auto 20px;
    align-items: center;
}
.pagination a {
    padding: 20px;
    margin: 0 -20px;
    /* font-weight: normal; */
}
.pagination .divider {
    width: 1px;
    height: 25px;
    margin: 0;
}

.pagination a.prev-post {
    margin-left: auto;
}
.pagination a.next-post {
    margin-right: auto;
}
.post-pagination {
    margin: 30px auto -25px;
    border-top: 1px solid #eee;
}
.post-pagination a[rel="next"] {
    margin-right: auto;
}
.post-pagination a[rel="prev"] {
    margin-left: auto;
}

/* Post */

.post-meta {
    color: #aaa;
    font-size: 16px;
    font-weight: 500;
    margin: 10px 0;
    line-height: 1.5;
}
.icon-comments {
    width: 18px;
    height: 18px;
    background: url(img/icon-comments.svg) center center no-repeat;
    display: inline-block;
    vertical-align: -3px;
    margin: -3px 4px -1px 0;
}
.tags,
.categories {
    list-style-type: none;
    display: inline;
    margin: 0;
    padding: 0;
    line-height: 1;
}
.tags li,
.categories li {
    display: inline;
}
.tags li:not(:last-child) a,
.categories li:not(:last-child) a {
    color: #aaa;
    margin-right: 5px;
}
.tags li:not(:last-child) a:after,
.categories li:not(:last-child) a:after {
    content: ',';
}

blockquote {
    border-left: 2px solid #eee;
    padding-left: 30px;
    margin-left: 0;
}

.more-link {
    display: inline-block;
    transform: translateX(-50%);
    /* width: 180px; */
    font-size: 16px;
    text-align: center;
    line-height: 1;
    margin: 30px 0 30px 50%;
    border-radius: 4px;
    font-weight: 500;
    padding: 12px 30px 14px;
    color: #fff;
    background: #222;
    transition: .1s ease all;
}
.more-link:hover {
    text-decoration: none;
    background: var(--dark-mode-darker-accent-color);
}

/* Single */

.divider {
    height: 1px;
    background: #eee;
    margin: 20px 0 25px;
}
.post-divider {
    margin: 40px 0;
    font-weight: bold;
    text-align: center;
    color: #ccc;
    font-size: 18px;
    letter-spacing: 5px;
}

/* Comments */

.comments-section {
    margin-top: 60px;
}

#comments {
    margin-bottom: 0;
}

.commentlist {
    list-style-type: none;
    margin: 30px 0;
    padding: 0;
}
.commentlist p {
    margin: 10px 0;
}
.commentlist li {
    margin-bottom: 30px;
}
ul.children {
    list-style-type: none;
    border-left: 2px solid #eee;
    margin: 30px 0;
    padding-left: 30px;
}

.comment-body {
    position: relative;
}

.comment-author img {
    border-radius: 4px;
    box-shadow: none;
    float: left;
    margin: 0 15px 0 0;
}
.comment-author .says {
    display: none;
}
.comment-author cite {
    font-size: 16px;
    font-weight: bold;
    font-style: normal;
    position: relative;
    top: -13px;
}

.comment-meta {
    font-size: 14px;
    font-weight: normal;
    margin-left: 47px;
    position: absolute;
    top: 18px;
    line-height: 1;
}
.comment-meta a {
    color: #aaa;
}

.comment-reply-link {
    display: inline-block;
    background: rgba(0,0,0,.05);
    color: #555;
    padding: 5px 10px;
    line-height: 1;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
    transition: .1s ease all;
}
.comment-reply-link:hover {
    text-decoration: none;
    background: rgba(0,0,0,.1);
}

.logged-in-as {
    font-size: 16px;
    margin: 0;
    line-height: 1;
}

#comment {
    width: 100%;
    border-radius: 10px;
    font-family: var(--acumin-normal);
    font-size: 16px;
    border: 1px solid #eee;
    padding: 20px;
    line-height: 1.5;
}
#comment:focus {
    outline: 2px solid #777;
    outline-offset: 2px;
}
#cancel-comment-reply-link {
    font-size: 16px;
    float: right;
    color: #a42121;
    font-family: var(--acumin-normal);
}

#commentform {
    margin-bottom: 30px;
}
#commentform label {
    font-weight: bold;
    font-size: 16px;
}

#commentform input[type="text"],
#commentform input[type="email"] {
    display: block;
    width: 100%;
    border-radius: 10px;
    font-family: var(--acumin-normal);
    font-size: 16px;
    border: 1px solid #eee;
    padding: 10px 20px;
    line-height: 1.5;
}
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus {
    outline: 2px solid #777;
    outline-offset: 2px;
}

#commentform input[type="submit"] {
    background: rgba(0,0,0,.05);
    color: #555;
    font-family: var(--acumin-normal);
    font-weight: bold;
    font-size: 16px;
    padding: 13px 30px 15px;
    border-radius: 5px;
    line-height: 1;
    border: none;
    transition: .1s background all;
}
#commentform input[type="submit"]:hover {
    background: rgba(0,0,0,.1);
    cursor: pointer;
}
#commentform input[type="submit"]:focus {
    outline: 2px solid #777;
    outline-offset: 2px;
}

#commentform input[type="checkbox"] {
    accent-color: #222;
    border-radius: 6px;
    width: 18px;
    height: 18px;
    vertical-align: -2px;
}
#commentform input[type="checkbox"]:focus {
    outline: 2px solid #777;
    outline-offset: 2px;
}

/* Footer */

footer {
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding: 30px 0 0;
    max-width: var(--inner-width);
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
}
footer p {
    line-height: 1.5;
}
footer h3 {
    font-size: 30px;
    margin: 0;
}
.footer-columns {
    display: flex;
}
.footer-main {
    width: 70%;
    padding-right: 50px;
}
.footer-sidebar {
    width: 30%;
    padding-top: 12px;
}
.footer-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-sidebar li {
    line-height: 2.5;
}
.footer-sidebar a {
    font-weight: normal;
}

@media screen and (max-width: 768px) {
    body {
        padding: 20px 30px 30px;
    }
    footer {
        padding-top: 20px;
    }
    .footer-columns {
        display: block;
    }
    .footer-main {
        width: 100%;
        padding-right: 0;
    }
    .footer-sidebar {
        padding: 10px 0;
        width: 100%;
    }
    figure.wp-block-gallery-is-layout-flex {
        display: block;
        margin: 30px 0;
    }
    figure.wp-block-gallery-is-layout-flex .wp-block-image {
        width: 100% !important;
        margin-bottom: 15px !important;
    }
}
@media screen and (max-width: 600px) {
    header .mastodon-link,
    header .rss-link {
        display: none;
    }
}

@media screen and (max-width: 450px) {
    .face {
        top: 13px;
    }
    .subtitle {
        display: block;
        margin: 0;
    }
}

/* Dark Mode */

@media (prefers-color-scheme: dark) {
    body {
        background: #222;
        color: #eee;
    }
    a:hover,
    .post-content p a {
        text-decoration-color: #666;
    }
    header {
        border-color: #444;
    }
    .face {
        background: url('img/face-dark.svg');
    }
    .post-divider {
        color: var(--dark-mode-darker-accent-color);
    }
    blockquote,
    footer,
    .post-pagination {
        border-color: var(--dark-mode-darker-accent-color);
    }
    .email {
    background: url(img/icon-email-white.svg) top left no-repeat;
    }
    .mastodon {
        background: url(img/icon-mastodon-white.svg) top left no-repeat;
    }
    .insta {
        background: url(img/icon-instagram-white.svg) top left no-repeat;
    }
    .rss {
        background: url(img/icon-rss-white.svg) top left no-repeat;
    }
    .arrow-right {
    background: url(img/icon-arrow-right-white.svg) top left no-repeat;
    }
    .arrow-left {
        background: url(img/icon-arrow-left-white.svg) top left no-repeat;
    }
    .more-link {
        background: #333;
    }
    .more-link:hover {
        text-decoration: none;
        background: #2a2a2a;
    }
    .wp-block-separator {
        background: var(--dark-mode-darker-accent-color);
    }

    /* Comments */
    ul.children {
        border-color: var(--dark-mode-darker-accent-color);
    }

    .comment-reply-link,
    #commentform input[type="submit"] {
        background: rgba(255,255,255,.1);
        color: #fff;
    }
    .comment-reply-link:hover,
    #commentform input[type="submit"]:hover {
        background: rgba(255,255,255,.15);
    }
    .comment-reply-link:focus,
    #commentform input[type="submit"]:focus {
        outline: 2px solid #777;
        outline-offset: 4px;
    }

    #comment,
    #commentform input[type="text"],
    #commentform input[type="email"] {
        background: #333;
        color: #fff;
        border-color: var(--dark-mode-darker-accent-color);
    }
    #comment:focus,
    #commentform input[type="text"]:focus,
    #commentform input[type="email"]:focus {
        outline: 2px solid #777;
        outline-offset: 4px;
    }

    #commentform input[type="checkbox"] {
        accent-color: #fff;
    }

    /* Lightbox  */
    .wp-lightbox-overlay .close-button {
        fill: #fff !important;
    }
    .wp-lightbox-overlay .close-button svg {
        fill: #fff !important;
    }
    .scrim {
        background: #111 !important;
    }
}
