* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font: 1em/1.7 system-ui, sans-serif;
  color: #222;
  background: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

main div.content {
  margin: 0 auto;
  padding: 2em 3em;
}

a {
  color: inherit;
}

a:hover {
  opacity: 0.6;
}

a:has(.site-logo):hover {
  opacity: 1;
}

.site-logo {
  width: 135px;
  height: 90px;
  float: left;
  object-fit: contain;
}

.content-banner-wrapper {
  width: 100%;
  max-width: 800px;
}

.content-banner-picture {
  display: block;
  width: 100%;
  height: 533px;
  background: #000;
}

.content-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-caption {
  margin: 0.5em 0 0 0;
  font-size: 0.75em;
  opacity: 0.5;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 0 0 4em;
}

.banner-caption .meta {
  text-align: right;
}

.banner-caption span.original {
  opacity: 1;
  font-style: italic;
}

.banner-caption span.original::before {
  content: " (";
}

.banner-caption span.original::after {
  content: ")";
}

.banner-caption span.director::after {
  content: ",";
}

.banner-caption span.year::before {
  content: " ";
}

.banner-caption span.album {
  font-style: italic;
  opacity: 0.5;
}

.banner-caption span.album::before,
.banner-caption span.album::after {
  content: " ‧ ";
}

li.song span.artist::after {
  content: "";
}

li.song span.album {
  font-style: italic;
  opacity: 0.5;
}

li.song span.album::before {
  content: "‧ ";
  font-style: normal;
}

li.song span.album::after {
  content: " ‧";
  font-style: normal;
}

header {
  padding: 1.5em 0em;
}

nav {
  font-size: 0.875em;
  display: block;
}

nav ul {
  padding: 0 0.5em;
  display: inline-block;
  vertical-align: top;
}

nav ul a {
  display: block;
  line-height: 1.7;
  text-transform: lowercase;
}

nav ul a.active {
  text-decoration: none;
  opacity: 0.5;
}

h1 {
  font-size: 1em;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2em;
}

h2 {
  font-size: 1em;
  font-weight: 600;
  margin: 2em 0 0.5em;
}

details {
  margin: 2em 0;
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
}

summary::-webkit-details-marker {
  display: none;
}

summary h2 {
  display: inline;
  flex-shrink: 0;
}

summary h2::after {
  content: "▸";
  display: inline-block;
  margin-left: 0.4em;
  opacity: 0.4;
  transition: transform 0.2s ease;
}

details[open] > summary h2::after {
  transform: rotate(90deg);
}

summary::after {
  content: "past is in the past is in the past is in the past is in the past is in the";
  margin-left: 0.5em;
  font-weight: normal;
  font-size: 0.75em;
  opacity: 0.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s ease;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0));
  mask-image: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0));
}

details[open] > summary::after {
  opacity: 0;
}

details:first-of-type > summary::after {
  content: none;
}

h3 {
  font-size: 0.875em;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5em;
}

p {
  margin-bottom: 1em;
}

ul {
  list-style: none;
}

h3+ul {
  margin-left: 1em;
}

li {
  margin-bottom: 0.4em;
}

li.favorite {
  font-weight: 600;
}

li.favorite span {
  font-weight: normal;
}

li.rewatch::before {
  content: "↻ ";
  opacity: 0.4;
}

li.social::before {
  content: "👥 ";
  opacity: 0.4;
  filter: grayscale(100%);
}

li.theater::before {
  content: "🍿 ";
  opacity: 0.4;
  filter: grayscale(100%);
}

li.recommendation::before {
  content: "🗣️ ";
  opacity: 0.4;
  filter: grayscale(100%);
}

li.concert::before {
  content: "🎤 ";
  opacity: 0.6;
  filter: grayscale(100%);
}

li.tickets::before {
  content: "🎫 ";
  opacity: 0.9;
  filter: grayscale(100%);
}


li.song::before {
  content: "💿 ";
  opacity: 1;
  filter: grayscale(100%);
}

