@font-face {
  font-family: "Public Sans";
  src:
    local("Public Sans"),
    url("/fonts/public-sans/PublicSans-Regular.otf") format("opentype");
}

@font-face {
  font-family: "Palladio";
  src: url("/fonts/palladio/P052-Roman.otf") format("opentype");
}

@font-face {
  font-family: "Palladio";
  src: url("/fonts/palladio/P052-Bold.otf") format("opentype");
  font-style: bold;
  font-weight: bold;
}

html {
    --page-width: 1400px;
    --single-width: 800px;
    --thumbnail-size: 175px;
    --gallery-thumbnail-size: 125px;
    --section-gthumbnail-size: 200px;
    margin-inline: 8px;
    background-color: #121212;
    color: white;
    font-family: "Palladio";
    text-rendering: optimizeLegibility;
}

hr {
    height: 2px;
    background: #fff;
    font-size: 0;
    border: 0;
}

pre {
    padding: 8px;
    border-radius: 2px;
    background: #ffffff08 !important;
    overflow-x: scroll;
}

p code {
    padding: 3px;
    border-radius: 2px;
    background-color: #ffffff08;
}

li code {
    padding: 3px;
    border-radius: 2px;
    background-color: #ffffff10;
}

blockquote:has(+ blockquote) {
    margin-block: 4em;
}

blockquote + blockquote {
    margin-block: 4em;
}

@media (max-width: 700px) {
    blockquote {
        margin-inline: 1em;
    }
}

.bottom-margin {
    margin-bottom: 24px;
}

.logo {
    height: 72px;
    margin-top: 24px;
    margin-bottom: 0px;
}

.entry {
    padding-inline-start: 1rem;
    border-left: 2px dotted #fff;
}

.main-title {
    font-size: 72px;
    font-family: sans-serif;
}

a {
    color: rgb(130, 182, 255);
}

a:visited {
    color: rgb(222, 128, 248);
}

main {
    max-width: var(--page-width);
    margin-inline: auto;
}

footer {
    margin-top: 24px;
    padding-top: 24px;
    margin-bottom: 24px;
    max-width: var(--page-width);
    margin-inline: auto;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: start;
    border-top: 2px solid #fff;
}

/* homepage */

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px
}


.misc-metadata {
    width: 100%;
    height: 100%;
}

.misc-metadata h4 {
    margin: 0;
}

.misc-metadata hr {
    margin-block: 4px;
}

.tagline {
    font-size: 1.1rem;
    margin-bottom: 18px !important;
}

.misc-metadata p {
    margin-bottom: 4px;
}

.metadata-entry {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    padding-block: 4px;
    padding-top: 6px;
    border-bottom: 1px solid rgb(88, 88, 88);
}

.flag {
    height: 18px;
    width: 36px !important;
    outline: 1px solid #fff;
}

.recent-list {
    width: 100%;
    height: 100%;
}

.recent-list h4 {
    margin: 0;
}

.recent-list hr {
    margin-block: 4px;
}

.recent-list p {
    margin: 0;
    margin-bottom: 4px;
    font-size: 14px;
}

.date {
    min-width: 90px;
    text-align: end;
}

.tag-list {
    width: 100%;
    height: 100%;
    grid-column: 3 / -1;
}

.tagbutton img {
    border: 1px solid #fff;
}

@media (max-width: 1067px) {
  .metadata-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }

  .tag-list {
    grid-column: 1 / -1;
  }

  
}

@media (max-width: 543px) {
  .metadata-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  html {
    --thumbnail-size: 150px;
    --gallery-thumbnail-size: 100px;
    --section-gthumbnail-size: 150px;
  }

}

.tag-list h4 {
    margin: 0;
}

.tag-list hr {
    margin-block: 4px;
}

.tag-container {
    margin-block: 12px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding-inline: 1px;
    gap: 8px;
    row-gap: 10px;
}

.tagbutton {
    padding-inline: 8px;
    padding-block-start: 3px;
    padding-block-end: 4px;
    outline: 1px solid #fff;
    border-radius: 16px;
    background-color: #ffffff05;
    cursor: pointer;
    text-decoration: none;
    color: white;
    font-family: "Public Sans";
    min-width: 10px;
    text-align: center;
}

