/* Our default values set as CSS variables */
:root {
  --container-padding: 20px;
  --container-max-width: 730px;
  --color-bg: #fff;
  --color-text-main: #000;
  --color-primary: #000;
  --color-secondary: #fff;
  --image-max-width: 320px;
  --font-family: Suisse, Helvetica Nueue, Helvetica, sans-serif;
  --font-family-header: var(--font-family);
  --fluid-min-width: 320;
  --fluid-max-width: 730;
  --fluid-screen: 100vw;
  --fluid-bp: calc(
    (var(--fluid-screen) - var(--fluid-min-width) / 16 * 1rem) /
      (var(--fluid-max-width) - var(--fluid-min-width))
  );
}

@media screen and (min-width: 500px) {
  :root {
    --container-padding: 30px;
  }
}

@media screen and (min-width: 730px) {
  :root {
    --fluid-screen: calc(var(--fluid-max-width) * 1px);
  }
}

/* Basic page style resets */
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

/* Import fonts */
@font-face {
  font-family: Suisse;
  src: url("/public/static/subset-SuisseIntl-Book.woff2")
    format("woff2");
}

@font-face {
  font-family: Suisse;
  font-weight: normal;
  font-style: italic;
  src: url("/public/static/subset-SuisseIntl-BookItalic.woff2")
    format("woff2");
}

/* Page structure */
img {
  max-width: 100%;
  height: auto;
}

html {
  height: 100%;
  background-color: black;
}

body {
  font-family: var(--font-family);
  margin: 0;
  height: 100%;
  overflow-wrap: break-word;
}

.site-container {
  background-color: var(--color-bg);
  min-height: min(100%, 900px);
  display: flex;
  flex-flow: column nowrap;
  max-width: var(--container-max-width);
}

main {
  flex: 1;
}

.wrapper {
  width: 100%;
  place-items: center;
  padding: 0 var(--container-padding);
}

.content {
  margin: 0 auto;
}

.sr {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

/* Typography */
p {
  margin: 0 0 1rem 0;
  line-height: 1.5 !important;
  font-size: 1rem;
}
h1,
h2,
h3,
h4,
h5 {
  margin: 2rem 0 0.8rem;
  font-family: var(--font-family-header);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text-main);
}

h1 {
  --fs-min: 40;
  --fs-max: 70;

  margin-top: 1rem;
  margin-bottom: 1.75rem;
  font-size: calc(var(--fs-min) / 16 * 1rem + (var(--fs-max) - var(--fs-min)) * var(--fluid-bp));
  display: inline-flex;
}

h2 {
  --fs-min: 28;
  --fs-max: 50;

  font-size: calc(var(--fs-min) / 16 * 1rem + (var(--fs-max) - var(--fs-min)) * var(--fluid-bp));
}

h3 {
  font-size: 2rem;
}

h4 {
  --fs-min: 22;
  --fs-max: 24;

  font-size: calc(var(--fs-min) / 16 * 1rem + (var(--fs-max) - var(--fs-min)) * var(--fluid-bp));
}

h5 {
  font-size: 1.25rem;
}

small,
.text_small {
  font-size: 0.8rem;
}

/* Lists */
ul > li,
ol > li {
  margin: 0;
  line-height: 1.5;
  font-size: 1rem;
}

ul > li + li,
ol > li + li {
  margin-top: 0.75em;
}

ul {
  padding: 0 0 0 18px;
  margin: 0;
}

ul.no-bullet {
  list-style-type: none;
}

/* Link styles */
a:link,
a:visited {
  text-decoration: none;
  border-bottom: 4px solid var(--color-primary);
  color: var(--color-primary);
  transition: background 0.2s linear;
}

a:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
}

a.link--2 {
  border-bottom: 4px solid transparent;
  color: var(--color-primary);
  transition: background 0.2s linear;
}

a.link--2:hover {
  border-bottom: 3px solid var(--color-primary);
  background: var(--color-secondary);
  color: var(--color-primary);
  transition: background 0.2s linear;
}

a.link--none {
  border-bottom: none;
  background: transparent;
  color: inherit;
  transition: unset;
}

a.link--none:hover {
  border-bottom: none;
  background: transparent;
  color: inherit;
  transition: unset;
}

/* Title style adjustments */
.title-lg {
  color: var(--color-text-main);
  font-style: normal;
  font-weight: bold;
  line-height: 1.5;
}

