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

html {
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
    background-color: rgb(var(--body-background));
    overflow-x: hidden;
}

body {
    margin: 0 auto;
    padding: 0;
    color: rgb(var(--body-text));
    color-scheme: dark;
    font-family: var(--font-face);
    font-size: var(--font-display);
    line-height: 1.6;
    background-color: rgb(var(--body-background));
    background-image:
        linear-gradient(
            rgb(var(--body-background) / var(--background-image-shade-opacity)),
            rgb(var(--body-background) / var(--background-image-shade-opacity))
        ),
        url('../images/background.jpg');
    background-repeat: repeat, repeat;
    overflow-x: hidden;
}

a,
a:visited {
    color: rgb(var(--white));
}

a:hover,
a:focus-visible {
    color: rgb(var(--yellow));
}

:where(button, input, textarea, select) {
    color: rgb(var(--white));
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button__link {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 2rem;
    overflow: hidden;
    color: rgb(var(--white));
    font: inherit;
    font-weight: var(--font-bold);
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 2px rgb(0 32 96 / 0.85);
    cursor: pointer;
    border: 0.35rem solid rgb(0 38 132);
    border-radius: var(--radius-pill);
    background:
        radial-gradient(80% 45% at 50% 78%, rgb(210 252 255 / 0.8), rgb(210 252 255 / 0.05) 72%, transparent 73%),
        linear-gradient(180deg, rgb(178 220 246) 0%, rgb(102 164 224) 48%, rgb(178 239 250) 100%);
    box-shadow:
        inset 0 0.2rem 0.35rem rgb(255 255 255 / 0.55),
        inset 0 -0.45rem 0.55rem rgb(0 44 112 / 0.28),
        0 0.45rem 0 rgb(0 0 0 / 0.32),
        0 0.8rem 1.1rem rgb(0 0 0 / 0.5);
    transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.button::before,
button::before,
input[type="button"]::before,
input[type="reset"]::before,
input[type="submit"]::before,
.wp-block-button__link::before {
    position: absolute;
    inset: 0.45rem 1.25rem auto;
    height: 36%;
    pointer-events: none;
    content: "";
    border-radius: inherit;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.78), rgb(255 255 255 / 0.14));
}

.button:hover,
.button:focus-visible,
button:hover,
button:focus-visible,
input[type="button"]:hover,
input[type="button"]:focus-visible,
input[type="reset"]:hover,
input[type="reset"]:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
    color: rgb(var(--white));
    filter: brightness(1.08) saturate(1.08);
    transform: translateY(-1px);
}

.button:active,
button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active,
.wp-block-button__link:active {
    transform: translateY(0.2rem);
    box-shadow:
        inset 0 0.18rem 0.32rem rgb(255 255 255 / 0.45),
        inset 0 -0.32rem 0.45rem rgb(0 44 112 / 0.32),
        0 0.2rem 0 rgb(0 0 0 / 0.35),
        0 0.45rem 0.75rem rgb(0 0 0 / 0.45);
}

.button-sm {
    min-height: 2.6rem;
    padding: 0.55rem 1.3rem;
    border-width: 0.28rem;
}

.icon-button {
    width: 3.25rem;
    min-width: 3.25rem;
    padding-inline: 0.35rem;
}

:where(.has-black-color, .text-black),
[style*="color: #000"],
[style*="color:#000"],
[style*="color: black"],
[style*="color:black"] {
    color: rgb(var(--white)) !important;
}

:where(.has-blue-color, .has-cyan-blue-color, .has-vivid-cyan-blue-color) {
    color: rgb(var(--white)) !important;
}

/* yo mama so fat she need a fluid container */
.container {
    width: auto;
    max-width: none;
    padding-inline: var(--container-gutter-x);
}

.site-main {
    width: 100%;
}

.row {
    display: grid;
    gap: var(--row-gap);
    padding-block: var(--section-gap);
}

