:root {
  --bg: #f2f0ea;
  --fg: #16151a;
  --dim: #6d6a64;
  --line: #d6d2c8;
  --accent: #0b8f9c;
  --alt: #e0245e;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist Pixel", ui-monospace, Menlo, Consolas, monospace;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

::selection { background: var(--fg); color: var(--bg); }

/* header */
.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.25rem;
}
.id { grid-column: 2; text-align: center; }

.logo {
  grid-column: 1;
  justify-self: start;
  width: clamp(72px, 10vw, 120px);
  line-height: 0;
}
.logo img {
  width: 100%;
  height: auto;
}

/* name */
.glitch {
  position: relative;
  font-size: clamp(2rem, 9vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: lowercase;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
}
.contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--dim);
  transition: color 0.15s;
}
.contact a:hover, .contact a:focus-visible { color: var(--fg); }
.contact svg { width: 20px; height: 20px; flex: none; }

/* music */
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.song {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.cover {
  position: relative;
  width: 96px;
  height: 96px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--fg);
  transition: transform 0.2s;
}
.song:hover .cover { transform: rotate(-1.5deg); }

/* latest release, bigger than the rest */
.tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.15rem 0.55rem;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}
.song.latest { grid-template-columns: 160px 1fr; gap: 1.75rem; margin-bottom: 0.75rem; }
.song.latest .cover { width: 160px; height: 160px; }
.song.latest .info h3 { font-size: 1.9rem; margin-bottom: 1rem; }
.song.latest .links svg { width: 32px; height: 32px; }

.info h3 {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.links { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; }
.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--dim);
  transition: color 0.15s, transform 0.15s;
}
.links a:hover, .links a:focus-visible { color: var(--fg); transform: translateY(-2px); }
.links a:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.links svg { width: 26px; height: 26px; flex: none; }
.links span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

footer {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  color: var(--dim);
  border-top: 1px solid var(--line);
}

@media (max-width: 520px) {
  .top { padding: 0.9rem; grid-template-columns: auto 1fr; gap: 0 1rem; align-items: start; }
  .id { grid-column: 2; text-align: left; }
  .contact { justify-content: flex-start; }
  .song { grid-template-columns: 72px 1fr; gap: 1rem; }
  .cover { width: 72px; height: 72px; }
  .glitch { font-size: 1.9rem; }
  .info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
  .song.latest { grid-template-columns: 112px 1fr; gap: 1.1rem; }
  .song.latest .cover { width: 112px; height: 112px; }
  .song.latest .info h3 { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover, .links a { animation: none; transition: none; }
}
