/* The Ella Speed Reaction
   Colours are sampled from the sleeves: the navy and white of New World
   Disorder and Surf Missile, the cream of Other People's Lives, and the
   red/amber/green of the Tribute To The Masters target. */
:root {
  --paper: #f3e6cb;
  --paper-2: #e8d6b2;
  --ink: #06183a;
  --ink-soft: #4c5a77;
  --accent: #b9090b;
  --amber: #eda501;
  --green: #14702d;
  --line: rgba(6, 24, 58, .2);
  --display: "Oswald", "Haettenschweiler", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - var(--max)) / 2));
  border-bottom: 2px solid var(--ink);
}
/* Blur lives on a pseudo-element: backdrop-filter on .nav itself would trap the
   fixed mobile menu inside the header instead of the viewport */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.nav nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav nav a {
  text-decoration: none; font: 500 14px/1 var(--display);
  text-transform: uppercase; letter-spacing: .07em;
}
.nav nav a:hover, .nav nav a[aria-current] { color: var(--accent); }

/* Two-line wordmark, set like the sleeve lettering */
.wordmark {
  font: 700 15px/.98 var(--display);
  text-transform: uppercase; letter-spacing: .01em;
  text-decoration: none; display: block;
}
.wordmark span { display: block; }
.wordmark.small { font-size: 14px; }

main { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 72px 0 88px;
}
.hero h1 {
  font: 700 clamp(46px, 7.2vw, 96px)/.9 var(--display);
  text-transform: uppercase; letter-spacing: -.005em; margin: 0 0 18px;
}
.hero-date { font-size: 18px; color: var(--ink-soft); margin: 0 0 28px; max-width: 34ch; }
.hero-date strong { color: var(--ink); font-weight: 600; }
.hero-art img {
  max-width: 440px; margin-left: auto;
  box-shadow: 14px 14px 0 var(--ink);
}

/* The mod target from the Tribute sleeve, used as a small rule/marker */
.target {
  width: 13px; height: 13px; border-radius: 50%; flex: none;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--amber), 0 0 0 8px var(--green);
  margin-right: 14px;
}

/* ---------- Labels ---------- */
.tag, .label {
  display: flex; align-items: center;
  font: 600 12px/1 var(--body); text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent); margin: 0 0 12px;
}
.label { color: var(--ink-soft); }

/* ---------- Buttons: hard edges, thick rules ---------- */
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 24px;
  border: 2px solid var(--ink); background: none; color: inherit;
  text-decoration: none; font: 600 14px/1.2 var(--body);
  text-transform: uppercase; letter-spacing: .08em;
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--accent); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); box-shadow: 5px 5px 0 var(--ink); }
.btn.small { padding: 9px 16px; font-size: 12px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; border-top: 2px solid var(--ink); }
.section.first { border-top: 0; padding-top: 44px; }
.section h1 + .lead { max-width: 60ch; margin-bottom: 0; }
.section h1,
.section h2 {
  font: 700 clamp(34px, 5.4vw, 54px)/1 var(--display);
  text-transform: uppercase; margin: 0 0 36px;
}
.section h3 { font: 500 21px/1.15 var(--display); text-transform: uppercase; margin: 0 0 8px; }
.muted { color: var(--ink-soft); }
.link { font-weight: 600; font-size: 15px; text-underline-offset: 3px; }
.link:hover { color: var(--accent); }

/* ---------- Releases ---------- */
.releases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.cover { aspect-ratio: 1; width: 100%; object-fit: cover; margin-bottom: 18px; }
.release .tag { margin-bottom: 8px; }
.platforms, .socials { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.platforms a, .socials a { font-weight: 600; font-size: 15px; text-underline-offset: 3px; }
.platforms a:hover, .socials a:hover { color: var(--accent); }
.release .runtime { margin: 0 0 10px; font-size: 14px; color: var(--ink-soft); }
.embed { margin-top: 52px; }
.embed iframe { display: block; width: 100%; border: 0; }

/* ---------- The run of records: a navy band, set like the sleeves ---------- */
.run {
  margin-top: 56px; padding: 32px 36px 36px;
  background: var(--ink); color: var(--paper);
}
.run-label { color: var(--amber); margin-bottom: 26px; display: flex; align-items: center;
  font: 600 12px/1 var(--body); text-transform: uppercase; letter-spacing: .14em; }
.run-label .target { box-shadow: 0 0 0 4px var(--amber), 0 0 0 8px var(--green); }
.run-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
}
.run-list li {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 14px; border-top: 2px solid color-mix(in srgb, var(--paper) 45%, transparent);
}
.run-list .yr { font: 700 34px/1 var(--display); }
.run-list .ttl { font: 500 17px/1.2 var(--display); text-transform: uppercase; }
.run-list .kind {
  font: 500 11px/1.4 var(--body); text-transform: uppercase; letter-spacing: .1em;
  color: color-mix(in srgb, var(--paper) 65%, transparent);
  margin-top: auto; padding-top: 4px; /* keeps the bottom line level when a title wraps */
}
.run-list li:last-child { border-top-color: var(--amber); }
.run-list li:last-child .yr { color: var(--amber); }

