/* Pheasant — night-forest palette pulled from the cover art */
@font-face { font-family: "Archivo Narrow"; src: url("fonts/archivonarrow-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("fonts/archivonarrow-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mr Dafoe"; src: url("fonts/mrdafoe.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --night: #07040d;        /* page */
  --dusk: #120a22;         /* panels */
  --violet: #3c0c77;       /* the sky in the art */
  --magenta: #d63cf0;      /* the pines */
  --glow: #5cfb48;         /* the outline on the bird; the old site's link colour */
  --ink: #f4f0fa;
  --mute: #a99bbd;
  --line: rgba(244, 240, 250, 0.14);
  --narrow: "Archivo Narrow", "Arial Narrow", sans-serif;
  --hand: "Mr Dafoe", cursive;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 19px/1.5 var(--narrow);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--glow); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-head {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
}
.site-head .mark {
  font: 700 15px/1 var(--narrow); letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.site-head nav { display: flex; gap: clamp(14px, 3vw, 34px); }
.site-head nav a {
  font: 700 15px/1 var(--narrow); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent;
}
.site-head nav a:hover { border-color: var(--ink); }
.site-head nav a[aria-current="page"] { color: var(--glow); border-color: var(--glow); }
.home .site-head .mark { visibility: hidden; } /* the art carries the name */

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; background: var(--violet); }
.hero picture img { width: 100%; height: min(92vh, 66.6vw); min-height: 340px; object-fit: cover; object-position: 50% 40%; }
.hero::after { /* sink the art into the page */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(to bottom, transparent, var(--night));
  pointer-events: none;
}
.motes { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.motes i {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 8px 2px rgba(92, 251, 72, 0.55);
  opacity: 0; animation: mote 9s ease-in-out infinite;
}
@keyframes mote {
  0%   { opacity: 0; transform: translate(0, 0); }
  30%  { opacity: 0.9; }
  70%  { opacity: 0.6; }
  100% { opacity: 0; transform: translate(var(--dx, 20px), var(--dy, -40px)); }
}
.tagline {
  position: relative; z-index: 2;
  margin: -0.9em var(--gutter) 0; text-align: right;
  font: 400 clamp(40px, 7vw, 92px)/1 var(--hand); color: var(--glow);
  transform: rotate(-4deg); text-shadow: 0 0 24px rgba(92, 251, 72, 0.25);
}

/* short page banner for inner pages */
.banner { position: relative; height: clamp(180px, 34vw, 360px); overflow: hidden; background: var(--violet); }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; opacity: 0.85; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7,4,13,0.35), var(--night)); }