.tagbutton:hover {
    outline: 2px solid #1ebcff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--gallery-thumbnail-size), 1fr));
    grid-auto-rows: auto;
    gap: 2px;
}

.gallery-item {
    width: 100%;
    height: 100%;
}

.gallery-thumbnail {
    display: contents;
}

.gallery-thumbnail img {
    outline: 2px solid #fff;
}

.gallery-thumbnail img:hover {
    outline: 4px solid #1ebcff !important;
    position: relative;
}

section > h2 {
    margin-bottom: 14px;
}

.section-title + p {
    margin-top: -8px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--thumbnail-size), 1fr));
    grid-auto-rows: 1fr;
    gap: 12px
}

.page {
   display: grid;
   grid-template-columns: 1fr;
   grid-template-rows: min-content max-content;
   container: page / inline-size;
   font-size: 12px;
}

@container page (min-width: 0px) {
    label {
    }
}

.page .label-container {
    width: 100%;
    margin-top: 0.4rem;
}

.page label {
    font-size: 14px;
    text-align: start;
    color: rgb(215, 214, 214);
    height: 100%;
    justify-self: start;
    align-self: start;
}

.page-thumbnail {
    overflow-y: hidden;
    outline: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.12), 0 1px 2px rgba(255, 255, 255, 0.24);
    cursor: pointer;
    text-decoration: none;
    background-color: #ffffff05;
    aspect-ratio: 1;
    grid-row: 1;
    grid-column: 1;
}

.page-thumbnail .text-thumbnail {
    color: white;
    padding: 8px;
}

.page-thumbnail .text-thumbnail h2 {
    margin-top: 0;
}

.page .text-thumbnail-overlay {
    width: 100%;
    height: 100%;
    grid-row: 1;
    grid-column: 1;
    background: linear-gradient(#12121200, 95%, #121212);
    z-index: 1;
}

.page-thumbnail .thumbnail {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.page-thumbnail img {
    width: 100%;
    height: 100%;
}

.page-thumbnail:hover {
    outline: 4px solid #1ebcff;
}

.text-thumbnail-overlay:hover {
    outline: 4px solid #1ebcff;
}

.button-container {
    margin-block: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.button-container a {
    height: 31px;
}


/* SINGLE */

.breadcrumb {
    width: 100%;
    display: block;
    font-size: large;
} 

.breadcrumb ol {
    max-width: calc(var(--page-width) - 16px);
    margin-inline: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    padding: 8px;
    outline: 1px solid #fff;
    padding-bottom: 4px;
}

.breadcrumb li {
    display: inline-block;
}

.breadcrumb li a {
    text-decoration: none;
}

.breadcrumb li::after {
    color: white;
    content: " / ";
}

.breadcrumb li:last-child a {
    color: white;
}

.breadcrumb li:last-child::after {
    content: "";
}

.single {
    max-width: var(--page-width);
}

.single-content-container {
    max-width: var(--single-width);
}

.single img {
    display: block;
    width: 100%;
    max-width: 500px;
    margin-block: 8px;
}

.single-tag-list {
    width: 100%;
    height: 100%;
}

.single-tag-list h4 {
    margin: 0;
}

.single-tag-list hr {
    margin-block: 4px;
}

/* section gallery */ 
.section-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--section-gthumbnail-size), 1fr));
    grid-auto-rows: auto;
    gap: 8px
}

.section-gallery-item {
    width: 100%;
    height: 100%;
}

.section-gallery-thumbnail {
    display: contents;
}

.section-gallery-thumbnail img:hover {
    outline: 4px solid #1ebcff;
}

.term-tagbutton {
    padding-inline: 8px;
    padding-block-start: 3px;
    padding-block-end: 4px;
    outline: 1px solid #fff;
    border-radius: 24px;
    background-color: #ffffff05;
    cursor: pointer;
    text-decoration: none;
    color: white;
    font-family: "Public Sans";
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding-block: 8px;
}

.term-tagbutton:hover {
    outline: 2px solid #1ebcff;
}