@import url('poppins.css');

@font-face {
  font-family: Zondag Driver; /* set name */
  src: url(/fonts/Zondag\ Driver\ Beta.otf); /* url of the font */
}

* {
    margin: 0;
    box-sizing: border-box;
    padding: 0;
}

:root {
    color-scheme: light dark;
    /* 60% primary 30% seconddary 10% accent */
    --neutral-light-two: #DEEEED;
    --neutral-light: whitesmoke;
    --neutral-dark: #2E2E33;
    --neutral-middle: #465A65;

    --warning-color: rgb(255, 230, 0);
    --error-color: rgb(255, 38, 0);
    --success-color: rgb(83, 255, 16);
    --warning-text-color: var(--neutral-dark);

    /**
    * Generated by Gpick 0.2.6
    * Cement: #b9b49e, rgb(185, 180, 158), hsl(261, 71%, 62%)
    * Silver: #deeeed, rgb(222, 238, 237), hsl(313, 93%, 93%)
    * Slate: #465a65, rgb(70, 90, 101), hsl(99, 35%, 40%)
    * Dark grey: #2e2e33, rgb(46, 46, 51), hsl(65, 18%, 20%)
    * Light maroon: #95403d, rgb(149, 64, 61), hsl(210, 25%, 24%)
    * Sandy: #e9d86e, rgb(233, 216, 110), hsl(329, 85%, 43%)
    * Swamp: #627d36, rgb(98, 125, 54), hsl(138, 49%, 21%)
    * Light blue: #9cd1f1, rgb(156, 209, 241), hsl(220, 82%, 95%)
    * Dark salmon: #b25954, rgb(178, 89, 84), hsl(251, 35%, 33%)
    */
    /* #325264 */
    --primary-color: oklch(42.158% 0.0482 234.252);
    --primary-color-90: oklch(90% 0.0482 234.252);
    --primary-color-80: oklch(80% 0.0482 234.252);
    --primary-color-70: oklch(70% 0.0482 234.252);
    --primary-color-60: oklch(60% 0.0482 234.252);
    --primary-color-50: oklch(50% 0.0482 234.252);
    --primary-color-40: oklch(40% 0.0482 234.252);
    --primary-color-30: oklch(30% 0.0482 234.252);
    --primary-color-20: oklch(20% 0.0419 234.252);
    --primary-color-10: oklch(10% 0.021 234.252);

    /* #52731f */
    --secondary-color: oklch(51.245% 0.1171 128.634);
    --secondary-color-90: oklch(90% 0.18 128.634);
    --secondary-color-80: oklch(80% 0.18 128.634);
    --secondary-color-70: oklch(71% 0.18 128.634);
    --secondary-color-60: oklch(60% 0.1582 128.634);
    --secondary-color-50: oklch(50% 0.1319 128.634);
    --secondary-color-40: oklch(40% 0.1055 128.634);
    --secondary-color-30: oklch(30% 0.0791 128.62);
    --secondary-color-20: oklch(20% 0.0527 128.62);
    --secondary-color-10: oklch(10% 0.0263 128.62);

    /* #95403D */
    --accent-color: oklch(48.379% 0.11545 24.343);
    --accent-color-90: oklch(90% 0.0519 24.343);
    --accent-color-80: oklch(80% 0.1142 24.343);
    --accent-color-70: oklch(70% 0.1713 24.343);
    --accent-color-60: oklch(60% 0.2033 24.343);
    --accent-color-50: oklch(50% 0.1633 24.343);
    --accent-color-40: oklch(40% 0.1356 24.343);
    --accent-color-30: oklch(30% 0.11545 24.343);
    --accent-color-20: oklch(20% 0.0809 24.343);
    --accent-color-10: oklch(10% 0.0404 24.343);

    --primary-light-switch: light-dark(var(--primary-color), var(--neutral-light));

    --bg-color: light-dark(var(--neutral-light-two), var(--primary-color-20));
    --header-bg-color: var(--bg-color);
    --title-color: light-dark(var(--secondary-color), var(--primary-color-70));
    --title-color-accent: light-dark(var(--accent-color), var(--secondary-color-70));
    --heading-color: light-dark(var(--primary-color), var(--primary-color-70));

    --nav-bg-color: #0000;
    --nav-text-color: var(--primary-light-switch);
    --nav-hover-bg-color: light-dark(var(--primary-light-switch), var(--secondary-color-70));
    --nav-hover-text-color: var(--header-bg-color);
    --nav-current-page-text-color: var(--secondary-color);

    --bottom-nav-bg-color: light-dark(var(--primary-color-30), var(--secondary-color-70));
    --bottom-nav-fg-color: light-dark(var(--neutral-light), var(--neutral-dark));
    --bottom-nav-hover-color: light-dark(var(--secondary-color-70),var(--neutral-light));
    --nav-shadow-color: light-dark(var(--secondary-color-70), var(--primary-color-70));
    --nav-shadow: var(--nav-shadow-color) 0.7em 0.7em;
    --bottom-nav-current-fg-color: light-dark(var(--secondary-color-70),var(--accent-color-30));

    --social-fg-color: var(--footer-bg-color);
    --social-bg-color: var(--secondary-color-70);
    --social-hover-fg-color: var(--footer-bg-color);
    --social-hover-bg-color: var(--accent-color-70);
    --card-footer-bg-color: light-dark(var(--secondary-color), var(--neutral-middle));
    --widget-first-text: var(--neutral-light);

    --gray-color: gray;
    --heading-icon-color: var(--accent-color);

    --link-color: light-dark(var(--secondary-color-40),  #98bd45);
    --outlink-color: var(--accent-color);
    --action-link-color: light-dark(var(--accent-color), var(--accent-color));

    --blockquote-bg-color: light-dark(--neutral-light, var(--accent-color));
    --hr-color: var(--accent-color);
    --current-page-color: light-dark(var(--secondary-color), var(--accent-color-70));
    --breadcrumbs-current-page-color: light-dark(var(--accent-color), var(--accent-color-70));
    --text-color: light-dark(var(--dark-bg-color), var(--neutral-light));

    --logo-bg-color: light-dark(var(--primary-color),var(--primary-color-70));

    --share-text-color: light-dark(var(--accent-color), var(--accent-color-70));

    --card-bg-color: light-dark(var(--neutral-light), var(--primary-color-30));
    --widget-text: light-dark(var(--neutral-dark), var(--neutral-light));
    --card-shadow: light-dark(#0008, #0008) 0 0 0.5em;
    --card-border-color: var(--neutral-dark);
    --cover-default-bg-color: var(--gray-color);

    --tag-border-color: var(--accent-color-dark);
    --tag-bg-color: light-dark(var(--accent-color-dark), var(--secondary-color-dark));
    --tag-text-color: light-dark(var(--card-bg-color), var(--secondary-color-light));

    --skip-text-color: var(--secondary-color-30);
    --skip-outline-color: var(--neutral-dark);
    --skip-bg-color: var(--secondary-color-70);

    --footer-link-color: var(--neutral-light);
    --footer-text-hover-color: var(--accent-color-70);
    --footer-bg-color: var(--primary-color-30);

    --footer-text-color: var(--neutral-light);
    --footer-text-link-color: var(--secondary-color-70);

    --scrollbar-fg-color:var(--secondary-color-70);
    --scrollbar-bg-color:var(--primary-color-30);

    --column-color: var(--accent-color);
    --strong-color: light-dark(var(--primary-color-30), var(--secondary-color-70))
    --hero-bg-color: var(--primary-color);
}

/* scrollbar */
* {
 scrollbar-color: var(--scrollbar-fg-color) var(--scrollbar-bg-color);
}


/* text related */
@font-face {
  font-family: "Special Gothic Expanded One";
  src: url("/fonts/SpecialGothicExpandedOne-Regular.ttf");
}

@font-face {
  font-family: "Special Gothic";
  src: url("/fonts/SpecialGothic-VariableFont_wdth\,wght.ttf");
}

h1, h2, h3, h4, h5, h6 {
    /* font-family: 'Collectivist-Beta', Calibri, sans-serif; */

    --accent-color: #E2CD5B;
    --accent-color: #95403D;
    font-family: Poppins, 'Special Gothic Expanded One', Calibri, San-serif;
    text-transform: capitalize;
     color: var(--heading-color);
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: 4em;
    font-size: clamp(2.375em, calc(-5.333px + 14.444vw), 4em);
}

h2 {
    /* font-family: poppins, 'Special Gothic Expanded One', Calibri, San-serif; */
    font-size: 3em;
    line-height: 1;
}

h3 {
    font-size: 2.25em;
}

h4 {
    font-size: 1.75em;
}

h5 {
    font-size: 1.5em;
    font-weight: 600;
}

h6 {
    font-size: 1.25em;
    font-weight: 700;
}

.nav-card h2 {
    font-size: 1.5em;
}

.nav-card h3 {
    font-size: 1.25em;
}

:is(h1, h2, h3, h4, h5, h6) {
    .social {
        background: var(--heading-icon-color);
        color: var(--neutral-light);
        /* padding-inline: calc( 76.8 / 64.0 * 0.08325em); */
        font-size: 0.6em;
        display: block;
        padding: 0.1em;
        padding-inline: 0.1em 0.15em;
        line-height: 0;
    }
    a {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    }
}

p, a, li, label, blockquote, cite, dt, dd, caption, th, td {
    font-family: Poppins, Calibri, 'Trebuchet MS', sans-serif;
    /* font-family: Libron, Calibri, 'Trebuchet MS', sans-serif; */
    color: var(--text-color);
    font-size: 1rem;
}

code {
    font-family: monospace;
    color: var(--neutral-middle);
}

blockquote {
    max-width: 40ch;
    text-wrap: balance;
    text-align: center;
    font-style: italic;
    background: var(--blockquote-bg-color);
    padding: 1em 0.5em;
}

a {
    text-decoration: none;
    color: var(--link-color);
}

p a {
    text-decoration: underline;
}

strong {
    color: var(--strong-color);
}

:is(ul, ol) > li {
    margin: 0 0 0 1em;
    li {
        margin: 0 0 0 2em;
    }
}

li[aria-current="page"] > a {
    font-weight: 500;
    color: var(--current-page-color);
}

.breadcrumbs li[aria-current="page"] > a {
    color: var(--breadcrumbs-current-page-color);
}

/* images */
picture {
    display:block;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25em;
    display: block;
}

/* General classes */

.visually-hidden, a span.visually-hidden {
    height: 1px;
    width: 1px;
    position: absolute;
    overflow: hidden;
    top: -10px;
}
/* Stolen from figma and 11ty rocks */
.super-visually-hidden {
    left: -999px;
    position: absolute;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
    display: block;

    &:focus {
        color: var(--skip-text-color);
        background: var(--skip-bg-color);
        left: auto;
        height: auto;
        width: auto;
        padding: 1rem 2rem;
        outline: var(--skip-outline-color) dashed 2px;
        outline-offset: -2px;
        line-height: 1.125;
        z-index: 999;
    }
}


/* style for alerts/notices */
.notices {
    width: 100%;
}

.warning, .error, .success {
    padding: 0.5em 0;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: var(--warning-text-color);
}

.warning {
    background: var(--warning-color);
}

.error {
    background: var(--error-color);
}

.success {
    background: var(--success-color);
}

.card.event .notices {
    margin: 0;
    padding: 0;
    p { margin: 0;}
}

/* Utility classes */
.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.gap-1 {
    gap: 1em;
}

.hide {
    display: none;
}

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

/* maybe remove */
.relative {
    position: relative;
}
/* component */
/* breadcrumb component */


.breadcrumbs {
    align-self: flex-start;
}

:is(.breadcrumbs, nav) :is(ul, ol) {
        display: flex;
        position: relative;
        list-style: inside none none;
        li {
            margin: 0em;
        }
}

.breadcrumbs ul {
    gap: 0.375em;
    flex-wrap: wrap;

    li {
        position: relative;
        &:has(+ li) a:hover {
            text-decoration: underline;
        }

        /* for the slants */
        + li::before {
            height: 0.8em;
            margin: 0 0.25em;
            border-right: 0.1em solid currentcolor;
            transform: rotate(15deg);
            display: inline-block;
            content: "";
        }
    }
}


.breadcrumbs [aria-current="page"] {
    /* Refactor Color */
    color: var(--current-page-color);
    font-weight: 600;
    text-decoration: none;
}

body { min-height: 100dvh; background: var(--bg-color) }

header {
    background: var(--header-bg-color);
    justify-content: space-between;
    align-items: stretch;
    padding-bottom: 3em;


    .logo-title-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1em;
    }

    .logo {
        min-height: 4.5em;
        margin-top: 2em;
        flex-shrink: 0;
        text-decoration: none;
        background-color: var(--logo-bg-color);
        mask-image: url("/img/logo_cutout.svg");
        mask-size: contain;
        width: 96px;
        aspect-ratio: 1;
    }

    .site-title {

        font-family: Zondag Driver, 'Special Gothic Expanded One';
        font-size: 5.5rem;
        line-height: 0.9;
        color: var(--title-color);
        text-align: center;
        text-wrap: balance;
            /* font-size: 5.5rem; */
    }

    .site-title span {
        color: var(--title-color-accent);
    }
}

.primary-nav {
    &.bottom-nav {
        position: sticky;
        bottom: 20px;
        ul {
            display: flex;
            flex-wrap: wrap;
        }
        li { box-shadow: var(--nav-shadow); }
        [aria-current] a {
            color: var(--bottom-nav-current-fg-color)
        }
        a {
            display: block;
            padding: 1em 0.75em;
            background: var(--bottom-nav-bg-color);
            color: var(--bottom-nav-fg-color);
            &:hover {
                color: var(--bottom-nav-hover-color);
            }
        }
    }

    &.top-nav {
        display: none;
        visibility: hidden;
        li {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
    }
}

.primary-nav-list {
    background-color: var(--nav-bg-color);
    height: 100%;
    flex-wrap: wrap;
    justify-content: center;

    a {
        padding: 0.5em 0.75em;
        background: var(--nav-bg-color);
        color: var(--nav-text-color);
        font-weight: 500;
        font-size: 0.875em;

        display: block;

        text-transform: uppercase;

        &:hover {
            background: var(--nav-hover-bg-color);
            color: var(--nav-hover-text-color);
        }
    }
}

main {
    background: var(--main-bg-color);
    /* 100dvw does not work with permanent scroll gutters (especially on windows) */
    /* See https://www.smashingmagazine.com/2023/12/new-css-viewport-units-not-solve-classic-scrollbar-problem/#issue-3-using-100vw-to-make-an-element-full-width */
    /* Thanks to mmkthecoolest for providing feedback and helping with this */
    /* mmkthecoolest.gitlab.io */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content {
    display: flex;
    flex-direction: column-reverse;
    gap: 2em;
    padding-bottom: 2em;
}

.layout {
    align-self: stretch;
    margin: 1em 0 3.5em;
    h1 {
        line-height: 1.1;
        margin-left: -0.03em;
    }
}

.width-padding {
    margin: 0 1em;
}

/* buttons for footer */
.button88x31-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5em;
}

.img88x31 {
    border-radius: 0;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

::selection {
	background:var(--secondary-color-60);
	color:var(--neutral-light);
}

footer {
    background: linear-gradient(var(--footer-bg-color) 33%, var(--accent-color));
    padding: 1em 1em 7em    ;
    justify-content: center;
    align-items: center;
    z-index: 2;
    flex-grow: 1;
    .links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5em 1em;
        justify-content: center;
    }
    p {
        color: var(--footer-text-color);
    }
    p > a {
        font-weight: unset;
        text-decoration: underline;
        color: var(--footer-text-link-color);
    }

    a {
        font-weight: 500;
        color: var(--footer-link-color);

        &:hover {
            color: var(--footer-text-hover-color);
            text-decoration: underline  ;
        }

    }
    ul, ol {
        list-style: none none inside;
        li {
            text-transform: capitalize;
            margin: 0;
        }
    }
}


/* home page stuff */

.heading-with-rss {
    display: flex;
    align-items: center;
    gap: 0.25em;
}

h3.heading-with-rss {
    font-size: 2em;
    align-self: center;
}

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 1em;
    h2 {
        font-size: 2.25em;
        align-self: center;
    }
}



#community-groups {
    > .links-container {
        padding: 0 1em 1em;
        flex-wrap: wrap;
    }
}

