@import url("https://static.omg.lol/type/font-honey.css");
@import url("https://static.omg.lol/type/font-md-io.css");
@import url("https://static.omg.lol/type/fontawesome-free/css/all.css");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

/* VARIABLES */

:root {
    /* Default and dark mode. */
    --text-color: #eee;
    --dim-text-color: #aaa;
    --background-color: #222;
    --overlay-background-color: #0002;
    --primary-accent-color: #ef7627;
    --secondary-accent-color: #d162a4;
    --image-background-color: black;
    --menu-background-color: black;

    --lesbian-pride-flag-gradient: linear-gradient(
        313deg,
        #d52d00,
        #ef7627,
        #ff9a56,
        #d162a4,
        #b55690,
        #a30262
    ); /* Omit the center white color band, which is way too bright. */

    --box-shadow: /* Solid shadow. */ 0px 8px 0px
        color-mix(in srgb, var(--primary-accent-color) 20%, transparent);
    --border-radius: 0.6em;

    --transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: light) {
    /* Light mode. */
    :root {
        --text-color: #222;
        --dim-text-color: #666;
        --background-color: #fff;
        --overlay-background-color: #d162a422;
        --image-background-color: white;
        --menu-background-color: #eee;

        --box-shadow: /* Smooth shadow. */
            0 0 transparent, 0 0 transparent, 0 4px 6px rgba(0, 0, 0, 0.1),
            0 2px 4px rgba(0, 0, 0, 0.06);
    }
}

@media print {
    .no-print,
    .no-print * {
        display: none !important;
    }

    p {
        text-align: justify;
    }
}

/* SELECTORS */

- {
    box-sizing: border-box;
}

body {
    font-family: "Nunito", sans-serif;
    font-size: 120%;
    color: var(--text-color);
    background: var(--background-color);
}

p,
li {
    line-height: 160%;
}

sup {
    vertical-align: super;
    line-height: 0;
    font-size: 60%;
}

a.Footnotes__ref {
    text-decoration: none;
}

hr {
    border: 0;
    height: 1px;
    background: #333;
    margin: 2em 0;
}

.hidden {
    display: none;
}

.absolute {
    position: absolute;
}

.darkened-rounded-rectangle {
    background: var(--overlay-background-color);
    padding: 1em;
    border-radius: var(--border-radius);
}

.darkened-rounded-rectangle * {
    margin: 0;
    padding: 0;
    text-align: start;
}

.filled-rounded-rectangle {
    background: var(--background-color);
    padding: 1em;
    border-radius: var(--border-radius);
}

.filled-rounded-rectangle * {
    margin: 0;
    padding: 0;
    text-align: start;
}

/* Title */

.blog-title {
    margin-bottom: 1em;
}

.blog-title img {
    display: inline-block;
    background: var(--primary-accent-color);
    border-radius: 50% !important;
    box-shadow: var(--box-shadow);
    vertical-align: middle;
    margin-right: 1em;
}

.blog-title h1 {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    text-shadow: var(--box-shadow);
}

.blog-title a {
    text-decoration: none;
}

/* Navigation */

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

header nav li {
    display: inline-block;
}

header nav li a {
    display: block;
    text-decoration: none;
    margin-right: 1em;
}

header nav li:last-of-type a {
    margin-right: 0em;
}

#blog-navigation-menu-button {
    position: absolute;
    display: none;
}

@media (hover: hover) {
    #blog-navigation-menu-button:hover {
        background: var(--primary-accent-color);
        border-color: var(--primary-accent-color);
    }
}

@media (max-width: 768px) {
    header nav li {
        display: inline;
    }

    #blog-navigation-menu-button {
        display: inline-block;
        right: 27px;
        top: 98px;
        padding: 0.3em 0.6em 0.2em 0.6em;

        background: var(--secondary-accent-color);
        border-color: var(--secondary-accent-color);
        border-style: solid;
    }

    #blog-navigation-menu-button a {
        color: var(--text-color);
        text-decoration: none;
    }

    .blog-navigation-items {
        right: 24px;
        top: 148px;
        z-index: 9999;

        background: var(--menu-background-color);
        padding: 1em;
        border-radius: var(--border-radius);
    }

    .blog-navigation-items li a {
        margin-bottom: 0.7em;
    }

    .blog-navigation-items li:last-of-type a {
        margin-bottom: 0em;
    }
}

#blog-footer-navigation {
    text-align: center;
}

