/* Luxiah — light, clean, lavender accent, pixel-art logo treated as a motif. */
:root {
  --lav: #887bb0;          /* brand lavender (from the logo) */
  --lav-deep: #6a5d95;
  --lav-ink: #4f4472;
  --lav-tint: #efecf7;
  --lav-tint-2: #e2ddf1;
  --bg: #fbfaff;
  --paper: #ffffff;
  --ink: #221d33;
  --ink-2: #5d5771;
  --line: #e6e2f0;
  --shadow: 0 10px 30px rgba(74, 62, 120, .10);
  --radius: 14px;
  --maxw: 1080px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Silkscreen", "Inter", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--lav-deep); text-decoration: none; }
a:hover { color: var(--lav-ink); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.muted { color: var(--ink-2); }
.small { font-size: .92rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .95rem; color: var(--ink-2); }
.eyebrow { font-family: var(--pixel); font-size: .78rem; letter-spacing: .04em; color: var(--lav); margin: 0 0 10px; text-transform: lowercase; }

/* pixel play glyph: a chunky triangle built from box-shadows so it matches the logo's stepped edges */
.px-play { display: inline-block; width: 4px; height: 4px; background: currentColor; position: relative; margin: 0 10px 0 4px; vertical-align: -1px;
  box-shadow: 0 -8px 0 currentColor, 0 -4px 0 currentColor, 0 4px 0 currentColor, 0 8px 0 currentColor,
              4px -4px 0 currentColor, 4px 0 0 currentColor, 4px 4px 0 currentColor, 8px 0 0 currentColor; }
.playing .px-play { width: 4px; height: 16px; margin: 0 12px 0 4px; box-shadow: 8px 0 0 currentColor; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px 24px;
  background: rgba(251, 250, 255, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.brand-mark { image-rendering: pixelated; }
.nav { display: flex; gap: 18px; margin-left: auto; font-weight: 500; font-size: .95rem; }
.nav a { color: var(--ink-2); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--ink); border-color: var(--lav); }
.top-links { display: flex; gap: 8px; }
.top-links a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 9px; color: var(--ink-2); border: 1px solid transparent; }
.top-links a:hover { background: var(--lav-tint); color: var(--lav-ink); border-color: var(--lav-tint-2); }
.top-links svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 120px; }
.section { padding: 72px 0 0; }
.section-head { max-width: 620px; margin-bottom: 28px; }
.section-head .muted { margin: 10px 0 0; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 48px; align-items: center; padding: 64px 0 24px; }
.hero-logo img { width: 100%; height: auto; border-radius: 22px; image-rendering: pixelated; box-shadow: var(--shadow); }
.hero-copy .support { font-size: 1.15rem; color: var(--ink-2); margin: 18px 0 26px; max-width: 34rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font: 600 .95rem var(--sans); cursor: pointer; transition: .15s; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.btn:hover { border-color: var(--lav); color: var(--lav-ink); transform: translateY(-1px); }
.btn.primary { background: var(--lav); border-color: var(--lav); color: #fff; }
.btn.primary:hover { background: var(--lav-deep); border-color: var(--lav-deep); color: #fff; }
.btn.small { padding: 8px 12px; font-size: .85rem; }

/* ---------- tracks ---------- */
.tracks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; box-shadow: var(--shadow); }
.track { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); transition: background .15s; }
.track:first-child { border-top: 0; }
.track:hover { background: var(--lav-tint); }
.track.current { background: var(--lav-tint); box-shadow: inset 4px 0 0 var(--lav); }
.t-play { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--lav-deep); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.t-play:hover, .track.current .t-play { background: var(--lav); border-color: var(--lav); color: #fff; }
.t-play:disabled { opacity: .45; cursor: default; }
.t-title { font-weight: 600; }
.t-from { color: var(--ink-2); font-size: .92rem; }
.t-dur { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: .92rem; min-width: 3.2em; text-align: right; }
.t-ext { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.t-note { grid-column: 2 / -1; font-size: .82rem; color: var(--ink-2); margin-top: -6px; }

/* ---------- work grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.project { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, border-color .18s; color: inherit; }
.project:hover { transform: translateY(-3px); border-color: var(--lav); color: inherit; }
.cover { aspect-ratio: 630 / 500; background: var(--lav-tint); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.cover img.px { image-rendering: pixelated; }
.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.p-top h3 { font-size: 1.12rem; }
.p-year { font-family: var(--pixel); font-size: .72rem; color: var(--lav); }
.p-jam { font-size: .85rem; color: var(--ink-2); }
.p-blurb { font-size: .95rem; margin: 2px 0 6px; }
.roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.role { font-size: .74rem; font-weight: 600; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; background: var(--lav-tint); color: var(--lav-ink); border: 1px solid var(--lav-tint-2); }
.role.music { background: var(--lav); color: #fff; border-color: var(--lav); }
.p-team { font-size: .8rem; color: var(--ink-2); }

/* ---------- about ---------- */
.about-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.about-text p { font-size: 1.05rem; margin: 0 0 16px; }
.about-photo { width: 100%; border-radius: var(--radius); margin-bottom: 18px; box-shadow: var(--shadow); }
.about-side { display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.card .btn { margin-top: 10px; }
.does { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.does li { padding-left: 18px; position: relative; }
.does li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--lav); }

/* ---------- contact ---------- */
.contact-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.links { display: flex; gap: 10px; flex-wrap: wrap; }
.links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 600; font-size: .92rem; }
.links a:hover { border-color: var(--lav); color: var(--lav-ink); }
.links svg { width: 18px; height: 18px; fill: currentColor; color: var(--lav-deep); }

.foot { max-width: var(--maxw); margin: 0 auto; padding: 24px 24px 130px; display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .9rem; border-top: 1px solid var(--line); }
.foot img { image-rendering: pixelated; }

/* ---------- persistent player ---------- */
.player { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(1000px, calc(100% - 24px)); z-index: 30;
  display: grid; grid-template-columns: auto auto auto minmax(120px, 1fr) minmax(140px, 2fr) auto auto auto; gap: 12px; align-items: center;
  padding: 10px 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(74, 62, 120, .18); transition: transform .25s, opacity .25s; }
.player[hidden] { display: none; }
.p-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--lav-deep); cursor: pointer; font-size: .7rem; display: inline-flex; align-items: center; justify-content: center; }
.p-btn:hover { border-color: var(--lav); }
.p-play { background: var(--lav); color: #fff; border-color: var(--lav); width: 44px; height: 44px; }
.p-play:hover { background: var(--lav-deep); }
.p-meta { min-width: 0; }
.p-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-from { font-size: .82rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-bar { height: 14px; border-radius: 4px; background: var(--lav-tint-2); position: relative; cursor: pointer; overflow: hidden;
  /* stepped fill so it reads as pixels */
  background-image: repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,255,255,.55) 6px 8px); }
.p-fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--lav); }
.p-time { font-variant-numeric: tabular-nums; font-size: .82rem; color: var(--ink-2); white-space: nowrap; }
.p-link { font-size: .82rem; font-weight: 600; white-space: nowrap; }
/* volume: pixel speaker glyph + a slider styled like the seek bar */
.p-vol { display: flex; align-items: center; gap: 8px; }
.p-mute { width: 34px; height: 34px; }
.vol-icon { display: inline-block; width: 4px; height: 8px; background: currentColor; position: relative; margin: 0 14px 0 2px;
  box-shadow: 4px -2px 0 currentColor, 4px 2px 0 currentColor, 4px -4px 0 currentColor, 4px 4px 0 currentColor, 8px -6px 0 currentColor, 8px 6px 0 currentColor, 12px -4px 0 currentColor, 12px 0 0 currentColor, 12px 4px 0 currentColor; }