.main-container {
    margin: 1em 0;
}

.main-container.list-container {
    margin: 0;
    flex-direction: row;
    gap: 2em;
    flex-grow: 1;
    /* align-items: start; */
}

.list-container > .big-image {
    max-width: 40%;
    object-fit: cover;
    flex-shrink: 1;
    min-width: 0px;
    border-radius: 0;
}

.list-content {
    gap: 1em;
    padding: 1em 1em;
    flex-grow: 1;
    /* flex-basis: 10ch; */
    min-width: 300px;
}

main:has(.list-container) {
    align-items: stretch;
    /* justify-content: start; */
    padding: 0;
}

.article-container {
        gap: 1.5em;
        flex-wrap: wrap;
}

#blog .article-container {
    font-size: 1.2em;
}
.heading-with-rss {

    padding-inline: 1rem;
}
#blog h2 {
    text-transform: uppercase;
    text-align: center;
    font-size: 1.8em;
    margin-block-end: 0.25em;
}
#community h2, #blog h2 {
    font-size: 1.75em;
}
#blog h3, #community h3 {
    font-size: 1.5em;
}

.blog-author a {
    font-weight: 600;
}

.card {
    background-color: var(--card-bg-color);
    border: solid var(--card-border-color) 0.125;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: clip;
    /* font-size: 0.5rem; */
    /* Refactor color */


    .card-content {
        display: flex;
        flex-direction: column;
        gap: 0.5em;
        flex-grow: 1;
        padding: 1em 1em 0.5em;
        margin-block-end: 1em;
        > .card-text:first-child {
            flex-grow: 1;
        }
    }

    .card-author {
        flex-grow: 1;
        right: 0;
        top: 0;
    }
}