/* grid */
.grid {
    display: grid;
    gap: var(--grid-gap);
    min-width: 0;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.grid-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.grid-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.grid-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.grid-11 { grid-template-columns: repeat(11, minmax(0, 1fr)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-10 { grid-column: span 10; }
.span-11 { grid-column: span 11; }
.span-12 { grid-column: span 12; }
.span-full { grid-column: 1 / -1; }

/* stacking */
.stack {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.stack-sm { gap: 0.5rem; }
.stack-md { gap: 1rem; }
.stack-lg { gap: 1.5rem; }
.stack-xl { gap: 2.25rem; }

.hero {
    max-height: 100dvh;
    height: 100dvh;
    padding: 1rem;
    border-bottom: 6px dashed yellow;
    background-image:
        linear-gradient(
            rgb(var(--body-background) / 0.42),
            rgb(var(--body-background) / 0.42)
        ),
        var(--featured-hero-image, none);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#posts {
    width: 100%;
    padding-block: clamp(1.5rem, 4vw, 4rem);
}

.section-heading {
    display: flex;
    width: 100%;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 4px dashed rgb(var(--border-color));
}

.ytmnd-wp-post-grid {
    width: 100%;
    align-items: stretch;
}

.post-list-item {
    grid-column: span 6;
    min-width: 0;
}

.card {
    min-width: 0;
    padding: 1rem;
    color: rgb(var(--white));
    background-color: rgb(var(--body-background) / 0.72);
    border: 3px dashed rgb(var(--border-color));
}

.ytmnd-wp-post-card {
    display: grid;
    gap: 1rem;
    height: 100%;
}

.media-card-image {
    display: block;
    width: 100%;
    overflow: hidden;
    background-color: rgb(var(--surface-background));
    border: 2px solid rgb(var(--border-color));
}

.media-image-wide {
    aspect-ratio: 16 / 9;
}

.media-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-card-content {
    display: grid;
    gap: 1rem;
}

.ytmnd-wp-entry-title {
    margin: 0;
    font-size: var(--font-display-lg);
    line-height: 1.1;
}

.ytmnd-wp-entry-title a {
    color: rgb(var(--white));
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

.ytmnd-wp-entry-summary,
.ytmnd-wp-entry-summary p {
    margin: 0;
}

.media-card-footer,
.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    min-height: 2rem;
    max-width: 100%;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    color: rgb(var(--white));
    background-color: rgb(var(--body-background) / 0.78);
    border: 2px dashed rgb(var(--border-color));
    overflow-wrap: anywhere;
}

.marquee {
    display: flex;
    width: min(100%, 32rem);
    overflow: hidden;
    white-space: nowrap;
}

.marquee span {
    display: inline-block;
    min-width: 100%;
    padding-left: 100%;
    animation: ytmnd-marquee 8s linear infinite;
}

.featured-excerpt {
    max-width: 42rem;
}

@keyframes ytmnd-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.gif-background-card {
    width: 100%;
    min-height: 10rem;
    aspect-ratio: 220 / 168;
    overflow: hidden;
    background-color: rgb(var(--surface-background));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.facebook-card {
    aspect-ratio: 347 / 360;
    background-image: url('../images/facebook-loop.gif');
}

.lolnet-card {
    background-image: url('../images/lolnet.gif');
}

/* flex and alignment */
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.place-center { place-items: center; }

/* color utilities */
.bg-primary,
.bg-secondary,
.bg-accent,
.bg-success,
.bg-warning,
.bg-error,
.bg-surface,
.bg-surface-alt {
    color: rgb(var(--white));
    background-color: rgb(var(--surface-background));
}
.text-muted,
.text-primary,
.text-accent,
.text-success,
.text-warning,
.text-error {
    color: rgb(var(--white));
}

/* typography utilities */
.font-sans { font-family: var(--font-sans); }
.font-serif { font-family: var(--font-serif); }
.font-mono { font-family: var(--font-mono); }
.text-display { font-family: var(--font-display-family); font-size: var(--font-display-xl); line-height: 1; font-weight: var(--font-bold); }
.text-heading { font-family: var(--font-display-family); font-size: var(--font-display-lg); line-height: 1.15; font-weight: var(--font-bold); }
.text-subheading { font-size: var(--font-display-md); line-height: 1.35; font-weight: var(--font-semi-bold); }
.text-body { font-size: var(--font-display); line-height: 1.6; font-weight: var(--font-regular); }
.text-caption { font-size: 0.8125rem; line-height: 1.4; }
.text-regular { font-weight: var(--font-regular); }
.text-medium { font-weight: var(--font-medium); }
.text-semibold { font-weight: var(--font-semi-bold); }
.text-bold { font-weight: var(--font-bold); }
.text-bolder { font-weight: 800; }

h1,
.display-title,
.navbar-brand-text {
    display: inline-block;
    max-width: 100%;
    color: rgb(212 118 118);
    font-family: Impact, "Arial Black", Haettenschweiler, sans-serif;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-transform: none;
    background-image:
        linear-gradient(
            180deg,
            rgb(255 255 255) 0%,
            rgb(230 239 248) 16%,
            rgb(155 174 194) 29%,
            rgb(255 255 255) 30%,
            rgb(238 242 247) 41%,
            rgb(231 158 158) 42%,
            rgb(194 92 92) 72%,
            rgb(112 42 42) 100%
        );
    -webkit-background-clip: text;
    background-clip: text;
    
}

h1,
.display-title {
    font-size: var(--font-display-xl);
}

.display-title {
    color: rgb(var(--white));
    background-image:
        linear-gradient(
            180deg,
            rgb(255 255 255) 0%,
            rgb(242 248 255) 24%,
            rgb(177 194 214) 42%,
            rgb(255 255 255) 43%,
            rgb(236 244 255) 72%,
            rgb(174 188 205) 100%
        );
    -webkit-text-stroke-color: rgb(18 18 18);
    text-shadow:
        2px 2px 0 rgb(25 25 25),
        4px 4px 0 rgb(12 12 12),
        6px 6px 0 rgb(0 0 0);
}

.navbar-brand-text {
    font-size: 2.25rem;
}

/* naaaaaaaaaaaaaaaaaaaaaaaaaaavvvvvvvvvaaaaagaaaaaaaation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding-block: 0.75rem;
    background-color: rgba(var(--body-background) / 0.9);
    border-bottom: var(--border-width) solid rgb(var(--border-color));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sidebar-page .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: var(--sidebar-width);
    padding: 0;
    overflow: auto;
    border: var(--sidebar-border-width) dashed rgb(var(--border-color));
}

.sidebar-page .sidebar-navbar {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.sidebar-page .sidebar-brand {
    display: block;
    min-height: 4rem;
    padding-inline: 0.25rem;
    padding-block: 0.25rem 1rem;
    text-decoration: none;
}

.sidebar-brand .icon-stars {
    display: none;
}

.sidebar-page .sidebar-links {
    display: flex;
    width: 100%;
    flex: 1 1 auto;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.35rem;
    overflow: visible;
}

.sidebar-page .sidebar-links a,
.sidebar-page .sidebar-links .navbar-dropdown-trigger {
    width: 100%;
    justify-content: flex-start;
}

.sidebar-page .navbar-dropdown,
.sidebar-page .navbar-dropdown-menu {
    width: 100%;
}

.sidebar-page .navbar-dropdown-menu {
    position: static;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    margin-top: 0.35rem;
    box-shadow: none;
}

.sidebar-page .sidebar-actions {
    display: none;
    width: 100%;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: var(--border-width) solid rgb(var(--border-color));
}

.sidebar-page .theme-toggle {
    display: none;
}

.sidebar-page .sidebar-gif {
    display: flex;
    width: 100%;
    justify-content: center;
}

.sidebar-page .sidebar-gif img {
    display: block;
    width: min(100%, 220px);
    height: auto;
}

.sidebar-page .button.navbar-menu-toggle {
    display: none;
}

.sidebar-page .navbar-menu-toggle img {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.sidebar-page .navbar-menu-toggle[aria-expanded="true"] img {
    transform: rotate(-8deg) scale(1.06);
}

.sidebar-page main,
.sidebar-page .site-footer {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
}

.site-footer {
    width: 100%;
    padding-block: 1rem;
    border-top: 4px dashed rgb(var(--border-color));
}

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

.footer-brand,
.footer-links,
.footer-note {
    min-width: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-note {
    margin: 0;
}


/* Viewport BREAKS */ 

@media (max-width: 900px) { /* tablet breakpoint */

    .grid-7,
    .grid-8,
    .grid-9,
    .grid-10,
    .grid-11,
    .grid-12 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .span-7,
    .span-8,
    .span-9,
    .span-10,
    .span-11,
    .span-12 {
        grid-column: 1 / -1;
    }

    [class^="start-"],
    [class*=" start-"] {
        grid-column-start: auto;
    }

    [class^="end-"],
    [class*=" end-"] {
        grid-column-end: auto;
    }

    .tablet-span-1 { grid-column: span 1; }
    .tablet-span-2 { grid-column: span 2; }
    .tablet-span-3 { grid-column: span 3; }
    .tablet-span-4 { grid-column: span 4; }
    .tablet-span-5 { grid-column: span 5; }
    .tablet-span-6,
    .tablet-full {
        grid-column: 1 / -1;
    }

    .post-list-item {
        grid-column: 1 / -1;
    }

    .ytmnd-wp-post-card {
        grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
        align-items: start;
    }

    .ytmnd-wp-post-card .media-card-image {
        grid-row: span 2;
    }

    .sidebar-page .site-header {
        position: sticky;
        inset: auto;
        width: 100%;
        overflow: visible;
        border: 0;
        border-bottom: var(--sidebar-border-width) dashed rgb(var(--border-color));
    }

    .sidebar-page .sidebar-navbar {
        display: grid;
        min-height: auto;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem var(--container-gutter-x);
    }

    .sidebar-page .sidebar-brand {
        grid-column: 1;
        min-height: auto;
        padding-block: 0.25rem;
    }

    .navbar-brand-text {
        font-size: 1.75rem;
    }

    .sidebar-page .sidebar-actions {
        display: flex;
        grid-column: 2;
        width: auto;
        justify-content: flex-end;
        padding-top: 0;
        border-top: 0;
    }

    .sidebar-page .button.navbar-menu-toggle {
        display: inline-flex;
        width: 3.25rem;
        height: 3.25rem;
        align-items: center;
        justify-content: center;
        padding: 0.25rem;
        border-radius: 50%;
    }

    .sidebar-page .sidebar-links {
        display: none;
        grid-column: 1 / -1;
        max-height: min(72dvh, 38rem);
        padding-top: 0.75rem;
        overflow: auto;
        border-top: var(--border-width) dotted rgb(var(--border-color));
    }

    .sidebar-page .navbar.is-open .sidebar-links {
        display: flex;
    }

    .sidebar-page .sidebar-gif {
        display: none;
    }

    .sidebar-page main,
    .sidebar-page .site-footer {
        width: 100%;
        margin-left: 0;
    }

    .kthxbye { display: none; }

    .hero {
        min-height: auto;
    }
}

@media (max-width: 720px) { /* phone or Microsoft Zune breakpoint */

    .container {
        padding-inline: var(--container-gutter-x);
    }

    #posts {
        padding-block: 1rem 2rem;
    }

    .section-heading,
    .media-card-footer,
    .footer-panel,
    .footer-links {
        align-items: stretch;
        flex-direction: column;
    }

    .button-row,
    .button,
    .button-sm,
    .wp-block-button__link {
        width: 100%;
    }

    .card {
        padding: 0.75rem;
    }

    .ytmnd-wp-post-card {
        grid-template-columns: 1fr;
    }

    .ytmnd-wp-post-card .media-card-image {
        grid-row: auto;
    }

    .ytmnd-wp-entry-title {
        font-size: var(--font-display-md);
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5,
    .grid-6,
    .grid-7,
    .grid-8,
    .grid-9,
    .grid-10,
    .grid-11,
    .grid-12 {
        grid-template-columns: 1fr;
    }

    [class^="span-"],
    [class*=" span-"],
    [class^="start-"],
    [class*=" start-"],
    [class^="end-"],
    [class*=" end-"] {
        grid-column: 1 / -1;
    }

    .kthxbye { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .motion-card,
    .hero-motion-card,
    .stacked-card,
    .scroll-blur-card,
    .scroll-blur-card img,
    .media-frame-animate-pan img,
    .media-frame-animate-float,
    .media-avatar-glow {
        animation: none;
        transition: none;
    }