.muted-audio .vol-icon { box-shadow: 4px -2px 0 currentColor, 4px 2px 0 currentColor, 4px -4px 0 currentColor, 4px 4px 0 currentColor, 10px -4px 0 currentColor, 14px 0 0 currentColor, 10px 4px 0 currentColor, 12px -2px 0 currentColor, 12px 2px 0 currentColor; }
.p-slider { -webkit-appearance: none; appearance: none; width: 96px; height: 14px; background: var(--lav-tint-2); border-radius: 4px; outline: none; cursor: pointer;
  background-image: linear-gradient(var(--lav), var(--lav)), repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,255,255,.55) 6px 8px);
  background-size: var(--vol, 100%) 100%, auto; background-repeat: no-repeat; }
.p-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 18px; background: var(--lav-deep); border: 2px solid #fff; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.p-slider::-moz-range-thumb { width: 10px; height: 18px; background: var(--lav-deep); border: 2px solid #fff; border-radius: 3px; }
.p-slider:focus-visible { box-shadow: 0 0 0 3px rgba(136,123,176,.35); }

.toast { position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .9rem; z-index: 40; box-shadow: var(--shadow); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .hero-logo { max-width: 260px; }
  .about-body { grid-template-columns: 1fr; }
  .nav { display: none; }
  .player { grid-template-columns: auto auto auto 1fr auto auto; grid-template-areas: "prev play next meta time vol" "bar bar bar bar bar bar"; gap: 8px 10px; bottom: 10px; }
  #pPrev { grid-area: prev; } #pPlay { grid-area: play; } #pNext { grid-area: next; } .p-meta { grid-area: meta; }
  .p-time { grid-area: time; } .p-bar { grid-area: bar; } .p-link { display: none; } .p-vol { grid-area: vol; } .p-slider { width: 64px; }
}
@media (max-width: 520px) {
  .track { grid-template-columns: 44px 1fr auto; }
  .t-dur { display: none; }
  main { padding-left: 16px; padding-right: 16px; }
  .top { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .project { transition: none; } }