.card-widget {
    justify-content: space-between;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.125em 1em;
    p.date {
        font-size: 0.75rem;
        font-style: italic;
        color: var(--widget-text);
    }
    align-items: end;
}

a:has(.card-cover, .cover) {
    overflow: clip;
}

.card-cover, .cover {
    transition: transform 300ms cubic-bezier(.46,.03,.52,.96);
    &:hover {
        transform: scale(1.05);
    }
}

.card-cover {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: 75% 0%;
    background: var(--cover-default-bg-color);
    border-radius: unset;
    width:100dvw;

    &:hover {
        transform: scale(1.05);
    }
}

.card.event {
    gap: 0.5em;
    padding: 1em 0;
    /* box-shadow: none; */
    align-items: center;
    display: flex;
  flex-direction: column;
}

.card.event.horizontal {
    flex-wrap: wrap;
    box-shadow: none;
    display: flex;
    justify-content: center;
    img {
        border-radius: 0;
    }
}

.blog-card h2 {
    font-size: 2em;
    overflow-wrap: anywhere;
}


.links-container {
    display: flex;
    flex-wrap: wrap;
    /* refactor color */
    --link-color: var(--action-link-color);
}

.link {
        font-weight: 700;
        text-transform: capitalize;
        color: var(--link-color);
        padding: 0.25em 0.75em;
        border: var(--link-color) solid 0.125em;
        border-radius: 0.25em;
}

