/****************************/
/*****   Mobile|SMALL   *****/
/****************************/
html {
  font-size: 18px;
  font-family: Arial, system-ui, monospace, sans-serif;
  color: #333;
}

body {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 1em); /* subtract margins */
  font-size: 1em;
  margin: 0.5em;
}

h2, h3 {
  color: #0c36d4;
}

p {
  line-height: 1.4;
}

hr {
  border-top: 4px solid #333;
  margin: 0.5em 0;
}

.hidden {
  display: none;
}

/* links */
a {
  text-decoration: none;
  color: #0c36d4;
}
a:hover {
  text-decoration: underline;
}
a:visited {
  color: #8b8b8b;
}
aside .archives a {
  text-decoration: underline;
  color: #333;
}
aside .archives nav ul {
  list-style-type: disclosure-closed;
  margin-left: 1em;
  padding-left: 1em;
}
aside .tags a {
  color: #333;
}
aside .tags nav ul {
  list-style-type: square;
}

/* nav links */
header nav ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
  overflow: hidden;
}

/* header */
header {
  display: flex ;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
}

/* header logo */
header > a {
  display: block;
  text-align: center;
  flex-basis: 100%;
}
header > a > img {
  max-width: 20em;
}

/* header nav */
header nav {
  padding-top: 0.5em;
}
header nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}
header nav ul li {
  font-weight: bold;
}
header nav ul li a {
  display: block;
  padding: 0.5em 1em;
  text-decoration: none;
}

main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

/* page header */
main > h1 {
  flex-basis: 100%;
  margin-top: 0;
}
main > section {
  flex: 1 1 100%;
}
main > aside {
  flex: 1 1 100%;
  border-color: #ddd;
  border-style: solid;
  border-width: 1px;
  border-radius: 0.25em;
}
main > aside {
  align-self: flex-start;
  padding-bottom: 1.5em;
}
main > aside > section {
  padding-left: 1em;
  padding-right: 1em;
}

/* article header */
article h2 {
  display: flex ;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-color: #ddd;
  border-style: solid;
  border-width: 1px;
  border-radius: 0.25em;
  padding: 0.5em;
}
article h2 a {
  font-size: 0.8em;
  color: #0c36d4;
}
article time {
  display: block;
  text-align: right;
  font-size: 0.85em;
  font-weight: 700;
  color: #333;
}

body.blog-post article time {
  font-size: 1.5em;
}
article p.author {
  text-align: right;
  font-size: 0.75em;
  font-style: italic;
}
body.blog-post article p.author {
  font-size: 1.25em;
}

/* article body */
article p {
  text-align: left;
}
body.blog article p,
body.blog-year article p {
  margin: 0 0.5em;
}

article figure {
  text-align: center;
  margin-bottom: 0.75em;
}
article figure img {
  max-height: 240px;
  max-width: 240px;
}
body.blog-post article figure img {
  max-height: 240px;
  max-width: 240px;
}

/*****   Profile   *****/
body.profile h2 {
  border-bottom: 8px groove #8B8B8B;
}
body.profile div.profile {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
body.profile div.profile div:nth-child(1) {
  flex: 1 1 50%;
  order: 2;
}
body.profile div.profile div:nth-child(1) p:nth-child(1) {
  font-weight: bold;
}
body.profile div.profile div:nth-child(2) {
  flex: 1 1 50%;
  align-self: center;
  text-align: center;
  order: 1;
}
body.profile div.profile img {
  max-height: 300px;
  max-width: 250px;
  padding: 4px;
  border-style: solid;
  border-width: 1px;
  border-color: #aaa;
}

/*****   Discography   *****/
body.discography main > h1 {
  text-align: left;
}
body.discography section.samples ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2em;
  margin: 2em 0 0 0;
  padding: 0;
  list-style-type: none;
}
body.discography section.samples ul > li:hover {
  transform: scale(1.3);
  transition: transform 0.4s ease;
}
body.discography section.samples img {
  max-width: 112px;
  max-height: 112px;
}
body.discography main h2 {
  display: inline-block;
  text-align: left;
  position: relative;
  border-bottom: 2px solid transparent; /* avoid default full border */
}
body.discography main h2::after {
  content: "";
  position: absolute;
  bottom: -0.5em;
  left: 0;
  width: 100%;   /* half width */
  height: 4px;  /* border thickness */
  background-color: #333;
}
body.discography main h3 {
  color: #333;
}
body.discography section.releases {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}
body.discography section.releases > section {
  flex: 0 0 100%;
}
body.discography section.releases article.release {
  display: flex;
  width: 100%;
  color: #333;
}
body.discography section.releases article.release:hover {
  transform: scale(1.1);
  transition: transform 0.4s ease;
}
body.discography section.releases article.release > section:nth-child(1) {
  flex: 1 1 20%;
  justify-items: center;
  text-align: center;
  min-width: 200px;
}
body.discography section.releases article.release > section:nth-child(1) img {
  max-width: 112px;
  max-height: 112px;
}
body.discography section.releases article.release > section:nth-child(2) {
  flex: 1 1 80%;
  justify-items: left;
  text-align: left;
}
body.discography section.releases article.release > section:nth-child(2) h3 {
  margin-bottom: 0.25em;
}
body.discography section.releases article.release > section:nth-child(2) p {
  font-size: 0.75em;
  margin-top: 0.25em;
}
body.discography main > section:last-child {
  text-align: center;
  margin-top: 2em;
}

