/*!
 * Sépélas template v1
 * Handcrafted by jérémie/humanize
 * Licensed under MIT (https://humanize.me/mit-license.php)
 */

:root {
  --color-1: #de2d97;
  --color-1-semi-transparent: rgba(222, 45, 151, .75);
  --color-2: #1d002b;
  --color-2-semi-transparent: rgba(29, 0, 43, .75);
}

/* --- --- --- --- --- --- --- --- --- --- --- ---  */
/* GLOBAL */
/* --- --- --- --- --- --- --- --- --- --- --- ---  */

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

::selection {
  background-color: var(--color-1);
  color: var(--color-2);
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 2.2rem;
  line-height: 1.53;

  min-height: 100vh;

  background-color: var(--color-2);
  color: var(--color-1);
}

a {
  color: currentColor;
}

audio {
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- --- --- --- --- --- --- --- --- --- --- ---  */
/* MOBILE */
/* --- --- --- --- --- --- --- --- --- --- --- ---  */

@media (max-width: 767px) {
  
  header {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-color: var(--color-1);
    color: var(--color-2);
  }

  header h1 {
    font-family: "Spicy Rice", cursive;
    font-weight: 400;
    line-height: 1;
    font-size: 20vw;
    text-transform: uppercase;

    width: 100%;
    padding: 2.5rem 0 1rem;
    position: sticky;
    top: 0;
    left: 0;
  }

  /* --- --- --- */

  main {
    padding: 2rem;
  }

  main p {
    padding: 2rem;
  }

  main p:nth-of-type(1) {
    background-color: var(--color-2);
    color: var(--color-1);
  }

  main p:nth-of-type(2) {
    background-color: var(--color-1);
    color: var(--color-2);
  }

  /* --- --- --- */

  body > div.promo {
    margin-top: 2rem;
  }
  
  body > div.promo h3 {
    font-family: "Spicy Rice", cursive;
    font-weight: 400;
    line-height: 1;
    font-size: 8vw;
    text-transform: uppercase;

    text-align: center;
  }

  /* --- --- --- */

  section.player {
    position: relative;
    margin: 4rem 2rem;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;

    box-shadow: inset 0 0 0 .2rem var(--color-1),
                inset 0 0 0 .4rem var(--color-2);
  }

  section.player::before {
    content: "";
    display: block;
    padding-bottom: 100%;
  }

  section.player > div:nth-of-type(1) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    padding: 1rem;
    text-align: center;
  }

  section.player > div:nth-of-type(1) h2 {
    background-color: var(--color-2-semi-transparent);
    color: var(--color-1);
    
    font-size: 1.8rem;
    
    border-radius: .5rem;
    padding: 1rem .5rem;

    text-shadow: 0 .1rem 0 var(--color-2),
                 0 .2rem 0 var(--color-2);
  }

  section.player > div:nth-of-type(2) {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    padding: 2rem;
  }

  section.player audio {
    vertical-align: bottom;
  }

  /* --- --- --- */

  footer {
    height: 100vh;
    display: grid;
    grid-template-rows: 1fr 1fr;
  }

  footer > div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  footer > div:nth-of-type(1) {
    background-color: var(--color-1);
    color: var(--color-2);
  }
  
  footer > div:nth-of-type(2) svg {
    max-width: 50vw;
    height: auto;
    fill: var(--color-1);
  }

}

/* --- --- --- --- --- --- --- --- --- --- --- ---  */
/* DESKTOP */
/* --- --- --- --- --- --- --- --- --- --- --- ---  */