/* ---------- About ---------- */
.about-grid { max-width: 70ch; }
.lead { font: 500 22px/1.45 var(--body); margin-top: 0; }
.facts { margin: 40px 0 0; }
.facts dl {
  display: grid; grid-template-columns: auto 1fr; gap: 14px 24px;
  margin: 0; padding: 26px; border: 2px solid var(--ink);
}
.facts dt {
  font: 600 12px/1.4 var(--body); text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); padding-top: 4px;
}
.facts dd { margin: 0; }

/* Per-album credits. Album on the left, who played on it on the right, like the
   back of a sleeve. The line-up is different every record, so they never merge. */
.more-link { margin: 34px 0 0; font: 600 15px/1.45 var(--body); }
.more-link a { text-underline-offset: 4px; }
.more-link a:hover { color: var(--accent); }

.lineups { margin-top: 44px; }
.lineups > .label { margin-bottom: 20px; }
.lineup {
  display: grid; grid-template-columns: 230px 1fr; gap: 6px 36px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.lineup:first-of-type { border-top: 2px solid var(--ink); }
.lineup h3 {
  margin: 0; font: 500 20px/1.15 var(--display); text-transform: uppercase;
  letter-spacing: .01em;
}
.lineup h3 span {
  display: block; margin-top: 4px;
  font: 600 12px/1 var(--body); letter-spacing: .14em; color: var(--accent);
}

/* ---------- Contact ---------- */
.big-link {
  font: 700 clamp(26px, 5vw, 48px)/1.05 var(--display);
  text-transform: uppercase; text-underline-offset: 8px; word-break: break-word;
}
.big-link:hover { color: var(--accent); }
.contact-note { margin: 20px 0 0; font-size: 15px; }
.contact-note a { text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 40px 16px 56px;
  border-top: 2px solid var(--ink);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
  font-size: 14px; color: var(--ink-soft);
}
.footer .socials a { font-size: 14px; }
.footer .wordmark { color: var(--ink); }

/* ---------- Listen page ---------- */
.listen-page { min-height: 100vh; min-height: 100dvh; position: relative; overflow-x: hidden; }
.listen-page::before {
  content: ""; position: fixed; inset: -60px; z-index: -1;
  /* The sleeves are high-contrast, so a heavy wash turns grey. Keep it a tint. */
  background: var(--cover) center / cover; filter: blur(60px) saturate(1.2); opacity: .22;
}
.listen {
  max-width: 460px; margin: 0 auto; padding: 32px 16px 56px;
  padding-top: max(32px, env(safe-area-inset-top));
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.listen .wordmark { font-size: 15px; margin-bottom: 30px; text-align: center; }
.listen-cover {
  width: min(100%, 320px); margin-bottom: 26px;
  box-shadow: 12px 12px 0 var(--ink);
}
.listen h1 {
  font: 700 clamp(30px, 8vw, 40px)/.98 var(--display);
  text-transform: uppercase; margin: 0 0 18px;
}
.listen .tag { justify-content: center; margin-bottom: 10px; }
/* Bandcamp's player is served transparent, so no backing colour here —
   that way a blocked embed leaves a gap, not a coloured slab. */
.listen-player { width: 100%; border: 0; margin-bottom: 18px; }
.listen-links { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 8px; }
.listen-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 62px; padding: 0 10px 0 20px;
  background: color-mix(in srgb, var(--paper) 86%, white);
  border: 2px solid var(--ink);
  text-decoration: none; font-weight: 600; font-size: 17px; text-align: left;
}
.listen-links .act {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  background: var(--ink); color: var(--paper);
  font: 600 12px/1 var(--body); text-transform: uppercase; letter-spacing: .1em;
}
@media (hover: hover) { .listen-links a:hover .act { background: var(--accent); } }
.listen-links a:active { opacity: .75; }
.listen-home { margin-top: 32px; font-weight: 600; text-underline-offset: 3px; }
.listen-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-soft); }