.section-container {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#community {
    grid-column: 2;
}

#blog {
    > a {
        width: fit-content;
        margin: 0 0 0 1em;
    }

    article:first-child {
        .card-widget {
            background: var(--card-footer-bg-color);
            .date {
                color: var(--widget-first-text);

            }

        }
    }
}

#action {
    align-items: center;
}

.socials {
    justify-content: center;
    flex-wrap: wrap;
    align-self: center;
    gap: 1em;
    .ph,.ph-bold {
        color: var(--social-fg-color);
        font-size: 2em;

    }
    > li {
        margin: 0;
        list-style: none inside;
    }
    a:not(.kofi-lnk) {
        text-decoration: none;
        border-radius: 50%;
        line-height: 0;
        display: block;
        background-color: var(--social-bg-color);
        padding: 0.5em;
        border-radius: 50%;
        &:hover {
            text-decoration: none;
        }
    }
}

.social img {
    height: 32px;
}
.social:hover {

    background: var(--social-hover-bg-color);
}
.social:hover ::before {
    color: var(--social-hover-fg-color);
}

.share-link {
    color: var(--share-text-color);
    text-align: center;
}

.outlink {
    /* background-color: #a1d24b; */
    --link-color: var(--outlink-color);
    color: var(--link-color);
    &:visited {
        color: var(--link-color);
    }
    &:hover {
        --link-color: var(--secondary-color);
    }
    padding: 0.25em 0.5em;
    border-radius: 0.25em;
    font-weight: 800;
    border: var(--link-color) solid 0.125em;
    /* text-shadow: #313131 0 0 0.125em; */
}

