:root {
    --primary: #f6399a;
    --primary-dark: #0d73be;
    --primary-light: #fdd73d;
    --dark: #1c150d;
    --light: #fff6cc;
    --background: #fff5dc;
    --border-radius: 0.3rem;
    --border-color: #7aad28;
    --header-color: #fdd63d80;
    --border-width: 4px;
    --space-sm: 0.6rem;
    --space-md: 1.1rem;
    --space-lg: 2.1rem;
}

html {
    scrollbar-color: var(--primary-dark) var(--light);
    scrollbar-width: thin;
    box-sizing: border-box;
}

* {
    box-sizing: inherit;
}

*::selection {
    color: var(--border-color);
    background-color: var(--header-color);
}

body {
    background-color: var(--background);
    font-family: "Lexend";
    margin-bottom: 0;
}

p {
    color: var(--primary);
    font-size: 0.88rem;
    margin: 0 0 var(--space-sm) 0;
}

h1, h2, h3, h4 {
    font-family: "Lilita One";
    font-weight: 500;
    color: var(--primary);
    margin: 0.3rem 0 0.3rem 0;
    text-transform: uppercase;
}

h2 {
    font-size: 1.25rem;
}

hr {
    color: var(--primary);
    background-color: var(--primary);
    border-style: solid;
    width: 95%;
    height: 4px;
}

a {
    background-color: transparent;
    text-decoration: underline;
    font-weight: bold;
}

a:link {
    color: var(--primary);
}

a:visited {
    color: var(--primary);
}

a:hover {
    filter: brightness(1.2) hue-rotate(260deg);
}

a:active {
    filter: brightness(0.4) hue-rotate(260deg);
}

blockquote {
    border-left: 4px solid var(--primary);
    margin: var(--space-sm) 0;
    padding-left: var(--space-sm);
}

ul {
    color: var(--primary);
    font-size: 0.88rem;
    line-height: 1.35;
    padding-left: var(--space-md);
    margin-top: calc(var(--space-sm) / -1);
    list-style: square;
    & ul {
        margin-top: 0;
    }
}

img {
    border: var(--border-width) solid var(--primary);
    border-radius: var(--border-radius);
    object-fit: cover;
}

sup {
    line-height: 0;
}

.layout {
    display: grid;
    grid: "leftSide header header" 80px "leftSide body rightSide" minmax(48rem, auto) "leftSide footer footer" 50px / 275px 850px 350px;
    gap: 0;
    padding-top: 4rem;
    justify-content: center;
    padding-right: 65px;
}

.leftSide, .rightSide {
    padding: 0.2rem var(--space-sm);
}

.header {
    grid-area: header;
    align-content: center;
    text-align: left;
    background: repeating-linear-gradient( 45deg, var(--header-color), var(--header-color) 10px, var(--light) 10px, var(--light) 20px );
    border-bottom: 4px solid var(--primary-dark);
    border-top: 4px solid var(--border-color);
    border-right: 4px solid var(--border-color);
    border-radius: 0 var(--border-radius) 0 0;

    & p {
        font-family: "Lilita One";
        font-size: 4rem;
        padding-left: var(--space-md);
        text-transform: uppercase;
    }

    & .icon {
        width: 3.2rem;
        height: 3.2rem;
        fill: var(--primary-dark);
        margin-bottom: -0.2rem;
    }
}

.leftSide {
    grid-area: leftSide;
    background-color: var(--dark);
    border-radius: var(--border-radius) 0 0 0;
    border-top: 4px solid var(--border-color);
    border-left: 4px solid var(--border-color);
    padding-top: var(--space-sm);

    & img {
        box-sizing: border-box;
        background-color: var(--primary);
        height: 180px;
        width: 100%;
        object-fit: cover;
        object-position: center 10%;
    }
}

.sideContent {
    position: sticky;
    top: var(--space-sm);
}

.nav {
    list-style: none;
    font-weight: 600;
    margin: 0;
    padding: 0 var(--space-sm);
    & a, ul {
        color: var(--primary-light);
        list-style: none;
        margin-left: -0.5rem;
    }
    & a:hover {
        filter: brightness(2);
        text-decoration: underline double;
    }
    & a:active {
        filter: brightness(0.5);
        text-decoration: underline dashed;
    }
}

.navTitle {
    font-family: "Lilita One";
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--border-color);
    margin-top: 0.5rem;
    margin-bottom: -0.2rem;
    margin-left: -0.7rem;
}

.blockquoteText, .blockquoteList, .nav {
    margin-top: calc(var(--space-sm) / -1);
    height: auto;
}

.body, .rightSide {
    background-color: var(--light);

    & p, li {
        color: var(--dark);
    }

    & h1, blockquote, img {
        color: var(--primary-dark);
        border-color: var(--primary-dark);
    }

    &  h2, h3, h4, h5, a {
        color: var(--primary);
    }

    & b {
        color: var(--primary-dark);
    }

    & i, small {
        color: var(--primary);
    }

    & hr {
        background-color: var(--primary-dark);
        color: var(--primary-dark);
    }
}

