/* ----------------| FONT FACE |---------------- */

@font-face {
  font-family: "Recursive";
  src: local("Recursive");
  src: url("./fonts/Recursive/Recursive-VariableFont_CASL\,CRSV\,MONO\,slnt\,wght.ttf") format('truetype');
}

/* ----------------| BASIC STYLES |---------------- */

:root {
  /* Colors */
  --color-1: #f32200;
  --color-2: #3f3f3f;
  --color-3: #c8b5ca;
  --color-4: plum;
  --bg-color: #ced5cc;

  /* Size */
  --content-width: 75vw;
  --footer-height: 100px;
  --header-min-height: 70px;
  --breakpoint-1: 900px;
}

* {
  /* Position */
  padding: 0;
  margin: 0;
  line-height: 1;
}
  
body {
  /* Colors */
  background-color: var(--bg-color);
  color: var(--color-1);

  /* Type */
  font-family: "Recursive", sans-serif;

  /* Display */
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
}

/*----------------| SITEWIDE |---------------- */

a:link,
a:visited {
  /* Colors */
  color: var(--color-1);

  /* Decoration */
  text-decoration: none;
}

a:hover,
a:active {
  color: var(--color-2);
}

h1 {
  /* Type */
  font-size: 1.2em;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .05em;
}

h2 {
  /* Type */
  font-size: 2.5em;
  font-weight: 325;
  margin-bottom: .75em;
}

h3 {
  font-size: 1em;
  font-weight: 400;
}

h4 {
  font-size: .75em;
  line-height: 1.4em;
  margin: 1em 0 .25em 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
}

p {
  font-size: 1.25em;
  font-weight: 200;
  margin-bottom: 1em;
  line-height: 1.35em;
}

main {
  /* Size */
  width: var(--content-width);
  height: min(calc(90vh - var(--footer-height)), calc(100vh - calc(var(--footer-height) + var(--header-min-height))));
  min-width: var(--breakpoint-1);

  /* Display */
  overflow: scroll;

  -ms-overflow-style: none;  /* Hide scrollbar for Internet Explorer 10+ */
  scrollbar-width: none;  /* Hide scrollbar for Firefox */
}

main::-webkit-scrollbar { 
  display: none;  /* Hide scrollbar for Safari and Chrome */
}

.border-b {
  /* Border */
  border-bottom: solid 1px var(--color-1);
}

.description {
  padding: 2em 2em 2em 1em;
  overflow: scroll;
  -ms-overflow-style: none;  /*Hide scrollbar for IE and Edge */
  scrollbar-width: none;  /*Hide scrollbar for Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.description::-webkit-scrollbar {
  display: none;
}

.description a {
  text-decoration: underline;
}

.sub {
  width: 20%;
  height: 100%;
  padding-top: 20em;
  color: var(--color-2);
  padding-left: .5em;
  z-index: 5;
  -ms-overflow-style: none;  /*Hide scrollbar for IE and Edge */
  scrollbar-width: none;  /*Hide scrollbar for Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.sub::-webkit-scrollbar {
  display: none;
}

.sub p,li {
  font-size: .8em;
  font-weight: 400;
  line-height: 1.4em;
  list-style: none;
  margin-bottom: 0;
}

.sub > .box {
  padding: 2em 0 0 1em;
  margin-bottom: 2.5em;
  border-left: solid 1px var(--color-1);
}

/* ----------------| HEADER | FOOTER | NAV |---------------- */
  
header {
  /* Position */
  top: 0;

  /* Size */
  width: var(--content-width);
  height: 10vh;
  min-width: var(--breakpoint-1);
  min-height: var(--header-min-height);

  /* Display */
  display: flex;
  align-items: flex-end;
}

header div {
  /* Position */
  padding-bottom: 1em;

  /* Size */
  width: 100%;
}

footer {
  /* Position */
  position: absolute;
  bottom: 0;
  z-index: 5;

  /* Size */
  width: var(--content-width);
  height: var(--footer-height);
  min-width: var(--breakpoint-1);
}

footer ul {
  /* Size */
  width: 100%;

  /* Display */
  display: flex;
  justify-content: space-between;
  list-style: none;
}

footer li {
  /* Position */
  padding-top: .5em;

  /* Type */
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 375;
}

footer .rule {
  /* Colors */
  background-color: var(--color-1);

  /* Size */
  width: 100%;
  height: 25%;
}

nav {
  display: none;
}

/* ----------------| INDEX |---------------- */

.index h2 {
  text-align: center;
}

.index.row {
  /* Size */
  width: 100%;
  height: 32.9%;

  /* Display */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.index.container {
  /* Size */
  width: 24.9%;
  height: 95%;

  /* Border */
  border-right: solid 1px var(--color-1);

  /* Display */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* Background Image */
  background-position: center;
  background-size: 50%;
  background-repeat: no-repeat;
}

.index.container:nth-last-child(1) {
  border-right: none; /* Removes border from right column containers */
}

.index #block-1 {
  background-image: url('./images/icons/icon_flower.png');
}

.index #block-3 {
  background-image: url('./images/icons/icon_bird.png');
}

