/* Colours and spacing live here as variables so you can retune the whole site
   by changing a few values. The second block is used when the visitor's
   system is in dark mode. */
:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --line: #e2e2e2;
  --gap: 1.25rem;
  --max-width: 1100px;
  font-family: system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --text: #ececec;
    --muted: #9a9a9a;
    --line: #2c2c2c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; }

/* ---------- Header + hamburger ---------- */
header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}
header h1 { margin: 0; font-size: 1.25rem; font-weight: 600; }

#menu-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
#menu-button span {          /* the three bars */
  display: block;
  height: 2px;
  background: var(--text);
}

nav {
  border-bottom: 1px solid var(--line);
}
nav a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
}
nav a[aria-current="page"] { font-weight: 600; }
nav a:hover { background: var(--line); }

/* ---------- Content ---------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--gap) 1rem 3rem;
}
main h2 { margin-top: 0; }

.empty { color: var(--muted); }

/* Image grid used by Illustrations and VRC Assets.
   auto-fill + minmax = as many columns as fit, each at least 240px wide. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
}
.grid figure { margin: 0; }
.grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.grid figcaption { margin-top: 0.4rem; }
.grid .subtitle { display: block; font-size: 0.85rem; color: var(--muted); }
.grid .price { display: block; margin-top: 0.15rem; color: var(--muted); }
.grid a { text-decoration: none; }
.grid a:hover figcaption { text-decoration: underline; }

/* Music list */
.tracks {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.track {
  padding-bottom: var(--gap);
  border-bottom: 1px solid var(--line);
}
.track h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.track audio { width: 100%; }
.track video,
.track iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 4px;
}
.download { display: inline-block; margin-top: 0.4rem; color: var(--muted); }
