/* files.njp.zip: dufs theme in the style of the KOJO "VISIONS SYSTEM" console scene
   (palette and look from kojo-seductive src/video/video.css) */

@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(vt323-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(vt323-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --void: #010208;
  --electric: #3a78ff;
  --white: #eef4ff;
  --dim: #6f8cc8;
  --faint: #34497f;
  --ice: #b9d2ff;
  --fs: 22px;
  --gutter: 28px;
  color-scheme: dark;
}
@media (min-width: 1500px) {
  :root { --fs: 25px; }
}
@media (max-width: 640px) {
  :root { --fs: 19px; --gutter: 16px; }
}

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

html {
  background: var(--void);
}
body {
  margin: 0;
  min-height: 100vh;
  padding: var(--gutter);
  background: var(--void);
  color: var(--ice);
  font-family: 'VT323', 'Courier New', monospace;
  font-size: var(--fs);
  line-height: 1.15;
  -webkit-font-smoothing: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

::selection {
  background: var(--electric);
  color: var(--void);
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
:focus-visible {
  outline: 1px dotted var(--electric);
  outline-offset: 2px;
}

.row {
  min-height: 1.15em;
  white-space: pre;
}

/* inverse status bar, as in the console scene */
.header {
  display: block;
  overflow: hidden;
  text-overflow: clip;
  background: var(--electric);
  color: var(--void);
}
.header .h-short { display: none; }
@media (max-width: 640px) {
  .header .h-long { display: none; }
  .header .h-short { display: inline; }
}

.c-electric { color: var(--electric); }
.c-white { color: var(--white); }
.c-dim { color: var(--dim); }
.c-faint { color: var(--faint); }
.c-ice { color: var(--ice); }
/* xterm draws bold twice, 1 px apart */
.c-bold { text-shadow: 1px 0 0 currentColor; }

.cursor {
  color: var(--electric);
  text-shadow: 1px 0 0 currentColor;
  animation: blink 0.8s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ls -lah lines: the metadata stays in its columns, a long name wraps */
.entry {
  display: flex;
}
.entry .meta {
  flex: none;
  white-space: pre;
  color: var(--dim);
}
.entry .name {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.entry.is-dir .name {
  color: var(--electric);
  text-shadow: 1px 0 0 currentColor;
}
.entry.is-file .name {
  color: var(--ice);
}
.entry.is-sel,
.entry.is-sel .meta,
.entry.is-sel .name {
  background: var(--electric);
  color: var(--void);
  text-shadow: none;
}
.entry.is-sel .name {
  text-decoration: none;
}

/* small screens: drop perms, links and owner, keep size, date and name */
@media (max-width: 640px) {
  .entry .m-long { display: none; }
}

.prompt-path a:hover {
  color: var(--white);
}

.hint { color: var(--faint); }
.hint-touch { display: none; }
@media (hover: none) {
  .hint-keys { display: none; }
  .hint-touch { display: inline; }
}

.live { cursor: text; }

/* the real input only collects keys (and opens the keyboard on phones) */
.filter {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  font-size: 16px; /* no zoom on iOS */
  pointer-events: none;
}

.is-pending { visibility: hidden; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