.links {
    flex-wrap: wrap;
}

.kofi-lnk img {
    width: 200px;
}

.human-lnk img:hover {
    filter: brightness(8);
}
.human-lnk img {
    height: 96px;
    filter: brightness(7);
}

.linktree-lnk img {
    padding: 0 2.9px;
}

.tag-container {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    margin: 1em 0 0.5em;
    font-size: 0.875rem;

}
.tag {
    border-radius: 0.375em;
    padding: 0em 0.4em 0.125em;
    border: var(--tag-border-color) solid 0.125em;
    background: var(--tag-bg-color);
    color: var(--tag-text-color);
    font-size: inherit;
    line-height: 1.5;
}

.card-gallery-system {
    display: flex;
    flex-direction: column;
    gap: 2em;
    /* border-radius: 1em; */
    /* margin: 1em 0em 1em; */
    justify-content: start;
    align-items: flex-start;
    justify-self: start;

        align-self: stretch;
    height: fit-content;
    max-width: 1200px;

    &:has( .gallery-grid) {
        max-width: unset;
        align-self: stretch;
        /* short blog posts look bad */
        /* align-items: center; */
    }
}

hr {
    color: var(--hr-color);
}

.nav-card {
    background: var(--card-bg-color);
    flex-shrink: 0;
    /* padding: 1em; */
    box-shadow: var(--card-shadow);
    padding: 1em 1em 1.5em;
}

