/*

(\  }\
(  \_('>
(_(=_)
-"=

*/

* { box-sizing: border-box; }

body {
  background: #fefbf5;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: 2px;
  font-size: 13px;
  color: #222;
  text-transform: lowercase;
  padding: 0;
  margin: 0;
  font-variant-ligatures: none; /* override safari ugly 'fi' rendering */
  line-height: 2.25;
}

a, button {
  color: blue;
  text-decoration: none;
  padding-bottom: 2px;
}

a:hover {
  color: blue;
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid blue;
}

a:active { color: blue; }
a:visited { color: blue; }

a.footnote, .footnote a { color: #222; /* rory's request; rip system */ }
a.footnote:hover, .footnote a:hover { border-bottom: 1px solid #222; }

header {
  position: static;
  margin: 20px auto;
  width: 300px;
  height: 55px;
  z-index: 3;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

header span {
  display: inline-block;
  text-align: right;
  padding: 7px;
  line-height: 1.5;
  margin: 8px 15px 8px 0;
}

header span h1 {
  display: inline-block;
  font-size: inherit;
  font-weight: inherit;
  margin: 0; padding: 0;
}

header img {
  left: 0;
  width: 28px;
  height: 56px;
  margin: 0 5px;
}

main#box {
  display: flex;
  height: auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
  overflow: visible;
  margin: 30px auto 0 auto;
}

.release {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0;
  width: 300px; /* nb this is below breakpoint only */
  position: relative;
  padding-top: 30px; /* extra, largely for the vinyl stickers, but it helps */
}

.release .album-art {
  display: block;
  width: 100%;
  height: auto;
  background: white;
  box-shadow: 0.5rem 0.5rem 1px #e8e0d8;
  width: 300px;
  height: 300px;
}

.release .release-info {
  width: 100%;
  margin: 1.5rem 0 0 0;
  padding: 0 0.375rem 75px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.release .release-info h2 {
  margin: 0;
  padding: 0;
  font: inherit;
  display: inline;
  white-space: normal; /* just for tst029 on mobile lol */
}

/* artist and title punctuation */
.release .release-info h2.artist-name::after { content: ','; }
.release .release-info h2.release-title:not(.no-quote-marks)::before { content: '‘'; }
.release .release-info h2.release-title:not(.no-quote-marks)::after { content: '’'; }

.release .release-info ul,
.release .release-info p {
  margin: 1.25rem 0 0 0;
  padding: 0;
}

.release .release-info ul {
  list-style-type: none;
}

.release .release-info ul li {
  display: block;
}

.release .release-info p {
  line-height: 1.5;
}

.release .release-info .catalogue-number { display: none; }

.release .release-info .links,
p.footnote { /* mobile only */
  align-self: flex-end;
  text-align: right;
}

.release.available-on-vinyl .sticker {
  display: inline-block;
  position: absolute;
  top: 0px;
  left: 180px;
  width: 100px;
  height: 100px;
  border-radius: 100px;
  box-shadow: 0 2px 4px rgba(16,16,16,0.1);
  background-image: url("../i/vinyl-sticker.gif");
  background-size: 103%;
  background-position: center bottom;
}

.release.available-on-vinyl.out-of-stock .sticker { /* class override for out of stock */
  background-image: url("../i/vinyl-out-sticker.gif");
  background-size: 110%;
  background-position: center;
}

/* slightly hairy filtering; vinyl-only on .box activated filter */
main#box.vinyl-only .release { display: none; }
main#box.vinyl-only .release.available-on-vinyl { display: flex !important; }

#filter {
  position: fixed;
  padding: 1.625rem 1.125rem 1.5rem;
  background: #fefbf5;
  left: 0;
  bottom: 0;
  z-index: 3;
  text-transform: uppercase;
  width: 100%;
  line-height: 1.2;
}

#filter > span { /* little label */
  display: none;
}

/* reset */
button  {
  cursor: pointer;
  border: none;
  margin: 0;
  padding: 0;
  width: auto;
  overflow: visible;
  background: transparent;
  outline: none;
  color: inherit;
  font: inherit;
  line-height: normal;
  letter-spacing: inherit;
  text-transform: inherit;
  -webkit-font-smoothing: inherit;
  -moz-osx-font-smoothing: inherit;
  -webkit-appearance: none;
  user-select: none;
}

#filter button { color: blue; }
#filter button.active {
  padding-bottom: 1px;
  border-bottom: 1px solid blue;
}

/*  ~ ~ ~ responsive: middle ground 515--799 ~ ~ ~ */

@media screen and (min-width: 515px) {

  header {
    width: 450px;
    height: 76px;
  }

  header span {
    margin: 15px 15px 0 0;
  }

  header img {
    width: 38px;
    height: 76px;
  }

  .release {
    width: auto;
    padding-top: 40px; /* extra, largely for the vinyl stickers, but it helps */
  }

  .release .album-art {
    width: 450px;
    height: 450px;
  }

  .release.available-on-vinyl .sticker {
    top: -10px;
    left: 300px;
    width: 120px;
    height: 120px;
    border-radius: 120px;
    box-shadow: 0 3px 6px rgba(16,16,16,0.1);
  }

  .release .release-info {
    padding: 0 6px 100px; /* actually a margin lol */
  }

  .release .release-info ul,
  .release .release-info p {
    margin-top: 1.375rem;
  }

  .release .release-info .footnote {
    margin-top: 1.5rem;
  }

}

/*  ~ ~ ~ switch to desktop @ 800  ~ ~ ~ */

@media screen and (min-width: 800px) {

  header {
    position: fixed;
    margin: 0;
    top: 12px;
    right: 25px;
    width: auto;
    height: 75px;
    z-index: 3;
  }

  main#box {
    flex-direction: row;
    height: 100vh;
    margin: 0;
  }

  .release {
    flex-direction: row;
    margin: 0 0 0 80px;
    padding-top: 0; /* no vertical spacing on desktop */
  }

  .release .release-info {
    width: auto;
    margin: 0 0 0 1.875rem;
    padding: 0 123px 0 0; /* actually a margin lol */
  }

  .release .release-info.tighter { /* for long titles */
    padding: 0 33px 0 0;
  }

  .release .release-info h2,
  .release .release-info li {
    white-space: nowrap;
  }

  .release .release-info .links,
  p.footnote {
    align-self: flex-start;
    text-align: left;
  }

  .release.available-on-vinyl .sticker {
    top: -45px;
  }

  #filter {
    padding: 0.25rem;
    left: 26px;
    bottom: 30px; /* optical */
    width: auto;
  }

  #filter > span {
    display: inline;
  }

}
