@font-face {
    font-family: 'Pixel Operator Mono'; 
    src: url('/fonts/PixelOperatorMono.ttf') format('truetype');
}
@font-face {
    font-family: 'Pixel Operator Mono Bold'; 
    src: url('/fonts/PixelOperatorMono-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'Cthulhumbus Arcade'; 
    src: url('/fonts/JMHCthulhumbusArcadeUG.ttf') format('truetype');
}
@font-face {
    font-family: 'Venice Classic'; 
    src: url('/fonts/VeniceClassic.ttf') format('truetype');
}

:root {
    --half-spacing: .5rem;
    --spacing: 1rem;
    --double-spacing: 2rem;
    --pictochat: #F3F3FA;
    --ghost: #B3ADC4;
    --chapped: #e2c7d4;
    --chapped-dark: #A07C8D;
    --kuromi: #837088;;
    --bruised: #251B2E;
    --crypt: #000000;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--kuromi) var(--crypt);
}

html {
    background-image: linear-gradient(var(--ghost), var(--bruised), var(--crypt));
}

body {
    font-family: 'Garamond', serif;
    margin: 0;
    padding: 0;
    color: var(--pictochat);
    font-size: 14px;
    letter-spacing: 0.07em;
    background-size: auto;
    background-repeat: no-repeat;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
strong,
time {
    font-family: 'Pixel Operator Mono Bold', monospace;
    font-weight: 700;
    margin-bottom: .5rem;
}

h1 {
    font-size: 1.5rem;
}
h2 {
    font-size: 1.25rem;
}
h3 {
    font-size: 1.1rem;
}

p {
    margin-top: .4rem;
    line-height: 1.5;
}

ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

a {
    font-family: 'Pixel Operator Mono Bold', monospace;
    color: var(--kuromi);
    text-decoration: none;
    transition: color .2s ease-in;
}
a:hover {
    color: var(--chapped-dark);
}

li {
    line-height: 1.3rem;
    vertical-align: middle;
}

ul > * + * {
    margin-top: .25rem;
}

ul > li > ul {
    margin-left: 1rem;
}

hr {
    border-top: 1px solid var(--ghost);
    border-bottom: transparent;
}

#content {
    overflow-x: hidden;
}


dialog {
    z-index: 50;
    position: absolute;
    left: 0;
    right: 0;
}
dialog::backdrop {
    background-color: rgba(0,0,0,70%);
}
.modal-inner {
    width: 100%;
    height: 100%;
}
.modal-header,
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: .8rem;
}

.lowercase {
    text-transform: lowercase;
}


.portrait {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 3/4;
}
.portrait-long {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 1/2;
}
.square {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 1/1;
}

.scale-down {
    object-fit: scale-down;
}

button, input[type="submit"], input[type="reset"] {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}

button[type="submit"] {
    display: inline-block;
    width: min-content;
    background-color: var(--bruised);
    border: 3px solid var(--crypt);
    color: var(--pictochat);
    padding: 4px 10px;
    font-family: 'Pixel Operator Mono Bold', monospace;
    letter-spacing: 1px;
    font-size: 1.2rem;
    transition: all .2s ease-in;
}
button[type="submit"]:hover {
    background-color: var(--kuromi);
}

input[type="text"],
textarea {
    display: block;
    width: 100%;
    margin-top: 4px;
    box-sizing: border-box;
    -webkit-box-sizing:border-box;
    -moz-box-sizing: border-box;
}

label {
    font-family: 'Pixel Operator Mono Bold', monospace;
}

#site-grid {
    width: min-content;
    display: grid;
    grid-template-columns: 150px 468px 150px;
    margin: var(--double-spacing) auto;
    column-gap: var(--double-spacing);
}

nav {
    background-color: var(--crypt);
    padding: .5rem;
}

nav a {
    font-size: 2rem;
    padding: .5rem 0 .5rem .5rem;
    display: block;
}

#site-logo {
    font-family: 'Cthulhumbus Arcade';
    font-size: 1.7rem;
    color: var(--crypt);
    width: min-content;
    text-align: center;
    font-weight: 700;
    display: block;
}
@media screen and (max-width: 1000px)
{
    #site-logo {
        font-size: 1.6rem;
    }
}

.blog-post {
    padding: 20px 40px;
}
@media screen and (max-width: 768px)
{
    .blog-post {
        padding: 16px 16px;
    }
}

article p {
    font-size: 15px;
    line-height: 28px;
}

article img {
    max-width: 500px;
    max-height: 80dvh;
    object-fit: scale-down;
}

article li {
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 15px;
}

article ul,
article ol {
    padding-left: var(--double-spacing);
}

article ul li {
    list-style: disc;
}

article h1,
article h2 {
    margin-top: var(--double-spacing);
    margin-bottom: var(--spacing);
}

.text-lg {
    font-size: 2rem;
}


.link-active {
    border-bottom: 5px solid var(--chapped);
}
.hidden {
    display: none;
}


/**
 * UTILITIES
 */
img.scale-down {
    width: 100%; 
    object-fit: scale-down;
}