.title-md {
  font-size: 56px;
}

/* Post */
.mixtape {
  place-items: normal;
}

.mixtapeTitle {
  font-size: 4rem;
  color: #000;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.controls {
  display: grid;
  flex-flow: row wrap;
  gap: 10px;
  margin: 50px 0 0;
}

@media (min-width: 530px) {
  .controls {
    grid-template-columns: 1fr 1fr;
  }
}

.controls__label {
  font-size: 12px;
  display: block;
  width: 100%;
}

.controls__next {
  text-align: right;
  grid-column: 2;
  justify-self: end;
}

.controls__next a::after {
  content: "\2192";
}

.controls__prev a::before {
  content: "\2190";
}

/* My CSS  */

.link-list {
  margin-top: 20px;
  margin-bottom: 50px;
  padding-left: 0;
}

.link-list__item {
  display: flex;
  flex-flow: column wrap;
}

.link-list__item a {
  --fs-min: 20;
  --fs-max: 30;

  font-size: calc(var(--fs-min) / 16 * 1rem + (var(--fs-max) - var(--fs-min)) * var(--fluid-bp));
}

.header {
  margin-top: 3rem;
  margin-bottom: 50px;
}

/* Component: Header */

.header__title {
  margin-top: 0;
  margin-bottom: 0;
}

.back-link {
  margin-bottom: 10px;
}

/* Navigation grid */
.footer {
  display: flex;
  justify-content: space-between;
  margin: 1rem auto 0;
  padding: 20px var(--container-padding) 20px var(--container-padding);
  width: 100%;
  flex-wrap: wrap;
  border-top: 4px solid #ffffff;
}

.footer__inner {
  width: 100%;
  margin: 0 auto;
}

.footer a:link,
a:visited {
  font-style: normal;
  font-weight: normal;
  font-size: 1.1rem;
  text-decoration: none;
  border-style: none;
}

.footer a:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
}

.divider {
  padding: 0 1rem;
}

.mixtapes-list {
  margin-top: 50px;
  display: grid;
  padding-left: 0;
  grid-auto-flow: rows;
  gap: 30px;
}

.mixtapes-list__year {
  margin-bottom: 0;
}

.mixtapes-list > *:first-child {
  margin-top: 0;
}

.mixtapes-items-list {
  margin-top: 0;
  display: grid;
  padding-left: 0;
  grid-auto-flow: rows;
  gap: 30px;
}

.mixtapes-list-item {
  position: relative;
  display: grid;
  gap: 20px;
  grid-template-columns: 30% 1fr;
  margin-bottom: 0;
  align-items: center;
  background-color: var(--color-secondary);
}

.mixtapes-list-item__heading a::before {
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;
}

.mixtapes-list-item__media {
  order: -1;
  flex: 0 0 30%;
}

.mixtapes-list-item:hover {
  filter: invert(100%);
  transition: filter ease-out 250ms;
}

.mixtapes-list-item__media {
  aspect-ratio: 1/1;
  width: 100%;
  background-color: var(--color-primary);
}

.mixtapes-list-item__media img {
  object-fit: cover;
  width: 100%;
  display: block;
  aspect-ratio: 1/1;
}

.mixtapes-list-item__inner {
  padding: 20px 0 20px 0;
  grid-column: 2;
}

.mixtapes-list-item__heading {
  margin-top: 0;
  margin-bottom: 0.25em;
}

.mixtapes-list-item__subheading {
  --fs-min: 16;
  --fs-max: 18;

  font-size: calc(var(--fs-min) / 16 * 1rem + (var(--fs-max) - var(--fs-min)) * var(--fluid-bp));
}

/* Mixtape */

.mixtape-header {
  margin-top: 20px;
  gap: 25px;
  align-items: center;
  margin-bottom: 30px;
  overflow-wrap: anywhere;
}

@media (min-width: 530px) {
  .mixtape-header {
    display: flex;
  }

  .mixtape-header__media {
    order: -1;
    flex: 0 0 50%;
    max-width: 400px;
  }
}

.mixtape-header__inner {
  flex: 0 0 50%;
}

.mixtape-header__media img {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
}

.mixtape-header__title {
  font-size: 45px;
  margin-bottom: 0.175em;
}

.mixtape-header__subtitle {
  margin-top: 0;
  font-size: 22px;
}

.mixtape-spotify-embed {
  margin: 50px auto;
}
