/* DJ Leslieson — djleslieson.com
   Static site. No build step, no dependencies, no external requests
   except the Spotify embeds on the tracks page. */

:root {
  color-scheme: dark;        /* native scrollbars and form controls match */
  --bg:        #0a0a0f;
  --bg-raised: #14141c;
  --text:      #f4f4f7;
  --text-dim:  #9b9bab;
  --rule:      #262633;
  --flame-a:   #ff4d00;
  --flame-b:   #ff2d78;
  --focus:     #ffd166;
  --measure:   62ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;          /* phone gutter */
}

/* ---- skip link ---- */

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 24px;
  top: 12px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--focus);
  color: #000;
  border-radius: 4px;
}

/* ---- header / nav ---- */

.site-head {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
}

.wordmark {
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 0;          /* ≥44px tap target with the line-height */
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--text); }

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--flame-b);
}

/* ---- hero ---- */

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-transform: uppercase;
}

.flame {
  background: linear-gradient(100deg, var(--flame-a), var(--flame-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.standfirst {
  margin: 0;
  max-width: var(--measure);
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--text-dim);
}

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

main section { padding: 54px 0; }
main section + section { border-top: 1px solid var(--rule); }

h2 {
  margin: 0 0 22px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }

.prose a {
  color: var(--text);
  text-decoration-color: var(--flame-b);
  text-underline-offset: 3px;
}

/* ---- imagery ---- */

.band {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--rule);
}

/* The banner is 2.33:1. On a phone that collapses to a ~160px strip and the
   neon sign becomes unreadable, so crop to a taller frame and anchor towards
   the right, where the sign and the desk are. */
@media (max-width: 700px) {
  .band {
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover;
    object-position: right center;   /* the neon sign lives at the far right */
  }
}

.artwork {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto 40px;
  border-radius: 12px;
  border: 1px solid var(--rule);
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--rule);
}

.portrait-caption {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Two columns only once there's room for a readable measure beside a
   290px portrait. At 768 (tablet portrait) this would leave ~370px of
   text, which is too narrow to read comfortably — so it stays stacked. */
@media (min-width: 900px) {
  .bio-grid { grid-template-columns: 1fr 290px; gap: 44px; }
  .bio-grid .prose { max-width: none; }
}

/* Stacked portrait shouldn't balloon to full width on a tablet. */
@media (max-width: 899px) {
  .bio-grid figure { max-width: 340px; }
}

.pullquote {
  margin: 34px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  font-size: clamp(1.2rem, 3.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ---- placeholder, so unreplaced copy is impossible to miss ---- */

.placeholder {
  border-left: 3px solid var(--focus);
  background: rgba(255, 209, 102, 0.07);
  padding: 16px 20px;
  margin: 0 0 1.15em;
  color: #e8dcb8;
}
.placeholder strong { color: var(--focus); }

/* ---- track list ---- */

.tracks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.track {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 22px;
}

.track-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.track h3 {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.dur {
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  white-space: nowrap;
}

.release {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.track iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
}

.track-links {
  margin: 14px 0 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.track-links a {
  color: var(--text-dim);
  text-decoration-color: var(--flame-b);
  text-underline-offset: 3px;
}

.track-links a:hover,
.track-links a:focus-visible { color: var(--text); }

/* ---- buttons ---- */

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  border: 1px solid var(--rule);
  color: var(--text);
}

.btn-primary {
  background: linear-gradient(100deg, var(--flame-a), var(--flame-b));
  color: #fff;
  border-color: transparent;
}

.btn:hover { filter: brightness(1.12); }

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

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 40px 0 56px;
  color: var(--text-dim);
  font-size: 14px;
}

.site-foot a { color: var(--text-dim); }

.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---- small screens ----
   The header wraps to two rows under ~430px, which makes the sticky bar
   eat a third of a phone screen. Tighten it so it stays one row. */

@media (max-width: 430px) {
  .site-head .wrap { min-height: 58px; gap: 10px; }
  .wordmark { font-size: 13px; letter-spacing: 0.1em; }
  .site-nav { gap: 15px; }
  .site-nav a { font-size: 12.5px; letter-spacing: 0.06em; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 46px 0 38px; }
  main section { padding: 40px 0; }
  .site-foot { padding: 32px 0 44px; }
  .btn { padding: 12px 20px; font-size: 14.5px; }
  .track { padding: 18px; }
}

/* ---- focus visibility ---- */

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ---- respect reduced motion / forced colours ---- */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
