:root {
  --bg0: #0f1115;
  /* memory-white */
  --paper: #e7e3d7;
  --paper-rgb: 231 227 215;
  /* paper */
  --green: #9bbfb3;
  --green-rgb: 155 191 179;
  /* muted green */
  --mid: #4f645e;
  --mid-rgb: 79 100 94;
  /* concrete mid */
  --ink: #f2f4f7;
  --ink-rgb: 242 244 247;
  /* deep concrete */
  --line: rgb(var(--ink-rgb) / 0.14);
  --grid: rgb(var(--ink-rgb) / 0.06);
  --accent: #ac4c3e;
  /* oxide */
  --radius: 14px;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: var(--bg0);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "BIZ UDPMincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  min-height: 100svh;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

/* "Memory" intro */
body.is-loading {
  background: transparent;
}

body.is-loading::before {
  background: var(--bg0);
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.22);
}

a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 72px;
}

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heroLogo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.heroLogo img {
  width: min(70vw, 520px);
  height: auto;
  display: block;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  filter: blur(6px);
  transition: opacity 1.2s ease, filter 1.4s ease;
}

body.is-ready .logo {
  opacity: 1;
  filter: blur(0);
}

.logo img {
  height: 34px;
  width: auto;
  display: block;
  opacity: .95;
}

.logo .name {
  font-weight: 650;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  opacity: .92;
  justify-content: flex-end;
}

.main {
  opacity: 0;
  transition: opacity 1.2s ease;
}

body.is-ready .main {
  opacity: 1;
  transition-delay: .3s;
}

.panel {
  border: 1px solid var(--line);
  background: rgb(var(--paper-rgb) / 0.22);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(2px);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 18px;
  align-items: start;
}

.cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(31, 63, 69, .18);
  display: block;
  background: rgb(var(--paper-rgb) / 0.08);
}

h1 {
  margin: 2px 0 10px;
  font-size: clamp(22px, 2.9vw, 38px);
  line-height: 1.15;
  letter-spacing: .02em;
  font-weight: 720;
}

.lead {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.9;
  color: rgb(var(--ink-rgb) / 0.92);
  max-width: 54ch;
}

.rule {
  height: 1px;
  background: rgb(var(--ink-rgb) / 0.16);
  margin: 14px 0 14px;
}

.subhead {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgb(var(--ink-rgb) / 0.78);
  margin: 0 0 10px;
}

.trackList {
  display: grid;
  gap: 10px;
}

.trackBtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 63, 69, .20);
  background: rgb(var(--paper-rgb) / 0.08);
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
}

.trackBtn:hover {
  border-color: rgba(31, 63, 69, .34);
}

.trackBtn[aria-pressed="true"] {
  border-color: rgba(31, 63, 69, .44);
  background: rgb(var(--paper-rgb) / 0.14);
}

.trackMeta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.trackTitle {
  font-weight: 650;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trackFile {
  font-size: 12px;
  color: rgb(var(--ink-rgb) / 0.70);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  font-size: 12px;
  color: rgb(var(--ink-rgb) / 0.78);
  border: 1px solid rgba(31, 63, 69, .18);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgb(var(--paper-rgb) / 0.06);
  flex: 0 0 auto;
}

audio {
  width: 100%;
  margin-top: 10px;
  accent-color: var(--mid);
  filter: saturate(.9);
}

/* Lyrics: 3 lines height + scroll */
.lyricsBox {
  border: 1px solid rgba(31, 63, 69, .16);
  background: rgb(var(--paper-rgb) / 0.08);
  border-radius: 12px;
  padding: 12px;
}

.lyricsTitle {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.lyricsTitle strong {
  font-size: 13px;
  letter-spacing: .02em;
}

.lyricsTitle span {
  font-size: 12px;
  color: rgb(var(--ink-rgb) / 0.72);
}

.lyrics {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgb(var(--ink-rgb) / 0.92);

  /* ~9 lines */
  max-height: calc(1.8em * 18);
  overflow: auto;
  padding-right: 6px;
  white-space: pre-wrap;
}

.twoColBelow {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.linksBlock {
  padding: 0;
  display: grid;
  gap: 14px;
  justify-items: end;
}

.linkList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: center;
  justify-items: end;
}

.iconLink {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 0;
  border-bottom: 0;
}

.iconLink:hover {
  color: var(--accent);
}

.iconLink img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.subscriptionBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgb(172 76 62 / 0.55);
  background: var(--ink);
  color: var(--bg0);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  border-bottom: 0;
}

.subscriptionBtn:hover {
  transform: translateY(-1px);
  border-color: rgb(172 76 62 / 0.8);
  box-shadow: 0 14px 28px rgb(0 0 0 / 0.4);

}

.subscriptionBtn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgb(0 0 0 / 0.32);
}

.yt {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: rgb(var(--paper-rgb) / 0.10);
}

footer {
  margin-top: 42px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgb(var(--ink-rgb) / 0.75);
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .twoColBelow {
    grid-template-columns: 1fr;
  }
}