.gallery-navigation   {
    align-self: stretch;
    min-width: fit-content;
    /* margin: 0 1em; */
    ol, ul {
        margin: 0 0 0 1em;

        list-style:circle outside;
        display: block;
    }

    li {
        line-height: 1.7em;
    }
    h3 {
        margin-top: 0.5em;
    }
}
.gallery {
    flex-grow: 1;
    width: fit-content;
    blockquote p {
        margin: unset;
    }
    h2, h3 {
        margin: 0.25em 0;
    }
    p {
        margin: 1em 0;
    }
    gap: 1em;
    /* h2, h3 {
        line-height: 1.2;
    }
    p {
        line-height: 1.6;
    }
    article {
        margin-bottom: 1em;
    } */
}

.gallery h1 {
    /* margin: 0 1rem; */
    font-size: clamp(64px, calc(56px + 2.667vw), 72px);
}

.gallery-base {
    flex-direction: column;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.gallery .article-content {
    > * {
        margin-bottom: 0.5em;
    }
    padding: 0em;
     ol, ul {
        margin: 0 0 1em 1em;

        list-style-position: inside;
    }
}

aside {
    width: 20ch;
    float: right;
}

li a {
    text-transform: capitalize;
}

.sitemap-list {
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fill, minmax(30ch, 1fr)); */
    columns: auto 13em;
    li > ul {
        break-inside: avoid;
    }
    li {
        break-inside: avoid;
    }
    column-rule: var(--column-color) solid 2px;

}

.post-details {
    /* columns: 2 60ch; */
    /* column-gap: 3em; */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1em 3em;
    width: fit-content;

    /* max-width: 70ch; */
    text-align: justify;
    p:has(+ p) {
        break-inside: avoid;
    }

    p, li {

        line-height: 1.5;
    }
    p {
        break-inside: avoid;
    }

    > div {
        break-inside: avoid;
        /* margin-top: 1em; */
    }

    h2 {
        line-height: 1.3;
        break-before: column;
    }
}
.post-details > div > * {
    max-width: 60ch;
    margin-top: 0.5em;


}
.card.event.horizontal .cover {
    min-width: 13em;
    background: black;
    height: 100%;
    object-fit: contain;
}

.poster-content {
    flex-basis: 10em;
    flex-grow: 1;
    align-self: start;
    padding: 1em;
    h3 {
        font-size: clamp(1.375em, calc(-2.475em + 7vw), 2.250em);
    }
    p {
        margin: 0.5em 0;
    }
}