@media (min-width: 768px) {

  body {
    display: grid;
    min-height: 100vh;

    grid-template-areas: "header       main player-one  player-two"
                         "player-three main player-four footer";

    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 2rem;
    padding: 2rem;
  }

  /* --- --- --- */
  
  header {
    grid-area: header;

    background-color: var(--color-1);
    color: var(--color-2);

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  header h1 {
    font-family: "Spicy Rice", cursive;
    font-weight: 400;
    line-height: 1;
    font-size: 5vw;
    text-transform: uppercase;
  }

  /* --- --- --- */

  main {
    grid-area: main;

    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;

    box-shadow: inset 0 0 0 .2rem var(--color-1);

    padding: 4rem;
    font-size: 2.3vh;
  }

  /* --- --- --- */

  div.promo {
    display: none;
  }

  /* --- --- --- */

  section.player {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;

    box-shadow: inset 0 0 0 .2rem var(--color-1),
                inset 0 0 0 .4rem var(--color-2);
  }

  section.player:nth-of-type(1) {
    grid-area: player-one;
  }

  section.player:nth-of-type(2) {
    grid-area: player-two;
  }

  section.player:nth-of-type(3) {
    grid-area: player-three;
  }

  section.player:nth-of-type(4) {
    grid-area: player-four;
  }

  section.player > div:nth-of-type(1) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    text-align: center;
  }

  section.player > div:nth-of-type(1) h2 {
    margin: .4rem;
    max-width: 100%;
    background-color: var(--color-1-semi-transparent);
    color: var(--color-2);
    font-size: 2vh;
    font-weight: 400;
    padding: .5rem .5rem;
    text-transform: uppercase;
  }

  section.player > div:nth-of-type(2) {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
  }

  section.player > div:nth-of-type(2) audio {
    vertical-align: bottom;
  }

  /* --- --- --- */

  footer {
    grid-area: footer;

    display: grid;
    grid-template-rows: 2fr 1fr;
  }

  footer > div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  footer > div:nth-of-type(1) {
    background-color: var(--color-1);
    color: var(--color-2);
  }
  
  footer > div:nth-of-type(2) {
    text-align: center;
  }

  footer > div:nth-of-type(2) svg {
    max-width: 50%;
    height: auto;
    fill: var(--color-1);
  }
  
}

/* --- --- --- --- --- --- --- --- --- --- --- ---  */
/* FONT FACE (KILLAH) */
/* --- --- --- --- --- --- --- --- --- --- --- ---  */

@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    local("Source Sans Pro Regular"),
    local("SourceSansPro-Regular"),
    url("https://data.humanize.me/fonts/Source_Sans_Pro_400.woff2") format("woff2"),
    url("https://data.humanize.me/fonts/Source_Sans_Pro_400.woff") format("woff"),
    url("https://data.humanize.me/fonts/Source_Sans_Pro_400.eot?#iefix") format("embedded-opentype"),
    url("https://data.humanize.me/fonts/Source_Sans_Pro_400.svg#SourceSansPro") format("svg"),
    url("https://data.humanize.me/fonts/Source_Sans_Pro_400.ttf") format("truetype");
}

@font-face {
  font-family: "Source Sans Pro";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src:
    local("Source Sans Pro Italic"),
    local("SourceSansPro-Italic"),
    url("https://data.humanize.me/fonts/Source_Sans_Pro_400i.woff2") format("woff2"),
    url("https://data.humanize.me/fonts/Source_Sans_Pro_400i.woff") format("woff"),
    url("https://data.humanize.me/fonts/Source_Sans_Pro_400i.eot?#iefix") format("embedded-opentype"),
    url("https://data.humanize.me/fonts/Source_Sans_Pro_400i.svg#SourceSansPro") format("svg"),
    url("https://data.humanize.me/fonts/Source_Sans_Pro_400i.ttf") format("truetype");
}

@font-face {
  font-family: "Spicy Rice";
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src:
    local("Spicy Rice"),
    local("SpicyRice-Regular"),
    url("https://data.humanize.me/fonts/Spicy_Rice.woff2") format("woff2"),
    url("https://data.humanize.me/fonts/Spicy_Rice.woff") format("woff"),
    url("https://data.humanize.me/fonts/Spicy_Rice.eot?#iefix") format("embedded-opentype"),
    url("https://data.humanize.me/fonts/Spicy_Rice.svg#SpicyRice") format("svg"),
    url("https://data.humanize.me/fonts/Spicy_Rice.ttf") format("truetype");
}
