@font-face {
  font-family: "W95FA";
  src: url("./w95fa.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

:root {
  --bg: #050505;
  --panel: #000000;
  --blue: #113dff;
  --blue-soft: #84a7ff;
  --text: #ffffff;
  --red: #ff472f;
  --yellow: #ffef7b;
  --yellow-visited: #c9ae2d;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #070707 url("./bgmagenta.gif") repeat;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "W95FA", "Courier New", monospace;
  line-height: 1;
  background: transparent;
}

a {
  color: var(--yellow);
}

a:visited {
  color: var(--yellow-visited);
}

.site-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 46px 18px 72px;
}

.title-image {
  display: block;
  width: min(100%, 236px);
  height: 64px;
  margin: 0 0 14px 24px;
  object-fit: fill;
}

.main-window {
  padding: 20px 24px;
  border: 1px solid var(--yellow);
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(255, 239, 123, 0.18) inset;
}

.intro-block {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
}

.small-image,
.character-image {
  display: block;
}

.small-image {
  width: 92px;
  height: 92px;
  object-fit: cover;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
}

.intro-copy p,
.note-block p,
.track-meta p {
  margin: 0 0 10px;
}

.intro-copy p {
  font-size: 0.99rem;
  line-height: 1.02;
}

.note-block {
  width: 100%;
  margin: 20px 0 30px;
  text-align: center;
}

.note-block p {
  margin-bottom: 0;
  color: #fff5e8;
  font-size: 0.98rem;
}

.bottom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.lastfm-panel {
  padding: 10px;
  border: 1px solid var(--yellow);
  background: #020202;
}

.panel-heading {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 0.9rem;
  text-transform: lowercase;
}

.now-playing {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;
}

.album-cover {
  display: block;
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 0;
  outline: 1px solid var(--yellow);
  outline-offset: -1px;
  background: #101a42;
}

.track-label,
.widget-note {
  color: var(--blue-soft);
  font-size: 0.85rem;
}

.track-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 110px;
  overflow: hidden;
}

.track-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.track-artist,
.track-album {
  color: #ffffff;
  font-size: 0.88rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.track-meta p {
  margin: 0;
}

.widget-note {
  font-size: 0.76rem;
  line-height: 1.05;
}

.widget-note code {
  color: #ffd7d1;
}

.character-image {
  width: 240px;
  height: 160px;
  object-fit: cover;
}

@media (max-width: 760px) {
  .site-shell {
    padding: 22px 12px 40px;
  }

  .title-image {
    width: min(100%, 236px);
    height: auto;
    margin: 0 auto 14px;
  }

  .main-window {
    padding: 18px;
  }

  .small-image {
    width: 72px;
    height: 72px;
  }

  .intro-block {
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
  }

  .intro-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    min-height: 72px;
  }

  .intro-copy p {
    font-size: 0.82rem;
    line-height: 1;
  }

  .intro-copy p:last-child {
    margin-bottom: 0;
  }

  .bottom-row {
    grid-template-columns: 1fr;
  }

  .lastfm-panel {
    width: 100%;
  }

  .now-playing {
    grid-template-columns: 110px 1fr;
    align-items: center;
  }

  .character-image {
    width: 100%;
    max-width: 240px;
    height: auto;
    margin: 0 auto;
  }
}
