/* NEON MICHI 道 — shared styles
   Palette taken from the original page (blue title, red call to action)
   and the artwork (deep indigo night, gold light). */

:root {
  --night: #0c0d24;
  --night-2: #14163a;
  --line: #2a2d5c;
  --text: #e9e9f5;
  --muted: #a9abcc;
  --blue: #4aa8ff;
  --gold: #f2b84b;
  --red: #d42b45;
  --red-hover: #e23a55;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --jp: "Hiragino Mincho ProN", "Yu Mincho", "MS Mincho", "MS Gothic", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { color: #86c4ff; }

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

.wrap {
  width: min(100% - 2.5rem, 46rem);
  margin-inline: auto;
}

.jp { font-family: var(--jp); font-weight: 400; }

/* ---------- Landing page ---------- */

.landing { text-align: center; padding-block: clamp(2.5rem, 8vw, 5rem) 4rem; }

.landing h1 {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 10vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--blue);
  text-shadow: 0 0 28px rgba(74, 168, 255, 0.45);
}

.landing h1 .jp { font-size: 1.08em; }

.landing .intro {
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  text-wrap: pretty;
}

.landing .terms-link { margin: 0 0 2rem; font-size: 1rem; }

.enter {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 8px 28px rgba(212, 43, 69, 0.35);
  transition: background-color 0.15s, box-shadow 0.15s;
}
.enter:hover { background: var(--red-hover); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset, 0 10px 34px rgba(226, 58, 85, 0.5); }

.hero {
  width: min(100%, 36rem);
  margin: 3rem auto 0;
}
.hero img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 0 80px rgba(86, 98, 255, 0.35), 0 0 0 1px var(--line);
}

/* ---------- Library page ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--night-2);
}
.site-head .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding-block: 1rem;
  width: min(100% - 2.5rem, 62rem);
}
.brand {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--blue);
  text-decoration: none;
  text-shadow: 0 0 16px rgba(74, 168, 255, 0.4);
  white-space: nowrap;
}
.site-head nav { font-family: var(--sans); font-size: 0.95rem; }

.page { width: min(100% - 2.5rem, 62rem); margin-inline: auto; padding-block: 2.5rem 4rem; }

.page h1 {
  margin: 0 0 0.5rem;
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
}
.page .lede { max-width: 40rem; margin: 0 0 2.5rem; color: var(--muted); }

.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.track {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem 1.5rem;
  align-items: center;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.track .cover { grid-row: 1 / span 2; }
.track .cover img {
  width: 7.5rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--line);
}

.track h2 { margin: 0; font-size: 1.35rem; font-weight: 400; line-height: 1.25; }
.track .meta { margin: 0.15rem 0 0; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }

.track .controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  grid-column: 2;
}
.track audio { flex: 1 1 16rem; min-width: 0; height: 40px; }

.download {
  flex: none;
  display: inline-block;
  padding: 0.55rem 1.2rem;
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.15s;
}
.download:hover { background: var(--red-hover); color: #fff; }

.artwork { margin-top: 3.5rem; }
.artwork h2 { margin: 0 0 1rem; font-size: 1.35rem; font-weight: 400; }
.artwork ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.artwork img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.artwork a { display: block; }
.artwork a:hover img { box-shadow: 0 0 0 2px var(--blue), 0 0 30px rgba(74, 168, 255, 0.35); }

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}
.site-foot p { margin: 0.25rem 0; }

/* ---------- Terms page ---------- */

.terms { max-width: 44rem; }
.terms h1 { font-size: clamp(1.4rem, 3.6vw, 1.8rem); line-height: 1.3; font-weight: 700; margin-bottom: 2rem; }
.terms h2 { margin: 2.25rem 0 0.5rem; font-size: 1.3rem; font-weight: 700; }
.terms p, .terms li { text-wrap: pretty; }
.terms ul { padding-left: 1.25rem; margin: 0.5rem 0 0; }
.terms li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.terms .lead-in { margin: 0 0 0.25rem; font-weight: 700; }

/* ---------- Small screens ---------- */

@media (max-width: 34rem) {
  .track { grid-template-columns: 5rem 1fr; gap: 0.5rem 1rem; }
  .track .cover img { width: 5rem; }
  .track .controls { grid-column: 1 / -1; }
  .artwork ul { gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