/* ---------- sections ---------- */
main { padding: 0 var(--gutter); }
.section { max-width: 1080px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.kicker {
  display: flex; align-items: baseline; gap: 14px; margin: 0 0 28px;
  font: 700 15px/1 var(--narrow); letter-spacing: 0.3em; text-transform: uppercase; color: var(--mute);
}
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); transform: translateY(-4px); }
h1, h2 { font-weight: 700; text-transform: uppercase; line-height: 1.05; margin: 0 0 0.4em; }
h1 { font-size: clamp(44px, 8vw, 96px); letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
.lede { max-width: 34em; color: var(--mute); margin: 0 0 1.5em; }

/* ---------- buttons: square, outlined, like the original ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border: 1px solid var(--glow); border-radius: 0;
  background: transparent; color: var(--glow); cursor: pointer;
  font: 700 15px/1 var(--narrow); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn:hover, .btn:focus-visible { background: var(--glow); color: var(--night); }

/* ---------- track list ---------- */
.tracks { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.track {
  position: relative; display: grid; align-items: center; gap: 0 clamp(14px, 3vw, 28px);
  grid-template-columns: auto 1fr auto auto;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.track:first-child { border-top: 1px solid var(--line); }
.track .no { font: 700 clamp(36px, 6vw, 64px)/1 var(--narrow); color: transparent; -webkit-text-stroke: 1px var(--mute); min-width: 1.3em; }
.track .title { font: 700 clamp(22px, 3.4vw, 34px)/1.1 var(--narrow); text-transform: uppercase; margin: 0; }
.track .time { font-variant-numeric: tabular-nums; color: var(--mute); font-size: 17px; }
.track .play {
  width: 52px; height: 52px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.track .play:hover { border-color: var(--glow); color: var(--glow); }
.track .play svg { width: 18px; height: 18px; fill: currentColor; }
.track .play .i-pause { display: none; }
.track.is-playing .play { background: var(--glow); border-color: var(--glow); color: var(--night); }
.track.is-playing .play .i-play { display: none; }
.track.is-playing .play .i-pause { display: block; }
.track.is-playing .no { -webkit-text-stroke-color: var(--glow); }
.track .bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--glow); }

.listen-on { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.listen-on a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--line);
  font: 700 15px/1 var(--narrow); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.listen-on a::after { content: "\00a0\2197"; }
.listen-on a:hover, .listen-on a:focus-visible { border-color: var(--glow); background: var(--glow); color: var(--night); }

/* ---------- mailing list ---------- */
.signup-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.signup h2 { margin: 0 0 0.3em; }
.signup .lede { margin: 0; }
.signup form { display: flex; }
.signup input { flex: 1; min-width: 0; }

input, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 0;
  background: var(--dusk); color: var(--ink); font: 400 18px/1.4 var(--narrow);
}
input:focus, textarea:focus { outline: none; border-color: var(--glow); }
textarea { min-height: 180px; resize: vertical; }
label { display: block; font: 700 14px/1 var(--narrow); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); margin: 0 0 8px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); }
.contact form { display: grid; gap: 20px; }
.contact .btn { justify-self: start; }
.form-note { font-size: 16px; color: var(--mute); }

/* ---------- footer ---------- */
.site-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--mute); letter-spacing: 0.08em;
}
.site-foot a { white-space: nowrap; color: var(--mute); text-decoration: none; text-transform: uppercase; letter-spacing: 0.18em; }
.site-foot a:hover { color: var(--glow); }
.site-foot .socials { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.player-on .site-foot { padding-bottom: 104px; }

/* ---------- now-playing strip (green, like the old site-wide player) ---------- */
.now {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 12px var(--gutter); background: var(--glow); color: var(--night);
  transform: translateY(110%); transition: transform 0.3s ease;
}
.now.is-on { transform: none; }
.now button { width: 44px; height: 44px; border: 1px solid var(--night); background: transparent; color: var(--night); display: grid; place-items: center; cursor: pointer; }
.now button svg { width: 16px; height: 16px; fill: currentColor; }
.now .i-pause { display: none; }
.now.is-playing .i-play { display: none; }
.now.is-playing .i-pause { display: block; }
.now .what { min-width: 0; }
.now .name { font: 700 16px/1.2 var(--narrow); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; min-height: 0; height: 18px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.now input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--night); }
.now input[type="range"]::-moz-range-track { height: 2px; background: var(--night); }
.now input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; background: var(--night); border: 0; border-radius: 0; }
.now input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; background: var(--night); border: 0; border-radius: 0; }
.now .clock { font-variant-numeric: tabular-nums; font-size: 15px; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .signup-body, .contact { grid-template-columns: 1fr; }
  .track { grid-template-columns: auto 1fr auto; }
  .track .time { grid-column: 2; grid-row: 2; font-size: 15px; }
  .track .play { grid-column: 3; grid-row: 1 / span 2; }
  .tagline { margin-top: -0.6em; }
  .banner img { object-position: 50% 100%; }
  .site-foot { flex-direction: column; }
}
@media (max-width: 420px) {
  .site-head nav a { font-size: 13px; letter-spacing: 0.1em; }
  .signup form { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .motes { display: none; }
  .now { transition: none; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