.gallery-grid {
    padding: 0 0.5em;
}

.card.event.horizontal {
    max-width: 100ch;
}

.single-col {
    max-width: 80ch;
    padding: 0 2ch;
}

.ph-bold, .ph {
    vertical-align: center;
}

.post {
    p, li, a, code, strong {
        max-width: 50ch;
        margin: 1em 0;
    }

    li {
        margin-left: 2em;
    }
    :first-child {
        margin-block-start: 0;
    }
    h1 {
        margin: 0.75em 0;
    }
    h2, h3, h4, h5, h6 {
        margin-block: 0.5em;
    }
}

.recipe {
    h1 {
        margin-block-end: unset;
        text-wrap: balance;
        font-size: 3em;
    }
    h2 {
        margin-block-end: 0.25em;
        font-size: 2.5em;

    }
    li {
        margin-block: unset;
    }
    p, li, blockquote, i, strong, a {
        max-width: 50ch;
        line-height: 1.6;
    }
    .recipe-details {
        margin-top: 1em;
    }
}

@media only screen and (min-width: 680px), only print and (min-width: 680px) {
    h1 {
        font-size: clamp(2.375em, calc(-2.648em + 11.818vw), 4.000em);
    }
    .width-padding {
        margin-inline: unset;
    }
    .card-cover {
            width: 100%;
    }

    .nav-card {

        border-radius: 0.375em;
    }

    .primary-nav.bottom-nav {
        visibility:hidden;
        display: none;
    }

    .primary-nav.top-nav {
        visibility: unset;
        display: unset;
    }

    .layout {
        margin: 1em 1em 3.75em;
    }



    header {
        padding-bottom: 1em;
        .site-title {
            text-align: center;
        }
        > div.gap-1 {
        gap: 0;
        /* margin-bottom: -5em; */
        }
        .logo {
        margin-top: 1em;
        }
    }

    .hero-panel {
        background: var(--hero-bg-color);
        width: 100%;
        height: 100dvh;
        padding: 3em;
        h1 {
            color: var(--neutral-light);
        }
        a {
            padding: 1em;
            background: var(--secondary-color);
            border-radius: 0.25em;
            color: var(--neutral-light);
            font-weight: 600;
            color: var(--accent-color-30);
            display: block;
        }
    }

    #blog h2 {

        font-size:2em;
    }

    .heading-with-rss {
        padding-inline: unset;
    }

    .card {
        border-radius: 0.75em;
    }

    .card.event {
        display: flex;
        flex-direction: column;
        padding: 0.75em 0.75em;
        border-radius: 1em;
        min-width: 28ch;
    }

    .card.event .card-content {
        display: flex;
        padding: unset;
    }

    .main-panel {
        margin-inline: 1em;
    }

    .side-panel {
        flex-basis: min(40%, 30ch);
        /* margin: 03em; */
        max-width: 60ch;
        align-self: center;
    }

    .card-container {
        /* padding: 0.75em 0.75em 2em 0.75em; */
        border-radius: 0.75em;
    }

    .card-widget {
        flex-direction: row;
    }

    #action {
        justify-content: end;
        flex-direction: row;
        flex-wrap: wrap;
    }

    #blog .article-container {
        display: grid;
        grid-template-columns: 3fr 2fr;
        grid-template-rows: auto auto auto;
        text-wrap: balance;

        article:first-child {
            grid-row: 1 / -1;
            grid-column: 1 / 2;
        }
    }

    .year-list {
        column-count: auto;
        column-width: 20ch;
        columns: 25ch auto;
        display: block;
    }

    .gallery, .gallery-navigation {
        margin: unset;
    }

    .card-gallery-system {
        .gallery-navigation {

            .nav-sticky {
                position: sticky;
                top: 1em;
            }
        }
        flex-direction: row;
    }


    .gallery-grid {
        padding: unset;
        /* display: grid;
        grid-template-columns: repeat(auto-fill, minmax(31.5ch, 1fr));
        grid-template-rows: auto;
        align-items: start; */
    }

    .card.event.horizontal .poster {
            max-height: auto;
            width: auto;
            object-fit: contain;
            /* border-radius: unset; */
    }

    .poster-content {
        flex-grow: 1;
    }

    .card.event.horizontal {
        flex-direction: row;
        overflow: clip;
        /* width: 78ch; */

        align-items: stretch;
        padding: unset;
        box-shadow: var(--card-shadow);
        gap: 0 1em;
    }
    .section-container {
        flex-direction: row;
    }

    .card.event.horizontal .cover {
        width: clamp(20vw + 0.5em, 1em,100%);
    }
}

