/* ============================================================
   LIQUID ELECTRIC — style.css
   One file, no build step. Design tokens up top; change a hex
   here and it changes everywhere.
   ============================================================ */

:root {
  --ground:   #171209;  /* umber card-stock ground */
  --line:     #2a2418;  /* hairlines, borders */
  --bone:     #ece3d0;  /* primary type */
  --ink:      #cfc5ae;  /* body prose, slightly quieter */
  --faded:    #8a7f68;  /* metadata, captions */
  --electric: #5da8ff;  /* the one accent. marks LIVE things only:
                           links, current nav, playhead, the wire */
  --serif: 'Newsreader', Georgia, serif;
  --mono:  'IBM Plex Mono', ui-monospace, monospace;
  --measure: 62ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ground);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* faint grain over the ground — the entire physicality budget */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 2; }

.frame {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- masthead + nav ---------- */

header {
  padding-top: 32px;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.wordmark {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--bone);
  text-decoration: none;
}

nav {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--faded);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

nav a:hover, nav a:focus-visible { color: var(--bone); }
nav a[aria-current="page"] { color: var(--electric); }

/* the wire — flat hairline until sound flows through it (player.js) */
#wire {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: 20px;
}

/* ---------- sections ---------- */

section { padding: 56px 0; border-bottom: 0.5px solid var(--line); }
section:last-of-type { border-bottom: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--electric);
  text-transform: uppercase;
  margin-bottom: 24px;
}

h1 {
  font-weight: 400;
  font-size: clamp(27px, 5vw, 34px);
  line-height: 1.35;
  max-width: 18em;
}

h1 em, .accent { font-style: italic; color: var(--electric); }

h2 {
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  margin: 48px 0 16px;
}

h2:first-of-type { margin-top: 0; }

p { max-width: var(--measure); color: var(--ink); margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

.lede { font-size: 19px; color: var(--bone); }

a { color: var(--electric); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover, a:focus-visible { border-bottom-color: var(--electric); }
a:focus-visible { outline: 1px solid var(--electric); outline-offset: 3px; }

.meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--faded);
}

.continue {
  display: inline-block;
  margin-top: 20px;
  font-style: italic;
  color: var(--faded);
}
.continue:hover { color: var(--electric); }

/* ---------- artist liner-note card ---------- */

.artist {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 40px 0;
  border-bottom: 0.5px solid var(--line);
}
.artist:first-of-type { padding-top: 0; }
.artist:last-of-type { border-bottom: none; padding-bottom: 0; }

.artist img, .artist .photo-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  /* the duotone: unifies mixed photo quality into one printed set.
     remove these two lines on any .artist img to restore full colour */
  filter: grayscale(1) sepia(0.35) brightness(0.9) contrast(1.05);
  opacity: 0.92;
}

.photo-placeholder {
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faded);
}

.artist-body { min-width: 0; flex: 1; }

.artist-name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--bone);
  margin-bottom: 12px;
}

.artist-name a { margin-left: 10px; }

.epigraph {
  font-size: 21px;
  line-height: 1.45;
  font-style: italic;
  color: var(--bone);
  max-width: 30em;
  margin-bottom: 14px;
}

.artist-bio { font-size: 15px; color: var(--faded); margin-bottom: 18px; }

/* ---------- custom player (built by player.js) ---------- */

.le-player {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0.5px solid var(--line);
  border-radius: 4px;
  padding: 12px 16px;
  max-width: 420px;
}

.le-play {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--electric);
  width: 22px;
  height: 22px;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.le-play svg { width: 14px; height: 14px; fill: currentColor; }
.le-play:focus-visible { outline: 1px solid var(--electric); outline-offset: 3px; }

.le-track {
  flex: 1;
  height: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.le-rail { width: 100%; height: 2px; background: var(--line); position: relative; }
.le-progress { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--electric); }

.le-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faded);
  flex-shrink: 0;
  min-width: 72px;
  text-align: right;
}

.le-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faded);
  margin: 0 0 8px;
}

/* ---------- spotify embed ---------- */

.spotify-embed { max-width: var(--measure); margin-top: 32px; }
.spotify-embed iframe { border-radius: 8px; border: 0; width: 100%; }

/* ---------- process page details ---------- */

dl.specs { max-width: var(--measure); }
dl.specs dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--electric);
  text-transform: uppercase;
  margin: 28px 0 8px;
}
dl.specs dt:first-of-type { margin-top: 0; }
dl.specs dd { color: var(--ink); }

/* ---------- footer / colophon ---------- */

footer {
  border-top: 0.5px solid var(--line);
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
}

footer .contact a { color: var(--bone); }
footer .contact a:hover { color: var(--electric); }
footer .affiliate { font-size: 11px; color: var(--faded); }
footer .affiliate a { color: var(--faded); }
footer .affiliate a:hover { color: var(--electric); }

@media (max-width: 560px) {
  .artist { flex-direction: column; }
  .le-player { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