.bg-crypt {
    background-color: var(--crypt);
}
.bg-bruised {
    background-color: var(--bruised);
}
.bg-kuromi {
    background-color: var(--kuromi);
}
.bg-ghost {
    background-color: var(--ghost);
}
.bg-chapped {
    background-color: var(--chapped);
}
.bg-pictochat {
    background-color: var(--pictochat);
}
.text-crypt {
    color: var(--crypt);
}
.text-bruised {
    color: var(--bruised);
}
.hover-bruised:hover {
    color: var(--bruised);
}
.text-kuromi {
    color: var(--kuromi);
}
.text-ghost {
    color: var(--ghost);
}
.text-chapped {
    color: var(--chapped);
}
.text-pictochat {
    color: var(--pictochat);
}
.border {
    border: 4px solid;
}
.border-crypt {
    border-color: var(--crypt);
}
.border-bruised {
    border: 2px solid var(--bruised);
}
.border-kuromi {
    border: 2px solid var(--kuromi);
}
.border-ghost {
    border: 2px solid var(--ghost);
}
.border-chapped {
    border: 2px solid var(--chapped);
}
.border-pictochat {
    border: 2px solid var(--pictochat);
}


@media screen and (max-width: 768px)
{
    .desktop-only {
        display: none;
    }

}

.mr {
    margin-right: var(--double-spacing);
}
.ml {
    margin-right: var(--double-spacing);
}
.my {
    margin-top: var(--double-spacing);
    margin-bottom: var(--double-spacing);
}
.mb-small {
    margin-bottom: var(--spacing);
}
.mb {
    margin-bottom: var(--double-spacing);
}
.mt-0 {
    margin-top: 0;
}
.mb-0 {
    margin-bottom: 0;
}

.block {
    display: block;
}
.flex {
    display: flex;
}
.flex-col {
    flex-direction: column;
}
.justify-center {
    justify-content: center;
}
.justify-between {
    justify-content: space-between;
}
.items-center {
    align-items: center;
}
.flex-wrap {
    flex-wrap: wrap;
}
.relative {
    position: relative;
}
.absolute {
    position: absolute;
}
.forward {
    z-index: 10;
}
.grid {
    display: grid;
    gap: var(--spacing);
}
.grid-cols-2 {
    grid-template-columns: 1fr 1fr;
}
.grid-cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
@media screen and (max-width: 768px)
{
    .grid {
        grid-template-columns: 1fr;
    }
}
.col-span-2 {
    grid-column: span 2 / span 2;
}
@media screen and (max-width: 768px)
{
    .col-span-2 {
        grid-column: span 1 / span 1;
    }
}

.padding-small {
    padding: var(--half-spacing);
}

.padding {
    padding: var(--spacing);
}

.underline {
    border-bottom: 3px solid black;
}

.container {
    max-width: 768px;
    margin: auto;
}

.w-full {
    width: 100%;
}

/**
 * HOMEPAGE
 */

#homepage-container img {
    max-height: 90dvh;
    object-fit: scale-down;
}

#homepage-cashmere {
    width: 400px;
    margin-left: -150px;
}

@media screen and (max-width: 1020px)
{
    #homepage-cashmere {
        width: 300px;
        margin-left: -80px;
    }
}
@media screen and (max-width: 900px)
{
    #homepage-cashmere {
        margin-left: -66px;
    }
}

/**
 * ARTWORK
 */

.art-wip-img {
    width: 100%;
    object-fit: scale-down;
}

.artwork-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: var(--spacing);
}

.artwork-thumb {
    width: 100%;
    aspect-ratio: 1/1;
}

#art-gallery {
    width: 90vw;
    height: auto;
    max-width: 768px;
    max-height: 90vh;
}

.artwork-gallery {
    width: 100%;
    height: 70vh;
    object-fit: scale-down;
}

#art-gallery .gallery-details h2 {
    margin-bottom: .5rem;
    text-align: center;
}
#art-gallery .gallery-details p {
    margin-top: 0;
    text-align: center;
}

.gallery-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-nav button:disabled {
    white-space: nowrap;
}

.gallery-nav button:disabled {
    opacity: .3;
    cursor: default;
}

#webrings {
    display: flex;
}

#webrings > * {
    margin-right: var(--spacing);
}

/**
 * SKILLTREE
 */

.skilltree--bar {
    width: 100%;
    height: 25px;
    border: 1px solid var(--bruised);
    position: relative;
    margin-bottom: var(--spacing);
    font-family: 'Pixel Operator Mono Bold', monospace;
}

.skilltree--bar-filler {
    width: var(--skilltree-percent);
    height: 25px;
    background-color: var(--chapped-dark);
    position: absolute;
    top: 0;
    left: 0;
}
.skilltree--bar-text {
    height: 25px;
    position: absolute;
    top: 0;
    left: .5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    margin: 1px 0 0 0;
}

.skilltree--container {
    margin-bottom: 1rem;
}

.skilltree--container p {
    margin: 0;
}

.skilltree--header {
    display: flex;
    justify-content: space-between;
    font-family: 'Pixel Operator Mono Bold', monospace;
}