.map {
    max-width: 300px;
    width: 100%;
    min-width: 270px;
}

.poster-image {
    width: 100%;
    max-width: 24em;
    height: auto;
}

@media only screen and (min-width: 768px), print and (min-width: 768px) {
    header {
        &.flex-col {
            flex-direction: row;
        }
        div.flex-col {
            flex-direction: row;
        }
        div.gap-1 {
            gap: 1em;
        }

        .logo {
            margin: 0.5em 0 0.5em 1em;
        }
        .logo-title-container {
            flex-direction: row;
        }
        .site-title {

            text-align: left;
        }
    }

    .top-nav {
        padding-right: 1.75em;
    }
    .primary-nav-list {
        justify-content: right;
    }

    nav > ul {
        padding: unset;
    }

    .content {
        max-width: 1200px;
        gap: 2em;
        justify-content: center;
        margin-bottom: 2em;
    }

    #blog .article-container {
        gap: 0.75em 1em;
    }

    :has(.logo:hover) > .site-title {
        display: flex;

        .highlight:nth-child(1) {
            order: 4;
        }
        :nth-child(2) {
            order: 5;
        }
    }
    :has(.logo:hover) > .site-title span {
            transition: order 5s;
        &.highlight:nth-child(1) {
            color: var(--secondary-color);
        }
        &.highlight:nth-child(3) {
            color: var(--secondary-color);

            /* color: #fffb13; */
        }
        &.highlight:nth-child(5) {
            color: var(--secondary-color);
        }
        &.highlight:nth-child(7) {
            color: var(--secondary-color);
        }
    }

    header .site-title {
        font-size: clamp(2.9375rem, calc(-6.3807rem + 12.4242vw), 5.5rem);

    }
    .card.event.horizontal .cover {
        width: clamp(20vw + 0.5em, 1em,100%);
    }

    .primary-nav > ul {
    padding: 0;
    }

}

@media only screen and (min-width: 1200px), only print and (min-width: 1200px) {
    .main-panel {

        margin-inline: 0;
    }
    .content {
        flex-direction: row;
        padding: 1em;
    }
    section {
        padding: unset;
    }
    .side-panel {

        align-self: unset;
    }

    .section-container {
        flex-direction: column;
    }

    .poster-link {
        max-width: 32ch;
    }

}

@media only print {
    .card {
        box-shadow: unset;
        border: rgb(121, 121, 121) solid 0.25em;
    }
    .button88x31-container {
        break-inside: avoid-page;
    }
    .human-lnk {
        filter: brightness(0);
    }

    header .site-title {
        font-size: 3em;
        padding: 0;
    }

    header.flex-col {
        flex-direction: row;
        padding: 0;
        /* border: black solid 1em; */
    }

    header .logo {
        margin: 0;
        /* border: black solid 1em; */
        display: none;
    }

    header .logo-title-container {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .socials {
        flex-direction: column;
        gap: 0.5em;
    }
    .socials .social :is(.ph, .ph-bold) {
        font-size: 1.5em;
    }



    .side-panel {
        break-inside: avoid-page;
    }


    .poster-link {
        break-inside: avoid-page;
    }

    .gallery-navigation {
        display: none;
    }

    .recipe-details {
        h2 {
            break-before: page;
        }
    }

    nav.primary-nav.top-nav {
        display: none;
    }

    footer {
        .socials {
            flex-direction: row;
        }
    }
}

@media print and (orientation: landscape) {
    header .logo {
        width: 48px;
        min-height: unset;
    }

    .socials {
        flex-direction: row;
    }

    .side-panel {
        break-inside: unset;
    }
    .content {
        flex-direction: row;
    }
    .side-panel {
        align-self: flex-start;
    }

    .side-panel .section-container {
        flex-direction: column;
    }
}