.body {
    grid-area: body;
    padding: var(--space-md);
    overflow: visible;
    border-right: 4px solid var(--primary);

    & h1::before {
        font-family: "Phosphor-Bold";
        content: "\E046" " ";
    }

    & .image {
        float: inline-start;
        margin: 0 var(--space-sm) var(--space-sm) 0;
    }
}

.rightSide {
    grid-area: rightSide;
    border-right: 4px solid var(--border-color);
}

.footer {
    grid-area: footer;
    color: var(--dark);
    background-color: var(--dark);
    text-align: right;
    border-left: 4px solid var(--primary-dark);
    padding-right: var(--space-md);
    border-right: 4px solid var(--border-color);
    align-content: center;
    font-weight: 600;

    & p {
        margin: 0;
    }
}

.footnote {
    color: var(--primary-dark) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.7rem;
}

.footnoteText {
    padding: 0;
    margin: 0;
    margin-right: calc(var(--space-sm) / 2);
}

.footnoteText:first-child {
    margin-top: calc(var(--space-sm) / 2);
}

.footnoteText:target {
    background-color: var(--header-color);
}

.stampBox {
    display: flex;
    flex-flow: row wrap;
    justify-content: start;
    border: var(--border-width) solid var(--primary-dark);
    background-color: var(--dark);
    width: 100%;
    min-height: fit-content;
    max-height: 320px;
    overflow-y: scroll;
    border-radius: var(--border-radius);
}

.stamp {
    width: 99px;
    height: 56px;
    object-fit: cover;
    border: none;
    margin: 0 0.6px 0 0.6px;
    padding: 0;
}

.buttonBox {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    height: min-content;
}

/* omg really? */
.button {
    object-fit: cover;
    border: none;
    border-radius: 0;
    width: 88px;
    height: 31px;
    font-size: 0.7rem;
    color: var(--primary) !important;
}

.buttonHolder {
    & a:hover {
    filter: drop-shadow(3px 3px var(--dark));
    }
}

.buttonHolder, .popupHolder {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.buttonHolder .popupText {
  visibility: hidden;
  pointer-events: none;
  width: 176px;
  background-color: var(--light);
  border: 4px solid var(--border-color);
  color: var(--dark);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  padding: var(--space-sm);
  position: absolute;
  z-index: 999;
  bottom: 110%;
  left: 50%;
  margin-left: -88px;
}

.popupHolder .popupText {
  visibility: hidden;
  pointer-events: none;
  width: 1200px;
  background-color: var(--light);
  border: 4px solid var(--border-color);
  color: var(--dark);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  padding: var(--space-sm);
  position: absolute;
  z-index: 999;
  bottom: 110%;
  left: 0%;
  margin-left: -88px;
}

.buttonHolder:hover .popupText, .popupHolder:hover .popupText {
    visibility: visible;
    opacity: 1;
}

.link::after {
    font-family: "Phosphor-Bold";
    font-size: 0.75rem;
    content: " " "\E2E2";
    margin-left: -0.25rem;
}

.textPrimary {
    color: var(--primary);
}

.textPrimaryDark {
    color: var(--primary-dark);
}

.sloggrBox {
    border: var(--border-width) solid var(--primary-dark);
    border-radius: var(--border-radius);
    width: 100%;
    box-sizing: border-box;
}

.sloggrText {
    padding-right: var(--space-sm);
    margin-top: -0.2rem;
}

.album {
    display: flex;
    height: 150px;
    margin-bottom: var(--space-md);
    & h2 {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    & p {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    & hr {
        padding: 0;
        margin: 2px 0;
        width: 100%;
    }
    & img {
        border: 0;
    }
}

.albumContent {
    display: flex;
    flex-flow: column nowrap;
    margin-left: var(--space-sm);
}

.albumHeader {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    & span {
        text-transform: lowercase;
    }
    & p {
        align-self: end;
    }
}

.albumThoughts {
    overflow-y: scroll;
    margin-top: 0.25rem;
    height: 80px;
    flex-shrink: 0;
}

.favSong {
    display: flex;
    flex-flow: row nowrap;
    height: 2rem;
    align-items: center;
    & p {
        font-size: 1rem;
        font-weight: 800;
        margin-right: var(--space-sm);
        color: var(--primary-dark)
    }
    & audio {
        flex-grow: 2;
        height: 90%;
    }
}

/* mobile (600px wide) */
@media screen and (max-width: 37.5rem) {
    .layout {
        grid:
            "header" auto "leftSide" auto "body" auto "rightSide" auto "footer" auto / 99%;
        justify-content: center;
        padding-top: 0;
    }

    .header p {
        font-size: 2rem;
    }

    .headerDecoText {
        display: none;
    }
}