#blog-footer-navigation ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#blog-footer-navigation ul li {
    display: inline-block;
    text-decoration: none;
    margin-right: 1em;
}

#blog-footer-navigation ul li:last-of-type a {
    margin-right: 0em;
}

/* Content */

header,
main,
footer {
    max-width: 60em;
    margin: 2em auto;
    padding: 0 1em;
}

header {
    margin-top: 4em;
}

footer p {
    margin-top: 2em;
    font-size: 90%;
    text-align: center;
}

/* Headers */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "VC Honey Deck", serif;
    margin: 1rem 0;
}

a.post-title {
    text-decoration: none !important;
}

/* Code */

code {
    padding: 0.2em 0.3em;
    border: 1px solid var(--secondary-accent-color);
    white-space: pre-wrap;
    word-wrap: break-word;
}

pre,
code {
    font-family: "MD IO 0.4", monospace;
    font-size: 90%;
}

pre code {
    background: #000;
    color: #eee;
    display: inline-block;
    padding: 1em;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Images and Captions */

img {
    max-width: 100%;
}

figure {
    background: var(--image-background-color);
    border-radius: var(--border-radius);
    position: relative;
    margin: auto 0em auto 0em;
}

figure:hover figcaption {
    opacity: 1;
}

figure img {
    border-radius: var(--border-radius);
    display: block;
    transition-duration: 0.125s;
    transition-timing-function: var(--transition-timing-function);
}

figcaption {
    font-weight: 700;
    position: absolute;
    text-align: left;
    left: 12px;
    bottom: 12px;
    width: 100%;
    z-index: 1 !important;
    transition: 0.3s;

    text-shadow:
        0 0 4px var(--background-color),
        0 0 0.25em var(--background-color);
}

blockquote {
    background: #0002;
    padding: 1em;
    border-radius: var(--border-radius);
}

cite {
    font-style: normal;
}

@media (hover: hover) {
    figure:hover img {
        opacity: 0.5;
    }
    figcaption {
        text-align: center;
        left: auto;
        bottom: 24px;
    }
}

div.blog-split-figure {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    object-fit: fill;
    gap: 1em;
}

div.blog-split-figure > figure {
    flex: 1;
    margin: 0;
}

div.blog-split-figure img {
    overflow: hidden;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Tables */

table {
    border-collapse: collapse;
}

td,
th {
    padding: 0.75em;
    text-align: left;
    border: 1px solid var(--primary-accent-color);
}

/* Footnotes */

#footnotes-label {
    /* https://kittygiraudel.com/2016/10/13/css-hide-and-seek/ */
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    overflow: hidden !important;
    margin: -1px !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
}

/* Links */

a:link,
a:visited {
    color: var(--secondary-accent-color);
    text-decoration-color: var(--secondary-accent-color);
}

a:hover,
a:active {
    color: var(--primary-accent-color);
    text-decoration-color: var(--primary-accent-color);
}

.blog-title a:link img,
.blog-title a:visited img {
    background: var(--primary-accent-color);
}

.blog-title a:hover img,
.blog-title a:active img {
    background: var(--secondary-accent-color);
}

.blog-title a:link,
.blog-title a:visited {
    color: var(--primary-accent-color);
}

.blog-title a:hover,
.blog-title a:active {
    color: var(--secondary-accent-color);
}

/* Content Info and Tags */

.post-info,
.post-tags {
    font-size: 85%;
    text-align: right;
}

.post-info i:nth-child(2) {
    margin-left: 0.75em;
}

a.post-location {
    text-decoration: none;
}

.post-tags {
    color: var(--primary-accent-color);
}

a.tag:link,
a.tag:visited {
    color: var(--text-color) !important;
    background: var(--secondary-accent-color);
}

a.tag:active {
    color: var(--text-color) !important;
    background: var(--primary-accent-color);
}

@media (hover: hover) {
    a.tag:hover:nth-child(even) {
        --tag-rotate: 3deg;
    }

    a.tag:hover:nth-child(odd) {
        --tag-rotate: -3deg;
    }

    a.tag:hover {
        color: var(--text-color) !important;
        background: var(--primary-accent-color);

        --tag-scale-x: 1.1;
        --tag-scale-y: 1.1;
        --tag-skew-x: 0;
        --tag-skew-y: 0;
        --tag-translate-x: 0;
        --tag-translate-y: -0.25rem;

        transform: translate(var(--tag-translate-x), var(--tag-translate-y))
            rotate(var(--tag-rotate)) skew(var(--tag-skew-x))
            skewY(var(--tag-skew-y)) scaleX(var(--tag-scale-x))
            scaleY(var(--tag-scale-y));
    }
}

a.tag {
    padding: 0.18em 1em;
    margin: 0.8em 0 0 0.4em;
    border-radius: 9999px;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--box-shadow);

    transition-property: transform;
    transition-duration: 0.125s;
    transition-timing-function: var(--transition-timing-function);
}