/* Tracklist + credits (listen page) */
.listen-block { width: 100%; margin-top: 44px; text-align: left; }
.listen-block h2 {
  font: 500 15px/1 var(--display); text-transform: uppercase; letter-spacing: .12em;
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
.tracklist { list-style: none; margin: 0; padding: 0; counter-reset: trk; }
.tracklist li {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px;
}
.tracklist li::before {
  counter-increment: trk; content: counter(trk);
  font: 500 14px/1.6 var(--display); color: var(--ink-soft);
}
.tracklist .dur { color: var(--ink-soft); font-size: 14px; font-variant-numeric: tabular-nums; }
.credits { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.credits strong { color: var(--ink); font-weight: 600; }
.credits p { margin: 0 0 12px; }
.credits p:last-child { margin-bottom: 0; }

/* Menu button + pinned CTA: hidden unless on a phone */
.menu-btn { display: none; }
.mobile-cta { display: none; }

/* ---------- Wide desktop ---------- */
@media (min-width: 1280px) {
  :root { --max: 1200px; }
  .hero { padding: 96px 0 112px; gap: 76px; }
  .hero-art img { max-width: 520px; }
}

/* ---------- Desktop pointer niceties ---------- */
@media (hover: hover) and (min-width: 1024px) {
  .release .cover { transition: transform .2s ease, box-shadow .2s ease; }
  .release:hover .cover { transform: translate(-5px, -5px); box-shadow: 10px 10px 0 var(--ink); }
  .sleeves img { transition: transform .2s ease; }
  .sleeves figure:hover img { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .hero { gap: 40px; padding: 56px 0 72px; }
  .releases { gap: 26px; }
  .run { padding: 28px; }
  .lineup { grid-template-columns: 180px 1fr; gap: 6px 24px; }
  .run-list { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }

  /* Header: wordmark + menu button, full-screen menu */
  .nav { padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
  .js .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    border: 2px solid var(--ink); background: none; color: var(--ink);
    font: 600 13px/1 var(--body); text-transform: uppercase; letter-spacing: .1em;
    cursor: pointer; position: relative; z-index: 2;
  }
  .js .nav nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: center; gap: 2px;
    padding: 96px 24px 48px;
    background: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  }
  .js .nav.open nav { opacity: 1; visibility: visible; }
  .js .nav nav a { font: 700 42px/1.2 var(--display); letter-spacing: 0; padding: 4px 0; }
  .nav .wordmark { position: relative; z-index: 2; }
  body.menu-open { overflow: hidden; }
  /* No-JS fallback: a single scrollable row of links */
  html:not(.js) .nav nav { flex-wrap: nowrap; overflow-x: auto; }

  /* Hero: cover smaller so title + CTAs sit on the first screen */
  .hero { grid-template-columns: 1fr; gap: 26px; padding: 26px 0 48px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(62vw, 270px); margin-left: 0; box-shadow: 9px 9px 0 var(--ink); }
  .hero h1 { font-size: clamp(40px, 12.5vw, 60px); margin-bottom: 14px; }
  .hero-date { font-size: 16px; margin-bottom: 22px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .actions .btn { text-align: center; }

  /* Thumb-sized targets */
  .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .btn.small { min-height: 40px; }

  .section { padding: 48px 0; }
  .section h1, .section h2 { margin-bottom: 20px; }

  /* Releases: compact rows, like a streaming app */
  .releases { grid-template-columns: 1fr; gap: 0; }
  .release > a { display: block; }
  .release {
    display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center;
    padding: 15px 0; border-bottom: 1px solid var(--line);
  }
  .release .cover { margin: 0; }
  .release h3 { font-size: 18px; margin-bottom: 6px; }
  .release .tag { font-size: 10.5px; margin-bottom: 5px; }
  .release .runtime { display: none; }
  .platforms { gap: 6px; }
  .platforms a {
    display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px;
    border: 1.5px solid var(--line); text-decoration: none; font-size: 13px;
  }
  .embed { margin-top: 32px; }

  /* The run of records: single column, full-bleed band */
  .run { margin: 40px -16px 0; padding: 26px 16px 28px; }
  .run-label { margin-bottom: 20px; }
  .run-list { grid-template-columns: 1fr; gap: 0; }
  .run-list li { padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--paper) 35%, transparent); }
  .run-list li:first-child { border-top: 0; padding-top: 0; }
  .run-list .yr { font-size: 26px; }
  .run-list .ttl { font-size: 16px; }

  /* Credits */
  .lineups { margin-top: 40px; }
  .lineup { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
  .lineup h3 { font-size: 18px; }
  .lineup h3 span { display: inline; margin-left: 8px; }

  /* About */
  .lead { font-size: 19px; }
  .facts dl { grid-template-columns: 1fr; gap: 4px 0; padding: 20px; }
  .facts dt:not(:first-child) { margin-top: 14px; }

  /* Contact */
  .big-link { font-size: clamp(22px, 7vw, 30px); }
  .footer .socials a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
    border: 1.5px solid var(--line); text-decoration: none; font-size: 14px;
  }

  /* Footer clears the pinned bar and the home indicator */
  .footer {
    flex-direction: column; align-items: flex-start;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  /* Pinned listen bar */
  .js .mobile-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 5;
    padding: 8px 8px 8px 16px;
    background: var(--ink); color: var(--paper); font-size: 14px;
    box-shadow: 5px 5px 0 var(--accent);
    transform: translateY(170%); transition: transform .3s ease;
  }
  .js .mobile-cta.show { transform: none; }
  .mobile-cta strong { font-weight: 600; }
  .mobile-cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); min-height: 40px; box-shadow: none; }
  body.menu-open .mobile-cta { transform: translateY(170%); }

  /* Listen page */
  .listen-cover { box-shadow: 9px 9px 0 var(--ink); }
  .listen-block { margin-top: 36px; }
}

/* ---------- Touch: no sticky hover colours, give tap feedback instead ---------- */
@media (hover: none) {
  .btn:hover { background: transparent; color: inherit; }
  .btn.primary:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 5px 5px 0 var(--accent); }
  .mobile-cta .btn:hover { background: var(--paper); color: var(--ink); }
  .btn:active, .platforms a:active, .socials a:active { opacity: .7; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
