/* ============================================
   (void)null — lofi minimalism
   ============================================ */

/* --- Reset & base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #f5f5f0;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  padding: 2rem 1rem;
  min-height: 100vh;
}

/* Paper grain texture overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Layout --- */
.container {
  max-width: 680px;
  margin: 0 auto;
}

/* --- Links --- */
a {
  color: #5b3a8c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* --- ASCII card frame --- */
.card {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.card-frame-top,
.card-frame-bot {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  color: #c0c0b8;
  line-height: 1;
  user-select: none;
  overflow: hidden;
  height: 0.7rem;
}

.card-frame-top {
  margin-bottom: 0;
}

.card-frame-bot {
  margin-top: 0;
}

.card-frame-mid {
  display: flex;
  align-items: stretch;
}

.card-frame-mid .frame-left,
.card-frame-mid .frame-right {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  color: #c0c0b8;
  line-height: 1.6;
  user-select: none;
  flex-shrink: 0;
  width: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  min-width: 0;
}

/* --- ASCII divider --- */
.ascii-divider {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  color: #d4d4cc;
  text-align: center;
  margin: 2rem 0;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
}

/* --- Logo --- */
.logo {
  font-family: "Courier New", Courier, monospace;
  text-align: center;
  margin: 4rem 0 3rem;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-title {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  line-height: 1;
}

.logo-divider {
  width: 30px;
  height: 1px;
  background-color: #d0d0c8;
  margin: 0.75rem 0;
}

.logo-subtitle {
  font-size: 0.65rem;
  text-transform: lowercase;
  letter-spacing: 0.2em;
  color: #aaa;
  line-height: 1;
}

/* --- Typography --- */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: #5b3a8c;
}

h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

p {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Meta / labels --- */
.meta {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.02em;
}

.meta-label {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 0.15rem;
}

.tag {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.6875rem;
  padding: 0.15rem 0.5rem;
  background: #f0f0eb;
  color: #666;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
}

/* --- Nav cards row --- */
.nav-row {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.nav-row .card {
  flex: 1;
}

.nav-link {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1a1a1a;
}

.nav-link:hover {
  color: #5b3a8c;
  text-decoration: none;
}

.nav-desc {
  font-size: 0.8125rem;
  color: #888;
  margin-top: 0.25rem;
}

/* --- Track entry --- */
.track {
  margin-bottom: 1.5rem;
}

.track:last-child {
  margin-bottom: 0;
}

.track-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.track-number {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.6875rem;
  color: #c8c8c0;
  flex-shrink: 0;
}

.track-title {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  color: #2a2a28;
  letter-spacing: -0.01em;
}

.track-number {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.6875rem;
  color: #c0c0b8;
  flex-shrink: 0;
}

.track-title {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.track-meta {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.6875rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.track-desc {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

/* --- Genre filter --- */
.genre-filter {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-align: center;
}

.genre-sep {
  color: #d0d0c8;
}

.genre-link {
  cursor: pointer;
}

.genre-link:hover {
  color: #5b3a8c;
}

.genre-link.active {
  color: #5b3a8c;
  font-weight: 600;
}

/* --- Download link --- */
.download-link {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  color: #5b3a8c;
}

/* --- Pixel bullet list --- */
.pixel-list {
  list-style: none;
  padding: 0;
}

.pixel-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
}

.pixel-list li::before {
  content: "\266B";
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  color: #5b3a8c;
  top: 0.05rem;
}

/* --- License block --- */
.license {
  font-size: 0.8125rem;
  color: #666;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ecece8;
}

.license-symbol {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
}

/* --- Footer --- */
.footer {
  margin-top: 3rem;
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.6875rem;
  color: #bbb;
  letter-spacing: 0.04em;
}

/* --- Back link --- */
.back-link {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: #5b3a8c;
}

/* --- Guestbook entry --- */
.guestbook-empty {
  text-align: center;
  padding: 2rem 0;
  color: #bbb;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8125rem;
}

.guestbook-entry {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ecece8;
}

.guestbook-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.guestbook-author {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.guestbook-date {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.6875rem;
  color: #bbb;
  margin-bottom: 0.4rem;
}

.guestbook-message {
  font-size: 0.875rem;
  color: #444;
  line-height: 1.55;
}

.guestbook-source {
  margin-top: 0.35rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.6875rem;
}

.guestbook-source a {
  color: #bbb;
}

.guestbook-source a:hover {
  color: #5b3a8c;
}

/* --- Responsive --- */
@media (max-width: 520px) {
  body {
    padding: 1.25rem 0.75rem;
  }

  .nav-row {
    flex-direction: column;
    gap: 1rem;
  }

  .card-body {
    padding: 1rem 1.15rem;
  }

  .logo pre {
    font-size: 0.55rem;
  }
}
