/* The River South — "Liner Notes"
   Built from the Follow the Light cover: charcoal, sepia, and one warm line of light.
   Fraunces for headlines, Inter for reading and controls. */

:root {
  --bg: #14110e;
  --bg-2: #18140f;
  --surface: #1e1a15;
  --line: #332c24;
  --text: #efe7da;
  --muted: #aca190;
  --light: #f2cf8a;
  --light-hover: #f7dca5;
  --light-dim: rgba(242, 207, 138, .13);
  --on-light: #1a140c;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --wrap: 1140px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--light); color: var(--on-light); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--light); color: var(--on-light); padding: 10px 14px; font: 600 14px/1 var(--sans); border-radius: 6px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: clamp(52px, 7vw, 92px); }
h2 { font-size: clamp(36px, 4.6vw, 54px); margin-bottom: 18px; }
h3 { font-size: 28px; }
.kicker { font: 600 12px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--light); margin: 0 0 18px; }
.lede { font-size: 21px; line-height: 1.6; }

/* Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(20, 17, 14, .84);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.wordmark { font: 500 15px/1 var(--serif); letter-spacing: .32em; text-transform: uppercase; text-decoration: none; margin: 0; }
.nav { display: flex; gap: 28px; font: 400 15px/1 var(--sans); }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 0; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav-toggle { display: none; }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 16px/1 var(--sans); padding: 15px 24px; min-height: 50px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent;
  text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-primary { background: var(--light); border-color: var(--light); color: var(--on-light); }
.btn-primary:hover { background: var(--light-hover); border-color: var(--light-hover); }
.text-link { font: 600 15px/1.4 var(--sans); color: var(--light); }

/* Hero ---------------------------------------------------------------- */
.hero { position: relative; padding: 72px 0 104px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 55% at 28% 45%, rgba(242, 207, 138, .10), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 64px; align-items: center; }

.hero-cover {
  position: relative; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.hero-cover:hover { transform: translateY(-4px); box-shadow: 0 40px 90px rgba(0, 0, 0, .6); }
/* One slow pass of light across the cover when the page opens. */
.hero-cover::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 240, 210, .18), transparent);
  animation: glint 1.8s .8s ease-out 1 forwards; pointer-events: none;
}
@keyframes glint { to { left: 130%; } }
.hero-cover-play {
  position: absolute; left: 18px; bottom: 18px; width: 60px; height: 60px; border-radius: 50%;
  background: var(--light); color: var(--on-light); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.hero-cover:hover .hero-cover-play, .hero-cover:focus-visible .hero-cover-play { opacity: 1; transform: none; }
.hero-cover-play svg { width: 24px; fill: currentColor; margin-left: 3px; }

.intro { font-size: 21px; color: var(--muted); margin: 22px 0 32px; max-width: 32ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { font: 400 14px/1.4 var(--sans); color: var(--muted); margin: 26px 0 0; letter-spacing: .02em; }

/* Sections ------------------------------------------------------------ */
.block { padding: 104px 0; border-top: 1px solid var(--line); }
.pull { background: var(--bg-2); }

/* Listen -------------------------------------------------------------- */
.listen-layout { display: grid; grid-template-columns: 1fr; gap: 8px; }
.side { max-width: 640px; margin-bottom: 32px; }
.side-note { color: var(--muted); font-size: 18px; margin: 0; }
.listen-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }

.player-slot { min-height: 1px; }
.player-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.player-screen { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.player-screen iframe, #yt-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-poster {
  position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer;
  background: #000; display: grid; place-items: center;
}
.player-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .6; transition: opacity .3s; }
.player-poster:hover img { opacity: .75; }
.poster-play {
  position: absolute; width: 76px; height: 76px; border-radius: 50%;
  background: var(--light); color: var(--on-light); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .2s var(--ease);
}
.player-poster:hover .poster-play { transform: scale(1.06); }
.poster-play svg { width: 30px; fill: currentColor; margin-left: 4px; }
.is-started .player-poster { display: none; }

