/* Ronaut Records: paper, ink, one surfer, a label colour per release. */

:root {
  --paper: #f3f1ec;
  --ink: #121212;
  --muted: #6b665d;
  --rule: #d6d1c6;
  --raise: rgba(0, 0, 0, .5);
  --hole: #0b0b0b;
  --gutter: clamp(16px, 4vw, 44px);
  --max: 1280px;
  --sans: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --spin: 1.8s; /* 33⅓ rpm */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f0f0f; --ink: #eeebe5; --muted: #9a948a; --rule: #2a2825; --raise: rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f0f0f; --ink: #eeebe5; --muted: #9a948a; --rule: #2a2825; --raise: rgba(0, 0, 0, .9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-player { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.page-release main { max-width: none; padding: 0; }

/* ---------- masks: the art is alpha, the colour is CSS ---------- */
.wordmark, .surfer, .house__surfer, .house__wordmark { background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.wordmark, .house__wordmark { -webkit-mask-image: url(/img/wordmark-mask.png); mask-image: url(/img/wordmark-mask.png); aspect-ratio: 470 / 330; }
.surfer, .house__surfer { -webkit-mask-image: url(/img/surfer-mask.png); mask-image: url(/img/surfer-mask.png); aspect-ratio: 1200 / 784; }
.wordmark { display: inline-block; height: 46px; vertical-align: middle; }
.surfer { display: block; width: 100%; }

/* ---------- background surfer: rides across the page as you scroll (site.js) ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky__surfer {
  position: absolute; left: 0; top: 0; width: clamp(560px, 80vw, 1240px);
  color: var(--ink); opacity: .075; will-change: transform;
  transform: translate3d(40vw, 22vh, 0) rotate(1deg); /* resting pose without JS / reduced motion */
}
.sky__surfer .surfer { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: -1.2deg; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sky__surfer { opacity: .09; } }
:root[data-theme="dark"] .sky__surfer { opacity: .09; }

/* ---------- header ---------- */
.site-head {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 28px;
}
.site-head__logo { display: block; line-height: 0; color: var(--ink); }
.site-nav { justify-self: end; display: flex; gap: 26px; font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.site-nav a { text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule); background: none; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.theme-toggle .i { width: 17px; height: 17px; fill: currentColor; }
.theme-toggle .i:last-child { display: none; }
.theme-toggle[aria-pressed="true"] .i:first-child { display: none; }
.theme-toggle[aria-pressed="true"] .i:last-child { display: block; }
@media (max-width: 640px) {
  .site-head { grid-template-columns: 1fr auto; padding-top: 14px; }
  .wordmark { height: 40px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: space-between; gap: 8px; border-top: 1px solid var(--rule); padding-top: 12px; font-size: 11px; }
}

/* ---------- records: a black vinyl rim around every label ---------- */
.record {
  position: relative; border-radius: 50%; padding: 4.5%;
  background:
    conic-gradient(from 25deg, transparent 0 20deg, rgba(255,255,255,.13) 45deg, transparent 75deg 200deg, rgba(255,255,255,.09) 225deg, transparent 255deg),
    repeating-radial-gradient(circle, #121212 0 1.2px, #1b1b1b 1.2px 2.6px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 22px 40px -26px var(--raise);
}
.record > a, .record > .cover-link { display: block; border-radius: 50%; }
.cover { width: 100%; height: auto; border-radius: 50%; transform-origin: 50.6% 49.37%; }
[data-spin] { animation: spin var(--spin) linear infinite paused; }
[data-spin].is-spinning { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }

/* The spindle hole is the play button: it sits exactly on the covers' hole (50.6%, 49.37%). */
.label-box { position: relative; }
.hole-btn {
  position: absolute; left: 50.6%; top: 49.37%; width: 7.6%; aspect-ratio: 1; min-width: 12px;
  translate: -50% -50%; border-radius: 50%; border: 0; padding: 0; background: var(--hole); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: width .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.hole-btn::before { content: ''; position: absolute; inset: -16px; border-radius: 50%; } /* bigger tap target */
.hole-btn .i { width: 46%; height: 46%; fill: currentColor; opacity: 0; transition: opacity .2s; }
.hole-btn .i-pause { display: none; }
.hole-btn.is-playing .i-play { display: none; }
.hole-btn.is-playing .i-pause { display: block; }
.label-box:hover .hole-btn, .hole-btn:focus-visible, .hole-btn.is-playing { width: 17%; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.label-box:hover .hole-btn .i, .hole-btn:focus-visible .i, .hole-btn.is-playing .i { opacity: 1; }
@media (hover: none) {
  .hole-btn { width: 15%; min-width: 30px; }
  .hole-btn .i { opacity: 1; }
}

/* ---------- home hero: the house label, cycling through every release colour ---------- */
.hero { padding: clamp(20px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); display: grid; justify-items: center; text-align: center; }
.house { width: min(560px, 100%); }
.house__disc {
  position: relative; display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  container-type: inline-size; color: var(--label-ink); transform-origin: 50.6% 49.37%;
  transition: color .9s ease; animation: spin var(--spin) linear infinite paused;
}
.house__disc.is-spinning { animation-play-state: running; }
.house__fill { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.house__fill.is-on { opacity: 1; }
.house__surfer { position: absolute; left: 6.133%; top: 9.167%; width: 70.467%; aspect-ratio: 2114 / 1381; }
.house__wordmark { position: absolute; left: 73.467%; top: 40.733%; width: 15.667%; }
.house__text {
  position: absolute; left: 0; right: 0; top: 74.2%; display: flex; flex-direction: column; align-items: center;
  font: 700 6.3cqw/1.05 var(--sans); text-transform: uppercase; letter-spacing: .02em;
}
.house__text span + span { font-size: 3.3cqw; margin-top: 1.4cqw; letter-spacing: .04em; }
.hero__caption { margin: 22px 0 0; color: var(--muted); }
.hero__caption a { color: var(--ink); }
.hero__lede { margin: 18px auto 0; max-width: 26ch; font: 500 clamp(20px, 2.3vw, 27px)/1.3 var(--sans); }

/* ---------- section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1.5px solid var(--ink); padding-top: 12px; margin: 0 0 32px; }
.h-mono { font-weight: 700; letter-spacing: .14em; margin: 0; }
.kicker { margin: 0 0 12px; color: var(--muted); }
.kicker a { color: var(--ink); }
.h-display { font: 800 clamp(44px, 8vw, 104px)/.92 var(--sans); text-transform: uppercase; letter-spacing: -.01em; margin: 0; }

/* ---------- latest release (home) ---------- */
.latest { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: 0 0 clamp(64px, 9vw, 112px); }
.latest__title { font: 800 clamp(48px, 7vw, 96px)/.9 var(--sans); text-transform: uppercase; margin: 0; }
.latest__title a { text-decoration: none; }
.latest__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.latest__artist { font: 500 15px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; margin: 14px 0 18px; }
.mini-tracks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 4px; }
.mini-tracks span { display: inline-block; min-width: 3ch; color: var(--muted); }
@media (max-width: 720px) {
  .latest { grid-template-columns: 1fr; }
  .latest .record { width: min(78%, 340px); margin: 0 auto; }
}

/* ---------- pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pill {
  display: inline-flex; align-items: center; min-height: 36px; padding: 8px 15px; border: 1px solid var(--ink); border-radius: 999px;
  font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: background .15s, color .15s;
}
.pill:hover { background: var(--ink); color: var(--paper); }
.pill--ghost { border-color: var(--rule); }
.pill .arr { margin-left: .45em; }

/* ---------- release grid ---------- */
.catalogue { padding-bottom: clamp(56px, 8vw, 104px); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 36px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; } }
.card__disc { transition: translate .35s cubic-bezier(.2,.8,.2,1); }
.card:hover .card__disc { translate: 0 -4px; }
.card__txt { display: grid; gap: 2px; margin-top: 16px; text-decoration: none; }
.card__meta { color: var(--muted); font-size: 11px; }
.card__title { font: 800 clamp(18px, 1.9vw, 23px)/1.05 var(--sans); text-transform: uppercase; margin-top: 4px; overflow-wrap: anywhere; }
.card__artist { font: 500 13px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.card__txt:hover .card__title { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- release page: sleeve (colour) + insert (paper) ---------- */
.release { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.release__sleeve {
  background: var(--fill); display: grid; place-items: center; padding: clamp(28px, 5vw, 72px);
  position: sticky; top: 0; height: 100vh; height: 100svh; align-self: start;
}
.release__sleeve .record { width: min(100%, 78vh); }
.release__insert { padding: clamp(28px, 5vw, 72px) var(--gutter) clamp(40px, 6vw, 88px) clamp(28px, 5vw, 72px); max-width: 720px; }
.release__title { font: 800 clamp(44px, 6.4vw, 104px)/.9 var(--sans); text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 clamp(24px, 3vw, 40px); overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .release { grid-template-columns: 1fr; }
  .release__sleeve { position: relative; height: auto; padding: 36px var(--gutter); }
  .release__sleeve .record { width: min(86vw, 460px); }
  .release__insert { padding: 28px var(--gutter) 48px; }
}

/* tracklist */
.tracks { list-style: none; margin: 0 0 12px; padding: 0; border-bottom: 1px solid var(--rule); }
.track { position: relative; display: grid; grid-template-columns: 40px 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.track__btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; cursor: pointer; padding: 0;
  display: grid; place-items: center; transition: background .15s, color .15s, border-color .15s;
}
.track__btn .i { width: 16px; height: 16px; fill: currentColor; }
.track__btn .i-pause, .track__btn.is-playing .i-play { display: none; }
.track__btn.is-playing .i-pause { display: block; }
.track__btn:hover, .track__btn.is-playing { background: var(--ink); color: var(--paper); }
.track__side { color: var(--muted); }
.track__title { font: 500 18px/1.25 var(--sans); }
.track__time { color: var(--muted); }
.track__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.track__bar span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--ink); }
.track.is-unavailable .track__btn { opacity: .35; pointer-events: none; }
.fineprint { margin: 0 0 22px; font-size: 10.5px; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 40px 0 0; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.facts dt { color: var(--muted); font-size: 11px; }
.facts dd { margin: 2px 0 0; font-size: 16px; }
@media (max-width: 340px) { .facts { grid-template-columns: 1fr; } }

.rel-nav { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 64px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; border-top: 1px solid var(--rule); }
.rel-nav__item { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.rel-nav__item--next { justify-content: flex-start; text-align: right; flex-direction: row-reverse; } /* row-reverse: flex-start is the right edge */
.rel-nav__item img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 4px #151515; }
.rel-nav__item > span { display: grid; gap: 2px; }
.rel-nav__t { font: 800 16px/1.1 var(--sans); text-transform: uppercase; }
.rel-nav__item:hover .rel-nav__t { text-decoration: underline; }
.rel-nav__all { text-align: center; }
@media (max-width: 640px) {
  .rel-nav { grid-template-columns: 1fr 1fr; }
  .rel-nav__all { grid-column: 1 / -1; grid-row: 2; }
  .rel-nav__item img { width: 44px; height: 44px; }
  .rel-nav__t { font-size: 14px; }
}

/* ---------- releases index ---------- */
.page-intro { padding: clamp(24px, 5vw, 64px) 0 clamp(32px, 5vw, 56px); display: grid; gap: 14px; }
.index { padding: clamp(64px, 9vw, 112px) 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--muted); font-weight: 400; padding: 0 10px 10px 0; }
td { padding: 13px 10px 13px 0; border-top: 1px solid var(--rule); vertical-align: middle; }
td a { font-weight: 700; text-transform: uppercase; text-decoration: none; }
td a:hover { text-decoration: underline; }
.num { text-align: right; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--fill); margin-right: 10px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
@media (max-width: 640px) { .hide-sm { display: none; } td, th { font-size: 14px; } td.mono, th.mono { font-size: 11px; } }

/* ---------- artists ---------- */
.roster { list-style: none; margin: 0 0 clamp(64px, 9vw, 112px); padding: 0; }
.roster__item { display: grid; gap: 10px; padding: 28px 0; border-top: 1.5px solid var(--ink); text-decoration: none; }
.roster__discs { display: flex; }
.roster__discs img { width: clamp(44px, 7vw, 80px); height: auto; border-radius: 50%; margin-right: calc(clamp(44px, 7vw, 80px) * -.42); box-shadow: 0 0 0 3px var(--paper); }
.roster__name { font: 800 clamp(56px, 12vw, 160px)/.9 var(--sans); text-transform: uppercase; margin-top: 12px; }
.roster__item:hover .roster__name { text-decoration: underline; text-decoration-thickness: 4px; }

.artist { padding: clamp(24px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); }
.artist__name { font: 800 clamp(80px, 19vw, 260px)/.82 var(--sans); text-transform: uppercase; letter-spacing: -.02em; margin: 0 0 22px; }
.artist__facts { margin: 0 0 24px; }
.artist__band { display: flex; height: 14px; margin-top: 40px; border-radius: 7px; overflow: hidden; }
.artist__band span { flex: 1; }
.prose { max-width: 60ch; }
.prose p { margin: 0 0 1em; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(24px, 5vw, 64px) 0 clamp(56px, 8vw, 104px); }
.about__mark { color: var(--ink); }
.about__txt .prose { font-size: 19px; margin: 24px 0 36px; }
.about__txt .h-mono { margin-bottom: 12px; }
.contact { list-style: none; margin: 0; padding: 0; }
.contact li { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--rule); }
.contact a { font-weight: 500; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

.colours { padding-bottom: clamp(56px, 8vw, 104px); }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 16px; }
.swatches a { display: grid; justify-items: center; gap: 10px; text-align: center; text-decoration: none; }
.swatch--lg { width: 100%; max-width: 104px; height: auto; aspect-ratio: 1; margin: 0; box-shadow: 0 0 0 5px #151515, 0 14px 24px -16px var(--raise); }
.swatches a:hover .mono { text-decoration: underline; }
@media (max-width: 760px) { .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 404 ---------- */
.lost { display: grid; justify-items: center; text-align: center; gap: 16px; padding: clamp(32px, 6vw, 80px) 0 clamp(64px, 9vw, 112px); }
.lost__mark { width: min(520px, 90%); margin-bottom: 12px; }

/* ---------- footer ---------- */
.site-foot {
  max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 48px; border-top: 1.5px solid var(--ink);
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px 28px; align-items: center;
}
.site-foot__mark .wordmark { height: 56px; }
.site-foot__line { margin: 0; color: var(--muted); }
.site-foot__links { display: flex; gap: 22px; }
.site-foot__links a { text-decoration: none; }
.site-foot__links a:hover { text-decoration: underline; }
.site-foot__copy { grid-column: 1 / -1; margin: 12px 0 0; color: var(--muted); font-size: 10.5px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff6600; margin-right: 7px; vertical-align: 1px; }
@media (max-width: 640px) {
  .site-foot { grid-template-columns: 1fr; }
  .site-foot__links { flex-wrap: wrap; gap: 10px 22px; }
}

/* ---------- mini player ---------- */
.player {
  position: fixed; z-index: 40; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); translate: -50% 0;
  width: min(720px, calc(100% - 24px)); background: #121212; color: #f3f1ec; border-radius: 16px; overflow: hidden;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.player[hidden] { display: none; }
.player__bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255,255,255,.08); }
.player__bar span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--now, #ff6600); }
.player__art { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 3px #000; }
.player__txt { display: grid; min-width: 0; text-decoration: none; }
.player__title { font: 700 15px/1.2 var(--sans); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__sub { color: #a39d93; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__toggle, .player__close { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; padding: 0; }
.player__toggle { background: #f3f1ec; color: #121212; }
.player__toggle .i { width: 18px; height: 18px; fill: currentColor; }
.player__toggle .i-play { display: none; }
.player.is-paused .player__toggle .i-play { display: block; }
.player.is-paused .player__toggle .i-pause { display: none; }
.player__close { background: none; color: #a39d93; font-size: 24px; line-height: 1; }
.player__close:hover { color: #fff; }
.player__am { color: #f3f1ec; text-decoration: none; font-size: 10.5px; padding: 0 4px; }
.player__am:hover { text-decoration: underline; }
.player :focus-visible { outline-color: #fff; }
@media (max-width: 520px) { .player__am { display: none; } .player { grid-template-columns: 44px minmax(0, 1fr) auto auto; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  [data-spin], .house__disc, .sky__surfer .surfer { animation: none !important; }
}
.player__art { animation: spin var(--spin) linear infinite paused; transform-origin: 50.6% 49.37%; }
.player__art.is-spinning { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { .player__art { animation: none; } }