/*****   Tabs   *****/
body.score main section img {
  max-width: 112px;
  max-height: 112px;
}
body.score iframe {
  width: 100%;
  height: 100vh;
  margin-bottom: 2em;
}

/*****   Lyrics   *****/
body.lyric main section img {
  max-width: 112px;
  max-height: 112px;
}

/*****   Gallery   *****/
body.gallery main section {
  display: grid;
  grid-auto-columns: auto;
  grid-auto-rows: auto;
  grid-gap: 2em;
}
body.gallery main section img {
  width: 100%;
  height: auto;
}

nav.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 2em;
  margin-bottom: 1em;
}
nav.pagination a.next {
  margin-right: auto;
}
nav.pagination a.prev {
  margin-left: auto;
}

footer {
  display: flex ;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  margin-top: auto;
}
footer hr {
  flex-basis: 100%;
  margin: 1em 0 0.5em 0;
}
footer img {
  max-height: 48px;
}
footer pre {
  margin: 0;
  font-size: 0.75em;
}

/****************************/
/*****   Tablet|MEDIUM  *****/
/****************************/
@media (min-width: 768px) {
    body {
      display: flex;
      flex-direction: column;
      min-height: calc(100vh - 2em); /* subtract margins */
      font-size: 1.125em;
      margin: 1em;
    }
    header > a > img {    /* header logo */
      max-width: 25em;
    }
    body main {
      width: 100%;
      max-width: 900px;
      align-self: center;
    }
    body.blog main,
    body.blog-year main {
      column-gap: 2em;
    }
    main > section {
      flex: 1 1 calc(72% - 2em);
    }
    main > aside {
      flex: 1 1 calc(28% - 2em);
      border-color: #ddd;
      border-style: solid;
      border-width: 1px;
      border-radius: 0.25em;
    }
    article h2 a {        /* blog page post header */
      font-size: 1em;
    }
    article time {        /* blog post page article time */
      font-size: 0.7em;
    }

    article figure {
      text-align: center;
      margin-bottom: 0.75em;
    }
    article figure img {
      max-height: 360px;
      max-width: 360px;
    }
    body.blog-post article figure img {
      max-height: 640px;
      max-width: 640px;
    }

    /*****   Profile   *****/
    body.profile div.profile div:nth-child(1) {
      order: 1;
    }
    body.profile div.profile div:nth-child(2) {
      order: 2;
    }
    body.profile div.profile img {
      max-width: 100%;
      height: auto;
      margin: auto;
      display: block;
    }

    /*****   Discography   *****/
    body.discography section.releases > section {
      flex: 0 0 50%;
    }

    /*****   Release   *****/
    body.release main article {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      gap: 2em;
    }
    body.release main article > section:nth-child(1) {
      flex: 0 0 calc(63% - 1em); /* subtracting half gap */
    }
    body.release main article > section:nth-child(2) {
      flex: 0 0 calc(37% - 1em); /* subtracting half gap */
    }
    body.release main article > section:nth-child(2) iframe {

    }

    /*****   Gallery   *****/
    body.gallery main section {
      display: grid;
      grid-auto-columns: auto;
      grid-auto-rows: auto;
      grid-gap: 2em;
      grid-template-areas:
        "header header header"
        "main main main";
    }
    body.gallery main section > h1 {
      grid-area: header;
    }

    .show-md {
      display: block;
    }
    .hide-md {
      display: none;
    }
}

/*****************************/
/*****   Desktop|LARGE   *****/
/*****************************/
@media (min-width: 1024px) {
    body {
      display: flex;
      flex-direction: column;
      min-height: calc(100vh - 2em); /* subtract margins */
      font-size: 1.25em;
      margin: 1em;
    }
    body main {
      width: 100%;
      max-width: 1200px;
      align-self: center;
    }
    body.blog-post main {
      max-width: 900px;
      align-self: center;
    }
    .show-lg {
      display: block;
    }

    /*****   Release   *****/
    body.release main section.videos {
      display: grid;
      grid-gap: 1rem;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto 1fr;
      grid-template-areas:
        "header header"
        "main main";
    }
    body.release main section.videos > h2 {
      grid-area: header;
    }
    body.release main section.videos > iframe {
    }

    body.release main section:last-child {
      margin: 1em 0;
    }
}