.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; }
.now { margin: 0; font: 400 14px/1.35 var(--sans); color: var(--muted); min-width: 0; }
.now b { color: var(--text); font: 500 19px/1.3 var(--serif); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.controls { display: flex; align-items: center; gap: 2px; flex: none; }
.ctrl {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--text);
  transition: background .2s, color .2s;
}
.ctrl:hover { background: rgba(255, 255, 255, .06); }
.ctrl svg { width: 20px; height: 20px; fill: currentColor; }
.ctrl-main { width: 48px; height: 48px; background: var(--light); color: var(--on-light); }
.ctrl-main:hover { background: var(--light-hover); }
.ctrl-main .i-pause, .is-playing .ctrl-main .i-play { display: none; }
.is-playing .ctrl-main .i-pause { display: block; }
.ctrl-repeat { color: var(--muted); }
.ctrl-repeat[aria-pressed="true"] { color: var(--light); }
.ctrl-close { display: none; }

/* Docked mini player: the same element pinned to the viewport, so the video keeps playing. */
.player-card.is-docked {
  position: fixed; z-index: 40; right: 20px; bottom: 20px; width: 340px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  animation: dock-in .35s var(--ease);
}
.player-card.is-docked .player-bar { padding: 10px 10px 10px 14px; }
.player-card.is-docked .now b { font-size: 16px; }
.player-card.is-docked .ctrl-close { display: grid; }
.player-card.is-docked .ctrl-repeat { display: none; }
@keyframes dock-in { from { opacity: 0; transform: translateY(16px); } }