.index #block-6 {
  background-image: url('./images/icons/icon_dog.png');
}

.index #block-8 {
  background-image: url('./images/icons/icon_bug.png');
}

.index #block-9 {
  background-image: url('./images/icons/icon_star.png');
}

.index #block-11 {
  background-image: url('./images/icons/icon_doggie.png');
}

.index > h2 {
  /* Position */
  margin-bottom: 0;
}

.index p {
  /* Position */
  padding: 1em 0 1em 1em;

  /* Type */
  font-size: 1em;
}

/* ----------------| ABOUT |---------------- */

.about.container {
  /* Size */
  width: 100%;

  /* Display */
  display: flex;
}

.about.description {
  /* Size */
  width: 55%;

  /* Position */
  z-index: 5;
}

.about #prof-pic {
  /* Size */
  width: 25%;
  height: 400px;

  /* Position */
  z-index: 0;
  position: absolute;
  top: 110px;
  right: min(calc((100vw - var(--content-width)) / 2), calc((100vw - var(--breakpoint-1)) / 2));

  /* Background Image */
  background-image: url('./images/self/self_2.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  
  /* Display */
  opacity: .2;
  mix-blend-mode: color-burn;
}

/* ----------------| BOOKS | ALBUM ART |---------------- */

.showcase.row {
  /* Size */
  width: 100%;
  height: auto;

  /* Display */
  display: flex;
  justify-content: space-between;

  /* Position */
  margin-bottom: .7em;
}

.showcase.row img {
  /* Size */
  width: 50%;
  height: auto;
}

.showcase.row > .container {
  /* Size */
  width: 100%;
  height: 400px;

  /* Background Image */
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;

  /* Border */
  border: solid 1px var(--color-1);
}

.showcase.container:last-child {
  margin-bottom: 10vh;
}

#book-highlight-1 {
  background-image: url('./images/books/screencap_WhiteNegroes.jpeg');
}

#book-highlight-2 {
  background-image: url('./images/books/screencap_ACE.webp');
}

/* ----------------| JACKETS |---------------- */

.jackets.showcase.row img {
  /* Size */
  width: 49%;
}

/* ------------------------------------| MOBILE CSS |------------------------------------ */

@media only screen and (max-width: 950px) {

  /*----------------| SITEWIDE |---------------- */

  main {
    width: 95vw;
    min-width: 0;
    flex-direction: column;
  }

  h3 {
    font-size: 1.5em;
  }
  
  h4 {
    font-size: 1em;
    line-height: 1.4em;
    margin: 1.5em 0 .25em 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
  }

  .sub {
    width: 100%;
    padding-top: 2em;
    padding-left: 0;
  }
  
  .sub p, li {
    font-size: 1.25em;
    line-height: 1.35em;
    font-weight: 300;
  }
  
  .sub > .box {
    padding-bottom: 1em;
    margin-bottom: 1.5em;
    border-left: none;
    border-bottom: var(--color-1) 1px solid;
  }
  
  .sub > .box:nth-last-child(1) {
    margin-bottom: 10em;
    border-bottom: none;
  }

  /* ----------------| HEADER | FOOTER | NAV |---------------- */

  header {
    width: 95vw;
    min-width: 0;
  }

  footer {
    width: 95vw;
    min-width: 0;
    background-color: var(--bg-color);
    font-size: .7em;
    font-weight: 700;
  }

  /* ----------------| INDEX |---------------- */

  .index.row {
    flex-flow: column-reverse;
    height: auto;
    border: none;
  }

  .index.row:nth-last-child(1) {
    flex-flow: column;
    margin-bottom: 10vh;
  }
  
  .index.container {
    flex-direction: column;
    width: 100%;
    height: 20vh;
    background-size: 15%;
    border-right: none;
    border-bottom: 1px solid var(--color-1);
  }

  #block-8 {
    display: none;
  }

  /* ----------------| ABOUT |---------------- */

  .about.container {
    width: 100%;
    flex-direction: column;
    padding-top: 2em;
  }

  .about.description {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .about.description p {
    font-size: 1.7em;
    line-height: 1.3em;
  }

  .about #prof-pic {
    display: none;
  }

  /* ----------------| BOOKS | ALBUM ART |---------------- */
  
  .showcase.row {
    flex-direction: column;
    margin-bottom: 0;
  }
  
  .showcase.row img {
    width: 100%;
    height: auto;
    margin-bottom: .7em;
  }
  
  .showcase.row > .container {
    height: 300px;
    background-size: contain; 
    margin-bottom: .7em;
    border:none;
  }

  #book-highlight-1 {
    margin-bottom: 10vh;
  }
  
  /* ----------------| JACKETS |---------------- */

.jackets.showcase.row img {
  width: 100%;
  }
}