@font-face {
  font-family: Archivo;
  src: url("assets/fonts/archivo.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Pirata One";
  src: url("assets/fonts/pirata-one.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #131313;
  --paper: #e1e1e1;
  --ash: #b3b3b3;
  --graphite: #3d3d3d;
  --display: "Pirata One", Georgia, serif;
  --body: Archivo, Arial, sans-serif;
  --gutter: clamp(1.15rem, 5.4vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 1rem/1.55 var(--body); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, .brand, .footer-brand { font-family: var(--display); font-weight: 400; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #7d7d7d; outline-offset: 4px; }
.paper :focus-visible { outline-color: var(--graphite); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 5; top: 1rem; left: 1rem; padding: .75rem 1rem; color: var(--ink); background: var(--paper); }

.masthead {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-inline: var(--gutter);
  min-height: 5rem;
}
.masthead a { text-decoration: none; }
.brand { justify-self: start; font-size: 2rem; line-height: 1; padding-block: .45rem; }
.masthead nav { display: flex; gap: clamp(1.15rem, 3vw, 3rem); }
.masthead nav a, .platform { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding-block: .85rem; }
.masthead nav a:hover, .platform:hover { text-decoration: underline; }
.platform { justify-self: end; display: inline-flex; align-items: center; gap: .5rem; }

.hero {
  --case-depth: clamp(10px, 2vw, 32px);
  --glass-radius: clamp(6px, 1vw, 15px);
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  border: var(--case-depth) solid transparent;
  border-radius: clamp(6px, 1.1vw, 17px);
  background:
    linear-gradient(#050505, #050505) padding-box,
    repeating-linear-gradient(111deg, #ddd0 0 2px, #dddddd02 3px, #ddd0 5px) border-box,
    radial-gradient(ellipse at 65% -16%, #91919180, transparent 58%) border-box,
    linear-gradient(155deg, #555 0%, #353535 30%, #4a4a4a 71%, #2b2b2b 100%) border-box;
}
.hero::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--case-depth) / 3);
  z-index: 4;
  pointer-events: none;
  border-radius: calc(var(--glass-radius) + 3px);
  box-shadow:
    0 -1px 2px #090909, 0 1px 2px #aaa8,
    inset 0 2px 4px #0b0b0b,
    inset 0 -2px 3px #a7a7a767,
    inset 4px 0 7px #191919,
    inset -3px 0 5px #b3b3b339;
}
.scene-surface, .hero-picture, #world, .hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scene-surface, .hero-scrim, .crt-overlay {
  border-radius: var(--glass-radius);
}
.scene-surface, .crt-overlay { overflow: hidden; }
.scene-surface.interactive { touch-action: pan-y pinch-zoom; }
.hero-picture { pointer-events: none; user-select: none; }
.hero-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--scene-x, 50%) var(--scene-y, 50%);
  filter: grayscale(1) brightness(.75) contrast(1.08);
  transform: scale(var(--scene-zoom, 1));
  transform-origin: var(--scene-x, 50%) var(--scene-y, 50%);
}
#world { display: none; pointer-events: none; }
#world.is-rendering { display: block; }
.hero-scrim {
  pointer-events: none;
  background:
    linear-gradient(to bottom, #050505bb, transparent 21%),
    radial-gradient(ellipse at 90% 8%, #f2f2f238 0, #ddd1 22%, transparent 48%),
    radial-gradient(ellipse at 108% 98%, #bbb2, transparent 33%),
    linear-gradient(105deg, #02020252, transparent 8%, transparent 91%, #e5e5e514),
    radial-gradient(ellipse at 49% 45%, transparent 37%, #08080838 66%, #020202dd 103%);
  box-shadow:
    inset 1px 2px 4px 2px #000,
    inset 7px 6px 14px #000c,
    inset -4px -4px 9px #bebebe41,
    inset 0 0 20px 7px #070707a8;
}
.crt-filter {
  position: absolute;
  pointer-events: none;
}
.crt-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: url("#crt-curve");
}
.crt-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: repeating-linear-gradient(transparent 0 2px, #0002 2px 3px);
  pointer-events: none;
}
.masthead a { pointer-events: auto; }
.hero-center {
  position: absolute;
  inset: 0;
  align-content: center;
  display: grid;
  justify-items: center;
  padding: clamp(3.5rem, 9svh, 7rem) var(--gutter);
  text-align: center;
  pointer-events: none;
}
.eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.hero-genre { color: #f4f4f4; text-shadow: 0 1px 12px #0a0a0a, 0 1px 4px #0a0a0a; }
.hero h1 {
  font-size: clamp(2rem, 13.2vw, 15rem);
  line-height: .95;
  letter-spacing: -.035em;
  color: #eaeaea;
  margin: .12em 0 .16em;
  text-shadow: 0 .035em .14em #101010cf;
}
.listen {
  pointer-events: auto;
  display: inline-flex;
  gap: .85rem;
  align-items: center;
  background: #131313e8;
  border: 1px solid #c2c2c2a3;
  text-decoration: none;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
  padding: .8rem 1.15rem;
}
.listen {
  box-shadow: inset 0 0 .7rem #dddddd16, 0 0 .7rem #dddddd15;
  text-shadow: 0 0 .3em #ddd7;
}
@media (prefers-reduced-motion: no-preference) {
  .hero.is-retuning .listen { animation: crt-button-glitch 580ms steps(1, end) both; }
  @keyframes crt-button-glitch {
    0%, 44%, 69%, 100% { transform: none; clip-path: none; }
    12% { transform: translateX(5px) skewX(-8deg); clip-path: inset(0 0 32% 0); }
    27% { transform: translateX(-3px); clip-path: inset(0); }
    55% { transform: translateX(3px) skewX(6deg); clip-path: inset(20% 0 0 0); }
  }
}

.listen:hover { background: var(--graphite); }
.listen:hover .signal-mark { color: var(--paper); }

.section-wrap { width: min(100%, 104rem); margin-inline: auto; padding: clamp(3.6rem, 8vw, 8rem) var(--gutter); }
.section-heading { display: flex; gap: 1rem; justify-content: space-between; align-items: end; margin-bottom: clamp(1.5rem, 4vw, 3.5rem); }
h2 { font-size: clamp(3.6rem, 8vw, 8rem); line-height: .95; }
.paper { background: var(--paper); color: var(--ink); color-scheme: light; }
.track-label { color: var(--graphite); margin-bottom: .7rem; }
.track-label .signal-mark { color: #555; }
.soundcloud-group { margin-top: clamp(1.5rem, 4vw, 3rem); }
.soundcloud-group h3 { margin: 0 0 .85rem; font-size: clamp(1.25rem, 3vw, 2rem); }
.track-list { display: grid; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.player { margin-top: 1rem; padding: .85rem; background: #1c1c1c; color: var(--paper); color-scheme: dark; }
.player :focus-visible { outline-color: #8e8e8e; }
.signal-link { text-decoration: none; }
.track-label .signal-link, .player-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.player-link {
  min-height: 44px;
  margin-top: .55rem;
  padding: .45rem .65rem;
  background: #343434;
  color: #f3f3f3;
  font-size: .82rem;
}
.player-link:hover { background: #494949; }
.player iframe { border: 0; width: 100%; display: block; background: #2d2d2d; }
.soundcloud-player {
  margin-top: 0;
  padding: 0;
  border-inline-start: 3px solid #ff5500;
}
.soundcloud-player summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  padding: .4rem .7rem;
  list-style: none;
  cursor: pointer;
}
.soundcloud-player summary::-webkit-details-marker { display: none; }
.soundcloud-player summary::after {
  content: "+";
  color: #bdbdbd;
  font-size: 1.25rem;
  line-height: 1;
}
.soundcloud-player details[open] summary::after { content: "−"; }
.soundcloud-player summary:hover { background: #2c2c2c; }
.soundcloud-player summary:focus-visible { outline-offset: -3px; }
.release-art { display: block; object-fit: cover; }
.release-title { font-size: .95rem; font-weight: 700; overflow-wrap: anywhere; }
.release-player { padding: .35rem .7rem .7rem; }
/* SoundCloud's light widget has no dark theme. The complementary widget color
   becomes orange when the iframe is inverted. */
.soundcloud-player iframe {
  filter: invert(1);
  background: #ddd;
}

.spotify-player {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  border-inline-start: 3px solid #1ed760;
}
.spotify-player h3 {
  margin-bottom: .65rem;
  color: #1ed760;
}


.about { background: #1d1d1d; }
.artist-bio { font-size: clamp(1.125rem, 2.25vw, 2.1rem); line-height: 1.45; }
.artist-bio p + p { margin-top: 1em; }
.links .section-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(.75rem, 3vw, 2rem);
}
.social-link {
  display: grid;
  place-items: center;
  width: clamp(3.5rem, 7vw, 5rem);
  aspect-ratio: 1;
}
.social-link svg {
  width: clamp(2.625rem, 5vw, 3.75rem);
  height: auto;
}
.social-link:focus-visible { outline: none; }
.social-link:focus-visible svg { filter: brightness(1.55) drop-shadow(0 0 .3rem currentColor); }
footer {
  text-align: center;
  padding: 1rem var(--gutter);
  color: var(--ash);
}
.footer-brand { font-size: 1.75rem; text-decoration: none; }

@media (max-width: 760px) {
  .masthead { min-height: 4rem; }
  .hero h1 { font-size: clamp(2rem, 17vw, 8rem); }
}

@media (max-width: 680px) {
  .soundcloud-player .player-link { width: 100%; justify-content: center; text-align: center; }
  .section-heading { flex-wrap: wrap; align-items: start; }
}

@media (max-width: 420px) {
  .masthead { gap: .55rem; }
  .brand { font-size: 1.45rem; }
  .masthead nav { gap: .65rem; }
  .masthead nav a, .platform { font-size: .62rem; letter-spacing: .04em; }
  .platform { gap: .25rem; }
  .platform .signal-mark { width: .75rem; height: .75rem; }
}

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

.signal-mark {
  position: relative;
  display: inline-block;
  flex: none;
  width: 1rem;
  height: 1rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #b1b1b1;
}
.signal-mark > span {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: rotate(-13deg);
  transition: opacity 100ms ease-out;
}
.signal-mark > span::before, .signal-mark > span::after, .signal-mark::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.signal-mark > span::before, .signal-mark > span::after {
  width: 2px;
  height: 1.18rem;
  left: calc(50% - 1px);
  top: -.13rem;
  transform-origin: center 12%;
}
.signal-mark > span::before { transform: rotate(22deg); }
.signal-mark > span::after { transform: rotate(-22deg); }
.signal-mark::after {
  left: -.14rem;
  right: -.14rem;
  top: 57%;
  height: 1px;
  opacity: 0;
  transform: rotate(-13deg);
  transition: opacity 100ms ease-out;
}
.signal-revealed .signal-mark > span, .signal-revealed .signal-mark::after,
a:active .signal-mark > span, a:active .signal-mark::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .signal-mark > span, .signal-mark::after { transition: none; }
}