.tracks { list-style: none; margin: 0; padding: 0; }
.tracks button {
  width: 100%; display: grid; grid-template-columns: 40px 1fr auto; align-items: baseline;
  padding: 13px 14px; border: 0; border-radius: 8px; background: none;
  text-align: left; cursor: pointer; transition: background .2s;
}
.tracks button:hover { background: var(--surface); }
.tracks .n { position: relative; font: 400 14px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.tracks .t { font: 400 18px/1.35 var(--sans); }
.tracks .d { font: 400 14px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.tracks [aria-current="true"] { background: var(--light-dim); }
.tracks [aria-current="true"] .t { color: var(--light); }
.tracks [aria-current="true"] .n { color: transparent; }

/* Small equalizer on the current track. It only moves while music is playing. */
.eq { display: none; position: absolute; left: 0; bottom: -1px; gap: 2px; align-items: flex-end; height: 14px; }
.tracks [aria-current="true"] .eq { display: inline-flex; }
.eq i { width: 3px; height: 4px; background: var(--light); border-radius: 1px; }
.is-playing .eq i { animation: eq 1s ease-in-out infinite alternate; }
.is-playing .eq i:nth-child(2) { animation-delay: -.4s; }
.is-playing .eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }

/* Videos and singles --------------------------------------------------- */
.feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; margin-top: 16px; }
.lite-yt { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.lite-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.lite-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lite-play {
  position: absolute; inset: 0; margin: auto; width: 80px; height: 80px; border-radius: 50%;
  border: 0; background: var(--light); color: var(--on-light); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .2s var(--ease);
}
.lite-play:hover { transform: scale(1.06); }
.lite-play svg { width: 30px; fill: currentColor; margin-left: 4px; }
.feature-copy h3 { font-size: clamp(40px, 4.6vw, 56px); margin-bottom: 12px; }
.feature-copy p { margin: 0 0 16px; color: var(--muted); }
.feature-copy .kicker { color: var(--light); }

.singles { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.single {
  width: 100%; height: 100%; padding: 12px 12px 18px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: transform .25s var(--ease), border-color .25s;
}
.single:hover { transform: translateY(-3px); border-color: rgba(242, 207, 138, .4); }
.single-art { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #000; }
.single-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.single:hover .single-art img { transform: scale(1.04); }
.single-art::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a140c' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50% / 18px no-repeat;
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s var(--ease);
}
.single:hover .single-art::after, .single:focus-visible .single-art::after, .single[aria-current="true"] .single-art::after { opacity: 1; transform: none; }
.single[aria-current="true"] { border-color: var(--light); }
.single h3 { font-size: 24px; margin: 16px 6px 6px; }
.single small { display: block; margin: 0 6px; font: 400 14px/1.3 var(--sans); color: var(--muted); }

/* About --------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-photo { margin: 0; }
.about-photo img { border-radius: 10px; }
.about-photo figcaption { font: 400 13px/1.4 var(--sans); color: var(--muted); margin-top: 10px; }
.about-copy p { margin: 0 0 18px; }
.note { margin-top: 28px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--light); border-radius: 8px; }
.note p { margin: 0; color: var(--muted); }
.note .note-title { font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--light); margin-bottom: 6px; }

/* Press --------------------------------------------------------------- */
.quote { margin: 0 0 72px; }
.quote:last-of-type { margin-bottom: 0; }
.quote blockquote { margin: 0; }
.quote blockquote::before { content: "“"; display: block; font: 400 84px/.6 var(--serif); color: var(--light); margin-bottom: 10px; }
.quote blockquote p { margin: 0; font: 400 clamp(21px, 2.3vw, 27px)/1.5 var(--serif); max-width: 46em; }
.cite { font: 400 15px/1.6 var(--sans); margin-top: 22px; color: var(--muted); }
.cite b { color: var(--text); font-weight: 600; }
.cite a { color: var(--light); }

/* Contact ------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-copy p { margin: 0 0 16px; }
.social { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-block; font: 500 14px/1 var(--sans); padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; transition: border-color .2s, color .2s; }
.social a:hover { border-color: var(--light); color: var(--light); }
.form-shell { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.form-title { font-size: 28px; margin-bottom: 24px; }
.field { margin-bottom: 20px; }
.field label { display: block; font: 600 14px/1.4 var(--sans); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: 400 17px/1.5 var(--sans); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--light); box-shadow: 0 0 0 3px var(--light-dim); }
.field [aria-invalid="true"] { border-color: #e58a6f; }
.field-hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: 14px; color: #f0a48c; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { margin-top: 4px; }
.contact-form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.form-status { margin: 16px 0 0; font-size: 16px; min-height: 1.5em; }
.form-status.is-error { color: #f0a48c; }
.form-done { text-align: left; }
.form-done h3 { font-size: 30px; margin-bottom: 10px; }
.form-done p { margin: 0; color: var(--muted); }

/* Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 72px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: end; }
.site-footer .muted { font: 400 14px/1.5 var(--sans); margin: 12px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font: 400 14px/1 var(--sans); }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Gentle reveal on scroll (only when JS is running) -------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive ---------------------------------------------------------- */
@media (max-width: 880px) {
  :root { --header-h: 60px; }
  body { font-size: 17px; }
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
    font: 500 14px/1 var(--sans); border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer;
  }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }

  .hero { padding: 36px 0 72px; }
  .hero-grid, .listen-grid, .feature, .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .hero-cover { max-width: 440px; }
  .hero-cover-play { opacity: 1; transform: none; width: 54px; height: 54px; }
  .intro { font-size: 19px; }
  .block { padding: 72px 0; }
  .singles { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
  .single h3 { font-size: 21px; }
  .single-art::after { opacity: 1; transform: none; width: 36px; height: 36px; background-size: 15px; }
  .lede { font-size: 19px; }
  .form-shell { padding: 22px 18px; }
  .quote { margin-bottom: 56px; }

  .player-card.is-docked {
    left: 8px; right: 8px; bottom: 8px; width: auto;
    display: grid; grid-template-columns: 200px 1fr; align-items: center;
  }
  .player-card.is-docked .player-bar { flex-direction: column; align-items: stretch; padding: 6px 8px; gap: 2px; }
  .player-card.is-docked .now-label { display: none; }
  .player-card.is-docked .ctrl { width: 36px; height: 36px; }
  .player-card.is-docked .ctrl-main { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .player-card.is-docked { grid-template-columns: 150px 1fr; }
  .player-card.is-docked [data-action="prev"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
