:root {
  --paper: #f5f0e6;
  --paper-2: #ece4d4;
  --ink: #1c1a17;
  --muted: #6b645a;
  --maroon: #7a1a1a;
  --maroon-deep: #4f0f0f;
  --gold: #c9a84c;
  --green: #1f5e3a;
  --line: rgba(28, 26, 23, .12);
  --radius: 14px;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--maroon); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; }
[hidden] { display: none !important; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 3rem);
  background: rgba(245, 240, 230, .88);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 1.6rem; text-decoration: none; color: var(--maroon); letter-spacing: .02em; }
.top nav { display: flex; gap: clamp(.6rem, 2vw, 1.4rem); }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .3rem .1rem; border-bottom: 2px solid transparent; }
.top nav a:hover { border-color: var(--gold); }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
  padding: clamp(2.5rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
  max-width: 1200px; margin: 0 auto;
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--green); margin: 0 0 .8rem; }
.hero h1 { font-size: clamp(5rem, 14vw, 10rem); font-weight: 900; font-style: italic; color: var(--maroon); letter-spacing: -.02em; text-shadow: 4px 4px 0 var(--gold); }
.tagline { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; margin: .6rem 0 .8rem; }
.lede { color: var(--muted); max-width: 46ch; margin: 0 0 1.6rem; }
.cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn {
  display: inline-block; padding: .75rem 1.2rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem;
  background: var(--maroon); color: #fff; border: 2px solid var(--maroon); transition: transform .15s, background .15s;
}
.btn:hover { background: var(--maroon-deep); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--maroon); }
.btn.ghost:hover { background: rgba(122, 26, 26, .08); }
.hero-art { margin: 0; }
.hero-art img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(79, 15, 15, .55); transform: rotate(-2deg); }

/* sections */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: .4rem; }
.section h2::after { content: ""; display: block; width: 3.5rem; height: 5px; background: var(--gold); margin-top: .6rem; border-radius: 3px; }
.sub { color: var(--muted); margin: 0 0 1.8rem; }
.big { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 500; line-height: 1.35; margin: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-top: 1.2rem; }
.card p { margin: 0 0 .5rem; } .card p:last-child { margin: 0; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; margin-top: 1.5rem; }
.members { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.members li { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; }
.members img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 3px solid var(--paper-2); }
.members strong { display: block; font-weight: 600; }
.members span { color: var(--muted); font-size: .9rem; }

