/*
 * site.css — consolidated stylesheet
 *
 * Combines only the rules actually exercised by this site's templates,
 * shortcodes, and content, pulled from terminal-0.7.4.min.css (base
 * typography/reset + the terminal-nav/terminal-menu/terminal-prompt/logo
 * components) and console.css (site-specific overrides and components).
 *
 * terminal-0.7.4.min.css and console.css are left untouched. This file is
 * a candidate replacement for both — swap the two <link> tags in
 * themes/mp/layouts/_default/baseof.html for this single file to test it.
 *
 * Dropped as unused (confirmed by grepping every class across
 * themes/mp/layouts and content): buttons (.btn*), forms/inputs/fieldset,
 * tables, syntax highlighting (.hljs-*), .progress-bar*, .terminal-alert*,
 * .terminal-avatarholder, .terminal-card, .terminal-media*,
 * .terminal-placeholder, .terminal-timeline, .terminal-toc,
 * .container-fluid, and console.css's .box-masonry*, .btn-ghost,
 * .content-column-content, .command, .label, .sidebar-heading,
 * p.social a, .gallery-image.
 */

@font-face {
    font-family: "Roboto Mono";
    src: url("../font/RobotoMono-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: "Roboto Mono";
    src: url("../font/RobotoMono-Italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 400;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: "Roboto Mono";
    src: url("../font/RobotoMono-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: "Roboto Mono";
    src: url("../font/RobotoMono-BoldItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 700;
    text-rendering: optimizeLegibility;
}

/* ---- variables (effective values: terminal.css defaults overridden by console.css) ---- */

:root {
    --global-font-size: 16px;
    --global-line-height: 1.6em;
    --global-space: 10px;
    --font-stack: Roboto Mono, Menlo, Monaco, Lucida Console,
        Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono,
        Courier New, monospace, serif;
    --mono-font-stack: Roboto Mono, Menlo, Monaco, Lucida Console,
        Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono,
        Courier New, monospace, serif;
    --background-color: #fff;
    --page-width: 70em;
    --font-color: #151515;
    --global-font-color: #444;
    --invert-font-color: #fff;
    --primary-color: #1a95e0;
    --secondary-color: #727578;
    --error-color: #d20962;
    --code-bg-color: #e8eff2;
    --input-style: solid;
    --display-h1-decoration: 1;
    --block-background-color: var(--background-color);
    --global-footer-color: #b1b1b1;
}

@media only screen and (max-width: 850px) {
    :root {
        --global-font-size: 14px;
        --global-font-color: #444;
        --global-line-height: 1.6em;
        --page-width: 70em;
    }
}

/* ---- reset ---- */

* {
    box-sizing: border-box;
    text-rendering: geometricprecision;
}

*::selection {
    background: var(--primary-color);
    color: var(--invert-font-color);
}

body {
    font-family: var(--font-stack);
    font-size: var(--global-font-size);
    color: var(--font-color);
    line-height: var(--global-line-height);
    margin: 0;
    margin-bottom: 75px;
    word-wrap: break-word;
    background-color: var(--background-color);
}

/* ---- typography ---- */

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .logo {
    font-family: var(--font-stack);
    line-height: var(--global-line-height);
    clear: both;
}

blockquote, code, footer, h1, h2, h3, h4, h5, h6, header, li, ol, p, section,
ul, .logo {
    float: none;
    margin: 0;
    padding: 0;
}

blockquote, h1, ol, p, ul, .logo {
    margin-top: calc(var(--global-space) * 2);
    margin-bottom: calc(var(--global-space) * 2);
}

h1, .logo {
    position: relative;
    display: inline-block;
    display: table-cell;
    padding: calc(var(--global-space) * 2) 0;
    margin: 0;
    overflow: hidden;
    font-weight: 600;
}

h1::after {
    content: "====================================================================================================";
    position: absolute;
    bottom: 5px;
    left: 0;
    display: var(--display-h1-decoration);
}

h1 + *, .logo + * {
    margin-top: 0;
}

h2, h3, h4, h5, h6 {
    position: relative;
    margin-bottom: var(--global-line-height);
    font-weight: 600;
}

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

a:hover {
    background-color: var(--primary-color);
    color: var(--invert-font-color);
}

em {
    font-size: var(--global-font-size);
    font-style: italic;
    font-family: var(--font-stack);
    color: var(--font-color);
}

blockquote, code, em, strong {
    line-height: var(--global-line-height);
}

strong {
    font-weight: bold;
}

blockquote {
    position: relative;
    padding-left: 2ch;
    overflow: hidden;
}

blockquote::after {
    content: ">\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>";
    white-space: pre;
    position: absolute;
    top: 0;
    left: 0;
    line-height: var(--global-line-height);
    color: #9ca2ab;
}

code {
    font-weight: inherit;
    background-color: var(--code-bg-color);
    font-family: var(--mono-font-stack);
}

code::after, code::before {
    content: "`";
    display: inline;
}

pre code::after, pre code::before {
    content: "";
}

pre {
    display: block;
    word-break: break-all;
    word-wrap: break-word;
    color: var(--secondary-color);
    background-color: var(--block-background-color);
    border: 1px solid var(--secondary-color);
    padding: var(--global-space);
    white-space: pre-wrap;
}

pre code {
    overflow-x: scroll;
    padding: 0;
    margin: 0;
    display: inline-block;
    min-width: 100%;
    font-family: var(--mono-font-stack);
    background-color: var(--block-background-color);
}

.terminal blockquote, .terminal h1, .terminal h2, .terminal h3, .terminal h4,
.terminal h5, .terminal h6, .terminal strong, .terminal .logo {
    font-size: var(--global-font-size);
    font-style: normal;
    font-family: var(--font-stack);
    color: var(--font-color);
}

.terminal code {
    font-size: var(--global-font-size);
    font-style: normal;
    color: var(--font-color);
}

li, li > ul > li {
    position: relative;
    display: block;
    padding-left: calc(var(--global-space) * 2);
}

nav > ul > li {
    padding-left: 0;
}

li::after {
    position: absolute;
    top: 0;
    left: 0;
}

ul > li::after {
    content: "-";
}

nav ul > li::after {
    content: "";
}

ol li::before {
    content: counters(item, ".") ". ";
    counter-increment: item;
}

ol ol li::before {
    content: counters(item, ".") " ";
    counter-increment: item;
}

ol {
    counter-reset: item;
}

ol li:nth-child(n+10)::after {
    left: -7px;
}

ol ol, ul ul {
    margin-top: 0;
    margin-bottom: 0;
}

hr {
    position: relative;
    overflow: hidden;
    margin: calc(var(--global-space) * 4) 0;
    border: 0;
    border-bottom: 1px dashed var(--secondary-color);
}

.logo {
    font-weight: normal;
}

p {
    margin: 0 0 var(--global-line-height);
    color: var(--font-color);
}

h3, h4, h5, h6, p {
    max-width: 40rem;
    margin-bottom: 1.7rem;
    margin-left: auto;
    margin-right: auto;
}

/* ---- layout / images ---- */

.container {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 calc(var(--global-space) * 2);
}

figure {
    margin-top: 15px;
    margin-bottom: 15px;
    margin-left: 60px;
    margin-right: 60px;
}

figure img {
    display: block;
    width: 100%;
}

figure > figcaption {
    color: var(--secondary-color);
    text-align: center;
}

img.work {
    width: 100%;
}

img.lazy-fade {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

img.lazy-fade.loaded {
    opacity: 1;
}

img.lightbox-trigger {
    cursor: zoom-in;
}

.img-responsive {
    margin-bottom: 2em;
    width: 100%;
}

img.img-wide {
    display: block;
    width: 95vw;
    max-width: 95vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    margin-bottom: 2em;
}

img.img-widefull {
    display: block;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    margin-bottom: 2em;
}

figure.wide {
    width: 95vw;
    max-width: 95vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    margin-bottom: 2em;
    margin-left: 0;
    margin-right: 0;
}

/* Caps the image at its native pixel size, shrinking to fit narrower viewports/containers. */
/* box-sizing must be content-box here, otherwise the global `* { box-sizing: border-box }` makes max-width:100% include a border/padding allowance instead of the image's own pixels. */
figure.natural {
    margin-left: auto;
    margin-right: auto;
}

figure.natural img {
    display: block;
    box-sizing: content-box;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.img-row-wide {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--img-row-gap, 5%);
    width: 95vw;
    max-width: 95vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    margin-bottom: 15px;
}

.img-row-wide img {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 0;
}

.img-row-full {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    margin-bottom: 15px;
}

.img-row-full img {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 0;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1000;
    cursor: zoom-out;
}

.lightbox-overlay.open {
    display: flex;
}

.lightbox-overlay img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

/* ---- navigation (terminal-nav / terminal-menu / terminal-prompt / logo) ---- */

.terminal-prompt {
    position: relative;
    white-space: nowrap;
}

.terminal-prompt::before {
    content: none;
    display: none;
}

.terminal-prompt::after {
    -webkit-animation: cursor 1s infinite;
    animation: cursor 1s infinite;
    width: 10px;
    display: none;
}

@keyframes cursor {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.terminal-menu li::after, .terminal-menu li::before {
    display: none;
}

.terminal-menu {
    width: 100%;
}

.terminal-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.terminal-menu ul {
    list-style-type: none;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-grow: 1;
    font-size: var(--global-font-size);
    margin-top: 0;
}

.terminal-menu li {
    display: flex;
    margin: 0 0 .5em;
    margin-right: 30px;
    padding: 0;
}

.terminal-menu li:last-child {
    margin-bottom: 0;
}

.terminal-menu li a:not(.btn) {
    text-decoration: none;
    display: block;
    width: 100%;
    border: none;
    color: var(--secondary-color);
}

.terminal-menu li a:hover {
    background: 0 0;
    color: inherit;
}

@media only screen and (width >= 30em) {
    .terminal-nav {
        flex-direction: row;
        align-items: center;
    }

    .terminal-menu ul {
        flex-direction: row;
        place-items: center flex-end;
        justify-content: flex-end;
        margin-top: calc(var(--global-space) * 2);
    }

    .terminal-menu li {
        margin: 0;
        margin-right: 2em;
    }

    .terminal-menu li:last-child {
        margin-right: 0;
    }
}

/* ---- site components ---- */

.artist_statement {
    margin-top: 4em;
    padding: 25px;
    background-color: #e9e9e9;
    box-shadow: 10px 10px #cecece;
}

.footer {
    clear: both;
    font-size: x-small;
    margin-top: 150px;
    padding-top: 10px;
    border-top: 1px solid var(--global-footer-color);
    color: var(--global-footer-color);
}

.footer a {
    color: var(--global-footer-color);
}

.image-grid {
    display: grid;
    grid-template-rows: auto;
    grid-gap: 1em;
    grid-template-columns: repeat(
        auto-fit,
        minmax(calc(var(--page-width) / 4), 1fr)
    );
}

.grid-lazy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
}

.grid-lazy-grid img.grid-lazy-thumb {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    display: block;
}

.grid-lazy-wide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.grid-lazy-wide-grid img.grid-lazy-wide-thumb {
    width: 100%;
    height: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: center;
    display: block;
}

.grid-children-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
}

.grid-children-tile {
    text-decoration: none;
    color: inherit;
    display: block;
}

.grid-children-tile-bg {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    background-color: #fff;
    overflow: hidden;
}

.grid-children-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.grid-children-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease;
    z-index: 1;
}

.grid-children-tile:hover .grid-children-overlay {
    background-color: rgba(255, 255, 255, 0.8);
}

.grid-children-title {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-align: center;
    font-size: 1.1em;
    font-weight: 400;
    padding: 1em;
}

.posts-list {
    position: relative;
    padding-left: 130px;
    top: 0;
}

.post h1, .post h2 {
    padding-top: 0;
    margin: 0;
    margin-bottom: 5px;
}

.posts-list .date {
    display: inline-block;
    position: absolute;
    left: 0px;
    width: 130px;
    z-index: 400;
    padding-top: 0;
}

/* ---- responsive ---- */

@media only screen and (max-width: 850px) {
    .site-name {
        width: 2ch;
        overflow: hidden;
    }

    .img-row-wide {
        flex-direction: column;
        gap: 0;
    }

    .img-row-full {
        flex-direction: column;
        gap: 0;
    }

    .grid-lazy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-lazy-wide-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-children-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .terminal-nav {
        align-items: flex-start;
        flex-direction: column;
        display: flex;
    }

    .terminal-menu ul {
        align-items: flex-start;
        display: flex;
        flex-direction: row;
        justify-content: left;
        margin-top: 0;
    }

    .terminal-menu li {
        margin-right: 20px;
    }

    .logo {
        padding: calc(var(--global-space) * 1) 0 calc(var(--global-space) * 1);
    }

    figure {
        margin-top: 5px;
        margin-bottom: 5px;
        margin-left: 30px;
        margin-right: 30px;
    }

    .posts-list {
        position: relative;
        padding-left: 0;
        top: 0;
    }

    .post h1, .post h2 {
        padding-top: 0;
    }

    .posts-list .date {
        display: inline-block;
        position: absolute;
        left: 0px;
        width: 150px;
        z-index: 400;
        font-weight: bold;
        padding-top: 0;
        display: none;
    }

    .footer {
        margin-top: 50px;
        padding-top: 5px;
    }
}