/* Pagination */

.previous-page + .next-page::before {
    content: "\2022";
    color: var(--dim-text-color);
    margin: 0 0.75em;
}

.divider::after {
    content: "\2022 \2022 \2022";
    color: var(--dim-text-color);
}

.blog-divider-container {
    text-align: center;
}

/* Grid layout */

main.posts-grid-container {
    margin: 0 auto;
}

div.posts-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem -1rem;
    padding-bottom: 2.5em;
}

article.post {
    background: var(--image-background-color);
    border-radius: var(--border-radius);
    position: relative;
    flex: 1 1 30%;
    margin: 1rem;
    cursor: pointer;
}

article.post a {
    color: var(--text-color);
    text-decoration: none !important;
}

img.post-thumbnail {
    border-radius: var(--border-radius);
    display: block;
    transition-duration: 0.125s;
    transition-timing-function: var(--transition-timing-function);
    box-shadow: var(--box-shadow);

    width: 100%;
    height: 100%;
    object-fit: cover;
}

h2.post-title {
    opacity: 1;
    font-family: "Nunito", sans-serif;
    font-size: 100% !important;
    font-weight: 700;
    text-align: center;
    position: absolute;
    left: auto;
    bottom: 12px;
    width: 100%;
    z-index: 1 !important;
    transition: 0.3s;

    text-shadow:
        0 0 4px var(--background-color),
        0 0 0.25em var(--background-color);
}

@media (hover: hover) {
    article.post:hover img {
        opacity: 0.5;
    }
}

/* Footer */

.blog-footer-author-container {
    overflow: auto;

    background: var(--lesbian-pride-flag-gradient);
    background-size: 1400% 1400%;

    -webkit-animation: colours 60s ease infinite;
    -moz-animation: colours 60s ease infinite;
    -o-animation: colours 60s ease infinite;
    animation: colours 60s ease infinite;

    padding: 0.6em;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.blog-footer-author > * {
    display: flex;
}

.blog-footer-author-name {
    font-family: "VC Honey Deck", sans-serif;
}

.blog-footer-author-title a:link,
.blog-footer-author-title a:visited {
    color: var(--primary-accent-color) !important;
}

.blog-footer-author-title a:active,
.blog-footer-author-title a:hover {
    color: var(--secondary-accent-color) !important;
}

.blog-footer-author-description {
    margin-top: 0.5em;
}

.blog-footer-author a:link,
.blog-footer-author a:visited,
.blog-footer-author a:active,
.blog-footer-author a:hover {
    text-decoration: none;
}

.blog-footer-author img {
    background: var(--primary-accent-color);
    border-radius: 50% !important;
    box-shadow: var(--box-shadow);
    vertical-align: middle;
    margin-right: 1em;
}

.blog-footer-reading-list {
    box-shadow: var(--box-shadow);
}

.blog-footer-reading-list h2 {
    font-family: "Nunito", sans-serif;
    font-size: 100% !important;
    font-weight: 700;
}

.blog-footer-copyright {
    color: var(--dim-text-color);
}

.blog-footer-banners {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 1em;
}

.blog-footer-banners a {
    margin: 0.3em;
}

/* Literal Club */

#literal-widget .literal-book-item a {
    text-decoration: none !important;
}

#literal-widget .literal-book-item__title {
    color: var(--secondary-accent-color) !important;
}

#literal-widget .literal-book-item__title:hover,
#literal-widget .literal-book-item__title:active {
    color: var(--primary-accent-color) !important;
}

#literal-widget .literal-book-item__authors {
    color: var(--text-color) !important;
}

#literal-widget {
    background: var(--background-color);
    padding: 0.5em 1em;
    border-radius: var(--border-radius);
}

/* KEYFRAMES */

@-webkit-keyframes colours {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@-moz-keyframes colours {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@-o-keyframes colours {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes colours {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