li.podcast::before {
  content: "🎧 ";
  opacity: 1;
  filter: grayscale(100%);
}

li span {
  opacity: 0.5;
  font-size: 0.9em;
}

li span.isbn {
  opacity: 0.25;
  letter-spacing: -0.05em;
  font-size: 0.7em;
}

li span.original {
  opacity: 0.65;
  font-style: italic;
}

li span.original::before {
  content: "(";
}

li span.original::after {
  content: ")";
}

li span.author::before,
li span.isbn::before,
li span.director::before,
li span.artist::before,
li span.artist::after,
li span.studio::before,
li span.studio::after,
li span.series::before,
li span.series::after {
  content: "‧ ";
}

li span.host::after {
  content: "";
}

li span.episode {
  opacity: 0.7;
}

li span.episode::after {
  content: "";
}

li span.podcast-name::before {
  content: "‧ ";
}

li span.director::after {
  content: ",";
}

li span.date::before {
  content: "‧ ";
}

li span.date {
  opacity: 0.35;
}

li span.year {
  opacity: 0.35;
}

li span.year::before {
  content: "";
}

li.series span.season {
  opacity: 0.5;
}

li.series span.season::before {
  content: "‧ ";
}

li.series span.year::before {
  content: "‧ ";
}

li.series span.be-brass {
  opacity: 1;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: underline;
}

li.series span.be-eye {
  opacity: 1;
  font-size: inherit;
  font-weight: 600;
  vertical-align: -0.15em;
  letter-spacing: -0.08em;
}

.rating {
  opacity: 0.4;
  font-size: 0.875em;
}

.year-chart {
  margin: 1.5em 0 2em;
  font-size: 0.875em;
  font-family: monospace;
}

.chart-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.3em;
}

.chart-row .decade {
  width: 4em;
  opacity: 0.6;
}

.chart-row .bar {
  opacity: 0.4;
  letter-spacing: -0.05em;
}

.chart-row .count {
  margin-left: 0.5em;
  opacity: 0.4;
  font-size: 0.9em;
}

.legend {
  margin: 2em 0;
  padding: 1.2em;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
  font-size: 0.875em;
}

.legend ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
}

.legend li {
  margin: 0;
  opacity: 0.7;
}

.legend li.favorite {
  font-weight: 600;
}

.legend li.rewatch::before {
  content: "↻ ";
  opacity: 1;
}

.legend li.social::before {
  content: "👥 ";
  opacity: 1;
  filter: grayscale(100%);
}

.legend li.theater::before {
  content: "🍿 ";
  opacity: 1;
  filter: grayscale(100%);
}

.legend li.recommendation::before {
  content: "🗣️ ";
  opacity: 1;
  filter: grayscale(100%);
}

footer {
  margin: 4em 4em 2em 4em;
  font-size: 0.75em;
  opacity: 0.4;
}

/* Responsive banner styles */
@media (max-width: 768px) {
  .content-banner-picture {
    height: 100%;
    aspect-ratio: 800 / 533;
  }

  .banner-caption {
    padding: 0 1em;
  }
}

@media (max-width: 480px) {
  main div.content {
    padding: 1.5em 2em;
  }

  .content-banner-picture {
    height: 100%;
    aspect-ratio: 800 / 533;
  }

  .banner-caption {
    padding: 0 1em 1em 3em;
    font-size: 0.65em;
  }

  h1 {
    margin-bottom: 1em;
  }

  h2 {
    padding: 1em 0;
    margin: 0em;
  }

  summary {
    padding: 1em 0;
  }

  h3 {
    margin-bottom: 1em;
  }

  details {
    margin: 1.5em 0;
  }

  footer {
    margin: 1.5em 2em;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: rgb(18, 22, 30);
    color: rgb(225, 235, 255);
  }

  .legend {
    background: rgba(255, 255, 255, 0.03);
  }

  .site-logo {
    filter: invert(1) brightness(0.9);
  }

  li.favorite,
  .legend li.favorite {
    font-weight: 700;
  }
}