/* albums */
.albums { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.album { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.album-head { padding: 1.2rem 1.3rem .9rem; color: #fff; background: linear-gradient(135deg, var(--maroon), var(--maroon-deep)); }
.album:nth-child(2) .album-head { background: linear-gradient(135deg, #2a6f47, var(--green)); }
.album:nth-child(3) .album-head { background: linear-gradient(135deg, #b8963e, #8a6d22); }
.album:nth-child(4) .album-head { background: linear-gradient(135deg, #4a4642, #2b2926); }
.album[data-album="unrecorded"] .album-head { background: linear-gradient(135deg, #3d5a80, #274060); }
.album-head h3 { font-size: 1.6rem; font-weight: 800; }
.album-head .year { opacity: .8; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.tracks { list-style: none; margin: 0; padding: .4rem 0; counter-reset: t; }
.tracks li { counter-increment: t; display: flex; align-items: center; gap: .8rem; padding: .5rem 1.3rem; border-top: 1px solid var(--line); }
.tracks li::before { content: counter(t, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--muted); font-size: .8rem; min-width: 1.6rem; }
.tracks button { all: unset; flex-shrink: 0; cursor: pointer; font-weight: 600; color: var(--maroon); border-bottom: 1px dotted var(--gold); }
.tracks button:hover { color: var(--maroon-deep); border-bottom-style: solid; }
.tracks .plain { font-weight: 500; }
.tracks .note { color: var(--muted); font-size: .85rem; }

/* player */
.player {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; margin-bottom: 1.6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 50px -30px rgba(79, 15, 15, .35);
}
.player-main { display: grid; grid-template-columns: 160px 1fr; gap: 1.4rem; padding: 1.5rem; align-items: start; }
.art { width: 160px; height: 160px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; color: #fff; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 2.6rem; text-align: center; line-height: 1; padding: .6rem; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art[data-album="maybe-tomorrow"] { background: linear-gradient(135deg, var(--maroon), var(--maroon-deep)); }
.art[data-album="the-scoop"] { background: linear-gradient(135deg, #b8963e, #8a6d22); }
.art[data-album="otis-4"] { background: linear-gradient(135deg, #4a4642, #2b2926); }
.art[data-album="hands-down"] { background: #7a1a1a; padding: 0; }
.np h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; margin: .1rem 0 .1rem; }
.np .credit { margin-bottom: .9rem; }
.transport { display: flex; align-items: center; gap: .7rem; margin: .4rem 0 .8rem; }
.tbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.tbtn:hover { background: #e2d8c2; }
.tbtn.big { width: 64px; height: 64px; background: var(--maroon); color: #fff; }
.tbtn.big:hover { background: var(--maroon-deep); }
.ico-play { display: block; width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent currentColor; margin-left: 4px; }
.playing .ico-play { width: 16px; height: 18px; border: 0; margin: 0; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.seek { display: flex; align-items: center; gap: .6rem; font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--muted); }
.seek input, .vol input { flex: 1; accent-color: var(--maroon); }
.vol { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; color: var(--muted); max-width: 180px; }
.player-lyrics { background: var(--paper); border-left: 1px solid var(--line); padding: 1.5rem; max-height: 420px; overflow-y: auto; }
.player-lyrics .lyrics-body p { font-size: 1rem; }

.tracks li { cursor: default; }
.tracks .tk { all: unset; cursor: pointer; display: flex; align-items: center; gap: .7rem; flex: 1; min-width: 0; }
.tracks .tk .pl { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: var(--paper-2); display: grid; place-items: center; color: var(--maroon); }
.tracks .tk .pl::before { content: ""; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; margin-left: 2px; }
.tracks .tk:hover .pl { background: var(--maroon); color: #fff; }
.tracks .tk .txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tracks .tk .name { font-weight: 600; color: var(--ink); }
.tracks .tk .note { font-size: .8rem; }
.tracks li.now { background: rgba(201, 168, 76, .14); }
.tracks li.now .tk .pl { background: var(--maroon); color: #fff; }
.tracks li.now.playing .tk .pl::before { border: 0; width: 10px; height: 10px; background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65%); margin: 0; }
.tracks .dur { margin-left: auto; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.tracks .has-lyrics::after { content: "lyrics"; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); border: 1px solid currentColor; border-radius: 999px; padding: .05rem .4rem; margin-left: .3rem; }

.minibar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: .9rem; padding: .6rem clamp(1rem, 4vw, 3rem);
  background: rgba(245, 240, 230, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}
.mini-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.mini-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-text span { color: var(--muted); font-size: .8rem; }
.btn.small { padding: .45rem .9rem; font-size: .85rem; }
.mini-progress { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--line); }
.mini-progress i { display: block; height: 100%; width: 0; background: var(--maroon); }

/* gallery */
.gallery h3 { font-size: 1.15rem; font-weight: 800; margin: 1.8rem 0 .7rem; }
.gallery h3:first-child { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.grid button { all: unset; cursor: pointer; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--paper-2); display: block; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.grid button:hover img { transform: scale(1.04); }
.grid button:focus-visible { outline: 3px solid var(--gold); }
.grid .cap { position: absolute; inset: auto 0 0 0; padding: 1.4rem .6rem .5rem; font-size: .75rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .2s; }
.grid button:hover .cap { opacity: 1; }
.grid .missing img { filter: grayscale(1) contrast(.6); }
.grid .missing .cap { opacity: 1; }

/* lyrics drawer */
.drawer { position: fixed; inset: 0; z-index: 40; }
.scrim { position: absolute; inset: 0; background: rgba(28, 26, 23, .5); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); z-index: 1;
  background: var(--paper); padding: 2.2rem 2rem; overflow-y: auto; box-shadow: -20px 0 60px rgba(0,0,0,.25);
  animation: slide .25s ease-out;
}
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-panel h3 { font-size: 2rem; font-weight: 800; margin-bottom: .2rem; }
.credit { color: var(--muted); font-size: .9rem; margin: 0 0 1.4rem; }
.lyrics-body p { white-space: pre-line; margin: 0 0 1.1rem; font-family: var(--display); font-size: 1.08rem; line-height: 1.5; }
.lyrics-body .none { color: var(--muted); font-style: italic; }
.close { position: absolute; top: .8rem; right: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.08); font-size: 1.6rem; line-height: 1; cursor: pointer; color: inherit; z-index: 2; }
.close:hover { background: rgba(0,0,0,.16); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(12, 10, 9, .94); display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: min(1100px, 94vw); text-align: center; }
.lightbox img { max-width: 94vw; max-height: 80vh; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #fff; margin-top: .8rem; font-weight: 500; }
.lightbox figcaption small { display: block; color: rgba(255,255,255,.6); font-weight: 400; margin-top: .2rem; }
.lightbox .close { background: rgba(255,255,255,.12); color: #fff; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; cursor: pointer; }
.lightbox .nav:hover { background: rgba(255,255,255,.25); }
.lightbox .prev { left: 1rem; } .lightbox .next { right: 1rem; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 2rem clamp(1rem, 4vw, 3rem) 3rem; text-align: center; color: var(--muted); font-size: .9rem; }
.foot p { margin: .3rem 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; }
  .about-grid { grid-template-columns: 1fr; }
  .player { grid-template-columns: 1fr; }
  .player-main { grid-template-columns: 110px 1fr; gap: 1rem; padding: 1.1rem; }
  .art { width: 110px; height: 110px; font-size: 1.7rem; }
  .player-lyrics { border-left: 0; border-top: 1px solid var(--line); max-height: 300px; }
  .top nav a:nth-child(4), .top nav a:nth-child(5) { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .drawer-panel { animation: none; } }
