:root {
    --color-primary: #a5ef45;
    --color-black: #000;
    --color-white: #fff;
    --color-grey: #e4e5e6;
    --content-width: 65ch;
}

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

html {
    font-size: 16px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    margin: 0;
    padding: 1.5rem 1.5rem 2rem;
    color: #333;
}

body.podcast {
    background: #000;
    color: #fff;
}

img,
video {
    max-width: 100%;
    height: auto;
}
audio {
    margin: 0 0 1.5rem;
    width: 100%;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 2rem 0;
}
body.podcast hr {
    border-top: 1px solid #444;
}

/**
 * Layout
 */
.site-wrapper {
    max-width: var(--content-width);
    margin: 0 auto;
}

/**
 * Header
 */
.site-header {
    position: relative;
    margin: 2rem 0;
    text-align: center;
    padding-bottom: 0.5rem;
}
.site-header img {
    width: 100%;
    max-width: 40%;
}
@media (max-width: 768px) {
    .site-header {
        margin-top: 0;
    }
    .site-header img {
        max-width: 70%;
        margin-top: 2rem;
    }
}
.site-header--home figure {
    display: none;
}
.site-header--home figure {
    position: relative;
    animation: glitch-container 3s infinite;
}
.site-header--home img {
    max-width: 30%;
}
.site-header--home img:first-of-type {
    animation: glitch-first-image 3s infinite;
}
.site-header--home img:last-of-type {
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glitch-second-image 3s infinite;
}

.site-header--podcast {
    padding-bottom: clamp(8rem, 25vw, 12rem);
}
.site-header--podcast img:last-of-type {
    z-index: 1;
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, 0);
    max-width: 70%;
}
@media (max-width: 768px) {
    .site-header--podcast img:first-of-type {
        max-width: 50%;
    }
    .site-header--podcast {
        margin-bottom: -2rem;
    }
}

/**
 * Glitch Animation
 */
@keyframes glitch-first-image {
    0%, 85.7% {
        opacity: 1;
        /* transform: translate(0, 0); */
        filter: none;
    }
    85.8%, 100% {
        opacity: 0;
        /* transform: translate(-2px, 0); */
        filter: hue-rotate(90deg) contrast(1.5);
    }
}

@keyframes glitch-second-image {
    0%, 85.7% {
        opacity: 0;
        /* transform: translate(0, 0); */
        filter: none;
    }
    85.8%, 100% {
        opacity: 1;
        /* transform: translate(2px, 0); */
        filter: invert(0.1) hue-rotate(180deg) contrast(1.2);
    }
}

@keyframes glitch-container {
    0%, 85.7% {
        filter: none;
    }
    85.8%, 89% {
        filter: brightness(1.2) contrast(1.3);
    }
    89.1%, 92% {
        filter: brightness(0.8) contrast(1.1);
    }
    92.1%, 100% {
        filter: brightness(1.1) contrast(1.2);
    }
}

/**
 * Content
 */
.site-content {
    margin: 2rem 0;
}
.site-content img {
    width: 100%;
}
.site-content .inline-image {
    float: left;
    margin: 0.5rem 1.75rem 1rem -25%;
    display: block;
    width: 60%;

    /* float: right;
    margin: 0.5rem -25% 1rem 1rem; */
}
@media (max-width: 768px) {
    .site-content .inline-image {
        float: none;
        margin: 0 auto;
        width: 100%;
    }
}

/**
 * Profile Image
 */
.profile-image {
    position: relative;
    margin: -1.5rem auto 5rem;
    min-height: 450px;
    padding-bottom: 50vmin;
}
@media (max-width: 768px) {
    .profile-image {
        margin: -1rem 0 3.5rem;
        min-height: none;
        padding-bottom: 100%;
    }
}
.profile-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/**
 * Podcast
 */
.podcast-section {
    margin: 2rem 0;
}
.podcast-section h2 span {
    opacity: 0.75;
}

/**
 * Webshop
 */
.webshop-cta {
    position: relative;
    overflow: hidden;
    margin: 3rem 0;
    background: var(--color-grey);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    color: #000;
}
.webshop-cta__inner {
    margin: 0 auto;
    text-align: center;
}
.webshop-cta__inner h2 {
    z-index: 2;
    position: absolute;
    left: 50%;
    top: 1rem;
    transform: translateX(-50%);
    font-size: 1.75rem;
}
.webshop-cta ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .webshop-cta ul {
        display: block;
    }
}
.webshop-cta li {
    padding: 2.5rem 1.5rem 3.5rem;
    flex: 1 1 50%;
    max-width: var(--content-width);
}
.webshop-cta[data-multiple="false"] li {
    max-width: calc(var(--content-width) * 1.5);
}
.webshop-cta li:nth-of-type(2) {
    background: #d7d6d7;
}
.webshop-cta li:nth-of-type(2)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    display: block;
    width: 50%;
    height: 100%;
    background: #d7d6d7;
}
@media (max-width: 768px) {
    .webshop-cta li:nth-of-type(2) {
        padding-top: 2rem;
    }
    .webshop-cta li:nth-of-type(2)::after {
        display: none;
    }
}
.webshop-cta h3 {
    z-index: 3;
    position: relative;
    margin: 0;
    font-size: 1.5rem;
}
.webshop-cta h3 span {
    opacity: 0.65;
}
.webshop-cta p {
    z-index: 3;
    position: relative;
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.65;
}
.webshop-cta img {
    position: relative;
    z-index: 2;
    margin: 0 0 1rem;
    display: block;
    width: 100%;
}
.webshop-cta li:nth-of-type(2) img {
    margin: 0 auto 0.75rem;
    width: auto;
    max-height: 275px;
}
@media (max-width: 400px) {
    .webshop-cta li:nth-of-type(1) img {
        margin: 0 -12.5% 0 -22.5%;
        width: 135%;
        max-width: none;
    }
}
.webshop-cta a {
    position: relative;
    z-index: 2;
}
.webshop-cta li:nth-of-type(2) .button {
    background: var(--color-white);
    color: var(--color-black);
}

/**
 * About
 */
.about-text {
    margin: 5rem auto 5rem;
    color: #444;
}
@media (min-width: 768px) {
    .about-text {
        text-align: center;
    }
}

/**
 * Footer
 */
.site-footer {
    margin: 2rem 0 0;
    text-align: center;
    font-size: 0.7rem;
    opacity: 0.5;
}
@media (max-width: 768px) {
    .site-footer {
        font-size: 0.65rem;
    }
}
.site-footer a {
    color: inherit;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}

 /**
 * Button
 */
.button {
    display: inline-block;
    padding: 0.9rem 1.5rem;
    border-radius: 1rem;
    background-color: var(--color-primary);
    color: var(--color-black);
    text-decoration: none;
    font-weight: 600;
}
.button > span {
    display: inline-block;
    transform: translateY(1px);
    transition: all 0.15s ease;
}
.button:hover > span {
    transform: translate(0.25rem, 1px);
}

.error {
    margin: 2rem auto;
    display: inline-block;
    padding: 1rem 1.25rem;
    color: red;
    background: #ffebee;
    border-radius: 1rem;
    text-align: center;
}

/**
 * Helpers
 */
.visually-hidden,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}
