:root {
    /* colors */
    --bg: rgba(0 0 0 / 0.8);
    --base: #cecedc;
    --base-0: #acacba;
    --base-1: #8c8c9a;
    --border: hsl(160, 10%, 10%);

    --layer: #f2f2f8;
    --layer-0: #d6d9ea;
    --layer-1: #babfde;
    --layer-2: #9ea4d2;

    --text: #d2d2d2;
    --text-muted: #a9a9e9;

    --accent: #7281d3;
    --accent-1: #3c35a6;
    --accent-2: #e771d9;
    --accent-3: #f1aac4;

    --link-hover: var(--accent-2);
    --link: var(--accent-3);
    --nav-link: #fafafa;
    --nav-bg: hsla(0, 0%, 0%, 0.5);

    --bbga: rgba(0 0 0 / 0.6);
    --white-bg: rgba(250 250 250 / 0.6);
    --white-bg-20: rgba(250 250 250 / 0.2);

    /* typog */
    --font-text: "iAQuattro";
    --text-weight: 500;
    --text-size: 15px;
    --line-height: 1.6;
    --text-padding: 0;

    --header-font: "HotChoco", "iAQuattro", sans-serif;
    --header-weight: 300;
    --h-style: normal;

    --title: "HotChoco", sans-serif;
    --title-color: #fafafa;

    --nav-font: "iAQuattro";
    --nav-size: 1rem;
    --nav-weight: 600;
    --nav-style: normal;
}


@font-face {
    font-family: "iAQuattro";
    src: url("/assets/fonts/iAWriterQuattroV.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    font-feature-settings:
        "calt" 1,
        "dlig" 1,
        "ccmp" 1,
        "ss02" 1,
        "ss03" 1,
        "cv01" 1,
        "case" 1,
        "cv05" 1,
        "cv06" 1,
        "cv08" 1,
        "cv11" 1;
}

@font-face {
    font-family: "HotChoco";
    src: url("/assets/fonts/hot_chocolate.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

/* fixed bg that works on mobile */

html::before {
    content: ' ';
    display: block;
    background-image: url("/assets/graphics/pattern.png");
    background-position: center;
    background-size: 100%;
    height: 100vh;
    width: 100vw;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: fixed;
    z-index: -10;
}

/* general styling  */
* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    align-items: center;
    font-family: var(--font-text);
    color: var(--text);
    margin: 0;
}

p * {
    margin: 0;
    color: var(--text);
    font-family: var(--font-text);
    line-height: var(--line-height);
}


a {
    color: var(--accent);
    text-decoration: none;
    font-size: 1rem;
}

/* headings */


#title {
    font-family: var(--title);
    font-size: 2rem;
    margin: auto;
    letter-spacing: 3px;
    padding-bottom: 10px;
    text-align: center;
    color: var(--title-color);
    width: 100%;
}

header {
    padding: 20px 0;
    width: 100%;
    margin: auto;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--header-font);
    color: var(--accent-3);
    font-weight: 300;
}

h1 {
    color: var(--accent-2);
    font-size: 2.488rem;
}

h2 {
    font-size: 1.6rem;
    text-align: center;
}

.site-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    align-items: center;
}

#mainbox {
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
    border-radius: 20px;
    margin: 0 auto auto;
    justify-content: space-evenly;
    min-height: max-content inline;
    padding: 20px;
    width: 700px;
    max-width: 100%;
}

/* homepage */
#home {
    margin: auto;
}

#home>p,
.update {
    display: block;
    padding: 20px 40px;
    text-align: center;
}

/* recents grid */
#recent-posts {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: auto;
    padding: 20px;
    text-align: center;
    gap: 10px;
}

#recent-posts img {
    margin: auto;
    background-color: #fff;
    border-radius: 10px;
    max-width: 100%;
    opacity: .8;
    flex: 1;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

#recent-posts img:hover {
    opacity: 1;
    transition: 0.3s ease-in-out;
}

#recent {
    text-align: center;
}


/* about me */

.about {
    margin: auto;
    padding: 20px 50px;
    line-height: var(--line-height);
}

#pfp img {
    display: block;
    margin: auto;
    width: 50%;
}

#pfp {
    padding-bottom: 20px;
    padding-top: 40px;
}

/* header navigation */
.site-nav {
    display: flex;
    margin: auto;
    flex-wrap: nowrap;
    column-gap: 2rem;
    width: 100%;
    justify-content: center;
}

.nav-link a {
    transition: all 0.3s ease;
    letter-spacing: 0.05rem;
    font-weight: 700;
    color: var(--nav-link);
    border-radius: 10px;
    text-decoration: none;
    font-family: var(--nav-font);
}

.nav-link a:hover {
    opacity: 0.8;
    letter-spacing: 0.09rem;
}

/* other non-header navigation items */
.breadcrumbs {
    display: flex;
    margin: auto;
}

.backlink {
    display: block;
    padding: 20px;
    text-align: center;
}

.art-page-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.post-date {
    display: block;
    font-family: var(--font-text);
    color: var(--text);
    font-style: italic;
}


.post-description {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.8;
}

footer {
    display: flex;
    margin: 300px auto 0;
    justify-content: center;
    gap: 100px;
    font-size: 0.8rem;
    color: var(--text);
    opacity: 0.75;
    background-color: var(--bbga);
    width: 100%;
}

footer a {
    font-size: 12px;
    color: var(--accent);
}


/* contact me / get in touch page */

#contact {
    padding: 0 20px;
    margin: auto;
    display: block;
    text-align: center;
}

ul#contact-list {
    margin: auto;
}

/* gallery pages styles */
.gallery-container {
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 100%;
    padding: 40px 20px;
    gap: 20px;
}

.tag-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}


.gallery-item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--white-bg-20);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: #fff;
}

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

/* gallery directory */
.category-card {
    display: flex;
    flex-direction: column;
    flex: 0 1;
    margin: auto;
    justify-content: space-evenly;
    align-content: center;
    padding: 10px;
    max-width: 400px;
}

.card-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: auto;
    border-radius: 20px;
}


.label {
    display: block;
    margin: auto;
    font-size: 1rem;
    font-family: var(--font-text);
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    text-align: center;
}



/* individual gallery item pages */

.art-img {
    display: block;
    margin: auto;
    max-width: 100%;
    padding: 20px;
    border-radius: 10px;
}

img.art {
    border-radius: 20px;
    max-width: 100%;
}

/* ============================================
   LINKS (global)
============================================ */

h2>a {
    text-decoration: none;
}